2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 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
641 ac_subst_vars
='LTLIBOBJS
643 LD_SWITCH_SYSTEM_EXTRA
644 LD_SWITCH_SYSTEM_TEMACS
658 GNUSTEP_SYSTEM_LIBRARIES
659 GNUSTEP_SYSTEM_HEADERS
677 x_default_search_path
742 LD_SWITCH_X_SITE_AUX_RPATH
811 program_transform_name
823 enable_option_checking
844 with_toolkit_scroll_bars
858 enable_ns_self_contained
860 enable_maintainer_mode
868 ac_precious_vars
='build_alias
880 # Initialize some variables set by options.
882 ac_init_version
=false
883 ac_unrecognized_opts
=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name
=s
,x
,x
,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir
='${exec_prefix}/bin'
909 sbindir
='${exec_prefix}/sbin'
910 libexecdir
='${exec_prefix}/libexec'
911 datarootdir
='${prefix}/share'
912 datadir
='${datarootdir}'
913 sysconfdir
='${prefix}/etc'
914 sharedstatedir
='${prefix}/com'
915 localstatedir
='${prefix}/var'
916 includedir
='${prefix}/include'
917 oldincludedir
='/usr/include'
918 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir
='${datarootdir}/info'
924 libdir
='${exec_prefix}/lib'
925 localedir
='${datarootdir}/locale'
926 mandir
='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\
$ac_option
940 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
952 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
955 -build |
--build |
--buil |
--bui |
--bu)
956 ac_prev
=build_alias
;;
957 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
958 build_alias
=$ac_optarg ;;
960 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
961 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
962 ac_prev
=cache_file
;;
963 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
964 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
965 cache_file
=$ac_optarg ;;
968 cache_file
=config.cache
;;
970 -datadir |
--datadir |
--datadi |
--datad)
972 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
973 datadir
=$ac_optarg ;;
975 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
976 |
--dataroo |
--dataro |
--datar)
977 ac_prev
=datarootdir
;;
978 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
979 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
980 datarootdir
=$ac_optarg ;;
982 -disable-* |
--disable-*)
983 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
986 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
987 { (exit 1); exit 1; }; }
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=no
;;
999 -docdir |
--docdir |
--docdi |
--doc |
--do)
1001 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1002 docdir
=$ac_optarg ;;
1004 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1006 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1007 dvidir
=$ac_optarg ;;
1009 -enable-* |
--enable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=\
$ac_optarg ;;
1026 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1027 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1028 |
--exec |
--exe |
--ex)
1029 ac_prev
=exec_prefix
;;
1030 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1031 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1032 |
--exec=* |
--exe=* |
--ex=*)
1033 exec_prefix
=$ac_optarg ;;
1035 -gas |
--gas |
--ga |
--g)
1036 # Obsolete; use --with-gas.
1039 -help |
--help |
--hel |
--he |
-h)
1040 ac_init_help
=long
;;
1041 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1042 ac_init_help
=recursive
;;
1043 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1044 ac_init_help
=short
;;
1046 -host |
--host |
--hos |
--ho)
1047 ac_prev
=host_alias
;;
1048 -host=* |
--host=* |
--hos=* |
--ho=*)
1049 host_alias
=$ac_optarg ;;
1051 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1053 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1055 htmldir
=$ac_optarg ;;
1057 -includedir |
--includedir |
--includedi |
--included |
--include \
1058 |
--includ |
--inclu |
--incl |
--inc)
1059 ac_prev
=includedir
;;
1060 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1061 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1062 includedir
=$ac_optarg ;;
1064 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1066 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1067 infodir
=$ac_optarg ;;
1069 -libdir |
--libdir |
--libdi |
--libd)
1071 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1072 libdir
=$ac_optarg ;;
1074 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1075 |
--libexe |
--libex |
--libe)
1076 ac_prev
=libexecdir
;;
1077 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1078 |
--libexe=* |
--libex=* |
--libe=*)
1079 libexecdir
=$ac_optarg ;;
1081 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1082 ac_prev
=localedir
;;
1083 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1084 localedir
=$ac_optarg ;;
1086 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1087 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1088 ac_prev
=localstatedir
;;
1089 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1090 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1091 localstatedir
=$ac_optarg ;;
1093 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1095 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1096 mandir
=$ac_optarg ;;
1098 -nfp |
--nfp |
--nf)
1099 # Obsolete; use --without-fp.
1102 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1103 |
--no-cr |
--no-c |
-n)
1106 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1107 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1110 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1111 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1112 |
--oldin |
--oldi |
--old |
--ol |
--o)
1113 ac_prev
=oldincludedir
;;
1114 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1115 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1116 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1117 oldincludedir
=$ac_optarg ;;
1119 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1121 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1122 prefix
=$ac_optarg ;;
1124 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1125 |
--program-pre |
--program-pr |
--program-p)
1126 ac_prev
=program_prefix
;;
1127 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1128 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1129 program_prefix
=$ac_optarg ;;
1131 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1132 |
--program-suf |
--program-su |
--program-s)
1133 ac_prev
=program_suffix
;;
1134 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1135 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1136 program_suffix
=$ac_optarg ;;
1138 -program-transform-name |
--program-transform-name \
1139 |
--program-transform-nam |
--program-transform-na \
1140 |
--program-transform-n |
--program-transform- \
1141 |
--program-transform |
--program-transfor \
1142 |
--program-transfo |
--program-transf \
1143 |
--program-trans |
--program-tran \
1144 |
--progr-tra |
--program-tr |
--program-t)
1145 ac_prev
=program_transform_name
;;
1146 -program-transform-name=* |
--program-transform-name=* \
1147 |
--program-transform-nam=* |
--program-transform-na=* \
1148 |
--program-transform-n=* |
--program-transform-=* \
1149 |
--program-transform=* |
--program-transfor=* \
1150 |
--program-transfo=* |
--program-transf=* \
1151 |
--program-trans=* |
--program-tran=* \
1152 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1153 program_transform_name
=$ac_optarg ;;
1155 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1157 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1158 pdfdir
=$ac_optarg ;;
1160 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1162 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1165 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1166 |
-silent |
--silent |
--silen |
--sile |
--sil)
1169 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1171 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1173 sbindir
=$ac_optarg ;;
1175 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1176 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1177 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1179 ac_prev
=sharedstatedir
;;
1180 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1181 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1182 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1184 sharedstatedir
=$ac_optarg ;;
1186 -site |
--site |
--sit)
1188 -site=* |
--site=* |
--sit=*)
1191 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1193 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1194 srcdir
=$ac_optarg ;;
1196 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1197 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1198 ac_prev
=sysconfdir
;;
1199 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1200 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1201 sysconfdir
=$ac_optarg ;;
1203 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1204 ac_prev
=target_alias
;;
1205 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1206 target_alias
=$ac_optarg ;;
1208 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1211 -version |
--version |
--versio |
--versi |
--vers |
-V)
1212 ac_init_version
=: ;;
1215 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=\
$ac_optarg ;;
1231 -without-* |
--without-*)
1232 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1235 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_useropt_orig
=$ac_useropt
1238 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep
=', ';;
1246 eval with_
$ac_useropt=no
;;
1249 # Obsolete; use --with-x.
1252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1254 ac_prev
=x_includes
;;
1255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1257 x_includes
=$ac_optarg ;;
1259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1261 ac_prev
=x_libraries
;;
1262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1264 x_libraries
=$ac_optarg ;;
1266 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1272 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1275 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\
$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 if test -n "$ac_prev"; then
1292 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1293 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1300 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1301 { (exit 1); exit 1; }; } ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 # Check all directory arguments for consistency.
1307 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val
=\$
$ac_var
1313 # Remove trailing slashes.
1316 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\
$ac_val;;
1319 # Be sure to have absolute directory names.
1321 [\\/$
]* | ?
:[\\/]* ) continue;;
1322 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1324 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1333 target
=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x
; then
1337 if test "x$build_alias" = x
; then
1338 cross_compiling
=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1349 test "$silent" = yes && exec 6>/dev
/null
1352 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di
=`ls -di .` &&
1354 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1355 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted
=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir
=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted
=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1398 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1401 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1414 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 for ac_var
in $ac_precious_vars; do
1417 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1419 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1430 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1493 --x-includes=DIR X include files are
in DIR
1494 --x-libraries=DIR X library files are
in DIR
1497 --build=BUILD configure
for building on BUILD
[guessed
]
1498 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1509 --disable-option-checking ignore unrecognized
--enable/--with options
1510 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1511 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1512 --disable-ns-self-contained
1513 disable self contained build under NeXTstep
1514 --enable-asserts compile code with asserts enabled
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful
(and
1517 sometimes confusing
) to the casual installer
1518 --enable-locallisppath=PATH
1519 directories Emacs should search
for lisp files
1520 specific to this site
1521 --enable-checking[=LIST
]
1522 enable expensive run-time checks. With LIST
, enable
1523 only specific categories of checks. Categories are
:
1524 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1525 stringfreelist
, xmallocoverrun
, conslist
1526 --enable-profiling build emacs with profiling support. This might not
1527 work on all platforms
1528 --enable-autodepend automatically generate dependencies to .h-files.
1529 Requires GNU Make and Gcc. Enabled
if GNU Make and
1531 --disable-largefile omit support
for large files
1534 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1535 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1536 --without-pop don
't support POP mail retrieval with movemail
1537 --with-kerberos support Kerberos-authenticated POP
1538 --with-kerberos5 support Kerberos version 5 authenticated POP
1539 --with-hesiod support Hesiod to get the POP server host
1540 --with-mmdf support MMDF mailboxes
1541 --with-mail-unlink unlink, rather than empty, mail spool after reading
1542 --with-mailhost=HOSTNAME
1543 string giving default POP mail host
1544 --without-sound don't compile with sound support
1545 --without-sync-input process async input synchronously
1546 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1548 --without-xpm don
't compile with XPM image support
1549 --without-jpeg don't compile with JPEG image support
1550 --without-tiff don
't compile with TIFF image support
1551 --without-gif don't compile with GIF image support
1552 --without-png don
't compile with PNG image support
1553 --without-rsvg don't compile with SVG image support
1554 --with-imagemagick compile with ImageMagick image support
1555 --without-xft don
't use XFT for anti aliased fonts
1556 --without-libotf don't use libotf
for OpenType font support
1557 --without-m17n-flt don
't use m17n-flt for text shaping
1558 --without-toolkit-scroll-bars
1559 don't use Motif or Xaw3d scroll bars
1560 --without-xaw3d don
't use Xaw3d
1561 --without-xim don't use X11 XIM
1562 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1563 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1565 --without-dbus don't compile with D-Bus support
1566 --without-gconf don
't compile with GConf support
1567 --without-selinux don't compile with SELinux support
1568 --without-makeinfo don
't require makeinfo for building manuals
1570 --with-pkg-config-prog=PATH
1571 path to pkg-config for finding GTK and librsvg
1572 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1573 /usr/lib, or /usr/lib64 on some platforms.
1574 --with-gnustep-conf=PATH
1575 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1576 or /etc/GNUstep/GNUstep.conf
1577 --with-x use the X Window System
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 XMKMF Path to xmkmf, Makefile generator for X Window System
1590 Use these variables to override the choices made by `configure' or to
help
1591 it to
find libraries and programs with nonstandard names
/locations.
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1606 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1613 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir
=$ac_pwd
1617 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir
=$ac_top_build_prefix
1622 .
) # We are building in place.
1624 ac_top_srcdir
=$ac_top_builddir_sub
1625 ac_abs_top_srcdir
=$ac_pwd ;;
1626 [\\/]* | ?
:[\\/]* ) # Absolute name.
1627 ac_srcdir
=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir
=$srcdir
1629 ac_abs_top_srcdir
=$srcdir ;;
1631 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1655 emacs configure
24.0.50
1656 generated by GNU Autoconf
2.63
1658 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1660 This configure
script is free software
; the Free Software Foundation
1661 gives unlimited permission to copy
, distribute and modify it.
1665 cat >config.log
<<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by emacs $as_me 24.0.50, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir
=.
1706 $as_echo "PATH: $as_dir"
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_must_keep_next
=false
1736 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1738 |
-silent |
--silent |
--silen |
--sile |
--sil)
1741 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true
; then
1748 ac_must_keep_next
=false
# Got value, back to normal.
1751 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1752 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1753 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1754 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759 -* ) ac_must_keep_next
=true
;;
1762 ac_configure_args
="$ac_configure_args '$ac_arg'"
1767 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1768 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 $as_echo "$ac_var='\''$ac_val'\''"
1834 if test -n "$ac_subst_files"; then
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1841 for ac_var
in $ac_subst_files
1843 eval ac_val
=\$
$ac_var
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 $as_echo "$ac_var='\''$ac_val'\''"
1852 if test -s confdefs.h; then
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870 for ac_signal
in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest
* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h
<<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 cat >>confdefs.h
<<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 cat >>confdefs.h
<<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 cat >>confdefs.h
<<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 cat >>confdefs.h
<<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1
=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE
; then
1912 ac_site_file1
=$prefix/share
/config.site
1913 ac_site_file2
=$prefix/etc
/config.site
1915 ac_site_file1
=$ac_default_prefix/share
/config.site
1916 ac_site_file2
=$ac_default_prefix/etc
/config.site
1918 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1920 test "x$ac_site_file" = xNONE
&& continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1936 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1937 *) .
"./$cache_file";;
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1946 ac_header_list
="$ac_header_list sys/time.h"
1947 ac_header_list
="$ac_header_list unistd.h"
1948 ac_func_list
="$ac_func_list alarm"
1949 # Check that the precious variables saved in the cache have kept the same
1951 ac_cache_corrupted
=false
1952 for ac_var
in $ac_precious_vars; do
1953 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1954 eval ac_new_set
=\
$ac_env_${ac_var}_set
1955 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1956 eval ac_new_val
=\
$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted
=: ;;
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted
=: ;;
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w
=`echo x $ac_old_val`
1971 ac_new_val_w
=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted
=:
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\
$ac_old_val
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1990 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg
=$ac_var=$ac_new_val ;;
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1999 if $ac_cache_corrupted; then
2000 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2034 ac_cpp
='$CPP $CPPFLAGS'
2035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2040 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2044 test "$program_prefix" != NONE
&&
2045 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2046 # Use a double $ so make ignores it.
2047 test "$program_suffix" != NONE
&&
2048 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2049 # Double any \ or $.
2050 # By default was `s,x,x', remove it if useless.
2051 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2052 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2055 lispdir
='${datadir}/emacs/${version}/lisp'
2056 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2057 '${datadir}/emacs/site-lisp'
2058 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2059 etcdir
='${datadir}/emacs/${version}/etc'
2060 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2061 docdir
='${datadir}/emacs/${version}/etc'
2062 gamedir
='${localstatedir}/games/emacs'
2069 # Check whether --with-pop was given.
2070 if test "${with_pop+set}" = set; then
2076 if test "$with_pop" = yes; then
2077 cat >>confdefs.h
<<\_ACEOF
2078 #define MAIL_USE_POP 1
2085 # Check whether --with-kerberos was given.
2086 if test "${with_kerberos+set}" = set; then
2087 withval
=$with_kerberos;
2092 if test "$with_kerberos" != no
; then
2093 cat >>confdefs.h
<<\_ACEOF
2101 # Check whether --with-kerberos5 was given.
2102 if test "${with_kerberos5+set}" = set; then
2103 withval
=$with_kerberos5;
2108 if test "${with_kerberos5}" != no
; then
2109 if test "${with_kerberos}" = no
; then
2111 cat >>confdefs.h
<<\_ACEOF
2117 cat >>confdefs.h
<<\_ACEOF
2124 # Check whether --with-hesiod was given.
2125 if test "${with_hesiod+set}" = set; then
2126 withval
=$with_hesiod;
2131 if test "$with_hesiod" != no
; then
2133 cat >>confdefs.h
<<\_ACEOF
2140 # Check whether --with-mmdf was given.
2141 if test "${with_mmdf+set}" = set; then
2147 if test "$with_mmdf" != no
; then
2149 cat >>confdefs.h
<<\_ACEOF
2150 #define MAIL_USE_MMDF 1
2156 # Check whether --with-mail-unlink was given.
2157 if test "${with_mail_unlink+set}" = set; then
2158 withval
=$with_mail_unlink;
2163 if test "$with_mail_unlink" != no
; then
2165 cat >>confdefs.h
<<\_ACEOF
2166 #define MAIL_UNLINK_SPOOL 1
2172 # Check whether --with-mailhost was given.
2173 if test "${with_mailhost+set}" = set; then
2174 withval
=$with_mailhost;
2175 cat >>confdefs.h
<<_ACEOF
2176 #define MAILHOST "$withval"
2183 # Check whether --with-sound was given.
2184 if test "${with_sound+set}" = set; then
2185 withval
=$with_sound;
2192 # Check whether --with-sync-input was given.
2193 if test "${with_sync_input+set}" = set; then
2194 withval
=$with_sync_input;
2199 if test "$with_sync_input" = yes; then
2201 cat >>confdefs.h
<<\_ACEOF
2202 #define SYNC_INPUT 1
2208 # Check whether --with-x-toolkit was given.
2209 if test "${with_x_toolkit+set}" = set; then
2210 withval
=$with_x_toolkit; case "${withval}" in
2211 y | ye |
yes ) val
=gtk
;;
2213 l | lu | luc | luci | lucid
) val
=lucid
;;
2214 a |
at | ath | athe | athen | athena
) val
=athena
;;
2215 m | mo | mot | moti | motif
) val
=motif
;;
2216 g | gt | gtk
) val
=gtk
;;
2218 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2219 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2220 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2221 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2222 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2223 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2224 { (exit 1); exit 1; }; }
2233 # Check whether --with-xpm was given.
2234 if test "${with_xpm+set}" = set; then
2241 # Check whether --with-jpeg was given.
2242 if test "${with_jpeg+set}" = set; then
2249 # Check whether --with-tiff was given.
2250 if test "${with_tiff+set}" = set; then
2257 # Check whether --with-gif was given.
2258 if test "${with_gif+set}" = set; then
2265 # Check whether --with-png was given.
2266 if test "${with_png+set}" = set; then
2273 # Check whether --with-rsvg was given.
2274 if test "${with_rsvg+set}" = set; then
2281 # Check whether --with-imagemagick was given.
2282 if test "${with_imagemagick+set}" = set; then
2283 withval
=$with_imagemagick;
2290 # Check whether --with-xft was given.
2291 if test "${with_xft+set}" = set; then
2298 # Check whether --with-libotf was given.
2299 if test "${with_libotf+set}" = set; then
2300 withval
=$with_libotf;
2306 # Check whether --with-m17n-flt was given.
2307 if test "${with_m17n_flt+set}" = set; then
2308 withval
=$with_m17n_flt;
2315 # Check whether --with-toolkit-scroll-bars was given.
2316 if test "${with_toolkit_scroll_bars+set}" = set; then
2317 withval
=$with_toolkit_scroll_bars;
2319 with_toolkit_scroll_bars
=yes
2323 # Check whether --with-xaw3d was given.
2324 if test "${with_xaw3d+set}" = set; then
2325 withval
=$with_xaw3d;
2331 # Check whether --with-xim was given.
2332 if test "${with_xim+set}" = set; then
2339 # Check whether --with-ns was given.
2340 if test "${with_ns+set}" = set; then
2348 # Check whether --with-gpm was given.
2349 if test "${with_gpm+set}" = set; then
2356 # Check whether --with-dbus was given.
2357 if test "${with_dbus+set}" = set; then
2364 # Check whether --with-gconf was given.
2365 if test "${with_gconf+set}" = set; then
2366 withval
=$with_gconf;
2372 # Check whether --with-selinux was given.
2373 if test "${with_selinux+set}" = set; then
2374 withval
=$with_selinux;
2380 ## For the times when you want to build Emacs but don't have
2381 ## a suitable makeinfo, and can live without the manuals.
2383 # Check whether --with-makeinfo was given.
2384 if test "${with_makeinfo+set}" = set; then
2385 withval
=$with_makeinfo;
2392 # Check whether --with-gtk was given.
2393 if test "${with_gtk+set}" = set; then
2394 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2395 specify a toolkit." >&5
2396 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2397 specify a toolkit." >&2;}
2398 { (exit 1); exit 1; }; }
2403 # Check whether --with-gcc was given.
2404 if test "${with_gcc+set}" = set; then
2405 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2406 variable to specify a compiler." >&5
2407 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2408 variable to specify a compiler." >&2;}
2409 { (exit 1); exit 1; }; }
2414 # Check whether --with-pkg-config-prog was given.
2415 if test "${with_pkg_config_prog+set}" = set; then
2416 withval
=$with_pkg_config_prog;
2419 if test "X${with_pkg_config_prog}" != X
; then
2420 if test "${with_pkg_config_prog}" != yes; then
2421 PKG_CONFIG
="${with_pkg_config_prog}"
2427 # Check whether --with-crt-dir was given.
2428 if test "${with_crt_dir+set}" = set; then
2429 withval
=$with_crt_dir;
2432 CRT_DIR
="${with_crt_dir}"
2435 # Check whether --with-gnustep-conf was given.
2436 if test "${with_gnustep_conf+set}" = set; then
2437 withval
=$with_gnustep_conf;
2440 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2441 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2442 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2443 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2445 # Check whether --enable-ns-self-contained was given.
2446 if test "${enable_ns_self_contained+set}" = set; then
2447 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2449 EN_NS_SELF_CONTAINED
=yes
2453 # Check whether --enable-asserts was given.
2454 if test "${enable_asserts+set}" = set; then
2455 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2461 # Check whether --enable-maintainer-mode was given.
2462 if test "${enable_maintainer_mode+set}" = set; then
2463 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2465 USE_MAINTAINER_MODE
=no
2468 if test $USE_MAINTAINER_MODE = yes; then
2475 # Check whether --enable-locallisppath was given.
2476 if test "${enable_locallisppath+set}" = set; then
2477 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2479 elif test "${enableval}" != "yes"; then
2480 locallisppath
=${enableval}
2485 # Check whether --enable-checking was given.
2486 if test "${enable_checking+set}" = set; then
2487 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2490 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2491 for check
in $ac_checking_flags
2494 # these set all the flags to specific states
2495 yes) ac_enable_checking
=1 ;;
2496 no
) ac_enable_checking
= ;
2497 ac_gc_check_stringbytes
= ;
2498 ac_gc_check_string_overrun
= ;
2499 ac_gc_check_string_free_list
= ;
2500 ac_xmalloc_overrun
= ;
2501 ac_gc_check_cons_list
= ;;
2502 all
) ac_enable_checking
=1 ;
2503 ac_gc_check_stringbytes
=1 ;
2504 ac_gc_check_string_overrun
=1 ;
2505 ac_gc_check_string_free_list
=1 ;
2506 ac_xmalloc_overrun
=1 ;
2507 ac_gc_check_cons_list
=1 ;;
2508 # these enable particular checks
2509 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2510 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2511 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2512 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2513 conslist
) ac_gc_check_cons_list
=1 ;;
2514 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2515 $as_echo "$as_me: error: unknown check category $check" >&2;}
2516 { (exit 1); exit 1; }; } ;;
2521 if test x
$ac_enable_checking != x
; then
2523 cat >>confdefs.h
<<\_ACEOF
2524 #define ENABLE_CHECKING 1
2528 if test x
$ac_gc_check_stringbytes != x
; then
2530 cat >>confdefs.h
<<\_ACEOF
2531 #define GC_CHECK_STRING_BYTES 1
2535 if test x
$ac_gc_check_stringoverrun != x
; then
2537 cat >>confdefs.h
<<\_ACEOF
2538 #define GC_CHECK_STRING_OVERRUN 1
2542 if test x
$ac_gc_check_string_free_list != x
; then
2544 cat >>confdefs.h
<<\_ACEOF
2545 #define GC_CHECK_STRING_FREE_LIST 1
2549 if test x
$ac_xmalloc_overrun != x
; then
2551 cat >>confdefs.h
<<\_ACEOF
2552 #define XMALLOC_OVERRUN_CHECK 1
2556 if test x
$ac_gc_check_cons_list != x
; then
2558 cat >>confdefs.h
<<\_ACEOF
2559 #define GC_CHECK_CONS_LIST 1
2564 # Check whether --enable-profiling was given.
2565 if test "${enable_profiling+set}" = set; then
2566 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2569 if test x
$ac_enable_profiling != x
; then
2570 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2571 PROFILING_LDFLAGS
="-pg"
2577 # Check whether --enable-autodepend was given.
2578 if test "${enable_autodepend+set}" = set; then
2579 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2581 ac_enable_autodepend
=yes
2585 #### Make srcdir absolute, if it isn't already. It's important to
2586 #### avoid running the path through pwd unnecessarily, since pwd can
2587 #### give you automounter prefixes, which can go away. We do all this
2588 #### so Emacs can find its files when run uninstalled.
2589 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2594 ## We may be able to use the $PWD environment variable to make this
2595 ## absolute. But sometimes PWD is inaccurate.
2596 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2597 ## but that tested only for a well-formed and valid PWD,
2598 ## it did not object when PWD was well-formed and valid but just wrong.
2599 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2603 srcdir
="`(cd ${srcdir}; pwd)`"
2606 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2609 #### Check if the source directory already has a configured system in it.
2610 if test `pwd` != `(cd ${srcdir} && pwd)` \
2611 && test -f "${srcdir}/src/config.h" ; then
2612 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2613 as a build directory right now; it has been configured in its own
2614 right. To configure in another directory as well, you MUST
2615 use GNU make. If you do not have GNU make, then you must
2616 now do \`make distclean' in ${srcdir},
2617 and then run $0 again." >&5
2618 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2619 as a build directory right now; it has been configured in its own
2620 right. To configure in another directory as well, you MUST
2621 use GNU make. If you do not have GNU make, then you must
2622 now do \`make distclean' in ${srcdir},
2623 and then run $0 again." >&2;}
2626 #### Given the configuration name, set machfile and opsysfile to the
2627 #### names of the m/*.h and s/*.h files we should use.
2629 ### Canonicalize the configuration name.
2632 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2633 if test -f "$ac_dir/install-sh"; then
2635 ac_install_sh
="$ac_aux_dir/install-sh -c"
2637 elif test -f "$ac_dir/install.sh"; then
2639 ac_install_sh
="$ac_aux_dir/install.sh -c"
2641 elif test -f "$ac_dir/shtool"; then
2643 ac_install_sh
="$ac_aux_dir/shtool install -c"
2647 if test -z "$ac_aux_dir"; then
2648 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2649 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2650 { (exit 1); exit 1; }; }
2653 # These three variables are undocumented and unsupported,
2654 # and are intended to be withdrawn in a future Autoconf release.
2655 # They can cause serious problems if a builder's source tree is in a directory
2656 # whose full name contains unusual characters.
2657 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2658 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2659 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2662 # Make sure we can run config.sub.
2663 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2664 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2665 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2666 { (exit 1); exit 1; }; }
2668 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2669 $as_echo_n "checking build system type... " >&6; }
2670 if test "${ac_cv_build+set}" = set; then
2671 $as_echo_n "(cached) " >&6
2673 ac_build_alias
=$build_alias
2674 test "x$ac_build_alias" = x
&&
2675 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2676 test "x$ac_build_alias" = x
&&
2677 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2678 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2679 { (exit 1); exit 1; }; }
2680 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2681 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2682 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2683 { (exit 1); exit 1; }; }
2686 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2687 $as_echo "$ac_cv_build" >&6; }
2688 case $ac_cv_build in
2690 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2691 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2692 { (exit 1); exit 1; }; };;
2695 ac_save_IFS
=$IFS; IFS
='-'
2701 # Remember, the first character of IFS is used to create $*,
2702 # except with old shells:
2705 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2709 $as_echo_n "checking host system type... " >&6; }
2710 if test "${ac_cv_host+set}" = set; then
2711 $as_echo_n "(cached) " >&6
2713 if test "x$host_alias" = x
; then
2714 ac_cv_host
=$ac_cv_build
2716 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2717 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2718 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2719 { (exit 1); exit 1; }; }
2723 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2724 $as_echo "$ac_cv_host" >&6; }
2727 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2728 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2729 { (exit 1); exit 1; }; };;
2732 ac_save_IFS
=$IFS; IFS
='-'
2738 # Remember, the first character of IFS is used to create $*,
2739 # except with old shells:
2742 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2746 configuration
=${host_alias-${build_alias-$host}}
2750 ### If you add support for a new configuration, add code to this
2751 ### switch statement to recognize your configuration name and select
2752 ### the appropriate operating system and machine description files.
2754 ### You would hope that you could choose an m/*.h file pretty much
2755 ### based on the machine portion of the configuration name, and an s-
2756 ### file based on the operating system portion. However, it turns out
2757 ### that each m/*.h file is pretty manufacturer-specific - for
2758 ### example mips.h is MIPS
2759 ### So we basically have to have a special case for each
2760 ### configuration name.
2762 ### As far as handling version numbers on operating systems is
2763 ### concerned, make sure things will fail in a fixable way. If
2764 ### /etc/MACHINES doesn't say anything about version numbers, be
2765 ### prepared to handle anything reasonably. If version numbers
2766 ### matter, be sure /etc/MACHINES says something about it.
2768 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2769 ### "System V Release 4"; he writes, "The old convention encouraged
2770 ### confusion between `system' and `release' levels'."
2772 machine
='' opsys
='' unported
=no
2773 case "${canonical}" in
2778 case "${canonical}" in
2779 alpha
*-*-freebsd*) machine
=alpha
;;
2780 arm
*-*-freebsd*) machine
=arm
;;
2781 ia64-
*-freebsd*) machine
=ia64
;;
2782 sparc-
*-freebsd*) machine
=sparc
;;
2783 sparc64-
*-freebsd*) machine
=sparc
;;
2784 powerpc-
*-freebsd*) machine
=macppc
;;
2785 i
[3456]86-*-freebsd*) machine
=intel386
;;
2786 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2790 ## FreeBSD kernel + glibc based userland
2793 case "${canonical}" in
2794 alpha
*-*-kfreebsd*) machine
=alpha
;;
2795 ia64-
*-kfreebsd*) machine
=ia64
;;
2796 sparc-
*-kfreebsd*) machine
=sparc
;;
2797 sparc64-
*-kfreebsd*) machine
=sparc
;;
2798 powerpc-
*-kfreebsd*) machine
=macppc
;;
2799 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2800 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2807 case "${canonical}" in
2808 alpha
*-*-netbsd*) machine
=alpha
;;
2809 i
[3456]86-*-netbsd*) machine
=intel386
;;
2810 mips-
*-netbsd*) machine
=mips
;;
2811 mipsel-
*-netbsd*) machine
=mips
;;
2812 mipseb-
*-netbsd*) machine
=mips
;;
2813 powerpc-
*-netbsd*) machine
=macppc
;;
2814 sparc
*-*-netbsd*) machine
=sparc
;;
2815 vax-
*-netbsd*) machine
=vax
;;
2816 arm-
*-netbsd*) machine
=arm
;;
2817 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2818 hppa-
*-netbsd*) machine
=hp800
;;
2819 m68k-
*-netbsd*) machine
=m68k
;;
2826 case "${canonical}" in
2827 alpha
*-*-openbsd*) machine
=alpha
;;
2828 arm-
*-openbsd*) machine
=arm
;;
2829 i386-
*-openbsd*) machine
=intel386
;;
2830 powerpc-
*-openbsd*) machine
=macppc
;;
2831 sparc
*-*-openbsd*) machine
=sparc
;;
2832 vax-
*-openbsd*) machine
=vax
;;
2833 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2834 hppa-
*-openbsd*) machine
=hp800
;;
2838 alpha
*-*-linux-gnu* )
2839 machine
=alpha opsys
=gnu-linux
2843 machine
=arm opsys
=gnu-linux
2846 ## Apple Darwin / Mac OS X
2848 case "${canonical}" in
2849 i
[3456]86-* ) machine
=intel386
;;
2850 powerpc-
* ) machine
=macppc
;;
2851 x86_64-
* ) machine
=amdx86-64
;;
2855 # Define CPP as follows to make autoconf work correctly.
2856 CPP
="${CC-cc} -E -no-cpp-precomp"
2857 # Use fink packages if available.
2858 if test -d /sw
/include
&& test -d /sw
/lib
; then
2859 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2860 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2861 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2865 ## HP 9000 series 700 and 800, running HP/UX
2866 hppa
*-hp-hpux10.2
* )
2867 machine
=hp800 opsys
=hpux10-20
2869 hppa
*-hp-hpux1[1-9]* )
2870 machine
=hp800 opsys
=hpux11
2871 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2874 hppa
*-*-linux-gnu* )
2875 machine
=hp800 opsys
=gnu-linux
2880 machine
=ibms390 opsys
=gnu-linux
2882 s390x-
*-linux-gnu* )
2883 machine
=ibms390x opsys
=gnu-linux
2885 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2886 machine
=ibmrs6000 opsys
=aix4-2
2888 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2889 machine
=ibmrs6000 opsys
=aix4-2
2891 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2892 machine
=ibmrs6000 opsys
=aix4-2
2894 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2895 machine
=ibmrs6000 opsys
=aix4-2
2898 ## Macintosh PowerPC
2899 powerpc
*-*-linux-gnu* )
2900 machine
=macppc opsys
=gnu-linux
2903 ## Silicon Graphics machines
2906 machine
=iris4d opsys
=irix6-5
2907 # Without defining _LANGUAGE_C, things get masked out in the headers
2908 # so that, for instance, grepping for `free' in stdlib.h fails and
2909 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2910 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2911 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2915 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2916 machine
=sparc opsys
=gnu-linux
2920 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2921 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2922 case "${canonical}" in
2923 i
[3456]86-*-* ) machine
=intel386
;;
2924 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2925 sparc
* ) machine
=sparc
;;
2928 case "${canonical}" in
2929 *-sunos5.6
* |
*-solaris2.6
* )
2931 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2934 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2936 emacs_check_sunpro_c
=yes
2937 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2939 *-sunos5* |
*-solaris* )
2941 emacs_check_sunpro_c
=yes
2942 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2945 ## Watch out for a compiler that we know will not work.
2946 case "${canonical}" in
2947 *-solaris* |
*-sunos5* )
2948 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2949 ## /usr/ucb/cc doesn't work;
2950 ## we should find some other compiler that does work.
2960 machine
=ia64 opsys
=gnu-linux
2963 ## Intel 386 machines where we don't care about the manufacturer
2966 case "${canonical}" in
2967 *-cygwin ) opsys
=cygwin
;;
2968 *-darwin* ) opsys
=darwin
2969 CPP
="${CC-cc} -E -no-cpp-precomp"
2971 *-linux-gnu* ) opsys
=gnu-linux
;;
2972 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2973 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2974 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2975 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2979 ## m68k Linux-based GNU system
2981 machine
=m68k opsys
=gnu-linux
2984 ## Mips Linux-based GNU system
2985 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2986 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2987 machine
=mips opsys
=gnu-linux
2990 ## AMD x86-64 Linux-based GNU system
2991 x86_64-
*-linux-gnu* )
2992 machine
=amdx86-64 opsys
=gnu-linux
2995 ## Tensilica Xtensa Linux-based GNU system
2996 xtensa
*-*-linux-gnu* )
2997 machine
=xtensa opsys
=gnu-linux
3000 ## SuperH Linux-based GNU system
3001 sh
[34]*-*-linux-gnu* )
3002 machine
=sh3 opsys
=gnu-linux
3010 ### If the code above didn't choose an operating system, just choose
3011 ### an operating system based on the configuration name. You really
3012 ### only want to use this when you have no idea what the right
3013 ### operating system is; if you know what operating systems a machine
3014 ### runs, it's cleaner to make it explicit in the case statement
3016 if test x
"${opsys}" = x
; then
3017 case "${canonical}" in
3018 *-gnu* ) opsys
=gnu
;;
3027 if test $unported = yes; then
3028 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3029 Check \`etc/MACHINES' for recognized configuration names." >&5
3030 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3031 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3032 { (exit 1); exit 1; }; }
3035 machfile
="m/${machine}.h"
3036 opsysfile
="s/${opsys}.h"
3039 #### Choose a compiler.
3040 test -n "$CC" && cc_specified
=yes
3042 # Save the value of CFLAGS that the user specified.
3043 SPECIFIED_CFLAGS
="$CFLAGS"
3046 ac_cpp
='$CPP $CPPFLAGS'
3047 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3052 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC
="$CC" # Let the user override the test.
3061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir
=.
3066 for ac_exec_ext
in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3089 if test -z "$ac_cv_prog_CC"; then
3091 # Extract the first word of "gcc", so it can be a program name with args.
3092 set dummy gcc
; ac_word
=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir
=.
3106 for ac_exec_ext
in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC
="gcc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124 $as_echo "no" >&6; }
3127 if test "x$ac_ct_CC" = x
; then
3130 case $cross_compiling:$ac_tool_warned in
3132 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned
=yes ;;
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3145 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC
="$CC" # Let the user override the test.
3154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir
=.
3159 for ac_exec_ext
in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3183 if test -z "$CC"; then
3184 # Extract the first word of "cc", so it can be a program name with args.
3185 set dummy cc
; ac_word
=$2
3186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC
="$CC" # Let the user override the test.
3195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir
=.
3200 for ac_exec_ext
in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3203 ac_prog_rejected
=yes
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test $ac_prog_rejected = yes; then
3215 # We found a bogon in the path, so make sure we never use it.
3216 set dummy
$ac_cv_prog_CC
3218 if test $# != 0; then
3219 # We chose a different compiler from the bogus one.
3220 # However, it has the same basename, so the bogon will be chosen
3221 # first if we set CC to just the basename; use the full file name.
3223 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234 $as_echo "no" >&6; }
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 for ac_prog
in cl.exe
3243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3244 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC
="$CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3280 test -n "$CC" && break
3283 if test -z "$CC"; then
3285 for ac_prog
in cl.exe
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy
$ac_prog; ac_word
=$2
3289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3301 test -z "$as_dir" && as_dir
=.
3302 for ac_exec_ext
in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 ac_cv_prog_ac_ct_CC
="$ac_prog"
3305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317 $as_echo "$ac_ct_CC" >&6; }
3319 { $as_echo "$as_me:$LINENO: result: no" >&5
3320 $as_echo "no" >&6; }
3324 test -n "$ac_ct_CC" && break
3327 if test "x$ac_ct_CC" = x
; then
3330 case $cross_compiling:$ac_tool_warned in
3332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned
=yes ;;
3343 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3346 See \`config.log' for more details." >&5
3347 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }; }
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3355 { (ac_try
="$ac_compiler --version >&5"
3357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler --version >&5") 2>&5
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 { (ac_try="$ac_compiler -v >&5"
3368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3369 *) ac_try_echo
=$ac_try;;
3371 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -v >&5") 2>&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377 { (ac_try
="$ac_compiler -V >&5"
3379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compiler -V >&5") 2>&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3409 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3410 $as_echo_n "checking for C compiler default output file name... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417 for ac_file in $ac_files
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 if { (ac_try="$ac_link_default"
3428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3429 *) ac_try_echo
=$ac_try;;
3431 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433 (eval "$ac_link_default") 2>&5
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; then
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3442 for ac_file
in $ac_files ''
3444 test -f "$ac_file" ||
continue
3446 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3449 # We found the default executable, but exeext='' is most
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3455 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3467 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3473 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3474 $as_echo "$ac_file" >&6; }
3475 if test -z "$ac_file"; then
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.
$ac_ext >&5
3479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: C compiler cannot create executables
3484 See \`config.log' for more details." >&2;}
3485 { (exit 77); exit 77; }; }; }
3488 ac_exeext
=$ac_cv_exeext
3490 # Check that the compiler produces executables we can run. If not, either
3491 # the compiler is broken, or we cross compile.
3492 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3495 # If not cross compiling, check that we can run a simple program.
3496 if test "$cross_compiling" != yes; then
3497 if { ac_try
='./$ac_file'
3498 { (case "(($ac_try" in
3499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_try") 2>&5
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3510 if test "$cross_compiling" = maybe; then
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3516 If you meant to cross compile
, use \
`--host'.
3517 See \`config.log
' for more details." >&5
3518 $as_echo "$as_me: error: cannot run C compiled programs.
3519 If you meant to cross compile, use \`--host'.
3520 See \
`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }; }
3525 { $as_echo "$as_me:$LINENO: result: yes" >&5
3526 $as_echo "yes" >&6; }
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3533 $as_echo_n "checking whether we are cross compiling... " >&6; }
3534 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3535 $as_echo "$cross_compiling" >&6; }
3537 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { (ac_try="$ac_link"
3541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3542 *) ac_try_echo
=$ac_try;;
3544 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3545 $as_echo "$ac_try_echo") >&5
3546 (eval "$ac_link") 2>&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; then
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 for ac_file
in conftest.exe conftest conftest.
*; do
3555 test -f "$ac_file" ||
continue
3557 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3558 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details." >&5
3568 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." >&2;}
3570 { (exit 1); exit 1; }; }; }
3573 rm -f conftest
$ac_cv_exeext
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3575 $as_echo "$ac_cv_exeext" >&6; }
3577 rm -f conftest.
$ac_ext
3578 EXEEXT
=$ac_cv_exeext
3580 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3581 $as_echo_n "checking for suffix of object files... " >&6; }
3582 if test "${ac_cv_objext+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3585 cat >conftest.
$ac_ext <<_ACEOF
3588 cat confdefs.h
>>conftest.
$ac_ext
3589 cat >>conftest.
$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3600 rm -f conftest.o conftest.obj
3601 if { (ac_try
="$ac_compile"
3603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compile") 2>&5
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; then
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3627 See \
`config.log' for more details." >&5
3628 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3629 See \`config.log
' for more details." >&2;}
3630 { (exit 1); exit 1; }; }; }
3633 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3636 $as_echo "$ac_cv_objext" >&6; }
3637 OBJEXT=$ac_cv_objext
3639 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3641 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669 $as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3672 grep -v '^
*+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's
/^
/|
/' conftest.$ac_ext >&5
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3692 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694 if test $ac_compiler_gnu = yes; then
3699 ac_test_CFLAGS=${CFLAGS+set}
3700 ac_save_CFLAGS=$CFLAGS
3701 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703 if test "${ac_cv_prog_cc_g+set}" = set; then
3704 $as_echo_n "(cached) " >&6
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3710 cat >conftest.$ac_ext <<_ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3725 rm -f conftest.$ac_objext
3726 if { (ac_try="$ac_compile"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3735 grep -v '^
*+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's
/^
/|
/' conftest.$ac_ext >&5
3749 cat >conftest.$ac_ext <<_ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3774 grep -v '^
*+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's
/^
/|
/' conftest.$ac_ext >&5
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3814 grep -v '^
*+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's
/^
/|
/' conftest.$ac_ext >&5
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3839 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3850 if test "$GCC" = yes; then
3856 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if test "${ac_cv_prog_cc_c89+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3861 ac_cv_prog_cc_c89=no
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3871 #include <sys/types.h>
3872 #include <sys/stat.h>
3873 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3874 struct buf
{ int x
; };
3875 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3876 static char
*e
(p
, i
)
3882 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3887 s
= g
(p
, va_arg
(v
,int
));
3892 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3893 function prototypes and stuff
, but not
'\xHH' hex character constants.
3894 These don
't provoke an error unfortunately, instead are silently treated
3895 as 'x
'. The following induces an error, until -std is added to get
3896 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3897 array size at least. It's necessary to
write '\x00'==0 to get something
3898 that
's true only with -std. */
3899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3902 inside strings and character constants. */
3904 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3906 int test (int i, double x);
3907 struct s1 {int (*f) (int a);};
3908 struct s2 {int (*f) (double a);};
3909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923 CC="$ac_save_CC $ac_arg"
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931 $as_echo "$ac_try_echo") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3934 grep -v '^
*+' conftest.er1 >conftest.err
3936 cat conftest.err >&5
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_c89=$ac_arg
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's
/^
/|
/' conftest.$ac_ext >&5
3950 rm -f core conftest.err conftest.$ac_objext
3951 test "x$ac_cv_prog_cc_c89" != "xno" && break
3953 rm -f conftest.$ac_ext
3958 case "x$ac_cv_prog_cc_c89" in
3960 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3961 $as_echo "none needed" >&6; } ;;
3963 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3964 $as_echo "unsupported" >&6; } ;;
3966 CC="$CC $ac_cv_prog_cc_c89"
3967 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3975 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 # On Suns, sometimes $CPP names a directory.
3980 if test -n "$CPP" && test -d "$CPP"; then
3984 ## If not using gcc, and on Solaris, and no CPP specified, see if
3985 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3986 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3987 test x"$CPP" = x; then
3988 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3989 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3991 if test "${emacs_cv_sunpro_c+set}" = set; then
3992 $as_echo_n "(cached) " >&6
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext conftest$ac_exeext
4013 if { (ac_try="$ac_link"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019 $as_echo "$ac_try_echo") >&5
4020 (eval "$ac_link") 2>conftest.er1
4022 grep -v '^
*+' conftest.er1 >conftest.err
4024 cat conftest.err >&5
4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest$ac_exeext && {
4030 test "$cross_compiling" = yes ||
4031 $as_test_x conftest$ac_exeext
4033 emacs_cv_sunpro_c=yes
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's
/^
/|
/' conftest.$ac_ext >&5
4038 emacs_cv_sunpro_c=no
4041 rm -rf conftest.dSYM
4042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4043 conftest$ac_exeext conftest.$ac_ext
4046 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4047 $as_echo "$emacs_cv_sunpro_c" >&6; }
4049 if test x"$emacs_cv_sunpro_c" = xyes; then
4050 NON_GNU_CPP="$CC -E -Xs"
4054 #### Some systems specify a CPP to use unless we are using GCC.
4055 #### Now that we know whether we are using GCC, we can decide whether
4056 #### to use that one.
4057 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4062 #### Some systems specify a CC to use unless we are using GCC.
4063 #### Now that we know whether we are using GCC, we can decide whether
4064 #### to use that one.
4065 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4066 test x$cc_specified != xyes
4071 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4073 CC="$CC $GCC_TEST_OPTIONS"
4076 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4078 CC="$CC $NON_GCC_TEST_OPTIONS"
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4084 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4087 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4088 # On Suns, sometimes $CPP names a directory.
4089 if test -n "$CPP" && test -d "$CPP"; then
4092 if test -z "$CPP"; then
4093 if test "${ac_cv_prog_CPP+set}" = set; then
4094 $as_echo_n "(cached) " >&6
4096 # Double quotes because CPP needs to be expanded
4097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4100 for ac_c_preproc_warn_flag in '' yes
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser
,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat >conftest.
$ac_ext <<_ACEOF
4111 cat confdefs.h
>>conftest.
$ac_ext
4112 cat >>conftest.
$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4115 # include <limits.h>
4117 # include <assert.h>
4121 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127 $as_echo "$ac_try_echo") >&5
4128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } >/dev/null && {
4135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4140 $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 # Broken: fails on valid input.
4147 rm -f conftest.err conftest.$ac_ext
4149 # OK, works on sane cases. Now check whether nonexistent headers
4150 # can be detected and how.
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4159 if { (ac_try="$ac_cpp conftest.$ac_ext"
4161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4162 *) ac_try_echo
=$ac_try;;
4164 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4165 $as_echo "$ac_try_echo") >&5
4166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4168 grep -v '^ *+' conftest.er1
>conftest.err
4170 cat conftest.err
>&5
4171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } >/dev
/null
&& {
4173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4174 test ! -s conftest.err
4176 # Broken: success on invalid input.
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.
$ac_ext >&5
4182 # Passes both tests.
4187 rm -f conftest.err conftest.
$ac_ext
4190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191 rm -f conftest.err conftest.
$ac_ext
4192 if $ac_preproc_ok; then
4204 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4205 $as_echo "$CPP" >&6; }
4207 for ac_c_preproc_warn_flag
in '' yes
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat >conftest.
$ac_ext <<_ACEOF
4218 cat confdefs.h
>>conftest.
$ac_ext
4219 cat >>conftest.
$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4222 # include <limits.h>
4224 # include <assert.h>
4228 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4234 $as_echo "$ac_try_echo") >&5
4235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4237 grep -v '^ *+' conftest.er1 >conftest.err
4239 cat conftest.err >&5
4240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } >/dev/null && {
4242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 # Broken: fails on valid input.
4254 rm -f conftest.err conftest.$ac_ext
4256 # OK, works on sane cases. Now check whether nonexistent headers
4257 # can be detected and how.
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #include <ac_nonexistent.h>
4266 if { (ac_try="$ac_cpp conftest.$ac_ext"
4268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4269 *) ac_try_echo
=$ac_try;;
4271 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4272 $as_echo "$ac_try_echo") >&5
4273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4275 grep -v '^ *+' conftest.er1
>conftest.err
4277 cat conftest.err
>&5
4278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev
/null
&& {
4280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4283 # Broken: success on invalid input.
4286 $as_echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.
$ac_ext >&5
4289 # Passes both tests.
4294 rm -f conftest.err conftest.
$ac_ext
4297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298 rm -f conftest.err conftest.
$ac_ext
4299 if $ac_preproc_ok; then
4302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4305 See \`config.log' for more details." >&5
4306 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details." >&2;}
4308 { (exit 1); exit 1; }; }; }
4312 ac_cpp
='$CPP $CPPFLAGS'
4313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4320 if test "${ac_cv_path_GREP+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4323 if test -z "$GREP"; then
4324 ac_path_GREP_found
=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4327 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_prog
in grep ggrep
; do
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4334 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4335 # Check for GNU ac_path_GREP and select it if it is found.
4336 # Check for GNU $ac_path_GREP
4337 case `"$ac_path_GREP" --version 2>&1` in
4339 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4342 $as_echo_n 0123456789 >"conftest.in"
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'GREP' >> "conftest.nl"
4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4350 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4351 ac_count
=`expr $ac_count + 1`
4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_GREP
="$ac_path_GREP"
4355 ac_path_GREP_max
=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4360 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4363 $ac_path_GREP_found && break 3
4368 if test -z "$ac_cv_path_GREP"; then
4369 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4370 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4371 { (exit 1); exit 1; }; }
4374 ac_cv_path_GREP
=$GREP
4378 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4379 $as_echo "$ac_cv_path_GREP" >&6; }
4380 GREP
="$ac_cv_path_GREP"
4383 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4384 $as_echo_n "checking for egrep... " >&6; }
4385 if test "${ac_cv_path_EGREP+set}" = set; then
4386 $as_echo_n "(cached) " >&6
4388 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4389 then ac_cv_path_EGREP
="$GREP -E"
4391 if test -z "$EGREP"; then
4392 ac_path_EGREP_found
=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4395 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4398 test -z "$as_dir" && as_dir
=.
4399 for ac_prog
in egrep; do
4400 for ac_exec_ext
in '' $ac_executable_extensions; do
4401 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4403 # Check for GNU ac_path_EGREP and select it if it is found.
4404 # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4407 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4410 $as_echo_n 0123456789 >"conftest.in"
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo 'EGREP' >> "conftest.nl"
4417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4418 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4419 ac_count
=`expr $ac_count + 1`
4420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_EGREP
="$ac_path_EGREP"
4423 ac_path_EGREP_max
=$ac_count
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4428 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4431 $ac_path_EGREP_found && break 3
4436 if test -z "$ac_cv_path_EGREP"; then
4437 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4438 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4439 { (exit 1); exit 1; }; }
4442 ac_cv_path_EGREP
=$EGREP
4447 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4448 $as_echo "$ac_cv_path_EGREP" >&6; }
4449 EGREP
="$ac_cv_path_EGREP"
4452 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4453 $as_echo_n "checking for ANSI C header files... " >&6; }
4454 if test "${ac_cv_header_stdc+set}" = set; then
4455 $as_echo_n "(cached) " >&6
4457 cat >conftest.
$ac_ext <<_ACEOF
4460 cat confdefs.h
>>conftest.
$ac_ext
4461 cat >>conftest.
$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4476 rm -f conftest.
$ac_objext
4477 if { (ac_try
="$ac_compile"
4479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest.$ac_objext; then
4494 ac_cv_header_stdc=yes
4496 $as_echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_cv_header_stdc=no
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 if test $ac_cv_header_stdc = yes; then
4505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516 $EGREP "memchr" >/dev/null 2>&1; then
4519 ac_cv_header_stdc=no
4525 if test $ac_cv_header_stdc = yes; then
4526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "free" >/dev/null 2>&1; then
4540 ac_cv_header_stdc=no
4546 if test $ac_cv_header_stdc = yes; then
4547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4548 if test "$cross_compiling" = yes; then
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4559 #if ((' ' & 0x0FF) == 0x020)
4560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4563 # define ISLOWER(c) \
4564 (('a' <= (c) && (c) <= 'i') \
4565 || ('j' <= (c) && (c) <= 'r') \
4566 || ('s' <= (c) && (c) <= 'z'))
4567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4575 for (i = 0; i < 256; i++)
4576 if (XOR (islower (i), ISLOWER (i))
4577 || toupper (i) != TOUPPER (i))
4582 rm -f conftest$ac_exeext
4583 if { (ac_try="$ac_link"
4585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4586 *) ac_try_echo
=$ac_try;;
4588 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_link") 2>&5
4592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4594 { (case "(($ac_try" in
4595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600 (eval "$ac_try") 2>&5
4602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4606 $as_echo "$as_me: program exited with status $ac_status" >&5
4607 $as_echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4611 ac_cv_header_stdc=no
4613 rm -rf conftest.dSYM
4614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4621 $as_echo "$ac_cv_header_stdc" >&6; }
4622 if test $ac_cv_header_stdc = yes; then
4624 cat >>confdefs.h <<\_ACEOF
4625 #define STDC_HEADERS 1
4630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4641 inttypes.h stdint.h unistd.h
4643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4645 $as_echo_n "checking for $ac_header... " >&6; }
4646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4647 $as_echo_n "(cached) " >&6
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 $ac_includes_default
4657 #include <$ac_header>
4659 rm -f conftest.$ac_objext
4660 if { (ac_try="$ac_compile"
4662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4663 *) ac_try_echo
=$ac_try;;
4665 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667 (eval "$ac_compile") 2>conftest.er1
4669 grep -v '^ *+' conftest.er1
>conftest.err
4671 cat conftest.err
>&5
4672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } && {
4674 test -z "$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 } && test -s conftest.
$ac_objext; then
4677 eval "$as_ac_Header=yes"
4679 $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.
$ac_ext >&5
4682 eval "$as_ac_Header=no"
4685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4687 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4688 $as_echo "$as_val"'`
4689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4690 $as_echo "$ac_res" >&6; }
4691 as_val
=`eval 'as_val=${'$as_ac_Header'}
4692 $as_echo "$as_val"'`
4693 if test "x$as_val" = x
""yes; then
4694 cat >>confdefs.h
<<_ACEOF
4695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704 if test "${ac_cv_header_minix_config_h+set}" = set; then
4705 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4706 $as_echo_n "checking for minix/config.h... " >&6; }
4707 if test "${ac_cv_header_minix_config_h+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4710 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4711 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4713 # Is the header compilable?
4714 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4715 $as_echo_n "checking minix/config.h usability... " >&6; }
4716 cat >conftest.
$ac_ext <<_ACEOF
4719 cat confdefs.h
>>conftest.
$ac_ext
4720 cat >>conftest.
$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4723 #include <minix/config.h>
4725 rm -f conftest.
$ac_objext
4726 if { (ac_try
="$ac_compile"
4728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732 $as_echo "$ac_try_echo") >&5
4733 (eval "$ac_compile") 2>conftest.er1
4735 grep -v '^ *+' conftest.er1 >conftest.err
4737 cat conftest.err >&5
4738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && {
4740 test -z "$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 } && test -s conftest.$ac_objext; then
4743 ac_header_compiler=yes
4745 $as_echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_header_compiler=no
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4753 $as_echo "$ac_header_compiler" >&6; }
4755 # Is the header present?
4756 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4757 $as_echo_n "checking minix/config.h presence... " >&6; }
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <minix/config.h>
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4769 *) ac_try_echo
=$ac_try;;
4771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4772 $as_echo "$ac_try_echo") >&5
4773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4775 grep -v '^ *+' conftest.er1
>conftest.err
4777 cat conftest.err
>&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev
/null
&& {
4780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4783 ac_header_preproc
=yes
4785 $as_echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.
$ac_ext >&5
4788 ac_header_preproc
=no
4791 rm -f conftest.err conftest.
$ac_ext
4792 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4793 $as_echo "$ac_header_preproc" >&6; }
4795 # So? What about this header?
4796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4798 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4799 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4800 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4801 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4802 ac_header_preproc
=yes
4805 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4806 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4807 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4808 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4809 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4810 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4811 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4812 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4813 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4814 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4815 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4816 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4820 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4821 $as_echo_n "checking for minix/config.h... " >&6; }
4822 if test "${ac_cv_header_minix_config_h+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4825 ac_cv_header_minix_config_h
=$ac_header_preproc
4827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4828 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4831 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4838 if test "$MINIX" = yes; then
4840 cat >>confdefs.h
<<\_ACEOF
4841 #define _POSIX_SOURCE 1
4845 cat >>confdefs.h
<<\_ACEOF
4846 #define _POSIX_1_SOURCE 2
4850 cat >>confdefs.h
<<\_ACEOF
4858 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4859 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4863 cat >conftest.
$ac_ext <<_ACEOF
4866 cat confdefs.h
>>conftest.
$ac_ext
4867 cat >>conftest.
$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4870 # define __EXTENSIONS__ 1
4871 $ac_includes_default
4880 rm -f conftest.
$ac_objext
4881 if { (ac_try
="$ac_compile"
4883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887 $as_echo "$ac_try_echo") >&5
4888 (eval "$ac_compile") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1 >conftest.err
4892 cat conftest.err >&5
4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest.$ac_objext; then
4898 ac_cv_safe_to_define___extensions__=yes
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 ac_cv_safe_to_define___extensions__=no
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4909 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4910 test $ac_cv_safe_to_define___extensions__ = yes &&
4911 cat >>confdefs.h <<\_ACEOF
4912 #define __EXTENSIONS__ 1
4915 cat >>confdefs.h <<\_ACEOF
4916 #define _ALL_SOURCE 1
4919 cat >>confdefs.h <<\_ACEOF
4920 #define _GNU_SOURCE 1
4923 cat >>confdefs.h <<\_ACEOF
4924 #define _POSIX_PTHREAD_SEMANTICS 1
4927 cat >>confdefs.h <<\_ACEOF
4928 #define _TANDEM_SOURCE 1
4933 ### Use -Wno-pointer-sign if the compiler supports it
4934 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4935 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4936 SAVE_CFLAGS="$CFLAGS"
4937 CFLAGS="$CFLAGS -Wno-pointer-sign"
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4957 *) ac_try_echo
=$ac_try;;
4959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4960 $as_echo "$ac_try_echo") >&5
4961 (eval "$ac_compile") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.
$ac_objext; then
4973 $as_echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.
$ac_ext >&5
4979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4980 if test $has_option = yes; then
4981 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4983 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4984 $as_echo "$has_option" >&6; }
4985 CFLAGS
="$SAVE_CFLAGS"
4989 ### Use -Wdeclaration-after-statement if the compiler supports it
4990 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4991 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4992 SAVE_CFLAGS
="$CFLAGS"
4993 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4994 cat >conftest.
$ac_ext <<_ACEOF
4997 cat confdefs.h
>>conftest.
$ac_ext
4998 cat >>conftest.
$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5009 rm -f conftest.
$ac_objext
5010 if { (ac_try
="$ac_compile"
5012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5016 $as_echo "$ac_try_echo") >&5
5017 (eval "$ac_compile") 2>conftest.er1
5019 grep -v '^ *+' conftest.er1 >conftest.err
5021 cat conftest.err >&5
5022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest.$ac_objext; then
5029 $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 if test $has_option = yes; then
5037 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5039 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5040 $as_echo "$has_option" >&6; }
5041 CFLAGS="$SAVE_CFLAGS"
5045 #### Some other nice autoconf tests.
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5054 # On Suns, sometimes $CPP names a directory.
5055 if test -n "$CPP" && test -d "$CPP"; then
5058 if test -z "$CPP"; then
5059 if test "${ac_cv_prog_CPP+set}" = set; then
5060 $as_echo_n "(cached) " >&6
5062 # Double quotes because CPP needs to be expanded
5063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5066 for ac_c_preproc_warn_flag in '' yes
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 # include <limits.h>
5083 # include <assert.h>
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5090 *) ac_try_echo
=$ac_try;;
5092 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096 grep -v '^ *+' conftest.er1
>conftest.err
5098 cat conftest.err
>&5
5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev
/null
&& {
5101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5106 $as_echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.
$ac_ext >&5
5109 # Broken: fails on valid input.
5113 rm -f conftest.err conftest.
$ac_ext
5115 # OK, works on sane cases. Now check whether nonexistent headers
5116 # can be detected and how.
5117 cat >conftest.
$ac_ext <<_ACEOF
5120 cat confdefs.h
>>conftest.
$ac_ext
5121 cat >>conftest.
$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <ac_nonexistent.h>
5125 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5131 $as_echo "$ac_try_echo") >&5
5132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134 grep -v '^ *+' conftest.er1 >conftest.err
5136 cat conftest.err >&5
5137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null && {
5139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5140 test ! -s conftest.err
5142 # Broken: success on invalid input.
5145 $as_echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 # Passes both tests.
5153 rm -f conftest.err conftest.$ac_ext
5156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157 rm -f conftest.err conftest.
$ac_ext
5158 if $ac_preproc_ok; then
5170 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5171 $as_echo "$CPP" >&6; }
5173 for ac_c_preproc_warn_flag
in '' yes
5175 # Use a header file that comes with gcc, so configuring glibc
5176 # with a fresh cross-compiler works.
5177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5178 # <limits.h> exists even on freestanding compilers.
5179 # On the NeXT, cc -E runs the code through the compiler's parser,
5180 # not just through cpp. "Syntax error" is here to catch this case.
5181 cat >conftest.
$ac_ext <<_ACEOF
5184 cat confdefs.h
>>conftest.
$ac_ext
5185 cat >>conftest.
$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5188 # include <limits.h>
5190 # include <assert.h>
5194 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5200 $as_echo "$ac_try_echo") >&5
5201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } >/dev/null && {
5208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5209 test ! -s conftest.err
5213 $as_echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 # Broken: fails on valid input.
5220 rm -f conftest.err conftest.$ac_ext
5222 # OK, works on sane cases. Now check whether nonexistent headers
5223 # can be detected and how.
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 #include <ac_nonexistent.h>
5232 if { (ac_try="$ac_cpp conftest.$ac_ext"
5234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5235 *) ac_try_echo
=$ac_try;;
5237 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5238 $as_echo "$ac_try_echo") >&5
5239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5241 grep -v '^ *+' conftest.er1
>conftest.err
5243 cat conftest.err
>&5
5244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } >/dev
/null
&& {
5246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5249 # Broken: success on invalid input.
5252 $as_echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.
$ac_ext >&5
5255 # Passes both tests.
5260 rm -f conftest.err conftest.
$ac_ext
5263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5264 rm -f conftest.err conftest.
$ac_ext
5265 if $ac_preproc_ok; then
5268 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5270 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5271 See \`config.log' for more details." >&5
5272 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5273 See \`config.log' for more details." >&2;}
5274 { (exit 1); exit 1; }; }; }
5278 ac_cpp
='$CPP $CPPFLAGS'
5279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5283 # Find a good install program. We prefer a C program (faster),
5284 # so one script is as good as another. But avoid the broken or
5285 # incompatible versions:
5286 # SysV /etc/install, /usr/sbin/install
5287 # SunOS /usr/etc/install
5288 # IRIX /sbin/install
5290 # AmigaOS /C/install, which installs bootblocks on floppy discs
5291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5294 # OS/2's system install, which has a completely different semantic
5295 # ./install, which can be erroneously created by make from ./install.sh.
5296 # Reject install programs that cannot install multiple files.
5297 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5298 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5299 if test -z "$INSTALL"; then
5300 if test "${ac_cv_path_install+set}" = set; then
5301 $as_echo_n "(cached) " >&6
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 # Account for people who put trailing slashes in PATH elements.
5310 .
/ | .
// |
/cC
/* | \
5311 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5312 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5315 # OSF1 and SCO ODT 3.0 have their own names for install.
5316 # Don't use installbsd from OSF since it installs stuff as root
5318 for ac_prog
in ginstall scoinst
install; do
5319 for ac_exec_ext
in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5321 if test $ac_prog = install &&
5322 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5323 # AIX install. It has an incompatible calling convention.
5325 elif test $ac_prog = install &&
5326 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5327 # program-specific install script used by HP pwplus--don't use.
5330 rm -rf conftest.one conftest.two conftest.dir
5331 echo one
> conftest.one
5332 echo two
> conftest.two
5334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5335 test -s conftest.one
&& test -s conftest.two
&&
5336 test -s conftest.dir
/conftest.one
&&
5337 test -s conftest.dir
/conftest.two
5339 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5352 rm -rf conftest.one conftest.two conftest.dir
5355 if test "${ac_cv_path_install+set}" = set; then
5356 INSTALL
=$ac_cv_path_install
5358 # As a last resort, use the slow shell script. Don't cache a
5359 # value for INSTALL within a source directory, because that will
5360 # break other packages using the cache if that directory is
5361 # removed, or if the value is a relative name.
5362 INSTALL
=$ac_install_sh
5365 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5366 $as_echo "$INSTALL" >&6; }
5368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5369 # It thinks the first close brace ends the variable substitution.
5370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5374 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5376 if test "x$RANLIB" = x
; then
5377 if test -n "$ac_tool_prefix"; then
5378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5379 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_RANLIB+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5385 if test -n "$RANLIB"; then
5386 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir
=.
5393 for ac_exec_ext
in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 RANLIB
=$ac_cv_prog_RANLIB
5406 if test -n "$RANLIB"; then
5407 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5408 $as_echo "$RANLIB" >&6; }
5410 { $as_echo "$as_me:$LINENO: result: no" >&5
5411 $as_echo "no" >&6; }
5416 if test -z "$ac_cv_prog_RANLIB"; then
5417 ac_ct_RANLIB
=$RANLIB
5418 # Extract the first word of "ranlib", so it can be a program name with args.
5419 set dummy ranlib
; ac_word
=$2
5420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5423 $as_echo_n "(cached) " >&6
5425 if test -n "$ac_ct_RANLIB"; then
5426 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir
=.
5433 for ac_exec_ext
in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5446 if test -n "$ac_ct_RANLIB"; then
5447 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5448 $as_echo "$ac_ct_RANLIB" >&6; }
5450 { $as_echo "$as_me:$LINENO: result: no" >&5
5451 $as_echo "no" >&6; }
5454 if test "x$ac_ct_RANLIB" = x
; then
5457 case $cross_compiling:$ac_tool_warned in
5459 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned
=yes ;;
5463 RANLIB
=$ac_ct_RANLIB
5466 RANLIB
="$ac_cv_prog_RANLIB"
5471 ## Although we're running on an amd64 kernel, we're actually compiling for
5472 ## the x86 architecture. The user should probably have provided an
5473 ## explicit --build to `configure', but if everything else than the kernel
5474 ## is running in i386 mode, we can help them out.
5475 if test "$machine" = "amdx86-64"; then
5476 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5477 $as_echo_n "checking whether i386 is declared... " >&6; }
5478 if test "${ac_cv_have_decl_i386+set}" = set; then
5479 $as_echo_n "(cached) " >&6
5481 cat >conftest.
$ac_ext <<_ACEOF
5484 cat confdefs.h
>>conftest.
$ac_ext
5485 cat >>conftest.
$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5499 rm -f conftest.
$ac_objext
5500 if { (ac_try
="$ac_compile"
5502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5506 $as_echo "$ac_try_echo") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_cv_have_decl_i386=yes
5519 $as_echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_cv_have_decl_i386=no
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5528 $as_echo "$ac_cv_have_decl_i386" >&6; }
5530 if test "$ac_cv_have_decl_i386" = "yes"; then
5531 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5533 machfile="m/${machine}.h"
5537 # Extract the first word of "install-info", so it can be a program name with args.
5538 set dummy install-info; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 case $INSTALL_INFO in
5546 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5568 if test -n "$INSTALL_INFO"; then
5569 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5570 $as_echo "$INSTALL_INFO" >&6; }
5572 { $as_echo "$as_me:$LINENO: result: no" >&5
5573 $as_echo "no" >&6; }
5577 # Extract the first word of "install-info", so it can be a program name with args.
5578 set dummy install-info; ac_word=$2
5579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5582 $as_echo_n "(cached) " >&6
5584 case $INSTALL_INFO in
5586 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in /usr/sbin
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5608 if test -n "$INSTALL_INFO"; then
5609 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5610 $as_echo "$INSTALL_INFO" >&6; }
5612 { $as_echo "$as_me:$LINENO: result: no" >&5
5613 $as_echo "no" >&6; }
5617 # Extract the first word of "install-info", so it can be a program name with args.
5618 set dummy install-info; ac_word=$2
5619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5622 $as_echo_n "(cached) " >&6
5624 case $INSTALL_INFO in
5626 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5648 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5649 if test -n "$INSTALL_INFO"; then
5650 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5651 $as_echo "$INSTALL_INFO" >&6; }
5653 { $as_echo "$as_me:$LINENO: result: no" >&5
5654 $as_echo "no" >&6; }
5658 # Extract the first word of "gzip", so it can be a program name with args.
5659 set dummy gzip; ac_word=$2
5660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5663 $as_echo_n "(cached) " >&6
5667 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 GZIP_PROG=$ac_cv_path_GZIP_PROG
5689 if test -n "$GZIP_PROG"; then
5690 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5691 $as_echo "$GZIP_PROG" >&6; }
5693 { $as_echo "$as_me:$LINENO: result: no" >&5
5694 $as_echo "no" >&6; }
5700 ## Need makeinfo >= 4.6 (?) to build the manuals.
5701 # Extract the first word of "makeinfo", so it can be a program name with args.
5702 set dummy makeinfo; ac_word=$2
5703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5706 $as_echo_n "(cached) " >&6
5710 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5732 MAKEINFO=$ac_cv_path_MAKEINFO
5733 if test -n "$MAKEINFO"; then
5734 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5735 $as_echo "$MAKEINFO" >&6; }
5737 { $as_echo "$as_me:$LINENO: result: no" >&5
5738 $as_echo "no" >&6; }
5742 if test "$MAKEINFO" != "no" && \
5743 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
5747 ## Makeinfo is unusual. For a released Emacs, the manuals are
5748 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5749 ## therefore in the category of "special tools" not normally required, which
5750 ## configure does not have to check for (eg autoconf itself).
5751 ## In a Bazaar checkout on the other hand, the manuals are not included.
5752 ## So makeinfo is a requirement to build from Bazaar, and configure
5753 ## should test for it as it does for any other build requirement.
5754 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5755 ## with pre-built manuals, from a Bazaar checkout.
5756 if test "$MAKEINFO" = "no"; then
5757 if test "x${with_makeinfo}" = "xno"; then
5759 elif test ! -e $srcdir/info/emacs; then
5760 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5761 source tree does not seem to have pre-built manuals in the \`info
' directory.
5762 Either install a suitable version of makeinfo, or re-run configure
5763 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5764 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5765 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5766 Either install a suitable version of makeinfo, or re-run configure
5767 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5768 { (exit 1); exit 1; }; }
5773 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5775 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5778 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5780 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5784 late_LDFLAGS=$LDFLAGS
5785 if test "$GCC" = yes; then
5786 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5788 LDFLAGS="$LDFLAGS -znocombreloc"
5791 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5792 $as_echo_n "checking for -znocombreloc... " >&6; }
5793 cat >conftest.$ac_ext <<_ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (ac_try="$ac_link"
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804 (eval "$ac_link") 2>conftest.er1
5806 grep -v '^
*+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest$ac_exeext && {
5814 test "$cross_compiling" = yes ||
5815 $as_test_x conftest$ac_exeext
5817 { $as_echo "$as_me:$LINENO: result: yes" >&5
5818 $as_echo "yes" >&6; }
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's
/^
/|
/' conftest.$ac_ext >&5
5823 LDFLAGS=$late_LDFLAGS
5824 { $as_echo "$as_me:$LINENO: result: no" >&5
5825 $as_echo "no" >&6; }
5828 rm -rf conftest.dSYM
5829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5830 conftest$ac_exeext conftest.$ac_ext
5832 #### Extract some information from the operating system and machine files.
5834 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5835 - which libraries the lib-src programs will want, and
5836 - whether the GNU malloc routines are usable..." >&5
5837 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5838 - which libraries the lib-src programs will want, and
5839 - whether the GNU malloc routines are usable..." >&6;}
5841 ### First figure out CFLAGS (which we use for running the compiler here)
5842 ### and REAL_CFLAGS (which we use for real compilation).
5843 ### The two are the same except on a few systems, where they are made
5844 ### different to work around various lossages. For example,
5845 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5846 ### as implying static linking.
5848 ### If the CFLAGS env var is specified, we use that value
5849 ### instead of the default.
5851 ### It's not important that this name contain the PID
; you can
't run
5852 ### two configures in the same directory and have anything work
5854 tempcname="conftest.c"
5857 #include "'${srcdir}'/src/'${opsysfile}'"
5858 #include "'${srcdir}'/src/'${machfile}'"
5860 configure___ LIBX
=-lX11
5862 configure___ unexec
=UNEXEC
5864 #ifdef SYSTEM_MALLOC
5865 configure___ system_malloc
=yes
5867 configure___ system_malloc
=no
5870 #ifdef USE_MMAP_FOR_BUFFERS
5871 configure___ use_mmap_for_buffers
=yes
5873 configure___ use_mmap_for_buffers
=no
5876 #ifndef C_OPTIMIZE_SWITCH
5878 #define C_OPTIMIZE_SWITCH -O2
5880 #define C_OPTIMIZE_SWITCH -O
5884 #ifndef C_WARNINGS_SWITCH
5885 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5888 #ifdef THIS_IS_CONFIGURE
5890 /* Get the CFLAGS
for tests
in configure.
*/
5892 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5894 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5897 #else /* not THIS_IS_CONFIGURE */
5899 /* Get the CFLAGS
for real compilation.
*/
5901 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5903 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5906 #endif /* not THIS_IS_CONFIGURE */
5909 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5911 # The value of CPP is a quoted variable reference, so we need to do this
5912 # to get its actual value...
5913 CPP=`eval "echo $CPP"`
5914 eval `${CPP} -Isrc ${tempcname} \
5915 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5916 if test "x$SPECIFIED_CFLAGS" = x; then
5917 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5918 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5920 REAL_CFLAGS="$CFLAGS"
5928 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5929 ## The system compiler, GCC, has apparently been modified to not
5930 ## look there, contrary to what a stock GCC would do.
5931 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5935 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5936 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5940 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5944 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5945 ## otherwise Emacs dumps core on elf systems.
5946 LD_SWITCH_SYSTEM
="-Z"
5951 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5953 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5954 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5955 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5956 ## values in configure and the Makefiles. How helpful.
5957 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5960 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5961 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5964 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5965 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5970 if test "$machine" = "alpha"; then
5971 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5972 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5973 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5974 $as_echo_n "(cached) " >&6
5976 cat >conftest.
$ac_ext <<_ACEOF
5979 cat confdefs.h
>>conftest.
$ac_ext
5980 cat >>conftest.
$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5994 rm -f conftest.
$ac_objext
5995 if { (ac_try
="$ac_compile"
5997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
6000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6001 $as_echo "$ac_try_echo") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_have_decl___ELF__=yes
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_have_decl___ELF__=no
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6023 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6025 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6026 ## With ELF, make sure that all common symbols get allocated to in the
6027 ## data section. Otherwise, the dump of temacs may miss variables in
6028 ## the shared library that have been initialized. For example, with
6029 ## GNU libc, __malloc_initialized would normally be resolved to the
6030 ## shared library's .bss section, which is fatal.
6031 if test "x$GCC" = "xyes"; then
6032 C_SWITCH_MACHINE="-fno-common"
6034 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6035 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6036 { (exit 1); exit 1; }; }
6044 ## Some programs in src produce warnings saying certain subprograms
6045 ## are too complex and need a MAXMEM value greater than 2000 for
6046 ## additional optimization. --nils@exp-math.uni-essen.de
6047 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6048 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6049 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6050 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6056 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6057 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6059 freebsd) LIBS_SYSTEM="-lutil" ;;
6061 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6063 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6065 ## Motif needs -lgen.
6066 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6071 ### Make sure subsequent tests use flags consistent with the build flags.
6073 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6074 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6076 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6081 # Check whether --enable-largefile was given.
6082 if test "${enable_largefile+set}" = set; then
6083 enableval=$enable_largefile;
6086 if test "$enable_largefile" != no; then
6088 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6089 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6090 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6091 $as_echo_n "(cached) " >&6
6093 ac_cv_sys_largefile_CC=no
6094 if test "$GCC" != yes; then
6097 # IRIX 6.2 and later do not support large files by default,
6098 # so use the C compiler's -n32 option if that helps.
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/types.h>
6106 /* Check that off_t can represent 2**63 - 1 correctly.
6107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6108 since some C++ compilers masquerading as C compilers
6109 incorrectly reject 9223372036854775807. */
6110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6112 && LARGE_OFF_T % 2147483647 == 1)
6122 rm -f conftest.$ac_objext
6123 if { (ac_try="$ac_compile"
6125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6126 *) ac_try_echo
=$ac_try;;
6128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6129 $as_echo "$ac_try_echo") >&5
6130 (eval "$ac_compile") 2>conftest.er1
6132 grep -v '^ *+' conftest.er1
>conftest.err
6134 cat conftest.err
>&5
6135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_c_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest.
$ac_objext; then
6142 $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.
$ac_ext >&5
6148 rm -f core conftest.err conftest.
$ac_objext
6150 rm -f conftest.
$ac_objext
6151 if { (ac_try
="$ac_compile"
6153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157 $as_echo "$ac_try_echo") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6168 ac_cv_sys_largefile_CC=' -n32'; break
6170 $as_echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6176 rm -f core conftest.err conftest.$ac_objext
6180 rm -f conftest.$ac_ext
6183 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6184 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6185 if test "$ac_cv_sys_largefile_CC" != no; then
6186 CC=$CC$ac_cv_sys_largefile_CC
6189 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6190 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6191 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 #include <sys/types.h>
6202 /* Check that off_t can represent 2**63 - 1 correctly.
6203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6204 since some C++ compilers masquerading as C compilers
6205 incorrectly reject 9223372036854775807. */
6206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6208 && LARGE_OFF_T % 2147483647 == 1)
6218 rm -f conftest.$ac_objext
6219 if { (ac_try="$ac_compile"
6221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6222 *) ac_try_echo
=$ac_try;;
6224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6225 $as_echo "$ac_try_echo") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6228 grep -v '^ *+' conftest.er1
>conftest.err
6230 cat conftest.err
>&5
6231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest.
$ac_objext; then
6236 ac_cv_sys_file_offset_bits
=no
; break
6238 $as_echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.
$ac_ext >&5
6244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6245 cat >conftest.
$ac_ext <<_ACEOF
6248 cat confdefs.h
>>conftest.
$ac_ext
6249 cat >>conftest.
$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 #define _FILE_OFFSET_BITS 64
6252 #include <sys/types.h>
6253 /* Check that off_t can represent 2**63 - 1 correctly.
6254 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6255 since some C++ compilers masquerading as C compilers
6256 incorrectly reject 9223372036854775807. */
6257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6259 && LARGE_OFF_T % 2147483647 == 1)
6269 rm -f conftest.
$ac_objext
6270 if { (ac_try
="$ac_compile"
6272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276 $as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
6287 ac_cv_sys_file_offset_bits=64; break
6289 $as_echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_cv_sys_file_offset_bits=unknown
6300 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6301 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6302 case $ac_cv_sys_file_offset_bits in #(
6305 cat >>confdefs.h <<_ACEOF
6306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6311 if test $ac_cv_sys_file_offset_bits = unknown; then
6312 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6313 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6314 if test "${ac_cv_sys_large_files+set}" = set; then
6315 $as_echo_n "(cached) " >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <sys/types.h>
6325 /* Check that off_t can represent 2**63 - 1 correctly.
6326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6327 since some C++ compilers masquerading as C compilers
6328 incorrectly reject 9223372036854775807. */
6329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6331 && LARGE_OFF_T % 2147483647 == 1)
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6345 *) ac_try_echo
=$ac_try;;
6347 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6348 $as_echo "$ac_try_echo") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1
>conftest.err
6353 cat conftest.err
>&5
6354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.
$ac_objext; then
6359 ac_cv_sys_large_files
=no
; break
6361 $as_echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.
$ac_ext >&5
6367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 cat >conftest.
$ac_ext <<_ACEOF
6371 cat confdefs.h
>>conftest.
$ac_ext
6372 cat >>conftest.
$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #define _LARGE_FILES 1
6375 #include <sys/types.h>
6376 /* Check that off_t can represent 2**63 - 1 correctly.
6377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6378 since some C++ compilers masquerading as C compilers
6379 incorrectly reject 9223372036854775807. */
6380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6382 && LARGE_OFF_T % 2147483647 == 1)
6392 rm -f conftest.
$ac_objext
6393 if { (ac_try
="$ac_compile"
6395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6399 $as_echo "$ac_try_echo") >&5
6400 (eval "$ac_compile") 2>conftest.er1
6402 grep -v '^ *+' conftest.er1 >conftest.err
6404 cat conftest.err >&5
6405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest.$ac_objext; then
6410 ac_cv_sys_large_files=1; break
6412 $as_echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 ac_cv_sys_large_files=unknown
6423 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6424 $as_echo "$ac_cv_sys_large_files" >&6; }
6425 case $ac_cv_sys_large_files in #(
6428 cat >>confdefs.h <<_ACEOF
6429 #define _LARGE_FILES $ac_cv_sys_large_files
6439 ## If user specified a crt-dir, use that unconditionally.
6440 if test "X$CRT_DIR" = "X"; then
6442 case "$canonical" in
6443 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6444 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6445 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6446 ## For anything else (eg /usr/lib32), it is up the user to specify
6447 ## the location (bug#5655).
6448 ## Test for crtn.o, not just the directory, because sometimes the
6449 ## directory exists but does not have the relevant files (bug#1287).
6450 ## FIXME better to test for binary compatibility somehow.
6451 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6454 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6458 hpux10-20) CRT_DIR=/lib ;;
6461 ## Default is /usr/lib.
6462 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6466 ## Some platforms don't use any of these files, so it is not
6467 ## appropriate to put this test outside the if block.
6468 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6469 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6470 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6471 { (exit 1); exit 1; }; }
6484 START_FILES='ecrt0.o'
6487 ## Adding -lm confuses the dynamic linker, so omit it.
6489 START_FILES='pre-crt0.o'
6492 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6493 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6495 gnu-linux | gnu-kfreebsd )
6496 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6497 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6499 hpux10-20 | hpux11 )
6501 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6504 if test -f $(CRT_DIR)/crti.o; then
6505 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6506 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6508 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6509 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6520 if test "${with_sound}" != "no"; then
6521 # Sound support for GNU/Linux and the free BSDs.
6525 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 $as_echo_n "checking for $ac_header... " >&6; }
6531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6532 $as_echo_n "(cached) " >&6
6534 ac_res=`eval 'as_val=${'$as_ac_Header'}
6535 $as_echo "$as_val"'`
6536 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6537 $as_echo "$ac_res" >&6; }
6539 # Is the header compilable?
6540 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6541 $as_echo_n "checking $ac_header usability... " >&6; }
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 $ac_includes_default
6549 #include <$ac_header>
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6555 *) ac_try_echo
=$ac_try;;
6557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6558 $as_echo "$ac_try_echo") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1
>conftest.err
6563 cat conftest.err
>&5
6564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.
$ac_objext; then
6569 ac_header_compiler
=yes
6571 $as_echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.
$ac_ext >&5
6574 ac_header_compiler
=no
6577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579 $as_echo "$ac_header_compiler" >&6; }
6581 # Is the header present?
6582 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583 $as_echo_n "checking $ac_header presence... " >&6; }
6584 cat >conftest.
$ac_ext <<_ACEOF
6587 cat confdefs.h
>>conftest.
$ac_ext
6588 cat >>conftest.
$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6592 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6598 $as_echo "$ac_try_echo") >&5
6599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev/null && {
6606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6609 ac_header_preproc=yes
6611 $as_echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_header_preproc=no
6617 rm -f conftest.err conftest.$ac_ext
6618 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6619 $as_echo "$ac_header_preproc" >&6; }
6621 # So? What about this header?
6622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6625 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6628 ac_header_preproc=yes
6631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6632 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6634 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6636 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6638 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6640 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6642 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6647 $as_echo_n "checking for $ac_header... " >&6; }
6648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6649 $as_echo_n "(cached) " >&6
6651 eval "$as_ac_Header=\$ac_header_preproc"
6653 ac_res=`eval 'as_val=${'$as_ac_Header'}
6654 $as_echo "$as_val"'`
6655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6656 $as_echo "$ac_res" >&6; }
6659 as_val=`eval 'as_val=${'$as_ac_Header'}
6660 $as_echo "$as_val"'`
6661 if test "x$as_val" = x""yes; then
6662 cat >>confdefs.h <<_ACEOF
6663 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6670 # Emulation library used on NetBSD.
6671 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6672 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6673 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6674 $as_echo_n "(cached) " >&6
6676 ac_check_lib_save_LIBS=$LIBS
6677 LIBS="-lossaudio $LIBS"
6678 cat >conftest.$ac_ext <<_ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6695 return _oss_ioctl ();
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6704 *) ac_try_echo
=$ac_try;;
6706 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6707 $as_echo "$ac_try_echo") >&5
6708 (eval "$ac_link") 2>conftest.er1
6710 grep -v '^ *+' conftest.er1
>conftest.err
6712 cat conftest.err
>&5
6713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest
$ac_exeext && {
6718 test "$cross_compiling" = yes ||
6719 $as_test_x conftest
$ac_exeext
6721 ac_cv_lib_ossaudio__oss_ioctl
=yes
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.
$ac_ext >&5
6726 ac_cv_lib_ossaudio__oss_ioctl
=no
6729 rm -rf conftest.dSYM
6730 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6731 conftest
$ac_exeext conftest.
$ac_ext
6732 LIBS
=$ac_check_lib_save_LIBS
6734 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6735 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6736 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then
6745 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6749 # Extract the first word of "pkg-config", so it can be a program name with args.
6750 set dummy pkg-config
; ac_word
=$2
6751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6754 $as_echo_n "(cached) " >&6
6758 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir
=.
6766 for ac_exec_ext
in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6780 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6781 if test -n "$PKG_CONFIG"; then
6782 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6783 $as_echo "$PKG_CONFIG" >&6; }
6785 { $as_echo "$as_me:$LINENO: result: no" >&5
6786 $as_echo "no" >&6; }
6791 if test "$PKG_CONFIG" = "no" ; then
6794 PKG_CONFIG_MIN_VERSION
=0.9.0
6795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6796 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6797 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6799 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6800 { $as_echo "$as_me:$LINENO: result: yes" >&5
6801 $as_echo "yes" >&6; }
6804 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6805 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6806 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6807 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6808 $as_echo "$ALSA_CFLAGS" >&6; }
6810 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6811 $as_echo_n "checking ALSA_LIBS... " >&6; }
6812 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6813 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6814 $as_echo "$ALSA_LIBS" >&6; }
6816 { $as_echo "$as_me:$LINENO: result: no" >&5
6817 $as_echo "no" >&6; }
6820 ## If we have a custom action on failure, don't print errors, but
6821 ## do set a variable so people can do so.
6822 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6834 if test $succeeded = yes; then
6840 if test $HAVE_ALSA = yes; then
6841 SAVE_CFLAGS
="$CFLAGS"
6842 SAVE_LDFLAGS
="$LDFLAGS"
6843 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6844 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6845 cat >conftest.
$ac_ext <<_ACEOF
6848 cat confdefs.h
>>conftest.
$ac_ext
6849 cat >>conftest.
$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 #include <asoundlib.h>
6855 snd_lib_error_set_handler (0);
6860 rm -f conftest.
$ac_objext
6861 if { (ac_try
="$ac_compile"
6863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6867 $as_echo "$ac_try_echo") >&5
6868 (eval "$ac_compile") 2>conftest.er1
6870 grep -v '^ *+' conftest.er1 >conftest.err
6872 cat conftest.err >&5
6873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest.$ac_objext; then
6878 emacs_alsa_normal=yes
6880 $as_echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 emacs_alsa_normal=no
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 if test "$emacs_alsa_normal" != yes; then
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <alsa/asoundlib.h>
6898 snd_lib_error_set_handler (0);
6903 rm -f conftest.$ac_objext
6904 if { (ac_try="$ac_compile"
6906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6907 *) ac_try_echo
=$ac_try;;
6909 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6910 $as_echo "$ac_try_echo") >&5
6911 (eval "$ac_compile") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1
>conftest.err
6915 cat conftest.err
>&5
6916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest.
$ac_objext; then
6921 emacs_alsa_subdir
=yes
6923 $as_echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.
$ac_ext >&5
6926 emacs_alsa_subdir
=no
6929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6930 if test "$emacs_alsa_subdir" != yes; then
6931 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6932 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6933 { (exit 1); exit 1; }; }
6935 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6938 CFLAGS
="$SAVE_CFLAGS"
6939 LDFLAGS
="$SAVE_LDFLAGS"
6940 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6941 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6943 cat >>confdefs.h
<<\_ACEOF
6976 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6977 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6978 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6979 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6980 sys
/utsname.h
pwd.h utmp.h
6982 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6983 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6985 $as_echo_n "checking for $ac_header... " >&6; }
6986 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6987 $as_echo_n "(cached) " >&6
6989 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6990 $as_echo "$as_val"'`
6991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6992 $as_echo "$ac_res" >&6; }
6994 # Is the header compilable?
6995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6996 $as_echo_n "checking $ac_header usability... " >&6; }
6997 cat >conftest.
$ac_ext <<_ACEOF
7000 cat confdefs.h
>>conftest.
$ac_ext
7001 cat >>conftest.
$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7004 #include <$ac_header>
7006 rm -f conftest.
$ac_objext
7007 if { (ac_try
="$ac_compile"
7009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013 $as_echo "$ac_try_echo") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7016 grep -v '^ *+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7024 ac_header_compiler=yes
7026 $as_echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_header_compiler=no
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034 $as_echo "$ac_header_compiler" >&6; }
7036 # Is the header present?
7037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038 $as_echo_n "checking $ac_header presence... " >&6; }
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <$ac_header>
7047 if { (ac_try="$ac_cpp conftest.$ac_ext"
7049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7050 *) ac_try_echo
=$ac_try;;
7052 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7056 grep -v '^ *+' conftest.er1
>conftest.err
7058 cat conftest.err
>&5
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } >/dev
/null
&& {
7061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7064 ac_header_preproc
=yes
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.
$ac_ext >&5
7069 ac_header_preproc
=no
7072 rm -f conftest.err conftest.
$ac_ext
7073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074 $as_echo "$ac_header_preproc" >&6; }
7076 # So? What about this header?
7077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7083 ac_header_preproc
=yes
7086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 $as_echo_n "checking for $ac_header... " >&6; }
7103 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7104 $as_echo_n "(cached) " >&6
7106 eval "$as_ac_Header=\$ac_header_preproc"
7108 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7109 $as_echo "$as_val"'`
7110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7111 $as_echo "$ac_res" >&6; }
7114 as_val
=`eval 'as_val=${'$as_ac_Header'}
7115 $as_echo "$as_val"'`
7116 if test "x$as_val" = x
""yes; then
7117 cat >>confdefs.h
<<_ACEOF
7118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7126 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7127 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7128 cat >conftest.
$ac_ext <<_ACEOF
7131 cat confdefs.h
>>conftest.
$ac_ext
7132 cat >>conftest.
$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <sys/personality.h>
7138 personality (PER_LINUX32)
7143 rm -f conftest.
$ac_objext
7144 if { (ac_try
="$ac_compile"
7146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7150 $as_echo "$ac_try_echo") >&5
7151 (eval "$ac_compile") 2>conftest.er1
7153 grep -v '^ *+' conftest.er1 >conftest.err
7155 cat conftest.err >&5
7156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
7161 emacs_cv_personality_linux32=yes
7163 $as_echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 emacs_cv_personality_linux32=no
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7171 $as_echo "$emacs_cv_personality_linux32" >&6; }
7173 if test $emacs_cv_personality_linux32 = yes; then
7175 cat >>confdefs.h <<\_ACEOF
7176 #define HAVE_PERSONALITY_LINUX32 1
7182 for ac_header in term.h
7184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7186 $as_echo_n "checking for $ac_header... " >&6; }
7187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7188 $as_echo_n "(cached) " >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 #include <$ac_header>
7198 if { (ac_try="$ac_cpp conftest.$ac_ext"
7200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7201 *) ac_try_echo
=$ac_try;;
7203 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7204 $as_echo "$ac_try_echo") >&5
7205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7207 grep -v '^ *+' conftest.er1
>conftest.err
7209 cat conftest.err
>&5
7210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } >/dev
/null
&& {
7212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7215 eval "$as_ac_Header=yes"
7217 $as_echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.
$ac_ext >&5
7220 eval "$as_ac_Header=no"
7223 rm -f conftest.err conftest.
$ac_ext
7225 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7226 $as_echo "$as_val"'`
7227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7228 $as_echo "$ac_res" >&6; }
7229 as_val
=`eval 'as_val=${'$as_ac_Header'}
7230 $as_echo "$as_val"'`
7231 if test "x$as_val" = x
""yes; then
7232 cat >>confdefs.h
<<_ACEOF
7233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7240 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7241 $as_echo_n "checking for ANSI C header files... " >&6; }
7242 if test "${ac_cv_header_stdc+set}" = set; then
7243 $as_echo_n "(cached) " >&6
7245 cat >conftest.
$ac_ext <<_ACEOF
7248 cat confdefs.h
>>conftest.
$ac_ext
7249 cat >>conftest.
$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7264 rm -f conftest.
$ac_objext
7265 if { (ac_try
="$ac_compile"
7267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_cv_header_stdc=yes
7284 $as_echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_header_stdc=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 if test $ac_cv_header_stdc = yes; then
7293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 $EGREP "memchr" >/dev/null 2>&1; then
7307 ac_cv_header_stdc=no
7313 if test $ac_cv_header_stdc = yes; then
7314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7315 cat >conftest.$ac_ext <<_ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325 $EGREP "free" >/dev/null 2>&1; then
7328 ac_cv_header_stdc=no
7334 if test $ac_cv_header_stdc = yes; then
7335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7336 if test "$cross_compiling" = yes; then
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7347 #if ((' ' & 0x0FF) == 0x020)
7348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7351 # define ISLOWER(c) \
7352 (('a' <= (c) && (c) <= 'i') \
7353 || ('j' <= (c) && (c) <= 'r') \
7354 || ('s' <= (c) && (c) <= 'z'))
7355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7363 for (i = 0; i < 256; i++)
7364 if (XOR (islower (i), ISLOWER (i))
7365 || toupper (i) != TOUPPER (i))
7370 rm -f conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7374 *) ac_try_echo
=$ac_try;;
7376 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7377 $as_echo "$ac_try_echo") >&5
7378 (eval "$ac_link") 2>&5
7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7382 { (case "(($ac_try" in
7383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387 $as_echo "$ac_try_echo") >&5
7388 (eval "$ac_try") 2>&5
7390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7394 $as_echo "$as_me: program exited with status $ac_status" >&5
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7399 ac_cv_header_stdc=no
7401 rm -rf conftest.dSYM
7402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7409 $as_echo "$ac_cv_header_stdc" >&6; }
7410 if test $ac_cv_header_stdc = yes; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define STDC_HEADERS 1
7418 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7419 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7420 if test "${ac_cv_header_time+set}" = set; then
7421 $as_echo_n "(cached) " >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #include <sys/types.h>
7430 #include <sys/time.h>
7436 if ((struct tm *) 0)
7442 rm -f conftest.$ac_objext
7443 if { (ac_try="$ac_compile"
7445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7446 *) ac_try_echo
=$ac_try;;
7448 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450 (eval "$ac_compile") 2>conftest.er1
7452 grep -v '^ *+' conftest.er1
>conftest.err
7454 cat conftest.err
>&5
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && {
7457 test -z "$ac_c_werror_flag" ||
7458 test ! -s conftest.err
7459 } && test -s conftest.
$ac_objext; then
7460 ac_cv_header_time
=yes
7462 $as_echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.
$ac_ext >&5
7465 ac_cv_header_time
=no
7468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7470 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7471 $as_echo "$ac_cv_header_time" >&6; }
7472 if test $ac_cv_header_time = yes; then
7474 cat >>confdefs.h
<<\_ACEOF
7475 #define TIME_WITH_SYS_TIME 1
7480 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7481 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7482 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7483 $as_echo_n "(cached) " >&6
7485 cat >conftest.
$ac_ext <<_ACEOF
7488 cat confdefs.h
>>conftest.
$ac_ext
7489 cat >>conftest.
$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7503 rm -f conftest.
$ac_objext
7504 if { (ac_try
="$ac_compile"
7506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7513 grep -v '^ *+' conftest.er1 >conftest.err
7515 cat conftest.err >&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_cv_have_decl_sys_siglist=yes
7523 $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_cv_have_decl_sys_siglist=no
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7532 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7533 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7535 cat >>confdefs.h <<_ACEOF
7536 #define HAVE_DECL_SYS_SIGLIST 1
7541 cat >>confdefs.h <<_ACEOF
7542 #define HAVE_DECL_SYS_SIGLIST 0
7549 if test $ac_cv_have_decl_sys_siglist != yes; then
7550 # For Tru64, at least:
7551 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7552 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7553 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7554 $as_echo_n "(cached) " >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 $ac_includes_default
7566 #ifndef __sys_siglist
7567 (void) __sys_siglist;
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7578 *) ac_try_echo
=$ac_try;;
7580 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7584 grep -v '^ *+' conftest.er1
>conftest.err
7586 cat conftest.err
>&5
7587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.
$ac_objext; then
7592 ac_cv_have_decl___sys_siglist
=yes
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 ac_cv_have_decl___sys_siglist
=no
7600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7602 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7603 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7604 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then
7606 cat >>confdefs.h
<<_ACEOF
7607 #define HAVE_DECL___SYS_SIGLIST 1
7612 cat >>confdefs.h
<<_ACEOF
7613 #define HAVE_DECL___SYS_SIGLIST 0
7620 if test $ac_cv_have_decl___sys_siglist = yes; then
7622 cat >>confdefs.h
<<\_ACEOF
7623 #define sys_siglist __sys_siglist
7628 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7629 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7630 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7631 $as_echo_n "(cached) " >&6
7633 cat >conftest.
$ac_ext <<_ACEOF
7636 cat confdefs.h
>>conftest.
$ac_ext
7637 cat >>conftest.
$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 #include <sys/types.h>
7640 #include <sys/wait.h>
7642 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7645 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7653 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7658 rm -f conftest.
$ac_objext
7659 if { (ac_try
="$ac_compile"
7661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7665 $as_echo "$ac_try_echo") >&5
7666 (eval "$ac_compile") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest.$ac_objext; then
7676 ac_cv_header_sys_wait_h=yes
7678 $as_echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_cv_header_sys_wait_h=no
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7687 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7688 if test $ac_cv_header_sys_wait_h = yes; then
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_SYS_WAIT_H 1
7697 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7698 $as_echo_n "checking for struct utimbuf... " >&6; }
7699 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7702 cat >conftest.$ac_ext <<_ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7708 #ifdef TIME_WITH_SYS_TIME
7709 #include <sys/time.h>
7712 #ifdef HAVE_SYS_TIME_H
7713 #include <sys/time.h>
7724 static struct utimbuf x; x.actime = x.modtime;
7729 rm -f conftest.$ac_objext
7730 if { (ac_try="$ac_compile"
7732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7733 *) ac_try_echo
=$ac_try;;
7735 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1
>conftest.err
7741 cat conftest.err
>&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.
$ac_objext; then
7747 emacs_cv_struct_utimbuf
=yes
7749 $as_echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.
$ac_ext >&5
7752 emacs_cv_struct_utimbuf
=no
7755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7757 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7758 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7759 if test $emacs_cv_struct_utimbuf = yes; then
7761 cat >>confdefs.h
<<\_ACEOF
7762 #define HAVE_STRUCT_UTIMBUF 1
7767 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7768 $as_echo_n "checking return type of signal handlers... " >&6; }
7769 if test "${ac_cv_type_signal+set}" = set; then
7770 $as_echo_n "(cached) " >&6
7772 cat >conftest.
$ac_ext <<_ACEOF
7775 cat confdefs.h
>>conftest.
$ac_ext
7776 cat >>conftest.
$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 #include <sys/types.h>
7784 return *(signal (0, 0)) (0) == 1;
7789 rm -f conftest.
$ac_objext
7790 if { (ac_try
="$ac_compile"
7792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7796 $as_echo "$ac_try_echo") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_cv_type_signal=int
7809 $as_echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_cv_type_signal=void
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7818 $as_echo "$ac_cv_type_signal" >&6; }
7820 cat >>confdefs.h <<_ACEOF
7821 #define RETSIGTYPE $ac_cv_type_signal
7826 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7827 $as_echo_n "checking for speed_t... " >&6; }
7828 if test "${emacs_cv_speed_t+set}" = set; then
7829 $as_echo_n "(cached) " >&6
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <termios.h>
7846 rm -f conftest.$ac_objext
7847 if { (ac_try="$ac_compile"
7849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7850 *) ac_try_echo
=$ac_try;;
7852 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1
>conftest.err
7858 cat conftest.err
>&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.
$ac_objext; then
7864 emacs_cv_speed_t
=yes
7866 $as_echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.
$ac_ext >&5
7872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7874 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7875 $as_echo "$emacs_cv_speed_t" >&6; }
7876 if test $emacs_cv_speed_t = yes; then
7878 cat >>confdefs.h
<<\_ACEOF
7879 #define HAVE_SPEED_T 1
7884 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7885 $as_echo_n "checking for struct timeval... " >&6; }
7886 if test "${emacs_cv_struct_timeval+set}" = set; then
7887 $as_echo_n "(cached) " >&6
7889 cat >conftest.
$ac_ext <<_ACEOF
7892 cat confdefs.h
>>conftest.
$ac_ext
7893 cat >>conftest.
$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #ifdef TIME_WITH_SYS_TIME
7896 #include <sys/time.h>
7899 #ifdef HAVE_SYS_TIME_H
7900 #include <sys/time.h>
7908 static struct timeval x; x.tv_sec = x.tv_usec;
7913 rm -f conftest.
$ac_objext
7914 if { (ac_try
="$ac_compile"
7916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7920 $as_echo "$ac_try_echo") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 emacs_cv_struct_timeval=yes
7933 $as_echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 emacs_cv_struct_timeval=no
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7942 $as_echo "$emacs_cv_struct_timeval" >&6; }
7943 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7944 if test $emacs_cv_struct_timeval = yes; then
7946 cat >>confdefs.h <<\_ACEOF
7947 #define HAVE_TIMEVAL 1
7952 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7953 $as_echo_n "checking for struct exception... " >&6; }
7954 if test "${emacs_cv_struct_exception+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7967 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7972 rm -f conftest.$ac_objext
7973 if { (ac_try="$ac_compile"
7975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7976 *) ac_try_echo
=$ac_try;;
7978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7979 $as_echo "$ac_try_echo") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1
>conftest.err
7984 cat conftest.err
>&5
7985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.
$ac_objext; then
7990 emacs_cv_struct_exception
=yes
7992 $as_echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.
$ac_ext >&5
7995 emacs_cv_struct_exception
=no
7998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
8001 $as_echo "$emacs_cv_struct_exception" >&6; }
8002 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8003 if test $emacs_cv_struct_exception != yes; then
8005 cat >>confdefs.h
<<\_ACEOF
8006 #define NO_MATHERR 1
8012 for ac_header
in sys
/socket.h
8014 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8017 $as_echo_n "checking for $ac_header... " >&6; }
8018 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8019 $as_echo_n "(cached) " >&6
8021 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8022 $as_echo "$as_val"'`
8023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8024 $as_echo "$ac_res" >&6; }
8026 # Is the header compilable?
8027 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8028 $as_echo_n "checking $ac_header usability... " >&6; }
8029 cat >conftest.
$ac_ext <<_ACEOF
8032 cat confdefs.h
>>conftest.
$ac_ext
8033 cat >>conftest.
$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 #include <$ac_header>
8038 rm -f conftest.
$ac_objext
8039 if { (ac_try
="$ac_compile"
8041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_header_compiler=yes
8058 $as_echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_header_compiler=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8066 $as_echo "$ac_header_compiler" >&6; }
8068 # Is the header present?
8069 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8070 $as_echo_n "checking $ac_header presence... " >&6; }
8071 cat >conftest.$ac_ext <<_ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <$ac_header>
8079 if { (ac_try="$ac_cpp conftest.$ac_ext"
8081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8082 *) ac_try_echo
=$ac_try;;
8084 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8085 $as_echo "$ac_try_echo") >&5
8086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8088 grep -v '^ *+' conftest.er1
>conftest.err
8090 cat conftest.err
>&5
8091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } >/dev
/null
&& {
8093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8096 ac_header_preproc
=yes
8098 $as_echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.
$ac_ext >&5
8101 ac_header_preproc
=no
8104 rm -f conftest.err conftest.
$ac_ext
8105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8106 $as_echo "$ac_header_preproc" >&6; }
8108 # So? What about this header?
8109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8112 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8114 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8115 ac_header_preproc
=yes
8118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8119 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8121 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8123 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8125 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8129 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8134 $as_echo_n "checking for $ac_header... " >&6; }
8135 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8136 $as_echo_n "(cached) " >&6
8138 eval "$as_ac_Header=\$ac_header_preproc"
8140 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8141 $as_echo "$as_val"'`
8142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8143 $as_echo "$ac_res" >&6; }
8146 as_val
=`eval 'as_val=${'$as_ac_Header'}
8147 $as_echo "$as_val"'`
8148 if test "x$as_val" = x
""yes; then
8149 cat >>confdefs.h
<<_ACEOF
8150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8158 for ac_header
in net
/if.h
8160 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8161 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8162 $as_echo_n "checking for $ac_header... " >&6; }
8163 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8164 $as_echo_n "(cached) " >&6
8166 cat >conftest.
$ac_ext <<_ACEOF
8169 cat confdefs.h
>>conftest.
$ac_ext
8170 cat >>conftest.
$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 $ac_includes_default
8173 #if HAVE_SYS_SOCKET_H
8174 #include <sys/socket.h>
8177 #include <$ac_header>
8179 rm -f conftest.
$ac_objext
8180 if { (ac_try
="$ac_compile"
8182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8197 eval "$as_ac_Header=yes"
8199 $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 eval "$as_ac_Header=no"
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 ac_res=`eval 'as_val=${'$as_ac_Header'}
8208 $as_echo "$as_val"'`
8209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8210 $as_echo "$ac_res" >&6; }
8211 as_val=`eval 'as_val=${'$as_ac_Header'}
8212 $as_echo "$as_val"'`
8213 if test "x$as_val" = x""yes; then
8214 cat >>confdefs.h <<_ACEOF
8215 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8223 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8224 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8225 if test "${ac_cv_struct_tm+set}" = set; then
8226 $as_echo_n "(cached) " >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #include <sys/types.h>
8241 int *p = &tm.tm_sec;
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8251 *) ac_try_echo
=$ac_try;;
8253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8254 $as_echo "$ac_try_echo") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1
>conftest.err
8259 cat conftest.err
>&5
8260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.
$ac_objext; then
8265 ac_cv_struct_tm
=time.h
8267 $as_echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.
$ac_ext >&5
8270 ac_cv_struct_tm
=sys
/time.h
8273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8275 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8276 $as_echo "$ac_cv_struct_tm" >&6; }
8277 if test $ac_cv_struct_tm = sys
/time.h
; then
8279 cat >>confdefs.h
<<\_ACEOF
8280 #define TM_IN_SYS_TIME 1
8285 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8286 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8287 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8288 $as_echo_n "(cached) " >&6
8290 cat >conftest.
$ac_ext <<_ACEOF
8293 cat confdefs.h
>>conftest.
$ac_ext
8294 cat >>conftest.
$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 #include <sys/types.h>
8297 #include <$ac_cv_struct_tm>
8303 static struct tm ac_aggr;
8304 if (ac_aggr.tm_zone)
8310 rm -f conftest.
$ac_objext
8311 if { (ac_try
="$ac_compile"
8313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8317 $as_echo "$ac_try_echo") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.$ac_objext; then
8328 ac_cv_member_struct_tm_tm_zone=yes
8330 $as_echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 #include <sys/types.h>
8340 #include <$ac_cv_struct_tm>
8346 static struct tm ac_aggr;
8347 if (sizeof ac_aggr.tm_zone)
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8357 *) ac_try_echo
=$ac_try;;
8359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8363 grep -v '^ *+' conftest.er1
>conftest.err
8365 cat conftest.err
>&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.
$ac_objext; then
8371 ac_cv_member_struct_tm_tm_zone
=yes
8373 $as_echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8376 ac_cv_member_struct_tm_tm_zone
=no
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8385 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8386 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
8388 cat >>confdefs.h
<<_ACEOF
8389 #define HAVE_STRUCT_TM_TM_ZONE 1
8395 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8397 cat >>confdefs.h
<<\_ACEOF
8398 #define HAVE_TM_ZONE 1
8402 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8403 $as_echo_n "checking whether tzname is declared... " >&6; }
8404 if test "${ac_cv_have_decl_tzname+set}" = set; then
8405 $as_echo_n "(cached) " >&6
8407 cat >conftest.
$ac_ext <<_ACEOF
8410 cat confdefs.h
>>conftest.
$ac_ext
8411 cat >>conftest.
$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8426 rm -f conftest.
$ac_objext
8427 if { (ac_try
="$ac_compile"
8429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_have_decl_tzname=yes
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_have_decl_tzname=no
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8455 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8456 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8458 cat >>confdefs.h <<_ACEOF
8459 #define HAVE_DECL_TZNAME 1
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_DECL_TZNAME 0
8472 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8473 $as_echo_n "checking for tzname... " >&6; }
8474 if test "${ac_cv_var_tzname+set}" = set; then
8475 $as_echo_n "(cached) " >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 #if !HAVE_DECL_TZNAME
8485 extern char *tzname[];
8491 return tzname[0][0];
8496 rm -f conftest.$ac_objext conftest$ac_exeext
8497 if { (ac_try="$ac_link"
8499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8500 *) ac_try_echo
=$ac_try;;
8502 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8503 $as_echo "$ac_try_echo") >&5
8504 (eval "$ac_link") 2>conftest.er1
8506 grep -v '^ *+' conftest.er1
>conftest.err
8508 cat conftest.err
>&5
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && {
8511 test -z "$ac_c_werror_flag" ||
8512 test ! -s conftest.err
8513 } && test -s conftest
$ac_exeext && {
8514 test "$cross_compiling" = yes ||
8515 $as_test_x conftest
$ac_exeext
8517 ac_cv_var_tzname
=yes
8519 $as_echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.
$ac_ext >&5
8525 rm -rf conftest.dSYM
8526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8527 conftest
$ac_exeext conftest.
$ac_ext
8529 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8530 $as_echo "$ac_cv_var_tzname" >&6; }
8531 if test $ac_cv_var_tzname = yes; then
8533 cat >>confdefs.h
<<\_ACEOF
8534 #define HAVE_TZNAME 1
8540 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8541 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8542 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8543 $as_echo_n "(cached) " >&6
8545 cat >conftest.
$ac_ext <<_ACEOF
8548 cat confdefs.h
>>conftest.
$ac_ext
8549 cat >>conftest.
$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8556 static struct tm ac_aggr;
8557 if (ac_aggr.tm_gmtoff)
8563 rm -f conftest.
$ac_objext
8564 if { (ac_try
="$ac_compile"
8566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_cv_member_struct_tm_tm_gmtoff=yes
8583 $as_echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8597 static struct tm ac_aggr;
8598 if (sizeof ac_aggr.tm_gmtoff)
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8608 *) ac_try_echo
=$ac_try;;
8610 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8611 $as_echo "$ac_try_echo") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.
$ac_objext; then
8622 ac_cv_member_struct_tm_tm_gmtoff
=yes
8624 $as_echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.
$ac_ext >&5
8627 ac_cv_member_struct_tm_tm_gmtoff
=no
8630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8635 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8636 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8637 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then
8639 cat >>confdefs.h
<<\_ACEOF
8640 #define HAVE_TM_GMTOFF 1
8645 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8646 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8647 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8648 $as_echo_n "(cached) " >&6
8650 cat >conftest.
$ac_ext <<_ACEOF
8653 cat confdefs.h
>>conftest.
$ac_ext
8654 cat >>conftest.
$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 $ac_includes_default
8657 #if HAVE_SYS_SOCKET_H
8658 #include <sys/socket.h>
8667 static struct ifreq ac_aggr;
8668 if (ac_aggr.ifr_flags)
8674 rm -f conftest.
$ac_objext
8675 if { (ac_try
="$ac_compile"
8677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8681 $as_echo "$ac_try_echo") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_cv_member_struct_ifreq_ifr_flags=yes
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #if HAVE_SYS_SOCKET_H
8705 #include <sys/socket.h>
8714 static struct ifreq ac_aggr;
8715 if (sizeof ac_aggr.ifr_flags)
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8725 *) ac_try_echo
=$ac_try;;
8727 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8728 $as_echo "$ac_try_echo") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8731 grep -v '^ *+' conftest.er1
>conftest.err
8733 cat conftest.err
>&5
8734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.
$ac_objext; then
8739 ac_cv_member_struct_ifreq_ifr_flags
=yes
8741 $as_echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.
$ac_ext >&5
8744 ac_cv_member_struct_ifreq_ifr_flags
=no
8747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8752 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8753 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8754 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then
8756 cat >>confdefs.h
<<_ACEOF
8757 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8762 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8763 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8764 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8767 cat >conftest.
$ac_ext <<_ACEOF
8770 cat confdefs.h
>>conftest.
$ac_ext
8771 cat >>conftest.
$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 $ac_includes_default
8774 #if HAVE_SYS_SOCKET_H
8775 #include <sys/socket.h>
8784 static struct ifreq ac_aggr;
8785 if (ac_aggr.ifr_hwaddr)
8791 rm -f conftest.
$ac_objext
8792 if { (ac_try
="$ac_compile"
8794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8811 $as_echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 cat >conftest.$ac_ext <<_ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 #if HAVE_SYS_SOCKET_H
8822 #include <sys/socket.h>
8831 static struct ifreq ac_aggr;
8832 if (sizeof ac_aggr.ifr_hwaddr)
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8842 *) ac_try_echo
=$ac_try;;
8844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1
>conftest.err
8850 cat conftest.err
>&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.
$ac_objext; then
8856 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.
$ac_ext >&5
8861 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8869 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8870 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8871 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then
8873 cat >>confdefs.h
<<_ACEOF
8874 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8879 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8880 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8881 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8882 $as_echo_n "(cached) " >&6
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8891 #if HAVE_SYS_SOCKET_H
8892 #include <sys/socket.h>
8901 static struct ifreq ac_aggr;
8902 if (ac_aggr.ifr_netmask)
8908 rm -f conftest.
$ac_objext
8909 if { (ac_try
="$ac_compile"
8911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_member_struct_ifreq_ifr_netmask=yes
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8938 #if HAVE_SYS_SOCKET_H
8939 #include <sys/socket.h>
8948 static struct ifreq ac_aggr;
8949 if (sizeof ac_aggr.ifr_netmask)
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8959 *) ac_try_echo
=$ac_try;;
8961 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8962 $as_echo "$ac_try_echo") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8965 grep -v '^ *+' conftest.er1
>conftest.err
8967 cat conftest.err
>&5
8968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.
$ac_objext; then
8973 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.
$ac_ext >&5
8978 ac_cv_member_struct_ifreq_ifr_netmask
=no
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8986 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8987 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8988 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then
8990 cat >>confdefs.h
<<_ACEOF
8991 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8996 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8997 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8998 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8999 $as_echo_n "(cached) " >&6
9001 cat >conftest.
$ac_ext <<_ACEOF
9004 cat confdefs.h
>>conftest.
$ac_ext
9005 cat >>conftest.
$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 $ac_includes_default
9008 #if HAVE_SYS_SOCKET_H
9009 #include <sys/socket.h>
9018 static struct ifreq ac_aggr;
9019 if (ac_aggr.ifr_broadaddr)
9025 rm -f conftest.
$ac_objext
9026 if { (ac_try
="$ac_compile"
9028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9032 $as_echo "$ac_try_echo") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9035 grep -v '^ *+' conftest.er1 >conftest.err
9037 cat conftest.err >&5
9038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9043 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9045 $as_echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 $ac_includes_default
9055 #if HAVE_SYS_SOCKET_H
9056 #include <sys/socket.h>
9065 static struct ifreq ac_aggr;
9066 if (sizeof ac_aggr.ifr_broadaddr)
9072 rm -f conftest.$ac_objext
9073 if { (ac_try="$ac_compile"
9075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9076 *) ac_try_echo
=$ac_try;;
9078 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9079 $as_echo "$ac_try_echo") >&5
9080 (eval "$ac_compile") 2>conftest.er1
9082 grep -v '^ *+' conftest.er1
>conftest.err
9084 cat conftest.err
>&5
9085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } && {
9087 test -z "$ac_c_werror_flag" ||
9088 test ! -s conftest.err
9089 } && test -s conftest.
$ac_objext; then
9090 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9092 $as_echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.
$ac_ext >&5
9095 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9103 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9104 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9105 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then
9107 cat >>confdefs.h
<<_ACEOF
9108 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9113 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9114 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9115 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9116 $as_echo_n "(cached) " >&6
9118 cat >conftest.
$ac_ext <<_ACEOF
9121 cat confdefs.h
>>conftest.
$ac_ext
9122 cat >>conftest.
$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9125 #if HAVE_SYS_SOCKET_H
9126 #include <sys/socket.h>
9135 static struct ifreq ac_aggr;
9136 if (ac_aggr.ifr_addr)
9142 rm -f conftest.
$ac_objext
9143 if { (ac_try
="$ac_compile"
9145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9149 $as_echo "$ac_try_echo") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9152 grep -v '^ *+' conftest.er1 >conftest.err
9154 cat conftest.err >&5
9155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.$ac_objext; then
9160 ac_cv_member_struct_ifreq_ifr_addr=yes
9162 $as_echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 cat >conftest.$ac_ext <<_ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 $ac_includes_default
9172 #if HAVE_SYS_SOCKET_H
9173 #include <sys/socket.h>
9182 static struct ifreq ac_aggr;
9183 if (sizeof ac_aggr.ifr_addr)
9189 rm -f conftest.$ac_objext
9190 if { (ac_try="$ac_compile"
9192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9193 *) ac_try_echo
=$ac_try;;
9195 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9196 $as_echo "$ac_try_echo") >&5
9197 (eval "$ac_compile") 2>conftest.er1
9199 grep -v '^ *+' conftest.er1
>conftest.err
9201 cat conftest.err
>&5
9202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest.
$ac_objext; then
9207 ac_cv_member_struct_ifreq_ifr_addr
=yes
9209 $as_echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.
$ac_ext >&5
9212 ac_cv_member_struct_ifreq_ifr_addr
=no
9215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9220 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9221 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9222 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then
9224 cat >>confdefs.h
<<_ACEOF
9225 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9233 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9234 $as_echo_n "checking for function prototypes... " >&6; }
9235 if test "$ac_cv_prog_cc_c89" != no
; then
9236 { $as_echo "$as_me:$LINENO: result: yes" >&5
9237 $as_echo "yes" >&6; }
9239 cat >>confdefs.h
<<\_ACEOF
9240 #define PROTOTYPES 1
9244 cat >>confdefs.h
<<\_ACEOF
9245 #define __PROTOTYPES 1
9249 { $as_echo "$as_me:$LINENO: result: no" >&5
9250 $as_echo "no" >&6; }
9253 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9254 $as_echo_n "checking for working volatile... " >&6; }
9255 if test "${ac_cv_c_volatile+set}" = set; then
9256 $as_echo_n "(cached) " >&6
9258 cat >conftest.
$ac_ext <<_ACEOF
9261 cat confdefs.h
>>conftest.
$ac_ext
9262 cat >>conftest.
$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9270 int * volatile y = (int *) 0;
9276 rm -f conftest.
$ac_objext
9277 if { (ac_try
="$ac_compile"
9279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9283 $as_echo "$ac_try_echo") >&5
9284 (eval "$ac_compile") 2>conftest.er1
9286 grep -v '^ *+' conftest.er1 >conftest.err
9288 cat conftest.err >&5
9289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && {
9291 test -z "$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest.$ac_objext; then
9294 ac_cv_c_volatile=yes
9296 $as_echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9305 $as_echo "$ac_cv_c_volatile" >&6; }
9306 if test $ac_cv_c_volatile = no; then
9308 cat >>confdefs.h <<\_ACEOF
9309 #define volatile /**/
9314 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9315 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9316 if test "${ac_cv_c_const+set}" = set; then
9317 $as_echo_n "(cached) " >&6
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9329 /* FIXME: Include the comments suggested by Paul. */
9331 /* Ultrix mips cc rejects this. */
9332 typedef int charset[2];
9334 /* SunOS 4.1.1 cc rejects this. */
9335 char const *const *pcpcc;
9337 /* NEC SVR4.0.2 mips cc rejects this. */
9338 struct point {int x, y;};
9339 static struct point const zero = {0,0};
9340 /* AIX XL C 1.02.0.0 rejects this.
9341 It does not let you subtract one const X* pointer from another in
9342 an arm of an if-expression whose if-part is not a constant
9344 const char *g = "string";
9345 pcpcc = &g + (g ? g-g : 0);
9346 /* HPUX 7.0 cc rejects these. */
9348 ppc = (char**) pcpcc;
9349 pcpcc = (char const *const *) ppc;
9350 { /* SCO 3.2v4 cc rejects this. */
9352 char const *s = 0 ? (char *) 0 : (char const *) 0;
9357 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9359 const int *foo = &x[0];
9362 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9363 typedef const int *iptr;
9367 { /* AIX XL C 1.02.0.0 rejects this saying
9368 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9369 struct s { int j; const int *ap[3]; };
9370 struct s *b; b->j = 5;
9372 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9376 return !cs[0] && !zero.x;
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9387 *) ac_try_echo
=$ac_try;;
9389 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9390 $as_echo "$ac_try_echo") >&5
9391 (eval "$ac_compile") 2>conftest.er1
9393 grep -v '^ *+' conftest.er1
>conftest.err
9395 cat conftest.err
>&5
9396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 } && test -s conftest.
$ac_objext; then
9403 $as_echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.
$ac_ext >&5
9409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9411 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9412 $as_echo "$ac_cv_c_const" >&6; }
9413 if test $ac_cv_c_const = no
; then
9415 cat >>confdefs.h
<<\_ACEOF
9421 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9422 $as_echo_n "checking for void * support... " >&6; }
9423 if test "${emacs_cv_void_star+set}" = set; then
9424 $as_echo_n "(cached) " >&6
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9441 rm -f conftest.
$ac_objext
9442 if { (ac_try
="$ac_compile"
9444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9448 $as_echo "$ac_try_echo") >&5
9449 (eval "$ac_compile") 2>conftest.er1
9451 grep -v '^ *+' conftest.er1 >conftest.err
9453 cat conftest.err >&5
9454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && {
9456 test -z "$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9458 } && test -s conftest.$ac_objext; then
9459 emacs_cv_void_star=yes
9461 $as_echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 emacs_cv_void_star=no
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9470 $as_echo "$emacs_cv_void_star" >&6; }
9471 if test $emacs_cv_void_star = yes; then
9472 cat >>confdefs.h <<\_ACEOF
9473 #define POINTER_TYPE void
9477 cat >>confdefs.h <<\_ACEOF
9478 #define POINTER_TYPE char
9487 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9488 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9490 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9491 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9492 $as_echo_n "(cached) " >&6
9494 cat >conftest.make <<\_ACEOF
9497 @echo '@@@%%%=$(MAKE)=@@@%%%'
9499 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9500 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9502 eval ac_cv_prog_make_${ac_make}_set=yes;;
9504 eval ac_cv_prog_make_${ac_make}_set=no;;
9508 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9509 { $as_echo "$as_me:$LINENO: result: yes" >&5
9510 $as_echo "yes" >&6; }
9513 { $as_echo "$as_me:$LINENO: result: no" >&5
9514 $as_echo "no" >&6; }
9515 SET_MAKE="MAKE=${MAKE-make}"
9519 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9520 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9521 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9523 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9524 if test "x$testval" != x; then
9527 ac_enable_autodepend=no
9529 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9530 $as_echo "$HAVE_GNU_MAKE" >&6; }
9531 if test $HAVE_GNU_MAKE = yes; then
9532 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9533 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9534 SAVE_CFLAGS="$CFLAGS"
9535 CFLAGS="$CFLAGS -MMD -MF deps.d"
9536 cat >conftest.$ac_ext <<_ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9551 rm -f conftest.$ac_objext
9552 if { (ac_try="$ac_compile"
9554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9555 *) ac_try_echo
=$ac_try;;
9557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9558 $as_echo "$ac_try_echo") >&5
9559 (eval "$ac_compile") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1
>conftest.err
9563 cat conftest.err
>&5
9564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest.
$ac_objext; then
9571 $as_echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.
$ac_ext >&5
9574 ac_enable_autodepend
=no
9577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9578 CFLAGS
="$SAVE_CFLAGS"
9579 test -f deps.d || ac_enable_autodepend
=no
9581 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9582 $as_echo "$ac_enable_autodepend" >&6; }
9584 if test $ac_enable_autodepend = yes; then
9586 cat >>confdefs.h
<<\_ACEOF
9587 #define AUTO_DEPEND 1
9593 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9594 $as_echo_n "checking for long file names... " >&6; }
9595 if test "${ac_cv_sys_long_file_names+set}" = set; then
9596 $as_echo_n "(cached) " >&6
9598 ac_cv_sys_long_file_names
=yes
9599 # Test for long file names in all the places we know might matter:
9600 # . the current directory, where building will happen
9601 # $prefix/lib where we will be installing things
9602 # $exec_prefix/lib likewise
9603 # $TMPDIR if set, where it might want to write temporary files
9604 # /tmp where it might want to write temporary files
9607 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9608 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9609 # in the usual case where exec_prefix is '${prefix}'.
9611 . |
/* | ?
:[\\/]*) ;; #(
9614 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9615 ac_xdir
=$ac_dir/cf$$
9616 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9617 ac_tf1
=$ac_xdir/conftest9012345
9618 ac_tf2
=$ac_xdir/conftest9012346
9619 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9620 ac_cv_sys_long_file_names
=no
9621 rm -f -r "$ac_xdir" 2>/dev
/null
9622 test $ac_cv_sys_long_file_names = no
&& break
9625 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9626 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9627 if test $ac_cv_sys_long_file_names = yes; then
9629 cat >>confdefs.h
<<\_ACEOF
9630 #define HAVE_LONG_FILE_NAMES 1
9636 #### Choose a window system.
9638 { $as_echo "$as_me:$LINENO: checking for X" >&5
9639 $as_echo_n "checking for X... " >&6; }
9642 # Check whether --with-x was given.
9643 if test "${with_x+set}" = set; then
9647 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9648 if test "x$with_x" = xno
; then
9649 # The user explicitly disabled X.
9652 case $x_includes,$x_libraries in #(
9653 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9654 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9655 { (exit 1); exit 1; }; };; #(
9656 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9657 $as_echo_n "(cached) " >&6
9659 # One or both of the vars are not set, and there is no cached value.
9660 ac_x_includes
=no ac_x_libraries
=no
9661 rm -f -r conftest.dir
9662 if mkdir conftest.dir
; then
9664 cat >Imakefile
<<'_ACEOF'
9666 @echo incroot='${INCROOT}'
9668 @echo usrlibdir='${USRLIBDIR}'
9670 @echo libdir='${LIBDIR}'
9672 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9674 for ac_var
in incroot usrlibdir libdir
; do
9675 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9677 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9678 for ac_extension
in a so sl dylib la dll
; do
9679 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9680 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9681 ac_im_usrlibdir
=$ac_im_libdir; break
9684 # Screen out bogus values from the imake configuration. They are
9685 # bogus both because they are the default anyway, and because
9686 # using them would break gcc on systems where it needs fixed includes.
9687 case $ac_im_incroot in
9688 /usr
/include
) ac_x_includes
= ;;
9689 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9691 case $ac_im_usrlibdir in
9692 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9693 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9697 rm -f -r conftest.dir
9700 # Standard set of common directories for X headers.
9701 # Check X11 before X11Rn because it is often a symlink to the current release.
9713 /usr/local/X11/include
9714 /usr/local/X11R6/include
9715 /usr/local/X11R5/include
9716 /usr/local/X11R4/include
9718 /usr/local/include/X11
9719 /usr/local/include/X11R6
9720 /usr/local/include/X11R5
9721 /usr/local/include/X11R4
9725 /usr/XFree86/include/X11
9729 /usr/unsupported/include
9731 /usr/local/x11r5/include
9732 /usr/lpp/Xamples/include
9734 /usr/openwin/include
9735 /usr/openwin/share/include'
9737 if test "$ac_x_includes" = no
; then
9738 # Guess where to find include files, by looking for Xlib.h.
9739 # First, try using that file with no special directory specified.
9740 cat >conftest.
$ac_ext <<_ACEOF
9743 cat confdefs.h
>>conftest.
$ac_ext
9744 cat >>conftest.
$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 #include <X11/Xlib.h>
9748 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } >/dev/null && {
9762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9765 # We can compile using X headers with no special include directory.
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 for ac_dir in $ac_x_header_dirs; do
9772 if test -r "$ac_dir/X11/Xlib.h"; then
9773 ac_x_includes=$ac_dir
9779 rm -f conftest.err conftest.$ac_ext
9780 fi # $ac_x_includes = no
9782 if test "$ac_x_libraries" = no; then
9783 # Check for the libraries.
9784 # See if we find them without any special options.
9785 # Don't add to $LIBS permanently.
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 #include <X11/Xlib.h>
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9807 *) ac_try_echo
=$ac_try;;
9809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9810 $as_echo "$ac_try_echo") >&5
9811 (eval "$ac_link") 2>conftest.er1
9813 grep -v '^ *+' conftest.er1
>conftest.err
9815 cat conftest.err
>&5
9816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest
$ac_exeext && {
9821 test "$cross_compiling" = yes ||
9822 $as_test_x conftest
$ac_exeext
9825 # We can link X programs with no special library path.
9828 $as_echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.
$ac_ext >&5
9832 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9834 # Don't even attempt the hair of trying to link an X program!
9835 for ac_extension
in a so sl dylib la dll
; do
9836 if test -r "$ac_dir/libX11.$ac_extension"; then
9837 ac_x_libraries
=$ac_dir
9844 rm -rf conftest.dSYM
9845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9846 conftest
$ac_exeext conftest.
$ac_ext
9847 fi # $ac_x_libraries = no
9849 case $ac_x_includes,$ac_x_libraries in #(
9851 # Didn't find X, or a directory has "'" in its name.
9852 ac_cv_have_x
="have_x=no";; #(
9854 # Record where we found X for the cache.
9855 ac_cv_have_x
="have_x=yes\
9856 ac_x_includes='$ac_x_includes'\
9857 ac_x_libraries='$ac_x_libraries'"
9863 eval "$ac_cv_have_x"
9866 if test "$have_x" != yes; then
9867 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9868 $as_echo "$have_x" >&6; }
9871 # If each of the values was on the command line, it overrides each guess.
9872 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9873 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9874 # Update the cache value to reflect the command line values.
9875 ac_cv_have_x
="have_x=yes\
9876 ac_x_includes='$x_includes'\
9877 ac_x_libraries='$x_libraries'"
9878 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9879 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9882 if test "$no_x" = yes; then
9888 ## Workaround for bug in autoconf <= 2.62.
9889 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9890 ## No need to do anything special for these standard directories.
9891 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9893 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9897 LD_SWITCH_X_SITE_AUX
=
9898 LD_SWITCH_X_SITE_AUX_RPATH
=
9899 if test "${x_libraries}" != NONE
; then
9900 if test -n "${x_libraries}"; then
9901 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9902 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9903 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9905 x_default_search_path
=""
9906 x_search_path
=${x_libraries}
9907 if test -z "${x_search_path}"; then
9908 x_search_path
=/usr
/lib
9910 for x_library
in `echo ${x_search_path}: | \
9911 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9913 ${x_library}/X11/%L/%T/%N%C%S:\
9914 ${x_library}/X11/%l/%T/%N%C%S:\
9915 ${x_library}/X11/%T/%N%C%S:\
9916 ${x_library}/X11/%L/%T/%N%S:\
9917 ${x_library}/X11/%l/%T/%N%S:\
9918 ${x_library}/X11/%T/%N%S"
9919 if test x
"${x_default_search_path}" = x
; then
9920 x_default_search_path
=${x_search_path}
9922 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9929 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9930 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9933 if test x
"${x_includes}" = x
; then
9934 bitmapdir
=/usr
/include
/X11
/bitmaps
9936 # accumulate include directories that have X11 bitmap subdirectories
9938 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9939 if test -d "${bmd}/X11/bitmaps"; then
9940 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9942 if test -d "${bmd}/bitmaps"; then
9943 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9946 if test ${bmd_acc} != "dummyval"; then
9947 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9954 tmp_CPPFLAGS
="$CPPFLAGS"
9955 tmp_CFLAGS
="$CFLAGS"
9956 CPPFLAGS
="$CPPFLAGS -x objective-c"
9957 CFLAGS
="$CFLAGS -x objective-c"
9958 if test "${with_ns}" != no
; then
9959 if test "${opsys}" = darwin
; then
9961 ns_appdir
=`pwd`/nextstep
/Emacs.app
9962 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9963 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9964 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9965 elif test -f $GNUSTEP_CONFIG_FILE; then
9967 ns_appdir
=`pwd`/nextstep
/Emacs.app
9968 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9969 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9970 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9971 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9972 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9973 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9974 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9975 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9976 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9977 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9980 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9981 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9982 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9983 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9984 $as_echo_n "(cached) " >&6
9986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9987 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9989 # Is the header compilable?
9990 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9991 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9992 cat >conftest.
$ac_ext <<_ACEOF
9995 cat confdefs.h
>>conftest.
$ac_ext
9996 cat >>conftest.
$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
9999 #include <AppKit/AppKit.h>
10001 rm -f conftest.
$ac_objext
10002 if { (ac_try
="$ac_compile"
10003 case "(($ac_try" in
10004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10008 $as_echo "$ac_try_echo") >&5
10009 (eval "$ac_compile") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest.$ac_objext; then
10019 ac_header_compiler=yes
10021 $as_echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ac_header_compiler=no
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10029 $as_echo "$ac_header_compiler" >&6; }
10031 # Is the header present?
10032 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10033 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <AppKit/AppKit.h>
10042 if { (ac_try="$ac_cpp conftest.$ac_ext"
10043 case "(($ac_try" in
10044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10045 *) ac_try_echo
=$ac_try;;
10047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10048 $as_echo "$ac_try_echo") >&5
10049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1
>conftest.err
10053 cat conftest.err
>&5
10054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev
/null
&& {
10056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10059 ac_header_preproc
=yes
10061 $as_echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.
$ac_ext >&5
10064 ac_header_preproc
=no
10067 rm -f conftest.err conftest.
$ac_ext
10068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10069 $as_echo "$ac_header_preproc" >&6; }
10071 # So? What about this header?
10072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10077 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10078 ac_header_preproc
=yes
10081 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10082 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10084 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10086 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10087 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10088 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10089 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10090 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10091 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10092 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10096 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10097 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10098 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10099 $as_echo_n "(cached) " >&6
10101 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10103 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10104 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10107 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then
10110 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10111 files are missing or cannot be compiled." >&5
10112 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10113 files are missing or cannot be compiled." >&2;}
10114 { (exit 1); exit 1; }; }
10118 NS_HAVE_NSINTEGER
=yes
10119 cat >conftest.
$ac_ext <<_ACEOF
10122 cat confdefs.h
>>conftest.
$ac_ext
10123 cat >>conftest.
$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 #include <Foundation/NSObjCRuntime.h>
10134 rm -f conftest.
$ac_objext
10135 if { (ac_try
="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10141 $as_echo "$ac_try_echo") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
10152 ns_have_nsinteger=yes
10154 $as_echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ns_have_nsinteger=no
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 if test $ns_have_nsinteger = no; then
10162 NS_HAVE_NSINTEGER=no
10168 if test "${HAVE_NS}" = yes; then
10169 window_system=nextstep
10171 # set up packaging dirs
10172 exec_prefix=${ns_appbindir}
10173 libexecdir=${ns_appbindir}/libexec
10174 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10175 prefix=${ns_appresdir}
10177 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10178 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10180 CFLAGS="$tmp_CFLAGS"
10181 CPPFLAGS="$tmp_CPPFLAGS"
10186 case "${window_system}" in
10190 case "${with_x_toolkit}" in
10191 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10192 motif ) USE_X_TOOLKIT=MOTIF ;;
10194 USE_X_TOOLKIT=none ;;
10195 no ) USE_X_TOOLKIT=none ;;
10196 * ) USE_X_TOOLKIT=maybe ;;
10206 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10207 # Extract the first word of "X", so it can be a program name with args.
10208 set dummy X; ac_word=$2
10209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10212 $as_echo_n "(cached) " >&6
10214 if test -n "$HAVE_XSERVER"; then
10215 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_prog_HAVE_XSERVER="true"
10225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10235 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10236 if test -n "$HAVE_XSERVER"; then
10237 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10238 $as_echo "$HAVE_XSERVER" >&6; }
10240 { $as_echo "$as_me:$LINENO: result: no" >&5
10241 $as_echo "no" >&6; }
10245 if test "$HAVE_XSERVER" = true ||
10246 test -n "$DISPLAY" ||
10247 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10248 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10249 were found. You should install the relevant development files for X
10250 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10251 sure you have development files for image handling, i.e.
10252 tiff, gif, jpeg, png and xpm.
10253 If you are sure you want Emacs compiled without X window support, pass
10256 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10257 were found. You should install the relevant development files for X
10258 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10259 sure you have development files for image handling, i.e.
10260 tiff, gif, jpeg, png and xpm.
10261 If you are sure you want Emacs compiled without X window support, pass
10263 to configure." >&2;}
10264 { (exit 1); exit 1; }; }
10268 ### If we're using X11, we should use the X menu package.
10270 case ${HAVE_X11} in
10271 yes ) HAVE_MENUS=yes ;;
10274 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10275 # Assume not, until told otherwise.
10277 doug_lea_malloc=yes
10278 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10279 $as_echo_n "checking for malloc_get_state... " >&6; }
10280 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10281 $as_echo_n "(cached) " >&6
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10291 #define malloc_get_state innocuous_malloc_get_state
10293 /* System header to define __stub macros and hopefully few prototypes,
10294 which can conflict with char malloc_get_state (); below.
10295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10296 <limits.h> exists even on freestanding compilers. */
10299 # include <limits.h>
10301 # include <assert.h>
10304 #undef malloc_get_state
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10312 char malloc_get_state ();
10313 /* The GNU C library defines this for functions which it implements
10314 to always fail with ENOSYS. Some functions are actually named
10315 something starting with __ and the normal name is an alias. */
10316 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10323 return malloc_get_state ();
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10332 *) ac_try_echo
=$ac_try;;
10334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10335 $as_echo "$ac_try_echo") >&5
10336 (eval "$ac_link") 2>conftest.er1
10338 grep -v '^ *+' conftest.er1
>conftest.err
10340 cat conftest.err
>&5
10341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest
$ac_exeext && {
10346 test "$cross_compiling" = yes ||
10347 $as_test_x conftest
$ac_exeext
10349 ac_cv_func_malloc_get_state
=yes
10351 $as_echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.
$ac_ext >&5
10354 ac_cv_func_malloc_get_state
=no
10357 rm -rf conftest.dSYM
10358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10359 conftest
$ac_exeext conftest.
$ac_ext
10361 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10362 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10363 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then
10369 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10370 $as_echo_n "checking for malloc_set_state... " >&6; }
10371 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10372 $as_echo_n "(cached) " >&6
10374 cat >conftest.
$ac_ext <<_ACEOF
10377 cat confdefs.h
>>conftest.
$ac_ext
10378 cat >>conftest.
$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10382 #define malloc_set_state innocuous_malloc_set_state
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char malloc_set_state (); below.
10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387 <limits.h> exists even on freestanding compilers. */
10390 # include <limits.h>
10392 # include <assert.h>
10395 #undef malloc_set_state
10397 /* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
10403 char malloc_set_state ();
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10414 return malloc_set_state ();
10419 rm -f conftest.
$ac_objext conftest
$ac_exeext
10420 if { (ac_try
="$ac_link"
10421 case "(($ac_try" in
10422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10426 $as_echo "$ac_try_echo") >&5
10427 (eval "$ac_link") 2>conftest.er1
10429 grep -v '^ *+' conftest.er1 >conftest.err
10431 cat conftest.err >&5
10432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext && {
10437 test "$cross_compiling" = yes ||
10438 $as_test_x conftest$ac_exeext
10440 ac_cv_func_malloc_set_state=yes
10442 $as_echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_cv_func_malloc_set_state=no
10448 rm -rf conftest.dSYM
10449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10450 conftest$ac_exeext conftest.$ac_ext
10452 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10453 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10454 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10460 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10461 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10462 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 extern void (* __after_morecore_hook)();
10475 __after_morecore_hook = 0
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10484 *) ac_try_echo
=$ac_try;;
10486 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10487 $as_echo "$ac_try_echo") >&5
10488 (eval "$ac_link") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1
>conftest.err
10492 cat conftest.err
>&5
10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest
$ac_exeext && {
10498 test "$cross_compiling" = yes ||
10499 $as_test_x conftest
$ac_exeext
10501 emacs_cv_var___after_morecore_hook
=yes
10503 $as_echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.
$ac_ext >&5
10506 emacs_cv_var___after_morecore_hook
=no
10509 rm -rf conftest.dSYM
10510 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10511 conftest
$ac_exeext conftest.
$ac_ext
10513 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10514 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10515 if test $emacs_cv_var___after_morecore_hook = no
; then
10518 if test "${system_malloc}" = "yes"; then
10520 GNU_MALLOC_reason
="
10521 (The GNU allocators don't work with this system configuration.)"
10523 if test "$doug_lea_malloc" = "yes" ; then
10524 if test "$GNU_MALLOC" = yes ; then
10525 GNU_MALLOC_reason
="
10526 (Using Doug Lea's new malloc from the GNU C Library.)"
10529 cat >>confdefs.h
<<\_ACEOF
10530 #define DOUG_LEA_MALLOC 1
10535 if test x
"${REL_ALLOC}" = x
; then
10536 REL_ALLOC
=${GNU_MALLOC}
10542 for ac_header
in stdlib.h unistd.h
10544 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 $as_echo_n "checking for $ac_header... " >&6; }
10548 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549 $as_echo_n "(cached) " >&6
10551 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10552 $as_echo "$as_val"'`
10553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10554 $as_echo "$ac_res" >&6; }
10556 # Is the header compilable?
10557 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 $as_echo_n "checking $ac_header usability... " >&6; }
10559 cat >conftest.
$ac_ext <<_ACEOF
10562 cat confdefs.h
>>conftest.
$ac_ext
10563 cat >>conftest.
$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 #include <$ac_header>
10568 rm -f conftest.
$ac_objext
10569 if { (ac_try
="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576 (eval "$ac_compile") 2>conftest.er1
10578 grep -v '^ *+' conftest.er1 >conftest.err
10580 cat conftest.err >&5
10581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && {
10583 test -z "$ac_c_werror_flag" ||
10584 test ! -s conftest.err
10585 } && test -s conftest.$ac_objext; then
10586 ac_header_compiler=yes
10588 $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ac_header_compiler=no
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10596 $as_echo "$ac_header_compiler" >&6; }
10598 # Is the header present?
10599 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10600 $as_echo_n "checking $ac_header presence... " >&6; }
10601 cat >conftest.$ac_ext <<_ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <$ac_header>
10609 if { (ac_try="$ac_cpp conftest.$ac_ext"
10610 case "(($ac_try" in
10611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10612 *) ac_try_echo
=$ac_try;;
10614 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1
>conftest.err
10620 cat conftest.err
>&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev
/null
&& {
10623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10626 ac_header_preproc
=yes
10628 $as_echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.
$ac_ext >&5
10631 ac_header_preproc
=no
10634 rm -f conftest.err conftest.
$ac_ext
10635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 $as_echo "$ac_header_preproc" >&6; }
10638 # So? What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645 ac_header_preproc
=yes
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10655 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10664 $as_echo_n "checking for $ac_header... " >&6; }
10665 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666 $as_echo_n "(cached) " >&6
10668 eval "$as_ac_Header=\$ac_header_preproc"
10670 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10671 $as_echo "$as_val"'`
10672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10673 $as_echo "$ac_res" >&6; }
10676 as_val
=`eval 'as_val=${'$as_ac_Header'}
10677 $as_echo "$as_val"'`
10678 if test "x$as_val" = x
""yes; then
10679 cat >>confdefs.h
<<_ACEOF
10680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10688 for ac_func
in getpagesize
10690 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10692 $as_echo_n "checking for $ac_func... " >&6; }
10693 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10694 $as_echo_n "(cached) " >&6
10696 cat >conftest.
$ac_ext <<_ACEOF
10699 cat confdefs.h
>>conftest.
$ac_ext
10700 cat >>conftest.
$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10704 #define $ac_func innocuous_$ac_func
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char $ac_func (); below.
10708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709 <limits.h> exists even on freestanding compilers. */
10712 # include <limits.h>
10714 # include <assert.h>
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10726 /* The GNU C library defines this for functions which it implements
10727 to always fail with ENOSYS. Some functions are actually named
10728 something starting with __ and the normal name is an alias. */
10729 #if defined __stub_$ac_func || defined __stub___$ac_func
10736 return $ac_func ();
10741 rm -f conftest.
$ac_objext conftest
$ac_exeext
10742 if { (ac_try
="$ac_link"
10743 case "(($ac_try" in
10744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10748 $as_echo "$ac_try_echo") >&5
10749 (eval "$ac_link") 2>conftest.er1
10751 grep -v '^ *+' conftest.er1 >conftest.err
10753 cat conftest.err >&5
10754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest$ac_exeext && {
10759 test "$cross_compiling" = yes ||
10760 $as_test_x conftest$ac_exeext
10762 eval "$as_ac_var=yes"
10764 $as_echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 eval "$as_ac_var=no"
10770 rm -rf conftest.dSYM
10771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10772 conftest$ac_exeext conftest.$ac_ext
10774 ac_res=`eval 'as_val=${'$as_ac_var'}
10775 $as_echo "$as_val"'`
10776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10777 $as_echo "$ac_res" >&6; }
10778 as_val=`eval 'as_val=${'$as_ac_var'}
10779 $as_echo "$as_val"'`
10780 if test "x$as_val" = x""yes; then
10781 cat >>confdefs.h <<_ACEOF
10782 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10788 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10789 $as_echo_n "checking for working mmap... " >&6; }
10790 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10791 $as_echo_n "(cached) " >&6
10793 if test "$cross_compiling" = yes; then
10794 ac_cv_func_mmap_fixed_mapped=no
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 /* malloc might have been renamed as rpl_malloc. */
10806 /* Thanks to Mike Haertel and Jim Avera for this test.
10807 Here is a matrix of mmap possibilities:
10808 mmap private not fixed
10809 mmap private fixed at somewhere currently unmapped
10810 mmap private fixed at somewhere already mapped
10811 mmap shared not fixed
10812 mmap shared fixed at somewhere currently unmapped
10813 mmap shared fixed at somewhere already mapped
10814 For private mappings, we should verify that changes cannot be read()
10815 back from the file, nor mmap's back from the file at a different
10816 address. (There have been systems where private was not correctly
10817 implemented like the infamous i386 svr4.0, and systems where the
10818 VM page cache was not coherent with the file system buffer cache
10819 like early versions of FreeBSD and possibly contemporary NetBSD.)
10820 For shared mappings, we should conversely verify that changes get
10821 propagated back to all the places they're supposed to be.
10823 Grep wants private fixed already mapped.
10824 The main things grep needs to know about mmap are:
10825 * does it exist and is it safe to write into the mmap'd area
10826 * how to use it (BSD variants) */
10829 #include <sys/mman.h>
10831 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10835 /* This mess was copied from the GNU getpagesize.h. */
10836 #ifndef HAVE_GETPAGESIZE
10837 /* Assume that all systems that can run configure have sys/param.h. */
10838 # ifndef HAVE_SYS_PARAM_H
10839 # define HAVE_SYS_PARAM_H 1
10842 # ifdef _SC_PAGESIZE
10843 # define getpagesize() sysconf(_SC_PAGESIZE)
10844 # else /* no _SC_PAGESIZE */
10845 # ifdef HAVE_SYS_PARAM_H
10846 # include <sys/param.h>
10847 # ifdef EXEC_PAGESIZE
10848 # define getpagesize() EXEC_PAGESIZE
10849 # else /* no EXEC_PAGESIZE */
10851 # define getpagesize() NBPG * CLSIZE
10854 # endif /* no CLSIZE */
10855 # else /* no NBPG */
10857 # define getpagesize() NBPC
10858 # else /* no NBPC */
10860 # define getpagesize() PAGESIZE
10861 # endif /* PAGESIZE */
10862 # endif /* no NBPC */
10863 # endif /* no NBPG */
10864 # endif /* no EXEC_PAGESIZE */
10865 # else /* no HAVE_SYS_PARAM_H */
10866 # define getpagesize() 8192 /* punt totally */
10867 # endif /* no HAVE_SYS_PARAM_H */
10868 # endif /* no _SC_PAGESIZE */
10870 #endif /* no HAVE_GETPAGESIZE */
10875 char *data, *data2, *data3;
10879 pagesize = getpagesize ();
10881 /* First, make a file with some known garbage in it. */
10882 data = (char *) malloc (pagesize);
10885 for (i = 0; i < pagesize; ++i)
10886 *(data + i) = rand ();
10888 fd = creat ("conftest.mmap", 0600);
10891 if (write (fd, data, pagesize) != pagesize)
10895 /* Next, try to mmap the file at a fixed address which already has
10896 something else allocated at it. If we can, also make sure that
10897 we see the same garbage. */
10898 fd = open ("conftest.mmap", O_RDWR);
10901 data2 = (char *) malloc (2 * pagesize);
10904 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10905 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10908 for (i = 0; i < pagesize; ++i)
10909 if (*(data + i) != *(data2 + i))
10912 /* Finally, make sure that changes to the mapped area do not
10913 percolate back to the file as seen by read(). (This is a bug on
10914 some variants of i386 svr4.0.) */
10915 for (i = 0; i < pagesize; ++i)
10916 *(data2 + i) = *(data2 + i) + 1;
10917 data3 = (char *) malloc (pagesize);
10920 if (read (fd, data3, pagesize) != pagesize)
10922 for (i = 0; i < pagesize; ++i)
10923 if (*(data + i) != *(data3 + i))
10929 rm -f conftest$ac_exeext
10930 if { (ac_try="$ac_link"
10931 case "(($ac_try" in
10932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10933 *) ac_try_echo
=$ac_try;;
10935 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10936 $as_echo "$ac_try_echo") >&5
10937 (eval "$ac_link") 2>&5
10939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10941 { (case "(($ac_try" in
10942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10946 $as_echo "$ac_try_echo") >&5
10947 (eval "$ac_try") 2>&5
10949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_cv_func_mmap_fixed_mapped=yes
10953 $as_echo "$as_me: program exited with status $ac_status" >&5
10954 $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ( exit $ac_status )
10958 ac_cv_func_mmap_fixed_mapped=no
10960 rm -rf conftest.dSYM
10961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10966 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10967 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10968 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_MMAP 1
10975 rm -f conftest.mmap
10977 if test $use_mmap_for_buffers = yes; then
10981 LIBS="$LIBS_SYSTEM $LIBS"
10984 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10985 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10986 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10987 $as_echo_n "(cached) " >&6
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-ldnet $LIBS"
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11008 return dnet_ntoa ();
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (ac_try="$ac_link"
11015 case "(($ac_try" in
11016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11017 *) ac_try_echo
=$ac_try;;
11019 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11020 $as_echo "$ac_try_echo") >&5
11021 (eval "$ac_link") 2>conftest.er1
11023 grep -v '^ *+' conftest.er1
>conftest.err
11025 cat conftest.err
>&5
11026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest
$ac_exeext && {
11031 test "$cross_compiling" = yes ||
11032 $as_test_x conftest
$ac_exeext
11034 ac_cv_lib_dnet_dnet_ntoa
=yes
11036 $as_echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.
$ac_ext >&5
11039 ac_cv_lib_dnet_dnet_ntoa
=no
11042 rm -rf conftest.dSYM
11043 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11044 conftest
$ac_exeext conftest.
$ac_ext
11045 LIBS
=$ac_check_lib_save_LIBS
11047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11048 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11049 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
11050 cat >>confdefs.h
<<_ACEOF
11051 #define HAVE_LIBDNET 1
11054 LIBS
="-ldnet $LIBS"
11059 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11060 $as_echo_n "checking for main in -lXbsd... " >&6; }
11061 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11062 $as_echo_n "(cached) " >&6
11064 ac_check_lib_save_LIBS
=$LIBS
11065 LIBS
="-lXbsd $LIBS"
11066 cat >conftest.
$ac_ext <<_ACEOF
11069 cat confdefs.h
>>conftest.
$ac_ext
11070 cat >>conftest.
$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11082 rm -f conftest.
$ac_objext conftest
$ac_exeext
11083 if { (ac_try
="$ac_link"
11084 case "(($ac_try" in
11085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11089 $as_echo "$ac_try_echo") >&5
11090 (eval "$ac_link") 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && {
11097 test -z "$ac_c_werror_flag" ||
11098 test ! -s conftest.err
11099 } && test -s conftest$ac_exeext && {
11100 test "$cross_compiling" = yes ||
11101 $as_test_x conftest$ac_exeext
11103 ac_cv_lib_Xbsd_main=yes
11105 $as_echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_cv_lib_Xbsd_main=no
11111 rm -rf conftest.dSYM
11112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113 conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11116 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11117 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11118 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
11119 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11124 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11125 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11126 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11127 $as_echo_n "(cached) " >&6
11129 ac_check_lib_save_LIBS=$LIBS
11130 LIBS="-lpthreads $LIBS"
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11138 /* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11148 return cma_open ();
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (ac_try="$ac_link"
11155 case "(($ac_try" in
11156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11157 *) ac_try_echo
=$ac_try;;
11159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11160 $as_echo "$ac_try_echo") >&5
11161 (eval "$ac_link") 2>conftest.er1
11163 grep -v '^ *+' conftest.er1
>conftest.err
11165 cat conftest.err
>&5
11166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest
$ac_exeext && {
11171 test "$cross_compiling" = yes ||
11172 $as_test_x conftest
$ac_exeext
11174 ac_cv_lib_pthreads_cma_open
=yes
11176 $as_echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.
$ac_ext >&5
11179 ac_cv_lib_pthreads_cma_open
=no
11182 rm -rf conftest.dSYM
11183 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11184 conftest
$ac_exeext conftest.
$ac_ext
11185 LIBS
=$ac_check_lib_save_LIBS
11187 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11188 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11189 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then
11190 cat >>confdefs.h
<<_ACEOF
11191 #define HAVE_LIBPTHREADS 1
11194 LIBS
="-lpthreads $LIBS"
11199 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11200 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11201 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11202 ## added to LIBS in configure would never contain the pthreads part,
11203 ## but the value used in Makefiles might. FIXME?
11205 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11206 ## be harmless on older versions of X where it happens to exist.
11207 test "$opsys" = "aix4-2" && \
11208 test $ac_cv_lib_pthreads_cma_open = yes && \
11209 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11214 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11215 $as_echo_n "checking for -bbigtoc option... " >&6; }
11216 if test "${gdb_cv_bigtoc+set}" = set; then
11217 $as_echo_n "(cached) " >&6
11221 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11222 *) gdb_cv_bigtoc
=-bbigtoc ;;
11225 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11226 cat >conftest.
$ac_ext <<_ACEOF
11229 cat confdefs.h
>>conftest.
$ac_ext
11230 cat >>conftest.
$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11241 rm -f conftest.
$ac_objext conftest
$ac_exeext
11242 if { (ac_try
="$ac_link"
11243 case "(($ac_try" in
11244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11248 $as_echo "$ac_try_echo") >&5
11249 (eval "$ac_link") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext && {
11259 test "$cross_compiling" = yes ||
11260 $as_test_x conftest$ac_exeext
11264 $as_echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11270 rm -rf conftest.dSYM
11271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11272 conftest$ac_exeext conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11276 $as_echo "$gdb_cv_bigtoc" >&6; }
11280 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11281 # used for the tests that follow. We set them back to REAL_CFLAGS and
11282 # REAL_CPPFLAGS later on.
11284 REAL_CPPFLAGS="$CPPFLAGS"
11286 if test "${HAVE_X11}" = "yes"; then
11287 DEFS="$C_SWITCH_X_SITE $DEFS"
11288 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11290 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11291 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11293 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11294 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11295 # but it's more convenient here to set LD_RUN_PATH
11296 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11297 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11298 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11302 if test "${opsys}" = "gnu-linux"; then
11303 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11304 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11305 cat >conftest.$ac_ext <<_ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11315 XOpenDisplay ("foo");
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (ac_try="$ac_link"
11322 case "(($ac_try" in
11323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11324 *) ac_try_echo
=$ac_try;;
11326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11327 $as_echo "$ac_try_echo") >&5
11328 (eval "$ac_link") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1
>conftest.err
11332 cat conftest.err
>&5
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest
$ac_exeext && {
11338 test "$cross_compiling" = yes ||
11339 $as_test_x conftest
$ac_exeext
11341 xlinux_first_failure
=no
11343 $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.
$ac_ext >&5
11346 xlinux_first_failure
=yes
11349 rm -rf conftest.dSYM
11350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11351 conftest
$ac_exeext conftest.
$ac_ext
11352 if test "${xlinux_first_failure}" = "yes"; then
11353 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11354 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11355 OLD_CPPFLAGS
="$CPPFLAGS"
11357 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11358 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11359 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11360 LIBS
="$LIBS -b i486-linuxaout"
11361 cat >conftest.
$ac_ext <<_ACEOF
11364 cat confdefs.h
>>conftest.
$ac_ext
11365 cat >>conftest.
$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11371 XOpenDisplay ("foo");
11376 rm -f conftest.
$ac_objext conftest
$ac_exeext
11377 if { (ac_try
="$ac_link"
11378 case "(($ac_try" in
11379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384 (eval "$ac_link") 2>conftest.er1
11386 grep -v '^ *+' conftest.er1 >conftest.err
11388 cat conftest.err >&5
11389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && {
11391 test -z "$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11393 } && test -s conftest$ac_exeext && {
11394 test "$cross_compiling" = yes ||
11395 $as_test_x conftest$ac_exeext
11397 xlinux_second_failure=no
11399 $as_echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 xlinux_second_failure=yes
11405 rm -rf conftest.dSYM
11406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11407 conftest$ac_exeext conftest.$ac_ext
11408 if test "${xlinux_second_failure}" = "yes"; then
11409 # If we get the same failure with -b, there is no use adding -b.
11410 # So take it out. This plays safe.
11411 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11412 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11413 CPPFLAGS="$OLD_CPPFLAGS"
11415 { $as_echo "$as_me:$LINENO: result: no" >&5
11416 $as_echo "no" >&6; }
11418 { $as_echo "$as_me:$LINENO: result: yes" >&5
11419 $as_echo "yes" >&6; }
11422 { $as_echo "$as_me:$LINENO: result: no" >&5
11423 $as_echo "no" >&6; }
11427 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11428 # header files included from there.
11429 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11430 $as_echo_n "checking for Xkb... " >&6; }
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 #include <X11/Xlib.h>
11438 #include <X11/XKBlib.h>
11442 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (ac_try="$ac_link"
11449 case "(($ac_try" in
11450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11451 *) ac_try_echo
=$ac_try;;
11453 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11454 $as_echo "$ac_try_echo") >&5
11455 (eval "$ac_link") 2>conftest.er1
11457 grep -v '^ *+' conftest.er1
>conftest.err
11459 cat conftest.err
>&5
11460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest
$ac_exeext && {
11465 test "$cross_compiling" = yes ||
11466 $as_test_x conftest
$ac_exeext
11470 $as_echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.
$ac_ext >&5
11476 rm -rf conftest.dSYM
11477 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11478 conftest
$ac_exeext conftest.
$ac_ext
11479 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11480 $as_echo "$emacs_xkb" >&6; }
11481 if test $emacs_xkb = yes; then
11483 cat >>confdefs.h
<<\_ACEOF
11484 #define HAVE_XKBGETKEYBOARD 1
11493 for ac_func
in XrmSetDatabase XScreenResourceString \
11494 XScreenNumberOfScreen XSetWMProtocols
11496 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11497 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11498 $as_echo_n "checking for $ac_func... " >&6; }
11499 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11500 $as_echo_n "(cached) " >&6
11502 cat >conftest.
$ac_ext <<_ACEOF
11505 cat confdefs.h
>>conftest.
$ac_ext
11506 cat >>conftest.
$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11510 #define $ac_func innocuous_$ac_func
11512 /* System header to define __stub macros and hopefully few prototypes,
11513 which can conflict with char $ac_func (); below.
11514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11515 <limits.h> exists even on freestanding compilers. */
11518 # include <limits.h>
11520 # include <assert.h>
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11532 /* The GNU C library defines this for functions which it implements
11533 to always fail with ENOSYS. Some functions are actually named
11534 something starting with __ and the normal name is an alias. */
11535 #if defined __stub_$ac_func || defined __stub___$ac_func
11542 return $ac_func ();
11547 rm -f conftest.
$ac_objext conftest
$ac_exeext
11548 if { (ac_try
="$ac_link"
11549 case "(($ac_try" in
11550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555 (eval "$ac_link") 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext && {
11565 test "$cross_compiling" = yes ||
11566 $as_test_x conftest$ac_exeext
11568 eval "$as_ac_var=yes"
11570 $as_echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 eval "$as_ac_var=no"
11576 rm -rf conftest.dSYM
11577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578 conftest$ac_exeext conftest.$ac_ext
11580 ac_res=`eval 'as_val=${'$as_ac_var'}
11581 $as_echo "$as_val"'`
11582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11583 $as_echo "$ac_res" >&6; }
11584 as_val=`eval 'as_val=${'$as_ac_var'}
11585 $as_echo "$as_val"'`
11586 if test "x$as_val" = x""yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11596 if test "${window_system}" = "x11"; then
11597 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11598 $as_echo_n "checking X11 version 6... " >&6; }
11599 if test "${emacs_cv_x11_version_6+set}" = set; then
11600 $as_echo_n "(cached) " >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 #include <X11/Xlib.h>
11612 #if XlibSpecificationRelease < 6
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11624 *) ac_try_echo
=$ac_try;;
11626 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11627 $as_echo "$ac_try_echo") >&5
11628 (eval "$ac_link") 2>conftest.er1
11630 grep -v '^ *+' conftest.er1
>conftest.err
11632 cat conftest.err
>&5
11633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest
$ac_exeext && {
11638 test "$cross_compiling" = yes ||
11639 $as_test_x conftest
$ac_exeext
11641 emacs_cv_x11_version_6
=yes
11643 $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.
$ac_ext >&5
11646 emacs_cv_x11_version_6
=no
11649 rm -rf conftest.dSYM
11650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11651 conftest
$ac_exeext conftest.
$ac_ext
11654 if test $emacs_cv_x11_version_6 = yes; then
11655 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11656 $as_echo "6 or newer" >&6; }
11658 cat >>confdefs.h
<<\_ACEOF
11659 #define HAVE_X11R6 1
11663 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11664 $as_echo "before 6" >&6; }
11669 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11671 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11672 if test "${with_rsvg}" != "no"; then
11673 RSVG_REQUIRED
=2.11.0
11674 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11679 # Extract the first word of "pkg-config", so it can be a program name with args.
11680 set dummy pkg-config
; ac_word
=$2
11681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11684 $as_echo_n "(cached) " >&6
11686 case $PKG_CONFIG in
11688 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11692 for as_dir
in $PATH
11695 test -z "$as_dir" && as_dir
=.
11696 for ac_exec_ext
in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11710 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11711 if test -n "$PKG_CONFIG"; then
11712 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11713 $as_echo "$PKG_CONFIG" >&6; }
11715 { $as_echo "$as_me:$LINENO: result: no" >&5
11716 $as_echo "no" >&6; }
11721 if test "$PKG_CONFIG" = "no" ; then
11724 PKG_CONFIG_MIN_VERSION
=0.9.0
11725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11726 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11727 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11729 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11730 { $as_echo "$as_me:$LINENO: result: yes" >&5
11731 $as_echo "yes" >&6; }
11734 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11735 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11736 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11737 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11738 $as_echo "$RSVG_CFLAGS" >&6; }
11740 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11741 $as_echo_n "checking RSVG_LIBS... " >&6; }
11742 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11743 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11744 $as_echo "$RSVG_LIBS" >&6; }
11746 { $as_echo "$as_me:$LINENO: result: no" >&5
11747 $as_echo "no" >&6; }
11750 ## If we have a custom action on failure, don't print errors, but
11751 ## do set a variable so people can do so.
11752 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11764 if test $succeeded = yes; then
11773 if test ".${RSVG_CFLAGS}" != "."; then
11776 cat >>confdefs.h
<<\_ACEOF
11777 #define HAVE_RSVG 1
11780 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11781 LIBS
="$RSVG_LIBS $LIBS"
11786 HAVE_IMAGEMAGICK
=no
11787 if test "${with_imagemagick}" != "no"; then
11788 IMAGEMAGICK_REQUIRED
=1
11789 IMAGEMAGICK_MODULE
="MagickWand >= $IMAGEMAGICK_REQUIRED"
11793 # Extract the first word of "pkg-config", so it can be a program name with args.
11794 set dummy pkg-config
; ac_word
=$2
11795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11798 $as_echo_n "(cached) " >&6
11800 case $PKG_CONFIG in
11802 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11806 for as_dir
in $PATH
11809 test -z "$as_dir" && as_dir
=.
11810 for ac_exec_ext
in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11824 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11825 if test -n "$PKG_CONFIG"; then
11826 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11827 $as_echo "$PKG_CONFIG" >&6; }
11829 { $as_echo "$as_me:$LINENO: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$PKG_CONFIG" = "no" ; then
11838 PKG_CONFIG_MIN_VERSION
=0.9.0
11839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11840 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11841 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11843 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11844 { $as_echo "$as_me:$LINENO: result: yes" >&5
11845 $as_echo "yes" >&6; }
11848 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11849 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11850 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11851 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11852 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11854 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11855 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11856 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11858 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11860 { $as_echo "$as_me:$LINENO: result: no" >&5
11861 $as_echo "no" >&6; }
11862 IMAGEMAGICK_CFLAGS
=""
11863 IMAGEMAGICK_LIBS
=""
11864 ## If we have a custom action on failure, don't print errors, but
11865 ## do set a variable so people can do so.
11866 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11878 if test $succeeded = yes; then
11887 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11888 HAVE_IMAGEMAGICK
=yes
11890 cat >>confdefs.h
<<\_ACEOF
11891 #define HAVE_IMAGEMAGICK 1
11894 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11895 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11901 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11904 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11909 # Extract the first word of "pkg-config", so it can be a program name with args.
11910 set dummy pkg-config
; ac_word
=$2
11911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11914 $as_echo_n "(cached) " >&6
11916 case $PKG_CONFIG in
11918 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11922 for as_dir
in $PATH
11925 test -z "$as_dir" && as_dir
=.
11926 for ac_exec_ext
in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11940 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11941 if test -n "$PKG_CONFIG"; then
11942 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11943 $as_echo "$PKG_CONFIG" >&6; }
11945 { $as_echo "$as_me:$LINENO: result: no" >&5
11946 $as_echo "no" >&6; }
11951 if test "$PKG_CONFIG" = "no" ; then
11954 PKG_CONFIG_MIN_VERSION
=0.9.0
11955 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11956 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11957 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11959 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11960 { $as_echo "$as_me:$LINENO: result: yes" >&5
11961 $as_echo "yes" >&6; }
11964 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11965 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11966 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11967 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11968 $as_echo "$GTK_CFLAGS" >&6; }
11970 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11971 $as_echo_n "checking GTK_LIBS... " >&6; }
11972 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11973 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11974 $as_echo "$GTK_LIBS" >&6; }
11976 { $as_echo "$as_me:$LINENO: result: no" >&5
11977 $as_echo "no" >&6; }
11980 ## If we have a custom action on failure, don't print errors, but
11981 ## do set a variable so people can do so.
11982 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11994 if test $succeeded = yes; then
12000 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
12001 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
12002 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
12003 { (exit 1); exit 1; }; }
12009 if test x
"$pkg_check_gtk" = xyes
; then
12013 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
12014 CFLAGS
="$CFLAGS $GTK_CFLAGS"
12015 LIBS
="$GTK_LIBS $LIBS"
12018 for ac_func
in gtk_main
12020 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12022 $as_echo_n "checking for $ac_func... " >&6; }
12023 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 $as_echo_n "(cached) " >&6
12026 cat >conftest.
$ac_ext <<_ACEOF
12029 cat confdefs.h
>>conftest.
$ac_ext
12030 cat >>conftest.
$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034 #define $ac_func innocuous_$ac_func
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12042 # include <limits.h>
12044 # include <assert.h>
12049 /* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined __stub_$ac_func || defined __stub___$ac_func
12066 return $ac_func ();
12071 rm -f conftest.
$ac_objext conftest
$ac_exeext
12072 if { (ac_try
="$ac_link"
12073 case "(($ac_try" in
12074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078 $as_echo "$ac_try_echo") >&5
12079 (eval "$ac_link") 2>conftest.er1
12081 grep -v '^ *+' conftest.er1 >conftest.err
12083 cat conftest.err >&5
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest$ac_exeext && {
12089 test "$cross_compiling" = yes ||
12090 $as_test_x conftest$ac_exeext
12092 eval "$as_ac_var=yes"
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 eval "$as_ac_var=no"
12100 rm -rf conftest.dSYM
12101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12102 conftest$ac_exeext conftest.$ac_ext
12104 ac_res=`eval 'as_val=${'$as_ac_var'}
12105 $as_echo "$as_val"'`
12106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12107 $as_echo "$ac_res" >&6; }
12108 as_val=`eval 'as_val=${'$as_ac_var'}
12109 $as_echo "$as_val"'`
12110 if test "x$as_val" = x""yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12118 if test "${GTK_COMPILES}" != "yes"; then
12119 if test "$USE_X_TOOLKIT" != "maybe"; then
12120 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12121 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12122 { (exit 1); exit 1; }; };
12127 cat >>confdefs.h <<\_ACEOF
12133 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12136 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12137 closing open displays. This is no problem if you just use
12138 one display, but if you use more than one and close one of them
12139 Emacs may crash." >&5
12140 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12141 closing open displays. This is no problem if you just use
12142 one display, but if you use more than one and close one of them
12143 Emacs may crash." >&2;}
12152 if test "${HAVE_GTK}" = "yes"; then
12154 if test "$with_toolkit_scroll_bars" != no; then
12155 with_toolkit_scroll_bars=yes
12158 HAVE_GTK_MULTIDISPLAY=no
12160 for ac_func in gdk_display_open
12162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12163 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12164 $as_echo_n "checking for $ac_func... " >&6; }
12165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12166 $as_echo_n "(cached) " >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176 #define $ac_func innocuous_$ac_func
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char $ac_func (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12184 # include <limits.h>
12186 # include <assert.h>
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12198 /* The GNU C library defines this for functions which it implements
12199 to always fail with ENOSYS. Some functions are actually named
12200 something starting with __ and the normal name is an alias. */
12201 #if defined __stub_$ac_func || defined __stub___$ac_func
12208 return $ac_func ();
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12217 *) ac_try_echo
=$ac_try;;
12219 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12220 $as_echo "$ac_try_echo") >&5
12221 (eval "$ac_link") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1
>conftest.err
12225 cat conftest.err
>&5
12226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest
$ac_exeext && {
12231 test "$cross_compiling" = yes ||
12232 $as_test_x conftest
$ac_exeext
12234 eval "$as_ac_var=yes"
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.
$ac_ext >&5
12239 eval "$as_ac_var=no"
12242 rm -rf conftest.dSYM
12243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12244 conftest
$ac_exeext conftest.
$ac_ext
12246 ac_res
=`eval 'as_val=${'$as_ac_var'}
12247 $as_echo "$as_val"'`
12248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12249 $as_echo "$ac_res" >&6; }
12250 as_val
=`eval 'as_val=${'$as_ac_var'}
12251 $as_echo "$as_val"'`
12252 if test "x$as_val" = x
""yes; then
12253 cat >>confdefs.h
<<_ACEOF
12254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12256 HAVE_GTK_MULTIDISPLAY
=yes
12260 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12262 cat >>confdefs.h
<<\_ACEOF
12263 #define HAVE_GTK_MULTIDISPLAY 1
12268 HAVE_GTK_FILE_SELECTION
=no
12269 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12270 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12271 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12272 $as_echo_n "(cached) " >&6
12274 cat >conftest.
$ac_ext <<_ACEOF
12277 cat confdefs.h
>>conftest.
$ac_ext
12278 cat >>conftest.
$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12281 #include <gtk/gtk.h>
12286 #ifndef GTK_TYPE_FILE_SELECTION
12287 (void) GTK_TYPE_FILE_SELECTION;
12294 rm -f conftest.
$ac_objext
12295 if { (ac_try
="$ac_compile"
12296 case "(($ac_try" in
12297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12301 $as_echo "$ac_try_echo") >&5
12302 (eval "$ac_compile") 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest.$ac_objext; then
12312 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12314 $as_echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12323 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12324 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then
12325 HAVE_GTK_FILE_SELECTION=yes
12327 HAVE_GTK_FILE_SELECTION=no
12330 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12332 for ac_func in gtk_file_selection_new
12334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12335 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12336 $as_echo_n "checking for $ac_func... " >&6; }
12337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12338 $as_echo_n "(cached) " >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12348 #define $ac_func innocuous_$ac_func
12350 /* System header to define __stub macros and hopefully few prototypes,
12351 which can conflict with char $ac_func (); below.
12352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12353 <limits.h> exists even on freestanding compilers. */
12356 # include <limits.h>
12358 # include <assert.h>
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined __stub_$ac_func || defined __stub___$ac_func
12380 return $ac_func ();
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12389 *) ac_try_echo
=$ac_try;;
12391 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12392 $as_echo "$ac_try_echo") >&5
12393 (eval "$ac_link") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1
>conftest.err
12397 cat conftest.err
>&5
12398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest
$ac_exeext && {
12403 test "$cross_compiling" = yes ||
12404 $as_test_x conftest
$ac_exeext
12406 eval "$as_ac_var=yes"
12408 $as_echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.
$ac_ext >&5
12411 eval "$as_ac_var=no"
12414 rm -rf conftest.dSYM
12415 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12416 conftest
$ac_exeext conftest.
$ac_ext
12418 ac_res
=`eval 'as_val=${'$as_ac_var'}
12419 $as_echo "$as_val"'`
12420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12421 $as_echo "$ac_res" >&6; }
12422 as_val
=`eval 'as_val=${'$as_ac_var'}
12423 $as_echo "$as_val"'`
12424 if test "x$as_val" = x
""yes; then
12425 cat >>confdefs.h
<<_ACEOF
12426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12428 HAVE_GTK_FILE_SELECTION
=yes
12430 HAVE_GTK_FILE_SELECTION
=no
12436 HAVE_GTK_FILE_CHOOSER
=no
12437 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12438 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12439 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12440 $as_echo_n "(cached) " >&6
12442 cat >conftest.
$ac_ext <<_ACEOF
12445 cat confdefs.h
>>conftest.
$ac_ext
12446 cat >>conftest.
$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 $ac_includes_default
12449 #include <gtk/gtk.h>
12454 #ifndef GTK_TYPE_FILE_CHOOSER
12455 (void) GTK_TYPE_FILE_CHOOSER;
12462 rm -f conftest.
$ac_objext
12463 if { (ac_try
="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12469 $as_echo "$ac_try_echo") >&5
12470 (eval "$ac_compile") 2>conftest.er1
12472 grep -v '^ *+' conftest.er1 >conftest.err
12474 cat conftest.err >&5
12475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } && {
12477 test -z "$ac_c_werror_flag" ||
12478 test ! -s conftest.err
12479 } && test -s conftest.$ac_objext; then
12480 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12482 $as_echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12491 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12492 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then
12493 HAVE_GTK_FILE_CHOOSER=yes
12495 HAVE_GTK_FILE_CHOOSER=no
12498 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12500 for ac_func in gtk_file_chooser_dialog_new
12502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12503 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12504 $as_echo_n "checking for $ac_func... " >&6; }
12505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12506 $as_echo_n "(cached) " >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12516 #define $ac_func innocuous_$ac_func
12518 /* System header to define __stub macros and hopefully few prototypes,
12519 which can conflict with char $ac_func (); below.
12520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12521 <limits.h> exists even on freestanding compilers. */
12524 # include <limits.h>
12526 # include <assert.h>
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12538 /* The GNU C library defines this for functions which it implements
12539 to always fail with ENOSYS. Some functions are actually named
12540 something starting with __ and the normal name is an alias. */
12541 #if defined __stub_$ac_func || defined __stub___$ac_func
12548 return $ac_func ();
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12557 *) ac_try_echo
=$ac_try;;
12559 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12560 $as_echo "$ac_try_echo") >&5
12561 (eval "$ac_link") 2>conftest.er1
12563 grep -v '^ *+' conftest.er1
>conftest.err
12565 cat conftest.err
>&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest
$ac_exeext && {
12571 test "$cross_compiling" = yes ||
12572 $as_test_x conftest
$ac_exeext
12574 eval "$as_ac_var=yes"
12576 $as_echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.
$ac_ext >&5
12579 eval "$as_ac_var=no"
12582 rm -rf conftest.dSYM
12583 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12584 conftest
$ac_exeext conftest.
$ac_ext
12586 ac_res
=`eval 'as_val=${'$as_ac_var'}
12587 $as_echo "$as_val"'`
12588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12589 $as_echo "$ac_res" >&6; }
12590 as_val
=`eval 'as_val=${'$as_ac_var'}
12591 $as_echo "$as_val"'`
12592 if test "x$as_val" = x
""yes; then
12593 cat >>confdefs.h
<<_ACEOF
12594 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596 HAVE_GTK_FILE_CHOOSER
=yes
12598 HAVE_GTK_FILE_CHOOSER
=no
12604 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12605 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12607 cat >>confdefs.h
<<\_ACEOF
12608 #define HAVE_GTK_FILE_BOTH 1
12613 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12614 HAVE_GTK_AND_PTHREAD
=no
12616 for ac_header
in pthread.h
12618 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12621 $as_echo_n "checking for $ac_header... " >&6; }
12622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12623 $as_echo_n "(cached) " >&6
12625 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12626 $as_echo "$as_val"'`
12627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12628 $as_echo "$ac_res" >&6; }
12630 # Is the header compilable?
12631 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12632 $as_echo_n "checking $ac_header usability... " >&6; }
12633 cat >conftest.
$ac_ext <<_ACEOF
12636 cat confdefs.h
>>conftest.
$ac_ext
12637 cat >>conftest.
$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 #include <$ac_header>
12642 rm -f conftest.
$ac_objext
12643 if { (ac_try
="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12649 $as_echo "$ac_try_echo") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12652 grep -v '^ *+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12660 ac_header_compiler=yes
12662 $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_header_compiler=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12670 $as_echo "$ac_header_compiler" >&6; }
12672 # Is the header present?
12673 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12674 $as_echo_n "checking $ac_header presence... " >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 #include <$ac_header>
12683 if { (ac_try="$ac_cpp conftest.$ac_ext"
12684 case "(($ac_try" in
12685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12686 *) ac_try_echo
=$ac_try;;
12688 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12689 $as_echo "$ac_try_echo") >&5
12690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12692 grep -v '^ *+' conftest.er1
>conftest.err
12694 cat conftest.err
>&5
12695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev
/null
&& {
12697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12700 ac_header_preproc
=yes
12702 $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.
$ac_ext >&5
12705 ac_header_preproc
=no
12708 rm -f conftest.err conftest.
$ac_ext
12709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 $as_echo "$ac_header_preproc" >&6; }
12712 # So? What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12716 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12719 ac_header_preproc
=yes
12722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12723 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12725 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12727 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12729 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12733 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12738 $as_echo_n "checking for $ac_header... " >&6; }
12739 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12740 $as_echo_n "(cached) " >&6
12742 eval "$as_ac_Header=\$ac_header_preproc"
12744 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12745 $as_echo "$as_val"'`
12746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12747 $as_echo "$ac_res" >&6; }
12750 as_val
=`eval 'as_val=${'$as_ac_Header'}
12751 $as_echo "$as_val"'`
12752 if test "x$as_val" = x
""yes; then
12753 cat >>confdefs.h
<<_ACEOF
12754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12761 if test "$ac_cv_header_pthread_h"; then
12762 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12763 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12764 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12767 ac_check_lib_save_LIBS
=$LIBS
12768 LIBS
="-lpthread $LIBS"
12769 cat >conftest.
$ac_ext <<_ACEOF
12772 cat confdefs.h
>>conftest.
$ac_ext
12773 cat >>conftest.
$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12782 char pthread_self ();
12786 return pthread_self ();
12791 rm -f conftest.
$ac_objext conftest
$ac_exeext
12792 if { (ac_try
="$ac_link"
12793 case "(($ac_try" in
12794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12798 $as_echo "$ac_try_echo") >&5
12799 (eval "$ac_link") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest$ac_exeext && {
12809 test "$cross_compiling" = yes ||
12810 $as_test_x conftest$ac_exeext
12812 ac_cv_lib_pthread_pthread_self=yes
12814 $as_echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ac_cv_lib_pthread_pthread_self=no
12820 rm -rf conftest.dSYM
12821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12826 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12827 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12828 HAVE_GTK_AND_PTHREAD=yes
12832 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12833 case "${canonical}" in
12835 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12838 cat >>confdefs.h <<\_ACEOF
12839 #define HAVE_GTK_AND_PTHREAD 1
12848 if test "${with_dbus}" = "yes"; then
12852 # Extract the first word of "pkg-config", so it can be a program name with args.
12853 set dummy pkg-config; ac_word=$2
12854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12855 $as_echo_n "checking for $ac_word... " >&6; }
12856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12857 $as_echo_n "(cached) " >&6
12859 case $PKG_CONFIG in
12861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12884 if test -n "$PKG_CONFIG"; then
12885 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12886 $as_echo "$PKG_CONFIG" >&6; }
12888 { $as_echo "$as_me:$LINENO: result: no" >&5
12889 $as_echo "no" >&6; }
12894 if test "$PKG_CONFIG" = "no" ; then
12897 PKG_CONFIG_MIN_VERSION=0.9.0
12898 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12899 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12900 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12902 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12903 { $as_echo "$as_me:$LINENO: result: yes" >&5
12904 $as_echo "yes" >&6; }
12907 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12908 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12909 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12910 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12911 $as_echo "$DBUS_CFLAGS" >&6; }
12913 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12914 $as_echo_n "checking DBUS_LIBS... " >&6; }
12915 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12916 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12917 $as_echo "$DBUS_LIBS" >&6; }
12919 { $as_echo "$as_me:$LINENO: result: no" >&5
12920 $as_echo "no" >&6; }
12923 ## If we have a custom action on failure, don't print errors, but
12924 ## do set a variable so people can do so.
12925 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12932 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12933 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12937 if test $succeeded = yes; then
12943 if test "$HAVE_DBUS" = yes; then
12944 LIBS="$LIBS $DBUS_LIBS"
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_DBUS 1
12951 for ac_func in dbus_watch_get_unix_fd
12953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12954 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12955 $as_echo_n "checking for $ac_func... " >&6; }
12956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12957 $as_echo_n "(cached) " >&6
12959 cat >conftest.$ac_ext <<_ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12967 #define $ac_func innocuous_$ac_func
12969 /* System header to define __stub macros and hopefully few prototypes,
12970 which can conflict with char $ac_func (); below.
12971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12972 <limits.h> exists even on freestanding compilers. */
12975 # include <limits.h>
12977 # include <assert.h>
12982 /* Override any GCC internal prototype to avoid an error.
12983 Use char because int might match the return type of a GCC
12984 builtin and then its argument prototype would still apply. */
12989 /* The GNU C library defines this for functions which it implements
12990 to always fail with ENOSYS. Some functions are actually named
12991 something starting with __ and the normal name is an alias. */
12992 #if defined __stub_$ac_func || defined __stub___$ac_func
12999 return $ac_func ();
13004 rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (ac_try="$ac_link"
13006 case "(($ac_try" in
13007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13008 *) ac_try_echo
=$ac_try;;
13010 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13011 $as_echo "$ac_try_echo") >&5
13012 (eval "$ac_link") 2>conftest.er1
13014 grep -v '^ *+' conftest.er1
>conftest.err
13016 cat conftest.err
>&5
13017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest
$ac_exeext && {
13022 test "$cross_compiling" = yes ||
13023 $as_test_x conftest
$ac_exeext
13025 eval "$as_ac_var=yes"
13027 $as_echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.
$ac_ext >&5
13030 eval "$as_ac_var=no"
13033 rm -rf conftest.dSYM
13034 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13035 conftest
$ac_exeext conftest.
$ac_ext
13037 ac_res
=`eval 'as_val=${'$as_ac_var'}
13038 $as_echo "$as_val"'`
13039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13040 $as_echo "$ac_res" >&6; }
13041 as_val
=`eval 'as_val=${'$as_ac_var'}
13042 $as_echo "$as_val"'`
13043 if test "x$as_val" = x
""yes; then
13044 cat >>confdefs.h
<<_ACEOF
13045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13051 DBUS_OBJ
=dbusbind.o
13057 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
13061 # Extract the first word of "pkg-config", so it can be a program name with args.
13062 set dummy pkg-config
; ac_word
=$2
13063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13066 $as_echo_n "(cached) " >&6
13068 case $PKG_CONFIG in
13070 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13074 for as_dir
in $PATH
13077 test -z "$as_dir" && as_dir
=.
13078 for ac_exec_ext
in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13092 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13093 if test -n "$PKG_CONFIG"; then
13094 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13095 $as_echo "$PKG_CONFIG" >&6; }
13097 { $as_echo "$as_me:$LINENO: result: no" >&5
13098 $as_echo "no" >&6; }
13103 if test "$PKG_CONFIG" = "no" ; then
13106 PKG_CONFIG_MIN_VERSION
=0.9.0
13107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13108 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13109 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13111 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13112 { $as_echo "$as_me:$LINENO: result: yes" >&5
13113 $as_echo "yes" >&6; }
13116 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13117 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13118 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13119 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13120 $as_echo "$GCONF_CFLAGS" >&6; }
13122 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13123 $as_echo_n "checking GCONF_LIBS... " >&6; }
13124 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13125 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13126 $as_echo "$GCONF_LIBS" >&6; }
13128 { $as_echo "$as_me:$LINENO: result: no" >&5
13129 $as_echo "no" >&6; }
13132 ## If we have a custom action on failure, don't print errors, but
13133 ## do set a variable so people can do so.
13134 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13146 if test $succeeded = yes; then
13152 if test "$HAVE_GCONF" = yes; then
13154 cat >>confdefs.h
<<\_ACEOF
13155 #define HAVE_GCONF 1
13163 if test "${with_selinux}" = "yes"; then
13164 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13165 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13166 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13167 $as_echo_n "(cached) " >&6
13169 ac_check_lib_save_LIBS
=$LIBS
13170 LIBS
="-lselinux $LIBS"
13171 cat >conftest.
$ac_ext <<_ACEOF
13174 cat confdefs.h
>>conftest.
$ac_ext
13175 cat >>conftest.
$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13184 char lgetfilecon ();
13188 return lgetfilecon ();
13193 rm -f conftest.
$ac_objext conftest
$ac_exeext
13194 if { (ac_try
="$ac_link"
13195 case "(($ac_try" in
13196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13200 $as_echo "$ac_try_echo") >&5
13201 (eval "$ac_link") 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && {
13208 test -z "$ac_c_werror_flag" ||
13209 test ! -s conftest.err
13210 } && test -s conftest$ac_exeext && {
13211 test "$cross_compiling" = yes ||
13212 $as_test_x conftest$ac_exeext
13214 ac_cv_lib_selinux_lgetfilecon=yes
13216 $as_echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ac_cv_lib_selinux_lgetfilecon=no
13222 rm -rf conftest.dSYM
13223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13228 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13229 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then
13230 HAVE_LIBSELINUX=yes
13235 if test "$HAVE_LIBSELINUX" = yes; then
13237 cat >>confdefs.h <<\_ACEOF
13238 #define HAVE_LIBSELINUX 1
13241 LIBSELINUX_LIBS=-lselinux
13248 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13249 if test "$with_xaw3d" != no; then
13250 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13251 $as_echo_n "checking for xaw3d... " >&6; }
13252 if test "${emacs_cv_xaw3d+set}" = set; then
13253 $as_echo_n "(cached) " >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13262 #include <X11/Intrinsic.h>
13263 #include <X11/Xaw3d/Simple.h>
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (ac_try="$ac_link"
13274 case "(($ac_try" in
13275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13276 *) ac_try_echo
=$ac_try;;
13278 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13279 $as_echo "$ac_try_echo") >&5
13280 (eval "$ac_link") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1
>conftest.err
13284 cat conftest.err
>&5
13285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest
$ac_exeext && {
13290 test "$cross_compiling" = yes ||
13291 $as_test_x conftest
$ac_exeext
13295 $as_echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.
$ac_ext >&5
13301 rm -rf conftest.dSYM
13302 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13303 conftest
$ac_exeext conftest.
$ac_ext
13309 if test $emacs_cv_xaw3d = yes; then
13310 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13311 $as_echo "yes; using Lucid toolkit" >&6; }
13312 USE_X_TOOLKIT
=LUCID
13316 cat >>confdefs.h
<<\_ACEOF
13317 #define HAVE_XAW3D 1
13321 { $as_echo "$as_me:$LINENO: result: no" >&5
13322 $as_echo "no" >&6; }
13323 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13324 $as_echo_n "checking for libXaw... " >&6; }
13325 if test "${emacs_cv_xaw+set}" = set; then
13326 $as_echo_n "(cached) " >&6
13328 cat >conftest.
$ac_ext <<_ACEOF
13331 cat confdefs.h
>>conftest.
$ac_ext
13332 cat >>conftest.
$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13335 #include <X11/Intrinsic.h>
13336 #include <X11/Xaw/Simple.h>
13345 rm -f conftest.
$ac_objext conftest
$ac_exeext
13346 if { (ac_try
="$ac_link"
13347 case "(($ac_try" in
13348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13349 *) ac_try_echo=$ac_try;;
13351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13352 $as_echo "$ac_try_echo") >&5
13353 (eval "$ac_link") 2>conftest.er1
13355 grep -v '^ *+' conftest.er1 >conftest.err
13357 cat conftest.err >&5
13358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_c_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext && {
13363 test "$cross_compiling" = yes ||
13364 $as_test_x conftest$ac_exeext
13368 $as_echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13374 rm -rf conftest.dSYM
13375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376 conftest$ac_exeext conftest.$ac_ext
13379 if test $emacs_cv_xaw = yes; then
13380 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13381 $as_echo "yes; using Lucid toolkit" >&6; }
13382 USE_X_TOOLKIT=LUCID
13384 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13385 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13386 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13387 { (exit 1); exit 1; }; }
13389 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13390 $as_echo "no; do not use toolkit by default" >&6; }
13396 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13399 if test "${USE_X_TOOLKIT}" != "none"; then
13400 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13401 $as_echo_n "checking X11 toolkit version... " >&6; }
13402 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13403 $as_echo_n "(cached) " >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <X11/Intrinsic.h>
13415 #if XtSpecificationRelease < 6
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (ac_try="$ac_link"
13425 case "(($ac_try" in
13426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13427 *) ac_try_echo
=$ac_try;;
13429 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13430 $as_echo "$ac_try_echo") >&5
13431 (eval "$ac_link") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1
>conftest.err
13435 cat conftest.err
>&5
13436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest
$ac_exeext && {
13441 test "$cross_compiling" = yes ||
13442 $as_test_x conftest
$ac_exeext
13444 emacs_cv_x11_toolkit_version_6
=yes
13446 $as_echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.
$ac_ext >&5
13449 emacs_cv_x11_toolkit_version_6
=no
13452 rm -rf conftest.dSYM
13453 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13454 conftest
$ac_exeext conftest.
$ac_ext
13457 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13458 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13459 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13460 $as_echo "6 or newer" >&6; }
13462 cat >>confdefs.h
<<\_ACEOF
13463 #define HAVE_X11XTR6 1
13466 LIBXTR6
="-lSM -lICE"
13468 ## Use libw.a along with X11R6 Xt.
13469 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13472 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13473 $as_echo "before 6" >&6; }
13477 if test x
$HAVE_X11XTR6 = xyes
; then
13478 LIBS
="-lXt -lSM -lICE $LIBS"
13483 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13484 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13485 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13486 $as_echo_n "(cached) " >&6
13488 ac_check_lib_save_LIBS
=$LIBS
13490 cat >conftest.
$ac_ext <<_ACEOF
13493 cat confdefs.h
>>conftest.
$ac_ext
13494 cat >>conftest.
$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13503 char XmuConvertStandardSelection ();
13507 return XmuConvertStandardSelection ();
13512 rm -f conftest.
$ac_objext conftest
$ac_exeext
13513 if { (ac_try
="$ac_link"
13514 case "(($ac_try" in
13515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13519 $as_echo "$ac_try_echo") >&5
13520 (eval "$ac_link") 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest$ac_exeext && {
13530 test "$cross_compiling" = yes ||
13531 $as_test_x conftest$ac_exeext
13533 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13535 $as_echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13541 rm -rf conftest.dSYM
13542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13546 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13547 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13548 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_LIBXMU 1
13557 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13563 ## These machines don't supply Xmu.
13565 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13570 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13571 if test "${HAVE_X11}" = "yes"; then
13572 if test "${USE_X_TOOLKIT}" != "none"; then
13574 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13575 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13576 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13577 $as_echo_n "(cached) " >&6
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lXext $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13594 char XShapeQueryExtension ();
13598 return XShapeQueryExtension ();
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13607 *) ac_try_echo
=$ac_try;;
13609 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611 (eval "$ac_link") 2>conftest.er1
13613 grep -v '^ *+' conftest.er1
>conftest.err
13615 cat conftest.err
>&5
13616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest
$ac_exeext && {
13621 test "$cross_compiling" = yes ||
13622 $as_test_x conftest
$ac_exeext
13624 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13626 $as_echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.
$ac_ext >&5
13629 ac_cv_lib_Xext_XShapeQueryExtension
=no
13632 rm -rf conftest.dSYM
13633 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13634 conftest
$ac_exeext conftest.
$ac_ext
13635 LIBS
=$ac_check_lib_save_LIBS
13637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13638 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13639 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then
13640 cat >>confdefs.h
<<_ACEOF
13641 #define HAVE_LIBXEXT 1
13644 LIBS
="-lXext $LIBS"
13652 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13653 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13654 $as_echo_n "checking for Motif version 2.1... " >&6; }
13655 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13656 $as_echo_n "(cached) " >&6
13658 cat >conftest.
$ac_ext <<_ACEOF
13661 cat confdefs.h
>>conftest.
$ac_ext
13662 cat >>conftest.
$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13668 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13671 Motif version prior to 2.1.
13677 rm -f conftest.
$ac_objext
13678 if { (ac_try
="$ac_compile"
13679 case "(($ac_try" in
13680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13684 $as_echo "$ac_try_echo") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest.$ac_objext; then
13695 emacs_cv_motif_version_2_1=yes
13697 $as_echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 emacs_cv_motif_version_2_1=no
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13706 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13707 if test $emacs_cv_motif_version_2_1 = yes; then
13708 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13709 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13710 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13711 $as_echo_n "(cached) " >&6
13713 ac_check_lib_save_LIBS=$LIBS
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 /* Override any GCC internal prototype to avoid an error.
13723 Use char because int might match the return type of a GCC
13724 builtin and then its argument prototype would still apply. */
13728 char XpCreateContext ();
13732 return XpCreateContext ();
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (ac_try="$ac_link"
13739 case "(($ac_try" in
13740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13741 *) ac_try_echo
=$ac_try;;
13743 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13744 $as_echo "$ac_try_echo") >&5
13745 (eval "$ac_link") 2>conftest.er1
13747 grep -v '^ *+' conftest.er1
>conftest.err
13749 cat conftest.err
>&5
13750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } && {
13752 test -z "$ac_c_werror_flag" ||
13753 test ! -s conftest.err
13754 } && test -s conftest
$ac_exeext && {
13755 test "$cross_compiling" = yes ||
13756 $as_test_x conftest
$ac_exeext
13758 ac_cv_lib_Xp_XpCreateContext
=yes
13760 $as_echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.
$ac_ext >&5
13763 ac_cv_lib_Xp_XpCreateContext
=no
13766 rm -rf conftest.dSYM
13767 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13768 conftest
$ac_exeext conftest.
$ac_ext
13769 LIBS
=$ac_check_lib_save_LIBS
13771 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13772 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13773 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then
13778 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13779 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13780 if test "${emacs_cv_lesstif+set}" = set; then
13781 $as_echo_n "(cached) " >&6
13783 # We put this in CFLAGS temporarily to precede other -I options
13784 # that might be in CFLAGS temporarily.
13785 # We put this in CPPFLAGS where it precedes the other -I options.
13786 OLD_CPPFLAGS
=$CPPFLAGS
13788 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13789 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13790 cat >conftest.
$ac_ext <<_ACEOF
13793 cat confdefs.h
>>conftest.
$ac_ext
13794 cat >>conftest.
$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13805 rm -f conftest.
$ac_objext
13806 if { (ac_try
="$ac_compile"
13807 case "(($ac_try" in
13808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13812 $as_echo "$ac_try_echo") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest.$ac_objext; then
13823 emacs_cv_lesstif=yes
13825 $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 emacs_cv_lesstif=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13834 $as_echo "$emacs_cv_lesstif" >&6; }
13835 if test $emacs_cv_lesstif = yes; then
13836 # Make sure this -I option remains in CPPFLAGS after it is set
13837 # back to REAL_CPPFLAGS.
13838 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13839 # have those other -I options anyway. Ultimately, having this
13840 # directory ultimately in CPPFLAGS will be enough.
13841 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13842 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13845 CPPFLAGS=$OLD_CPPFLAGS
13852 USE_TOOLKIT_SCROLL_BARS=no
13853 if test "${with_toolkit_scroll_bars}" != "no"; then
13854 if test "${USE_X_TOOLKIT}" != "none"; then
13855 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13856 cat >>confdefs.h <<\_ACEOF
13857 #define USE_TOOLKIT_SCROLL_BARS 1
13861 USE_TOOLKIT_SCROLL_BARS=yes
13862 elif test "${HAVE_XAW3D}" = "yes"; then
13863 cat >>confdefs.h <<\_ACEOF
13864 #define USE_TOOLKIT_SCROLL_BARS 1
13867 USE_TOOLKIT_SCROLL_BARS=yes
13869 elif test "${HAVE_GTK}" = "yes"; then
13870 cat >>confdefs.h <<\_ACEOF
13871 #define USE_TOOLKIT_SCROLL_BARS 1
13874 USE_TOOLKIT_SCROLL_BARS=yes
13875 elif test "${HAVE_NS}" = "yes"; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define USE_TOOLKIT_SCROLL_BARS 1
13880 USE_TOOLKIT_SCROLL_BARS=yes
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 #include <X11/Xlib.h>
13892 #include <X11/Xresource.h>
13901 rm -f conftest.$ac_objext
13902 if { (ac_try="$ac_compile"
13903 case "(($ac_try" in
13904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13905 *) ac_try_echo
=$ac_try;;
13907 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13908 $as_echo "$ac_try_echo") >&5
13909 (eval "$ac_compile") 2>conftest.er1
13911 grep -v '^ *+' conftest.er1
>conftest.err
13913 cat conftest.err
>&5
13914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } && {
13916 test -z "$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 } && test -s conftest.
$ac_objext; then
13921 cat >>confdefs.h
<<\_ACEOF
13926 $as_echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.
$ac_ext >&5
13932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13935 if test "${with_xim}" != "no"; then
13937 cat >>confdefs.h
<<\_ACEOF
13944 if test "${HAVE_XIM}" != "no"; then
13945 late_CFLAGS
=$CFLAGS
13946 if test "$GCC" = yes; then
13947 CFLAGS
="$CFLAGS --pedantic-errors"
13949 cat >conftest.
$ac_ext <<_ACEOF
13952 cat confdefs.h
>>conftest.
$ac_ext
13953 cat >>conftest.
$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13956 #include <X11/Xlib.h>
13957 #include <X11/Xresource.h>
13966 XPointer *client_data;
13968 /* If we're not using GCC, it's probably not XFree86, and this is
13969 probably right, but we can't use something like --pedantic-errors. */
13970 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13971 char*, XIMProc, XPointer*);
13973 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13979 rm -f conftest.
$ac_objext
13980 if { (ac_try
="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987 (eval "$ac_compile") 2>conftest.er1
13989 grep -v '^ *+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } && {
13994 test -z "$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 } && test -s conftest.$ac_objext; then
13997 emacs_cv_arg6_star=yes
13999 $as_echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 if test "$emacs_cv_arg6_star" = yes; then
14008 cat >>confdefs.h <<\_ACEOF
14009 #define XRegisterIMInstantiateCallback_arg6 XPointer*
14013 cat >>confdefs.h <<\_ACEOF
14014 #define XRegisterIMInstantiateCallback_arg6 XPointer
14018 CFLAGS=$late_CFLAGS
14021 ### Start of font-backend (under any platform) section.
14022 # (nothing here yet -- this is a placeholder)
14023 ### End of font-backend (under any platform) section.
14025 ### Start of font-backend (under X11) section.
14026 if test "${HAVE_X11}" = "yes"; then
14030 # Extract the first word of "pkg-config", so it can be a program name with args.
14031 set dummy pkg-config; ac_word=$2
14032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14033 $as_echo_n "checking for $ac_word... " >&6; }
14034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14035 $as_echo_n "(cached) " >&6
14037 case $PKG_CONFIG in
14039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
14048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14061 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14062 if test -n "$PKG_CONFIG"; then
14063 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14064 $as_echo "$PKG_CONFIG" >&6; }
14066 { $as_echo "$as_me:$LINENO: result: no" >&5
14067 $as_echo "no" >&6; }
14072 if test "$PKG_CONFIG" = "no" ; then
14075 PKG_CONFIG_MIN_VERSION=0.9.0
14076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14077 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
14078 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
14080 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
14081 { $as_echo "$as_me:$LINENO: result: yes" >&5
14082 $as_echo "yes" >&6; }
14085 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
14086 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
14087 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
14088 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
14089 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
14091 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
14092 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
14093 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
14094 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
14095 $as_echo "$FONTCONFIG_LIBS" >&6; }
14097 { $as_echo "$as_me:$LINENO: result: no" >&5
14098 $as_echo "no" >&6; }
14099 FONTCONFIG_CFLAGS=""
14101 ## If we have a custom action on failure, don't print errors, but
14102 ## do set a variable so people can do so.
14103 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14115 if test $succeeded = yes; then
14122 ## Use -lXft if available, unless `--with-xft=no
'.
14124 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14127 if test "x${with_xft}" != "xno"; then
14132 # Extract the first word of "pkg-config", so it can be a program name with args.
14133 set dummy pkg-config; ac_word=$2
14134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14137 $as_echo_n "(cached) " >&6
14139 case $PKG_CONFIG in
14141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14164 if test -n "$PKG_CONFIG"; then
14165 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14166 $as_echo "$PKG_CONFIG" >&6; }
14168 { $as_echo "$as_me:$LINENO: result: no" >&5
14169 $as_echo "no" >&6; }
14174 if test "$PKG_CONFIG" = "no" ; then
14177 PKG_CONFIG_MIN_VERSION=0.9.0
14178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14179 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14180 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14182 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14183 { $as_echo "$as_me:$LINENO: result: yes" >&5
14184 $as_echo "yes" >&6; }
14187 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14188 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14189 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14190 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14191 $as_echo "$XFT_CFLAGS" >&6; }
14193 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14194 $as_echo_n "checking XFT_LIBS... " >&6; }
14195 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14196 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14197 $as_echo "$XFT_LIBS" >&6; }
14199 { $as_echo "$as_me:$LINENO: result: no" >&5
14200 $as_echo "no" >&6; }
14203 ## If we have a custom action on failure, don't print errors
, but
14204 ## do set a variable so people can do so.
14205 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14212 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14213 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14217 if test $succeeded = yes; then
14223 ## Because xftfont.c uses XRenderQueryExtension, we also
14224 ## need to link to -lXrender.
14226 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14227 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14228 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14229 $as_echo_n "(cached) " >&6
14231 ac_check_lib_save_LIBS
=$LIBS
14232 LIBS
="-lXrender $LIBS"
14233 cat >conftest.
$ac_ext <<_ACEOF
14236 cat confdefs.h
>>conftest.
$ac_ext
14237 cat >>conftest.
$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14246 char XRenderQueryExtension ();
14250 return XRenderQueryExtension ();
14255 rm -f conftest.
$ac_objext conftest
$ac_exeext
14256 if { (ac_try
="$ac_link"
14257 case "(($ac_try" in
14258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14262 $as_echo "$ac_try_echo") >&5
14263 (eval "$ac_link") 2>conftest.er1
14265 grep -v '^ *+' conftest.er1 >conftest.err
14267 cat conftest.err >&5
14268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } && {
14270 test -z "$ac_c_werror_flag" ||
14271 test ! -s conftest.err
14272 } && test -s conftest$ac_exeext && {
14273 test "$cross_compiling" = yes ||
14274 $as_test_x conftest$ac_exeext
14276 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14278 $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 ac_cv_lib_Xrender_XRenderQueryExtension=no
14284 rm -rf conftest.dSYM
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286 conftest$ac_exeext conftest.$ac_ext
14287 LIBS=$ac_check_lib_save_LIBS
14289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14290 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14291 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
14295 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14296 OLD_CPPFLAGS="$CPPFLAGS"
14297 OLD_CFLAGS="$CFLAGS"
14299 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14300 CFLAGS="$CFLAGS $XFT_CFLAGS"
14301 XFT_LIBS="-lXrender $XFT_LIBS"
14302 LIBS="$XFT_LIBS $LIBS"
14303 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14304 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14305 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14306 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14307 $as_echo_n "(cached) " >&6
14309 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14310 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14312 # Is the header compilable?
14313 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14314 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 $ac_includes_default
14322 #include <X11/Xft/Xft.h>
14324 rm -f conftest.$ac_objext
14325 if { (ac_try="$ac_compile"
14326 case "(($ac_try" in
14327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14328 *) ac_try_echo
=$ac_try;;
14330 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14331 $as_echo "$ac_try_echo") >&5
14332 (eval "$ac_compile") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1
>conftest.err
14336 cat conftest.err
>&5
14337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest.
$ac_objext; then
14342 ac_header_compiler
=yes
14344 $as_echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.
$ac_ext >&5
14347 ac_header_compiler
=no
14350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14351 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14352 $as_echo "$ac_header_compiler" >&6; }
14354 # Is the header present?
14355 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14356 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14357 cat >conftest.
$ac_ext <<_ACEOF
14360 cat confdefs.h
>>conftest.
$ac_ext
14361 cat >>conftest.
$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 #include <X11/Xft/Xft.h>
14365 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14366 case "(($ac_try" in
14367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14371 $as_echo "$ac_try_echo") >&5
14372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev/null && {
14379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14382 ac_header_preproc=yes
14384 $as_echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_header_preproc=no
14390 rm -f conftest.err conftest.$ac_ext
14391 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14392 $as_echo "$ac_header_preproc" >&6; }
14394 # So? What about this header?
14395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14397 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14398 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14399 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14400 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14401 ac_header_preproc=yes
14404 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14405 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14406 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14407 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14408 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14409 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14410 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14411 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14412 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14413 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14414 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14415 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14419 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14420 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14421 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14422 $as_echo_n "(cached) " >&6
14424 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14427 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14430 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14431 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14432 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14433 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14434 $as_echo_n "(cached) " >&6
14436 ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-lXft $XFT_LIBS $LIBS"
14438 cat >conftest.$ac_ext <<_ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14445 /* Override any GCC internal prototype to avoid an error.
14446 Use char because int might match the return type of a GCC
14447 builtin and then its argument prototype would still apply. */
14451 char XftFontOpen ();
14455 return XftFontOpen ();
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (ac_try="$ac_link"
14462 case "(($ac_try" in
14463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14464 *) ac_try_echo
=$ac_try;;
14466 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14467 $as_echo "$ac_try_echo") >&5
14468 (eval "$ac_link") 2>conftest.er1
14470 grep -v '^ *+' conftest.er1
>conftest.err
14472 cat conftest.err
>&5
14473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } && {
14475 test -z "$ac_c_werror_flag" ||
14476 test ! -s conftest.err
14477 } && test -s conftest
$ac_exeext && {
14478 test "$cross_compiling" = yes ||
14479 $as_test_x conftest
$ac_exeext
14481 ac_cv_lib_Xft_XftFontOpen
=yes
14483 $as_echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.
$ac_ext >&5
14486 ac_cv_lib_Xft_XftFontOpen
=no
14489 rm -rf conftest.dSYM
14490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14491 conftest
$ac_exeext conftest.
$ac_ext
14492 LIBS
=$ac_check_lib_save_LIBS
14494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14495 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14496 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then
14504 if test "${HAVE_XFT}" = "yes"; then
14506 cat >>confdefs.h
<<\_ACEOF
14511 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14513 CPPFLAGS
="$OLD_CPPFLAGS"
14514 CFLAGS
="$OLD_CFLAGS"
14516 fi # "${HAVE_XFT}" = "yes"
14517 fi # "$HAVE_XFT" != no
14518 fi # "x${with_xft}" != "xno"
14520 if test "$HAVE_XFT" != "yes"; then
14526 ## We used to allow building with FreeType and without Xft.
14527 ## However, the ftx font backend driver is not in good shape.
14528 if test "${HAVE_XFT}" = "yes"; then
14535 if test "${HAVE_FREETYPE}" = "yes"; then
14537 cat >>confdefs.h
<<\_ACEOF
14538 #define HAVE_FREETYPE 1
14541 if test "${with_libotf}" != "no"; then
14545 # Extract the first word of "pkg-config", so it can be a program name with args.
14546 set dummy pkg-config
; ac_word
=$2
14547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14548 $as_echo_n "checking for $ac_word... " >&6; }
14549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14550 $as_echo_n "(cached) " >&6
14552 case $PKG_CONFIG in
14554 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14558 for as_dir
in $PATH
14561 test -z "$as_dir" && as_dir
=.
14562 for ac_exec_ext
in '' $ac_executable_extensions; do
14563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14564 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14576 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14577 if test -n "$PKG_CONFIG"; then
14578 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14579 $as_echo "$PKG_CONFIG" >&6; }
14581 { $as_echo "$as_me:$LINENO: result: no" >&5
14582 $as_echo "no" >&6; }
14587 if test "$PKG_CONFIG" = "no" ; then
14590 PKG_CONFIG_MIN_VERSION
=0.9.0
14591 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14592 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14593 $as_echo_n "checking for libotf... " >&6; }
14595 if $PKG_CONFIG --exists "libotf" 2>&5; then
14596 { $as_echo "$as_me:$LINENO: result: yes" >&5
14597 $as_echo "yes" >&6; }
14600 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14601 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14602 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14603 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14604 $as_echo "$LIBOTF_CFLAGS" >&6; }
14606 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14607 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14608 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14609 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14610 $as_echo "$LIBOTF_LIBS" >&6; }
14612 { $as_echo "$as_me:$LINENO: result: no" >&5
14613 $as_echo "no" >&6; }
14616 ## If we have a custom action on failure, don't print errors, but
14617 ## do set a variable so people can do so.
14618 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14625 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14626 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14630 if test $succeeded = yes; then
14636 if test "$HAVE_LIBOTF" = "yes"; then
14638 cat >>confdefs.h
<<\_ACEOF
14639 #define HAVE_LIBOTF 1
14642 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14643 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14644 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14645 $as_echo_n "(cached) " >&6
14647 ac_check_lib_save_LIBS
=$LIBS
14649 cat >conftest.
$ac_ext <<_ACEOF
14652 cat confdefs.h
>>conftest.
$ac_ext
14653 cat >>conftest.
$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14662 char OTF_get_variation_glyphs ();
14666 return OTF_get_variation_glyphs ();
14671 rm -f conftest.
$ac_objext conftest
$ac_exeext
14672 if { (ac_try
="$ac_link"
14673 case "(($ac_try" in
14674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14678 $as_echo "$ac_try_echo") >&5
14679 (eval "$ac_link") 2>conftest.er1
14681 grep -v '^ *+' conftest.er1 >conftest.err
14683 cat conftest.err >&5
14684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } && {
14686 test -z "$ac_c_werror_flag" ||
14687 test ! -s conftest.err
14688 } && test -s conftest$ac_exeext && {
14689 test "$cross_compiling" = yes ||
14690 $as_test_x conftest$ac_exeext
14692 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14694 $as_echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14700 rm -rf conftest.dSYM
14701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14702 conftest$ac_exeext conftest.$ac_ext
14703 LIBS=$ac_check_lib_save_LIBS
14705 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14706 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14707 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14708 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14710 HAVE_OTF_GET_VARIATION_GLYPHS=no
14713 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14715 cat >>confdefs.h <<\_ACEOF
14716 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14725 if test "${HAVE_LIBOTF}" = yes; then
14726 if test "${with_m17n_flt}" != "no"; then
14730 # Extract the first word of "pkg-config", so it can be a program name with args.
14731 set dummy pkg-config; ac_word=$2
14732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14733 $as_echo_n "checking for $ac_word... " >&6; }
14734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14735 $as_echo_n "(cached) " >&6
14737 case $PKG_CONFIG in
14739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14762 if test -n "$PKG_CONFIG"; then
14763 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14764 $as_echo "$PKG_CONFIG" >&6; }
14766 { $as_echo "$as_me:$LINENO: result: no" >&5
14767 $as_echo "no" >&6; }
14772 if test "$PKG_CONFIG" = "no" ; then
14775 PKG_CONFIG_MIN_VERSION=0.9.0
14776 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14777 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14778 $as_echo_n "checking for m17n-flt... " >&6; }
14780 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14781 { $as_echo "$as_me:$LINENO: result: yes" >&5
14782 $as_echo "yes" >&6; }
14785 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14786 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14787 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14788 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14789 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14791 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14792 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14793 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14794 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14795 $as_echo "$M17N_FLT_LIBS" >&6; }
14797 { $as_echo "$as_me:$LINENO: result: no" >&5
14798 $as_echo "no" >&6; }
14801 ## If we have a custom action on failure, don't print errors, but
14802 ## do set a variable so people can do so.
14803 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14815 if test $succeeded = yes; then
14821 if test "$HAVE_M17N_FLT" = "yes"; then
14823 cat >>confdefs.h <<\_ACEOF
14824 #define HAVE_M17N_FLT 1
14838 if test "$HAVE_XFT" = "yes"; then
14839 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14840 elif test "$HAVE_FREETYPE" = "yes"; then
14841 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14845 ### End of font-backend (under X11) section.
14856 ### Use -lXpm if available, unless `--with-xpm=no
'.
14859 if test "${HAVE_X11}" = "yes"; then
14860 if test "${with_xpm}" != "no"; then
14861 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14862 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14863 $as_echo_n "checking for X11/xpm.h... " >&6; }
14864 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14865 $as_echo_n "(cached) " >&6
14867 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14868 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14870 # Is the header compilable?
14871 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14872 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14880 #include <X11/xpm.h>
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889 $as_echo "$ac_try_echo") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14892 grep -v '^
*+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest.$ac_objext; then
14900 ac_header_compiler=yes
14902 $as_echo "$as_me: failed program was:" >&5
14903 sed 's
/^
/|
/' conftest.$ac_ext >&5
14905 ac_header_compiler=no
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14910 $as_echo "$ac_header_compiler" >&6; }
14912 # Is the header present?
14913 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14914 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14915 cat >conftest.$ac_ext <<_ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <X11/xpm.h>
14923 if { (ac_try="$ac_cpp conftest.$ac_ext"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14932 grep -v '^
*+' conftest.er1 >conftest.err
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } >/dev/null && {
14937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14940 ac_header_preproc=yes
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's
/^
/|
/' conftest.$ac_ext >&5
14945 ac_header_preproc=no
14948 rm -f conftest.err conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 $as_echo "$ac_header_preproc" >&6; }
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14955 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14956 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14958 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14959 ac_header_preproc=yes
14962 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14963 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14964 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14965 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14966 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14967 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14968 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14969 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14971 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14972 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14973 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14977 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14978 $as_echo_n "checking for X11/xpm.h... " >&6; }
14979 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14980 $as_echo_n "(cached) " >&6
14982 ac_cv_header_X11_xpm_h=$ac_header_preproc
14984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14985 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14988 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
14989 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14990 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14991 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14992 $as_echo_n "(cached) " >&6
14994 ac_check_lib_save_LIBS=$LIBS
14995 LIBS="-lXpm -lX11 $LIBS"
14996 cat >conftest.$ac_ext <<_ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15003 /* Override any GCC internal prototype to avoid an error.
15004 Use char because int might match the return type of a GCC
15005 builtin and then its argument prototype would still apply. */
15009 char XpmReadFileToPixmap ();
15013 return XpmReadFileToPixmap ();
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (ac_try="$ac_link"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15025 $as_echo "$ac_try_echo") >&5
15026 (eval "$ac_link") 2>conftest.er1
15028 grep -v '^
*+' conftest.er1 >conftest.err
15030 cat conftest.err >&5
15031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest$ac_exeext && {
15036 test "$cross_compiling" = yes ||
15037 $as_test_x conftest$ac_exeext
15039 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
15041 $as_echo "$as_me: failed program was:" >&5
15042 sed 's
/^
/|
/' conftest.$ac_ext >&5
15044 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
15047 rm -rf conftest.dSYM
15048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
15053 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
15054 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
15061 if test "${HAVE_XPM}" = "yes"; then
15062 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
15063 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include "X11/xpm.h"
15071 #ifndef XpmReturnAllocPixels
15072 no_return_alloc_pixels
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
15085 if test "${HAVE_XPM}" = "yes"; then
15086 { $as_echo "$as_me:$LINENO: result: yes" >&5
15087 $as_echo "yes" >&6; }
15089 { $as_echo "$as_me:$LINENO: result: no" >&5
15090 $as_echo "no" >&6; }
15095 if test "${HAVE_XPM}" = "yes"; then
15097 cat >>confdefs.h <<\_ACEOF
15106 ### Use -ljpeg if available, unless `--with-jpeg=no'.
15109 if test "${HAVE_X11}" = "yes"; then
15110 if test "${with_jpeg}" != "no"; then
15111 if test "${ac_cv_header_jerror_h+set}" = set; then
15112 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15113 $as_echo_n "checking for jerror.h... " >&6; }
15114 if test "${ac_cv_header_jerror_h+set}" = set; then
15115 $as_echo_n "(cached) " >&6
15117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15118 $as_echo "$ac_cv_header_jerror_h" >&6; }
15120 # Is the header compilable?
15121 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15122 $as_echo_n "checking jerror.h usability... " >&6; }
15123 cat >conftest.
$ac_ext <<_ACEOF
15126 cat confdefs.h
>>conftest.
$ac_ext
15127 cat >>conftest.
$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 $ac_includes_default
15130 #include <jerror.h>
15132 rm -f conftest.
$ac_objext
15133 if { (ac_try
="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15139 $as_echo "$ac_try_echo") >&5
15140 (eval "$ac_compile") 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest.$ac_objext; then
15150 ac_header_compiler=yes
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_header_compiler=no
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15160 $as_echo "$ac_header_compiler" >&6; }
15162 # Is the header present?
15163 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15164 $as_echo_n "checking jerror.h presence... " >&6; }
15165 cat >conftest.$ac_ext <<_ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15171 #include <jerror.h>
15173 if { (ac_try="$ac_cpp conftest.$ac_ext"
15174 case "(($ac_try" in
15175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15176 *) ac_try_echo
=$ac_try;;
15178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15179 $as_echo "$ac_try_echo") >&5
15180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15182 grep -v '^ *+' conftest.er1
>conftest.err
15184 cat conftest.err
>&5
15185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } >/dev
/null
&& {
15187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15188 test ! -s conftest.err
15190 ac_header_preproc
=yes
15192 $as_echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.
$ac_ext >&5
15195 ac_header_preproc
=no
15198 rm -f conftest.err conftest.
$ac_ext
15199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15200 $as_echo "$ac_header_preproc" >&6; }
15202 # So? What about this header?
15203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15205 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15206 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15207 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15208 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15209 ac_header_preproc
=yes
15212 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15213 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15214 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15215 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15216 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15217 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15218 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15219 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15220 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15221 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15222 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15223 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15227 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15228 $as_echo_n "checking for jerror.h... " >&6; }
15229 if test "${ac_cv_header_jerror_h+set}" = set; then
15230 $as_echo_n "(cached) " >&6
15232 ac_cv_header_jerror_h
=$ac_header_preproc
15234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15235 $as_echo "$ac_cv_header_jerror_h" >&6; }
15238 if test "x$ac_cv_header_jerror_h" = x
""yes; then
15239 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15240 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15241 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15242 $as_echo_n "(cached) " >&6
15244 ac_check_lib_save_LIBS
=$LIBS
15245 LIBS
="-ljpeg $LIBS"
15246 cat >conftest.
$ac_ext <<_ACEOF
15249 cat confdefs.h
>>conftest.
$ac_ext
15250 cat >>conftest.
$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15253 /* Override any GCC internal prototype to avoid an error.
15254 Use char because int might match the return type of a GCC
15255 builtin and then its argument prototype would still apply. */
15259 char jpeg_destroy_compress ();
15263 return jpeg_destroy_compress ();
15268 rm -f conftest.
$ac_objext conftest
$ac_exeext
15269 if { (ac_try
="$ac_link"
15270 case "(($ac_try" in
15271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15275 $as_echo "$ac_try_echo") >&5
15276 (eval "$ac_link") 2>conftest.er1
15278 grep -v '^ *+' conftest.er1 >conftest.err
15280 cat conftest.err >&5
15281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } && {
15283 test -z "$ac_c_werror_flag" ||
15284 test ! -s conftest.err
15285 } && test -s conftest$ac_exeext && {
15286 test "$cross_compiling" = yes ||
15287 $as_test_x conftest$ac_exeext
15289 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15291 $as_echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15297 rm -rf conftest.dSYM
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15302 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15303 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15304 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
15314 if test "${HAVE_JPEG}" = "yes"; then
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_JPEG 1
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 #include <jpeglib.h>
15326 version=JPEG_LIB_VERSION
15329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15330 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_JPEG 1
15336 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15337 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15343 if test "${HAVE_JPEG}" = "yes"; then
15349 ### Use -lpng if available, unless `--with-png=no
'.
15352 if test "${HAVE_X11}" = "yes"; then
15353 if test "${with_png}" != "no"; then
15354 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15355 # in /usr/include/libpng.
15358 for ac_header in png.h libpng/png.h
15360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 $as_echo_n "checking for $ac_header... " >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 $as_echo_n "(cached) " >&6
15367 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15368 $as_echo "$as_val"'`
15369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15370 $as_echo "$ac_res" >&6; }
15372 # Is the header compilable?
15373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374 $as_echo_n "checking $ac_header usability... " >&6; }
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 $ac_includes_default
15382 #include <$ac_header>
15384 rm -f conftest.$ac_objext
15385 if { (ac_try="$ac_compile"
15386 case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15391 $as_echo "$ac_try_echo") >&5
15392 (eval "$ac_compile") 2>conftest.er1
15394 grep -v '^
*+' conftest.er1 >conftest.err
15396 cat conftest.err >&5
15397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } && {
15399 test -z "$ac_c_werror_flag" ||
15400 test ! -s conftest.err
15401 } && test -s conftest.$ac_objext; then
15402 ac_header_compiler=yes
15404 $as_echo "$as_me: failed program was:" >&5
15405 sed 's
/^
/|
/' conftest.$ac_ext >&5
15407 ac_header_compiler=no
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15412 $as_echo "$ac_header_compiler" >&6; }
15414 # Is the header present?
15415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15416 $as_echo_n "checking $ac_header presence... " >&6; }
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <$ac_header>
15425 if { (ac_try="$ac_cpp conftest.$ac_ext"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15431 $as_echo "$ac_try_echo") >&5
15432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15434 grep -v '^
*+' conftest.er1 >conftest.err
15436 cat conftest.err >&5
15437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } >/dev/null && {
15439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15440 test ! -s conftest.err
15442 ac_header_preproc=yes
15444 $as_echo "$as_me: failed program was:" >&5
15445 sed 's
/^
/|
/' conftest.$ac_ext >&5
15447 ac_header_preproc=no
15450 rm -f conftest.err conftest.$ac_ext
15451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15452 $as_echo "$ac_header_preproc" >&6; }
15454 # So? What about this header?
15455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15460 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15461 ac_header_preproc=yes
15464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15473 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 $as_echo_n "checking for $ac_header... " >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482 $as_echo_n "(cached) " >&6
15484 eval "$as_ac_Header=\$ac_header_preproc"
15486 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15487 $as_echo "$as_val"'`
15488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15489 $as_echo "$ac_res" >&6; }
15492 as_val=`eval 'as_val
=${'$as_ac_Header'}
15493 $as_echo "$as_val"'`
15494 if test "x$as_val" = x""yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15503 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15504 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15505 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15506 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15507 $as_echo_n "(cached) " >&6
15509 ac_check_lib_save_LIBS=$LIBS
15510 LIBS="-lpng -lz -lm $LIBS"
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15518 /* Override any GCC internal prototype to avoid an error.
15519 Use char because int might match the return type of a GCC
15520 builtin and then its argument prototype would still apply. */
15524 char png_get_channels ();
15528 return png_get_channels ();
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (ac_try="$ac_link"
15535 case "(($ac_try" in
15536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537 *) ac_try_echo=$ac_try;;
15539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15540 $as_echo "$ac_try_echo") >&5
15541 (eval "$ac_link") 2>conftest.er1
15543 grep -v '^
*+' conftest.er1 >conftest.err
15545 cat conftest.err >&5
15546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } && {
15548 test -z "$ac_c_werror_flag" ||
15549 test ! -s conftest.err
15550 } && test -s conftest$ac_exeext && {
15551 test "$cross_compiling" = yes ||
15552 $as_test_x conftest$ac_exeext
15554 ac_cv_lib_png_png_get_channels=yes
15556 $as_echo "$as_me: failed program was:" >&5
15557 sed 's
/^
/|
/' conftest.$ac_ext >&5
15559 ac_cv_lib_png_png_get_channels=no
15562 rm -rf conftest.dSYM
15563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15568 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15569 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15576 if test "${HAVE_PNG}" = "yes"; then
15578 cat >>confdefs.h <<\_ACEOF
15582 LIBPNG="-lpng -lz -lm"
15587 ### Use -ltiff if available, unless `--with-tiff=no'.
15590 if test "${HAVE_X11}" = "yes"; then
15591 if test "${with_tiff}" != "no"; then
15592 if test "${ac_cv_header_tiffio_h+set}" = set; then
15593 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15594 $as_echo_n "checking for tiffio.h... " >&6; }
15595 if test "${ac_cv_header_tiffio_h+set}" = set; then
15596 $as_echo_n "(cached) " >&6
15598 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15599 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15601 # Is the header compilable?
15602 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15603 $as_echo_n "checking tiffio.h usability... " >&6; }
15604 cat >conftest.
$ac_ext <<_ACEOF
15607 cat confdefs.h
>>conftest.
$ac_ext
15608 cat >>conftest.
$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 $ac_includes_default
15611 #include <tiffio.h>
15613 rm -f conftest.
$ac_objext
15614 if { (ac_try
="$ac_compile"
15615 case "(($ac_try" in
15616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15620 $as_echo "$ac_try_echo") >&5
15621 (eval "$ac_compile") 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } && {
15628 test -z "$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 } && test -s conftest.$ac_objext; then
15631 ac_header_compiler=yes
15633 $as_echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_header_compiler=no
15639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15641 $as_echo "$ac_header_compiler" >&6; }
15643 # Is the header present?
15644 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15645 $as_echo_n "checking tiffio.h presence... " >&6; }
15646 cat >conftest.$ac_ext <<_ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 #include <tiffio.h>
15654 if { (ac_try="$ac_cpp conftest.$ac_ext"
15655 case "(($ac_try" in
15656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15657 *) ac_try_echo
=$ac_try;;
15659 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15660 $as_echo "$ac_try_echo") >&5
15661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1
>conftest.err
15665 cat conftest.err
>&5
15666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } >/dev
/null
&& {
15668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15671 ac_header_preproc
=yes
15673 $as_echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.
$ac_ext >&5
15676 ac_header_preproc
=no
15679 rm -f conftest.err conftest.
$ac_ext
15680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15681 $as_echo "$ac_header_preproc" >&6; }
15683 # So? What about this header?
15684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15686 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15687 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15688 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15689 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15690 ac_header_preproc
=yes
15693 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15694 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15695 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15696 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15697 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15698 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15699 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15700 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15701 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15702 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15703 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15704 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15708 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15709 $as_echo_n "checking for tiffio.h... " >&6; }
15710 if test "${ac_cv_header_tiffio_h+set}" = set; then
15711 $as_echo_n "(cached) " >&6
15713 ac_cv_header_tiffio_h
=$ac_header_preproc
15715 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15716 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15719 if test "x$ac_cv_header_tiffio_h" = x
""yes; then
15721 # At least one tiff package requires the jpeg library.
15722 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15723 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15724 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15725 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15726 $as_echo_n "(cached) " >&6
15728 ac_check_lib_save_LIBS
=$LIBS
15729 LIBS
="-ltiff $tifflibs $LIBS"
15730 cat >conftest.
$ac_ext <<_ACEOF
15733 cat confdefs.h
>>conftest.
$ac_ext
15734 cat >>conftest.
$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15737 /* Override any GCC internal prototype to avoid an error.
15738 Use char because int might match the return type of a GCC
15739 builtin and then its argument prototype would still apply. */
15743 char TIFFGetVersion ();
15747 return TIFFGetVersion ();
15752 rm -f conftest.
$ac_objext conftest
$ac_exeext
15753 if { (ac_try
="$ac_link"
15754 case "(($ac_try" in
15755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760 (eval "$ac_link") 2>conftest.er1
15762 grep -v '^ *+' conftest.er1 >conftest.err
15764 cat conftest.err >&5
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest$ac_exeext && {
15770 test "$cross_compiling" = yes ||
15771 $as_test_x conftest$ac_exeext
15773 ac_cv_lib_tiff_TIFFGetVersion=yes
15775 $as_echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_lib_tiff_TIFFGetVersion=no
15781 rm -rf conftest.dSYM
15782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15783 conftest$ac_exeext conftest.$ac_ext
15784 LIBS=$ac_check_lib_save_LIBS
15786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15787 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15788 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15797 if test "${HAVE_TIFF}" = "yes"; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_TIFF 1
15808 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15811 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15812 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15813 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15814 $as_echo_n "checking for gif_lib.h... " >&6; }
15815 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15816 $as_echo_n "(cached) " >&6
15818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15819 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15821 # Is the header compilable?
15822 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15823 $as_echo_n "checking gif_lib.h usability... " >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 $ac_includes_default
15831 #include <gif_lib.h>
15833 rm -f conftest.$ac_objext
15834 if { (ac_try="$ac_compile"
15835 case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15840 $as_echo "$ac_try_echo") >&5
15841 (eval "$ac_compile") 2>conftest.er1
15843 grep -v '^
*+' conftest.er1 >conftest.err
15845 cat conftest.err >&5
15846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } && {
15848 test -z "$ac_c_werror_flag" ||
15849 test ! -s conftest.err
15850 } && test -s conftest.$ac_objext; then
15851 ac_header_compiler=yes
15853 $as_echo "$as_me: failed program was:" >&5
15854 sed 's
/^
/|
/' conftest.$ac_ext >&5
15856 ac_header_compiler=no
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15861 $as_echo "$ac_header_compiler" >&6; }
15863 # Is the header present?
15864 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15865 $as_echo_n "checking gif_lib.h presence... " >&6; }
15866 cat >conftest.$ac_ext <<_ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 #include <gif_lib.h>
15874 if { (ac_try="$ac_cpp conftest.$ac_ext"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15880 $as_echo "$ac_try_echo") >&5
15881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15883 grep -v '^
*+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } >/dev/null && {
15888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15891 ac_header_preproc=yes
15893 $as_echo "$as_me: failed program was:" >&5
15894 sed 's
/^
/|
/' conftest.$ac_ext >&5
15896 ac_header_preproc=no
15899 rm -f conftest.err conftest.$ac_ext
15900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15901 $as_echo "$ac_header_preproc" >&6; }
15903 # So? What about this header?
15904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15906 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15907 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15908 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15909 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15910 ac_header_preproc=yes
15913 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15914 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15915 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15916 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15917 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15918 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15919 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15920 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15921 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15922 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15923 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15924 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15928 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15929 $as_echo_n "checking for gif_lib.h... " >&6; }
15930 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15931 $as_echo_n "(cached) " >&6
15933 ac_cv_header_gif_lib_h=$ac_header_preproc
15935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15936 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15939 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
15940 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15941 # Earlier versions can crash Emacs.
15942 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15943 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15944 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15945 $as_echo_n "(cached) " >&6
15947 ac_check_lib_save_LIBS=$LIBS
15949 cat >conftest.$ac_ext <<_ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15956 /* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15962 char EGifPutExtensionLast ();
15966 return EGifPutExtensionLast ();
15971 rm -f conftest.$ac_objext conftest$ac_exeext
15972 if { (ac_try="$ac_link"
15973 case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978 $as_echo "$ac_try_echo") >&5
15979 (eval "$ac_link") 2>conftest.er1
15981 grep -v '^
*+' conftest.er1 >conftest.err
15983 cat conftest.err >&5
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest$ac_exeext && {
15989 test "$cross_compiling" = yes ||
15990 $as_test_x conftest$ac_exeext
15992 ac_cv_lib_gif_EGifPutExtensionLast=yes
15994 $as_echo "$as_me: failed program was:" >&5
15995 sed 's
/^
/|
/' conftest.$ac_ext >&5
15997 ac_cv_lib_gif_EGifPutExtensionLast=no
16000 rm -rf conftest.dSYM
16001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16002 conftest$ac_exeext conftest.$ac_ext
16003 LIBS=$ac_check_lib_save_LIBS
16005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
16006 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
16007 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
16017 if test "$HAVE_GIF" = yes; then
16019 elif test "$HAVE_GIF" = maybe; then
16020 # If gif_lib.h but no libgif, try libungif.
16021 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
16022 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
16023 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
16024 $as_echo_n "(cached) " >&6
16026 ac_check_lib_save_LIBS=$LIBS
16027 LIBS="-lungif $LIBS"
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16035 /* Override any GCC internal prototype to avoid an error.
16036 Use char because int might match the return type of a GCC
16037 builtin and then its argument prototype would still apply. */
16041 char EGifPutExtensionLast ();
16045 return EGifPutExtensionLast ();
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (ac_try="$ac_link"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16057 $as_echo "$ac_try_echo") >&5
16058 (eval "$ac_link") 2>conftest.er1
16060 grep -v '^
*+' conftest.er1 >conftest.err
16062 cat conftest.err >&5
16063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } && {
16065 test -z "$ac_c_werror_flag" ||
16066 test ! -s conftest.err
16067 } && test -s conftest$ac_exeext && {
16068 test "$cross_compiling" = yes ||
16069 $as_test_x conftest$ac_exeext
16071 ac_cv_lib_ungif_EGifPutExtensionLast=yes
16073 $as_echo "$as_me: failed program was:" >&5
16074 sed 's
/^
/|
/' conftest.$ac_ext >&5
16076 ac_cv_lib_ungif_EGifPutExtensionLast=no
16079 rm -rf conftest.dSYM
16080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16081 conftest$ac_exeext conftest.$ac_ext
16082 LIBS=$ac_check_lib_save_LIBS
16084 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
16085 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
16086 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
16092 test "$HAVE_GIF" = yes && LIBGIF=-lungif
16095 if test "${HAVE_GIF}" = "yes"; then
16097 cat >>confdefs.h <<\_ACEOF
16105 if test "${HAVE_X11}" = "yes"; then
16108 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
16109 MISSING="libXpm" && WITH_NO="--with-xpm=no"
16110 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
16111 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
16112 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16113 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16114 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16115 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16116 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16117 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16119 if test "X${MISSING}" != X; then
16120 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16122 Maybe some development libraries/packages are missing?
16123 If you don't want to link with them give
16125 as options to configure
" >&5
16126 $as_echo "$as_me: error
: The following required libraries were not found
:
16128 Maybe some development libraries
/packages are missing?
16129 If you don
't want to link with them give
16131 as options to configure" >&2;}
16132 { (exit 1); exit 1; }; }
16136 ### Use -lgpm if available, unless `--with-gpm=no'.
16140 if test "${with_gpm}" != "no"; then
16141 if test "${ac_cv_header_gpm_h+set}" = set; then
16142 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16143 $as_echo_n "checking for gpm.h... " >&6; }
16144 if test "${ac_cv_header_gpm_h+set}" = set; then
16145 $as_echo_n "(cached) " >&6
16147 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16148 $as_echo "$ac_cv_header_gpm_h" >&6; }
16150 # Is the header compilable?
16151 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16152 $as_echo_n "checking gpm.h usability... " >&6; }
16153 cat >conftest.
$ac_ext <<_ACEOF
16156 cat confdefs.h
>>conftest.
$ac_ext
16157 cat >>conftest.
$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 $ac_includes_default
16162 rm -f conftest.
$ac_objext
16163 if { (ac_try
="$ac_compile"
16164 case "(($ac_try" in
16165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16169 $as_echo "$ac_try_echo") >&5
16170 (eval "$ac_compile") 2>conftest.er1
16172 grep -v '^ *+' conftest.er1 >conftest.err
16174 cat conftest.err >&5
16175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } && {
16177 test -z "$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16179 } && test -s conftest.$ac_objext; then
16180 ac_header_compiler=yes
16182 $as_echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_compiler=no
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16190 $as_echo "$ac_header_compiler" >&6; }
16192 # Is the header present?
16193 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16194 $as_echo_n "checking gpm.h presence... " >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16203 if { (ac_try="$ac_cpp conftest.$ac_ext"
16204 case "(($ac_try" in
16205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16206 *) ac_try_echo
=$ac_try;;
16208 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16209 $as_echo "$ac_try_echo") >&5
16210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16212 grep -v '^ *+' conftest.er1
>conftest.err
16214 cat conftest.err
>&5
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } >/dev
/null
&& {
16217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16218 test ! -s conftest.err
16220 ac_header_preproc
=yes
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.
$ac_ext >&5
16225 ac_header_preproc
=no
16228 rm -f conftest.err conftest.
$ac_ext
16229 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16230 $as_echo "$ac_header_preproc" >&6; }
16232 # So? What about this header?
16233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16235 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16236 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16237 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16238 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16239 ac_header_preproc
=yes
16242 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16243 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16244 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16245 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16246 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16247 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16248 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16249 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16250 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16251 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16252 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16253 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16257 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16258 $as_echo_n "checking for gpm.h... " >&6; }
16259 if test "${ac_cv_header_gpm_h+set}" = set; then
16260 $as_echo_n "(cached) " >&6
16262 ac_cv_header_gpm_h
=$ac_header_preproc
16264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16265 $as_echo "$ac_cv_header_gpm_h" >&6; }
16268 if test "x$ac_cv_header_gpm_h" = x
""yes; then
16269 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16270 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16271 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16272 $as_echo_n "(cached) " >&6
16274 ac_check_lib_save_LIBS
=$LIBS
16276 cat >conftest.
$ac_ext <<_ACEOF
16279 cat confdefs.h
>>conftest.
$ac_ext
16280 cat >>conftest.
$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16283 /* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16293 return Gpm_Open ();
16298 rm -f conftest.
$ac_objext conftest
$ac_exeext
16299 if { (ac_try
="$ac_link"
16300 case "(($ac_try" in
16301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16305 $as_echo "$ac_try_echo") >&5
16306 (eval "$ac_link") 2>conftest.er1
16308 grep -v '^ *+' conftest.er1 >conftest.err
16310 cat conftest.err >&5
16311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } && {
16313 test -z "$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16315 } && test -s conftest$ac_exeext && {
16316 test "$cross_compiling" = yes ||
16317 $as_test_x conftest$ac_exeext
16319 ac_cv_lib_gpm_Gpm_Open=yes
16321 $as_echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 ac_cv_lib_gpm_Gpm_Open=no
16327 rm -rf conftest.dSYM
16328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16329 conftest$ac_exeext conftest.$ac_ext
16330 LIBS=$ac_check_lib_save_LIBS
16332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16333 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16334 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
16342 if test "${HAVE_GPM}" = "yes"; then
16344 cat >>confdefs.h <<\_ACEOF
16349 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16355 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16356 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16357 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16358 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16359 $as_echo_n "(cached) " >&6
16361 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16362 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16364 # Is the header compilable?
16365 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16366 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 #include <malloc/malloc.h>
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16380 *) ac_try_echo
=$ac_try;;
16382 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16383 $as_echo "$ac_try_echo") >&5
16384 (eval "$ac_compile") 2>conftest.er1
16386 grep -v '^ *+' conftest.er1
>conftest.err
16388 cat conftest.err
>&5
16389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest.
$ac_objext; then
16394 ac_header_compiler
=yes
16396 $as_echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.
$ac_ext >&5
16399 ac_header_compiler
=no
16402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16404 $as_echo "$ac_header_compiler" >&6; }
16406 # Is the header present?
16407 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16408 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16409 cat >conftest.
$ac_ext <<_ACEOF
16412 cat confdefs.h
>>conftest.
$ac_ext
16413 cat >>conftest.
$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #include <malloc/malloc.h>
16417 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16418 case "(($ac_try" in
16419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16423 $as_echo "$ac_try_echo") >&5
16424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } >/dev/null && {
16431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16434 ac_header_preproc=yes
16436 $as_echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_preproc=no
16442 rm -f conftest.err conftest.$ac_ext
16443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444 $as_echo "$ac_header_preproc" >&6; }
16446 # So? What about this header?
16447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16449 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16450 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16451 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16452 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16453 ac_header_preproc=yes
16456 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16457 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16458 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16459 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16460 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16461 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16462 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16463 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16464 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16465 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16466 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16467 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16471 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16472 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16473 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16474 $as_echo_n "(cached) " >&6
16476 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16479 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16482 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_MALLOC_MALLOC_H 1
16493 ### Use NeXTstep API to implement GUI.
16494 if test "${HAVE_NS}" = "yes"; then
16496 cat >>confdefs.h <<\_ACEOF
16500 if test "${NS_IMPL_COCOA}" = "yes"; then
16502 cat >>confdefs.h <<\_ACEOF
16503 #define NS_IMPL_COCOA 1
16508 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16510 cat >>confdefs.h <<\_ACEOF
16511 #define NS_IMPL_GNUSTEP 1
16514 # See also .m.o rule in Makefile.in */
16515 # FIXME: are all these flags really needed? Document here why. */
16516 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16517 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16519 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16521 cat >>confdefs.h <<\_ACEOF
16522 #define NS_HAVE_NSINTEGER 1
16526 # We also have mouse menus.
16532 ### Use session management (-lSM -lICE) if available
16535 if test "${HAVE_X11}" = "yes"; then
16536 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16537 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16538 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16539 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16540 $as_echo_n "(cached) " >&6
16542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16543 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16545 # Is the header compilable?
16546 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16547 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 $ac_includes_default
16555 #include <X11/SM/SMlib.h>
16557 rm -f conftest.$ac_objext
16558 if { (ac_try="$ac_compile"
16559 case "(($ac_try" in
16560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16561 *) ac_try_echo
=$ac_try;;
16563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16564 $as_echo "$ac_try_echo") >&5
16565 (eval "$ac_compile") 2>conftest.er1
16567 grep -v '^ *+' conftest.er1
>conftest.err
16569 cat conftest.err
>&5
16570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest.
$ac_objext; then
16575 ac_header_compiler
=yes
16577 $as_echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.
$ac_ext >&5
16580 ac_header_compiler
=no
16583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16585 $as_echo "$ac_header_compiler" >&6; }
16587 # Is the header present?
16588 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16589 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16590 cat >conftest.
$ac_ext <<_ACEOF
16593 cat confdefs.h
>>conftest.
$ac_ext
16594 cat >>conftest.
$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 #include <X11/SM/SMlib.h>
16598 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16599 case "(($ac_try" in
16600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16604 $as_echo "$ac_try_echo") >&5
16605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16607 grep -v '^ *+' conftest.er1 >conftest.err
16609 cat conftest.err >&5
16610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } >/dev/null && {
16612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16613 test ! -s conftest.err
16615 ac_header_preproc=yes
16617 $as_echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_header_preproc=no
16623 rm -f conftest.err conftest.$ac_ext
16624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16625 $as_echo "$ac_header_preproc" >&6; }
16627 # So? What about this header?
16628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16630 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16631 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16632 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16633 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16634 ac_header_preproc=yes
16637 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16638 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16639 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16640 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16641 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16642 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16643 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16644 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16645 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16646 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16647 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16648 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16652 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16653 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16654 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16655 $as_echo_n "(cached) " >&6
16657 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16660 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16663 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16664 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16665 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16666 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16667 $as_echo_n "(cached) " >&6
16669 ac_check_lib_save_LIBS=$LIBS
16670 LIBS="-lSM -lICE $LIBS"
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16678 /* Override any GCC internal prototype to avoid an error.
16679 Use char because int might match the return type of a GCC
16680 builtin and then its argument prototype would still apply. */
16684 char SmcOpenConnection ();
16688 return SmcOpenConnection ();
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (ac_try="$ac_link"
16695 case "(($ac_try" in
16696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16697 *) ac_try_echo
=$ac_try;;
16699 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16700 $as_echo "$ac_try_echo") >&5
16701 (eval "$ac_link") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1
>conftest.err
16705 cat conftest.err
>&5
16706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } && {
16708 test -z "$ac_c_werror_flag" ||
16709 test ! -s conftest.err
16710 } && test -s conftest
$ac_exeext && {
16711 test "$cross_compiling" = yes ||
16712 $as_test_x conftest
$ac_exeext
16714 ac_cv_lib_SM_SmcOpenConnection
=yes
16716 $as_echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.
$ac_ext >&5
16719 ac_cv_lib_SM_SmcOpenConnection
=no
16722 rm -rf conftest.dSYM
16723 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16724 conftest
$ac_exeext conftest.
$ac_ext
16725 LIBS
=$ac_check_lib_save_LIBS
16727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16728 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16729 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then
16737 if test "${HAVE_X_SM}" = "yes"; then
16739 cat >>confdefs.h
<<\_ACEOF
16740 #define HAVE_X_SM 1
16743 LIBXSM
="-lSM -lICE"
16746 *) LIBS
="$LIBXSM $LIBS" ;;
16752 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16753 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16754 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16755 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16756 $as_echo_n "(cached) " >&6
16758 cat >conftest.
$ac_ext <<_ACEOF
16761 cat confdefs.h
>>conftest.
$ac_ext
16762 cat >>conftest.
$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16773 rm -f conftest.
$ac_objext conftest
$ac_exeext
16774 if { (ac_try
="$ac_link"
16775 case "(($ac_try" in
16776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16780 $as_echo "$ac_try_echo") >&5
16781 (eval "$ac_link") 2>conftest.er1
16783 grep -v '^ *+' conftest.er1 >conftest.err
16785 cat conftest.err >&5
16786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } && {
16788 test -z "$ac_c_werror_flag" ||
16789 test ! -s conftest.err
16790 } && test -s conftest$ac_exeext && {
16791 test "$cross_compiling" = yes ||
16792 $as_test_x conftest$ac_exeext
16794 emacs_cv_netdb_declares_h_errno=yes
16796 $as_echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 emacs_cv_netdb_declares_h_errno=no
16802 rm -rf conftest.dSYM
16803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16804 conftest$ac_exeext conftest.$ac_ext
16806 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16807 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16808 if test $emacs_cv_netdb_declares_h_errno = yes; then
16810 cat >>confdefs.h <<\_ACEOF
16811 #define HAVE_H_ERRNO 1
16816 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16817 # for constant arguments. Useless!
16818 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16819 $as_echo_n "checking for working alloca.h... " >&6; }
16820 if test "${ac_cv_working_alloca_h+set}" = set; then
16821 $as_echo_n "(cached) " >&6
16823 cat >conftest.$ac_ext <<_ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 #include <alloca.h>
16833 char *p = (char *) alloca (2 * sizeof (int));
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16843 *) ac_try_echo
=$ac_try;;
16845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16846 $as_echo "$ac_try_echo") >&5
16847 (eval "$ac_link") 2>conftest.er1
16849 grep -v '^ *+' conftest.er1
>conftest.err
16851 cat conftest.err
>&5
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && {
16854 test -z "$ac_c_werror_flag" ||
16855 test ! -s conftest.err
16856 } && test -s conftest
$ac_exeext && {
16857 test "$cross_compiling" = yes ||
16858 $as_test_x conftest
$ac_exeext
16860 ac_cv_working_alloca_h
=yes
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.
$ac_ext >&5
16865 ac_cv_working_alloca_h
=no
16868 rm -rf conftest.dSYM
16869 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16870 conftest
$ac_exeext conftest.
$ac_ext
16872 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16873 $as_echo "$ac_cv_working_alloca_h" >&6; }
16874 if test $ac_cv_working_alloca_h = yes; then
16876 cat >>confdefs.h
<<\_ACEOF
16877 #define HAVE_ALLOCA_H 1
16882 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16883 $as_echo_n "checking for alloca... " >&6; }
16884 if test "${ac_cv_func_alloca_works+set}" = set; then
16885 $as_echo_n "(cached) " >&6
16887 cat >conftest.
$ac_ext <<_ACEOF
16890 cat confdefs.h
>>conftest.
$ac_ext
16891 cat >>conftest.
$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16894 # define alloca __builtin_alloca
16897 # include <malloc.h>
16898 # define alloca _alloca
16900 # ifdef HAVE_ALLOCA_H
16901 # include <alloca.h>
16906 # ifndef alloca /* predefined by HP cc +Olibcalls */
16917 char *p = (char *) alloca (1);
16923 rm -f conftest.
$ac_objext conftest
$ac_exeext
16924 if { (ac_try
="$ac_link"
16925 case "(($ac_try" in
16926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930 $as_echo "$ac_try_echo") >&5
16931 (eval "$ac_link") 2>conftest.er1
16933 grep -v '^ *+' conftest.er1 >conftest.err
16935 cat conftest.err >&5
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest$ac_exeext && {
16941 test "$cross_compiling" = yes ||
16942 $as_test_x conftest$ac_exeext
16944 ac_cv_func_alloca_works=yes
16946 $as_echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 ac_cv_func_alloca_works=no
16952 rm -rf conftest.dSYM
16953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16956 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16957 $as_echo "$ac_cv_func_alloca_works" >&6; }
16959 if test $ac_cv_func_alloca_works = yes; then
16961 cat >>confdefs.h <<\_ACEOF
16962 #define HAVE_ALLOCA 1
16966 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16967 # that cause trouble. Some versions do not even contain alloca or
16968 # contain a buggy version. If you still want to use their alloca,
16969 # use ar to extract alloca.o from them instead of compiling alloca.c.
16971 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16973 cat >>confdefs.h <<\_ACEOF
16978 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16979 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16980 if test "${ac_cv_os_cray+set}" = set; then
16981 $as_echo_n "(cached
) " >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 #if defined CRAY && ! defined CRAY2
16996 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16997 $EGREP "webecray
" >/dev/null 2>&1; then
17005 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
17006 $as_echo "$ac_cv_os_cray" >&6; }
17007 if test $ac_cv_os_cray = yes; then
17008 for ac_func in _getb67 GETB67 getb67; do
17009 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17010 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17011 $as_echo_n "checking
for $ac_func...
" >&6; }
17012 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17013 $as_echo_n "(cached
) " >&6
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17023 #define $ac_func innocuous_$ac_func
17025 /* System header to define __stub macros and hopefully few prototypes,
17026 which can conflict with char $ac_func (); below.
17027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17028 <limits.h> exists even on freestanding compilers. */
17031 # include <limits.h>
17033 # include <assert.h>
17038 /* Override any GCC internal prototype to avoid an error.
17039 Use char because int might match the return type of a GCC
17040 builtin and then its argument prototype would still apply. */
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined __stub_$ac_func || defined __stub___$ac_func
17055 return $ac_func ();
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17067 $as_echo "$ac_try_echo") >&5
17068 (eval "$ac_link") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest$ac_exeext && {
17078 test "$cross_compiling" = yes ||
17079 $as_test_x conftest$ac_exeext
17081 eval "$as_ac_var=yes"
17083 $as_echo "$as_me: failed program was
:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 eval "$as_ac_var=no
"
17089 rm -rf conftest.dSYM
17090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17091 conftest$ac_exeext conftest.$ac_ext
17093 ac_res=`eval 'as_val=${'$as_ac_var'}
17094 $as_echo "$as_val"'`
17095 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17096 $as_echo "$ac_res" >&6; }
17097 as_val=`eval 'as_val=${'$as_ac_var'}
17098 $as_echo "$as_val"'`
17099 if test "x
$as_val" = x""yes; then
17101 cat >>confdefs.h <<_ACEOF
17102 #define CRAY_STACKSEG_END $ac_func
17111 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
17112 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
17113 if test "${ac_cv_c_stack_direction+set}" = set; then
17114 $as_echo_n "(cached
) " >&6
17116 if test "$cross_compiling" = yes; then
17117 ac_cv_c_stack_direction=0
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 $ac_includes_default
17127 find_stack_direction ()
17129 static char *addr = 0;
17134 return find_stack_direction ();
17137 return (&dummy > addr) ? 1 : -1;
17143 return find_stack_direction () < 0;
17146 rm -f conftest$ac_exeext
17147 if { (ac_try="$ac_link"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17153 $as_echo "$ac_try_echo") >&5
17154 (eval "$ac_link") 2>&5
17156 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17163 $as_echo "$ac_try_echo") >&5
17164 (eval "$ac_try") 2>&5
17166 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_c_stack_direction=1
17170 $as_echo "$as_me: program exited with status
$ac_status" >&5
17171 $as_echo "$as_me: failed program was
:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ( exit $ac_status )
17175 ac_cv_c_stack_direction=-1
17177 rm -rf conftest.dSYM
17178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17183 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17184 $as_echo "$ac_cv_c_stack_direction" >&6; }
17186 cat >>confdefs.h <<_ACEOF
17187 #define STACK_DIRECTION $ac_cv_c_stack_direction
17194 if test x"$ac_cv_func_alloca_works" != xyes; then
17195 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17196 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17197 { (exit 1); exit 1; }; }
17200 # fmod, logb, and frexp are found in -lm on most systems.
17201 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17203 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17204 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17205 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17206 $as_echo_n "(cached
) " >&6
17208 ac_check_lib_save_LIBS=$LIBS
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17239 $as_echo "$ac_try_echo") >&5
17240 (eval "$ac_link") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest$ac_exeext && {
17250 test "$cross_compiling" = yes ||
17251 $as_test_x conftest$ac_exeext
17253 ac_cv_lib_m_sqrt=yes
17255 $as_echo "$as_me: failed program was
:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_cv_lib_m_sqrt=no
17261 rm -rf conftest.dSYM
17262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17266 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17267 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17268 if test "x
$ac_cv_lib_m_sqrt" = x""yes; then
17269 cat >>confdefs.h <<_ACEOF
17270 #define HAVE_LIBM 1
17278 # Check for mail-locking functions in a "mail" library. Probably this should
17279 # have the same check as for liblockfile below.
17280 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17281 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17282 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17283 $as_echo_n "(cached
) " >&6
17285 ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-lmail $LIBS"
17287 cat >conftest.$ac_ext <<_ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17304 return maillock ();
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17316 $as_echo "$ac_try_echo") >&5
17317 (eval "$ac_link") 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext && {
17327 test "$cross_compiling" = yes ||
17328 $as_test_x conftest$ac_exeext
17330 ac_cv_lib_mail_maillock=yes
17332 $as_echo "$as_me: failed program was
:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_lib_mail_maillock=no
17338 rm -rf conftest.dSYM
17339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17340 conftest$ac_exeext conftest.$ac_ext
17341 LIBS=$ac_check_lib_save_LIBS
17343 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17344 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17345 if test "x
$ac_cv_lib_mail_maillock" = x""yes; then
17351 if test $have_mail = yes; then
17353 LIBS="$LIBS_MAIL $LIBS"
17355 cat >>confdefs.h <<\_ACEOF
17356 #define HAVE_LIBMAIL 1
17362 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17363 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17364 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17365 $as_echo_n "(cached
) " >&6
17367 ac_check_lib_save_LIBS=$LIBS
17368 LIBS="-llockfile $LIBS"
17369 cat >conftest.$ac_ext <<_ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17376 /* Override any GCC internal prototype to avoid an error.
17377 Use char because int might match the return type of a GCC
17378 builtin and then its argument prototype would still apply. */
17386 return maillock ();
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (ac_try="$ac_link"
17393 case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17398 $as_echo "$ac_try_echo") >&5
17399 (eval "$ac_link") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest$ac_exeext && {
17409 test "$cross_compiling" = yes ||
17410 $as_test_x conftest$ac_exeext
17412 ac_cv_lib_lockfile_maillock=yes
17414 $as_echo "$as_me: failed program was
:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_cv_lib_lockfile_maillock=no
17420 rm -rf conftest.dSYM
17421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17422 conftest$ac_exeext conftest.$ac_ext
17423 LIBS=$ac_check_lib_save_LIBS
17425 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17426 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17427 if test "x
$ac_cv_lib_lockfile_maillock" = x""yes; then
17433 if test $have_lockfile = yes; then
17434 LIBS_MAIL=-llockfile
17435 LIBS="$LIBS_MAIL $LIBS"
17437 cat >>confdefs.h <<\_ACEOF
17438 #define HAVE_LIBLOCKFILE 1
17442 # If we have the shared liblockfile, assume we must use it for mail
17443 # locking (e.g. Debian). If we couldn't link against liblockfile
17444 # (no liblockfile.a installed), ensure that we don't need to.
17445 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17446 set dummy liblockfile.so; ac_word=$2
17447 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17448 $as_echo_n "checking
for $ac_word...
" >&6; }
17449 if test "${ac_cv_prog_liblockfile+set}" = set; then
17450 $as_echo_n "(cached
) " >&6
17452 if test -n "$liblockfile"; then
17453 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17456 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17457 for as_dir in $as_dummy
17460 test -z "$as_dir" && as_dir=.
17461 for ac_exec_ext in '' $ac_executable_extensions; do
17462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17463 ac_cv_prog_liblockfile="yes"
17464 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17471 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17474 liblockfile=$ac_cv_prog_liblockfile
17475 if test -n "$liblockfile"; then
17476 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17477 $as_echo "$liblockfile" >&6; }
17479 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17480 $as_echo "no
" >&6; }
17484 if test $ac_cv_prog_liblockfile = yes; then
17485 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17486 This probably means that movemail could lose mail.
17487 There may be a \`development' package to
install containing liblockfile.
" >&5
17488 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17489 This probably means that movemail could lose mail.
17490 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17491 { (exit 1); exit 1; }; }
17495 for ac_func in touchlock
17497 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17498 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17499 $as_echo_n "checking
for $ac_func...
" >&6; }
17500 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17501 $as_echo_n "(cached
) " >&6
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17511 #define $ac_func innocuous_$ac_func
17513 /* System header to define __stub macros and hopefully few prototypes,
17514 which can conflict with char $ac_func (); below.
17515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516 <limits.h> exists even on freestanding compilers. */
17519 # include <limits.h>
17521 # include <assert.h>
17526 /* Override any GCC internal prototype to avoid an error.
17527 Use char because int might match the return type of a GCC
17528 builtin and then its argument prototype would still apply. */
17533 /* The GNU C library defines this for functions which it implements
17534 to always fail with ENOSYS. Some functions are actually named
17535 something starting with __ and the normal name is an alias. */
17536 #if defined __stub_$ac_func || defined __stub___$ac_func
17543 return $ac_func ();
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17555 $as_echo "$ac_try_echo") >&5
17556 (eval "$ac_link") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest$ac_exeext && {
17566 test "$cross_compiling" = yes ||
17567 $as_test_x conftest$ac_exeext
17569 eval "$as_ac_var=yes"
17571 $as_echo "$as_me: failed program was
:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 eval "$as_ac_var=no
"
17577 rm -rf conftest.dSYM
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17581 ac_res=`eval 'as_val=${'$as_ac_var'}
17582 $as_echo "$as_val"'`
17583 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17584 $as_echo "$ac_res" >&6; }
17585 as_val=`eval 'as_val=${'$as_ac_var'}
17586 $as_echo "$as_val"'`
17587 if test "x
$as_val" = x""yes; then
17588 cat >>confdefs.h <<_ACEOF
17589 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17596 for ac_header in maillock.h
17598 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17599 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17600 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17601 $as_echo_n "checking
for $ac_header...
" >&6; }
17602 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17603 $as_echo_n "(cached
) " >&6
17605 ac_res=`eval 'as_val=${'$as_ac_Header'}
17606 $as_echo "$as_val"'`
17607 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17608 $as_echo "$ac_res" >&6; }
17610 # Is the header compilable?
17611 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17612 $as_echo_n "checking
$ac_header usability...
" >&6; }
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17620 #include <$ac_header>
17622 rm -f conftest.$ac_objext
17623 if { (ac_try="$ac_compile"
17624 case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17628 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17629 $as_echo "$ac_try_echo") >&5
17630 (eval "$ac_compile") 2>conftest.er1
17632 grep -v '^ *+' conftest.er1 >conftest.err
17634 cat conftest.err >&5
17635 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest.$ac_objext; then
17640 ac_header_compiler=yes
17642 $as_echo "$as_me: failed program was
:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_header_compiler=no
17648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17650 $as_echo "$ac_header_compiler" >&6; }
17652 # Is the header present?
17653 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17654 $as_echo_n "checking
$ac_header presence...
" >&6; }
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <$ac_header>
17663 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17669 $as_echo "$ac_try_echo") >&5
17670 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17676 (exit $ac_status); } >/dev/null && {
17677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17680 ac_header_preproc=yes
17682 $as_echo "$as_me: failed program was
:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_header_preproc=no
17688 rm -f conftest.err conftest.$ac_ext
17689 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17690 $as_echo "$ac_header_preproc" >&6; }
17692 # So? What about this header?
17693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17695 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17696 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17697 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17699 ac_header_preproc=yes
17702 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17703 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17704 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17705 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17706 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17707 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17708 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17709 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17710 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17711 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17712 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17713 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17717 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17718 $as_echo_n "checking
for $ac_header...
" >&6; }
17719 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17720 $as_echo_n "(cached
) " >&6
17722 eval "$as_ac_Header=\
$ac_header_preproc"
17724 ac_res=`eval 'as_val=${'$as_ac_Header'}
17725 $as_echo "$as_val"'`
17726 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17727 $as_echo "$ac_res" >&6; }
17730 as_val=`eval 'as_val=${'$as_ac_Header'}
17731 $as_echo "$as_val"'`
17732 if test "x
$as_val" = x""yes; then
17733 cat >>confdefs.h <<_ACEOF
17734 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17743 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17744 ## interlock access to the mail spool. The alternative is a lock file named
17745 ## /usr/spool/mail/$USER.lock.
17748 aix4-2) mail_lock="lockf
" ;;
17750 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17752 ## On GNU/Linux systems, both methods are used by various mail programs.
17753 ## I assume most people are using newer mailers that have heard of flock.
17754 ## Change this if you need to.
17755 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17756 ## configure gets the right answers, and that means *NOT* using flock.
17757 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17758 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17759 ## Debian maintainer hasn't provided a clean fix for Emacs.
17760 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17761 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17762 ## correct logic. -- fx
17763 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17764 ## liblockfile is a Free Software replacement for libmail, used on
17765 ## Debian systems and elsewhere. -rfr.
17768 if test $have_mail = yes || test $have_lockfile = yes; then
17769 test $ac_cv_header_maillock_h = yes && mail_lock=no
17775 case "$mail_lock" in
17777 cat >>confdefs.h <<\_ACEOF
17778 #define MAIL_USE_FLOCK 1
17783 cat >>confdefs.h <<\_ACEOF
17784 #define MAIL_USE_LOCKF 1
17788 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17866 for ac_func in gethostname getdomainname dup2 \
17867 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17868 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17869 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17870 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17871 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17872 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17873 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17874 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17875 cfmakeraw cfsetspeed isnan copysign
17877 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17878 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17879 $as_echo_n "checking
for $ac_func...
" >&6; }
17880 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17881 $as_echo_n "(cached
) " >&6
17883 cat >conftest.$ac_ext <<_ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17891 #define $ac_func innocuous_$ac_func
17893 /* System header to define __stub macros and hopefully few prototypes,
17894 which can conflict with char $ac_func (); below.
17895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17896 <limits.h> exists even on freestanding compilers. */
17899 # include <limits.h>
17901 # include <assert.h>
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17913 /* The GNU C library defines this for functions which it implements
17914 to always fail with ENOSYS. Some functions are actually named
17915 something starting with __ and the normal name is an alias. */
17916 #if defined __stub_$ac_func || defined __stub___$ac_func
17923 return $ac_func ();
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17934 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17935 $as_echo "$ac_try_echo") >&5
17936 (eval "$ac_link") 2>conftest.er1
17938 grep -v '^ *+' conftest.er1 >conftest.err
17940 cat conftest.err >&5
17941 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17942 (exit $ac_status); } && {
17943 test -z "$ac_c_werror_flag" ||
17944 test ! -s conftest.err
17945 } && test -s conftest$ac_exeext && {
17946 test "$cross_compiling" = yes ||
17947 $as_test_x conftest$ac_exeext
17949 eval "$as_ac_var=yes"
17951 $as_echo "$as_me: failed program was
:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 eval "$as_ac_var=no
"
17957 rm -rf conftest.dSYM
17958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17959 conftest$ac_exeext conftest.$ac_ext
17961 ac_res=`eval 'as_val=${'$as_ac_var'}
17962 $as_echo "$as_val"'`
17963 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17964 $as_echo "$ac_res" >&6; }
17965 as_val=`eval 'as_val=${'$as_ac_var'}
17966 $as_echo "$as_val"'`
17967 if test "x
$as_val" = x""yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17977 for ac_header in sys/un.h
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 as_val=`eval 'as_val=${'$as_ac_Header'}
18112 $as_echo "$as_val"'`
18113 if test "x
$as_val" = x""yes; then
18114 cat >>confdefs.h <<_ACEOF
18115 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18127 for ac_header in $ac_header_list
18129 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18130 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18131 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18132 $as_echo_n "checking
for $ac_header...
" >&6; }
18133 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18134 $as_echo_n "(cached
) " >&6
18136 ac_res=`eval 'as_val=${'$as_ac_Header'}
18137 $as_echo "$as_val"'`
18138 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18139 $as_echo "$ac_res" >&6; }
18141 # Is the header compilable?
18142 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18143 $as_echo_n "checking
$ac_header usability...
" >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18151 #include <$ac_header>
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18160 $as_echo "$ac_try_echo") >&5
18161 (eval "$ac_compile") 2>conftest.er1
18163 grep -v '^ *+' conftest.er1 >conftest.err
18165 cat conftest.err >&5
18166 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18167 (exit $ac_status); } && {
18168 test -z "$ac_c_werror_flag" ||
18169 test ! -s conftest.err
18170 } && test -s conftest.$ac_objext; then
18171 ac_header_compiler=yes
18173 $as_echo "$as_me: failed program was
:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 ac_header_compiler=no
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18181 $as_echo "$ac_header_compiler" >&6; }
18183 # Is the header present?
18184 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18185 $as_echo_n "checking
$ac_header presence...
" >&6; }
18186 cat >conftest.$ac_ext <<_ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 #include <$ac_header>
18194 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18200 $as_echo "$ac_try_echo") >&5
18201 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18203 grep -v '^ *+' conftest.er1 >conftest.err
18205 cat conftest.err >&5
18206 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18207 (exit $ac_status); } >/dev/null && {
18208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18211 ac_header_preproc=yes
18213 $as_echo "$as_me: failed program was
:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_header_preproc=no
18219 rm -f conftest.err conftest.$ac_ext
18220 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18221 $as_echo "$ac_header_preproc" >&6; }
18223 # So? What about this header?
18224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18226 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18227 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18228 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18230 ac_header_preproc=yes
18233 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18234 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18235 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18236 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18237 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18238 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18239 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18240 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18241 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18242 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18243 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18244 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18248 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18249 $as_echo_n "checking
for $ac_header...
" >&6; }
18250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18251 $as_echo_n "(cached
) " >&6
18253 eval "$as_ac_Header=\
$ac_header_preproc"
18255 ac_res=`eval 'as_val=${'$as_ac_Header'}
18256 $as_echo "$as_val"'`
18257 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18258 $as_echo "$ac_res" >&6; }
18261 as_val=`eval 'as_val=${'$as_ac_Header'}
18262 $as_echo "$as_val"'`
18263 if test "x
$as_val" = x""yes; then
18264 cat >>confdefs.h <<_ACEOF
18265 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18280 for ac_func in $ac_func_list
18282 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18283 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18284 $as_echo_n "checking
for $ac_func...
" >&6; }
18285 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18286 $as_echo_n "(cached
) " >&6
18288 cat >conftest.$ac_ext <<_ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18296 #define $ac_func innocuous_$ac_func
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func (); below.
18300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 <limits.h> exists even on freestanding compilers. */
18304 # include <limits.h>
18306 # include <assert.h>
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined __stub_$ac_func || defined __stub___$ac_func
18328 return $ac_func ();
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18340 $as_echo "$ac_try_echo") >&5
18341 (eval "$ac_link") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest$ac_exeext && {
18351 test "$cross_compiling" = yes ||
18352 $as_test_x conftest$ac_exeext
18354 eval "$as_ac_var=yes"
18356 $as_echo "$as_me: failed program was
:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 eval "$as_ac_var=no
"
18362 rm -rf conftest.dSYM
18363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18364 conftest$ac_exeext conftest.$ac_ext
18366 ac_res=`eval 'as_val=${'$as_ac_var'}
18367 $as_echo "$as_val"'`
18368 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18369 $as_echo "$ac_res" >&6; }
18370 as_val=`eval 'as_val=${'$as_ac_var'}
18371 $as_echo "$as_val"'`
18372 if test "x
$as_val" = x""yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18396 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18397 $as_echo_n "checking
for working mktime...
" >&6; }
18398 if test "${ac_cv_func_working_mktime+set}" = set; then
18399 $as_echo_n "(cached
) " >&6
18401 if test "$cross_compiling" = yes; then
18402 ac_cv_func_working_mktime=no
18404 cat >conftest.$ac_ext <<_ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 /* Test program from Paul Eggert and Tony Leneis. */
18411 #ifdef TIME_WITH_SYS_TIME
18412 # include <sys/time.h>
18415 # ifdef HAVE_SYS_TIME_H
18416 # include <sys/time.h>
18422 #include <limits.h>
18423 #include <stdlib.h>
18425 #ifdef HAVE_UNISTD_H
18426 # include <unistd.h>
18430 # define alarm(X) /* empty */
18433 /* Work around redefinition to rpl_putenv by other config tests. */
18436 static time_t time_t_max;
18437 static time_t time_t_min;
18439 /* Values we'll use to set the TZ environment variable. */
18440 static char *tz_strings[] = {
18441 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18442 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18444 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18446 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18447 Based on a problem report from Andreas Jaeger. */
18449 spring_forward_gap ()
18451 /* glibc (up to about 1998-10-07) failed this test. */
18454 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18455 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18456 on systems that don't support the Olson extension, or don't have the
18457 full zoneinfo tables installed. */
18458 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18467 return mktime (&tm) != (time_t) -1;
18475 return ! (lt = localtime (&now)) || mktime (lt) == now;
18482 return (mktime_test1 (now)
18483 && mktime_test1 ((time_t) (time_t_max - now))
18484 && mktime_test1 ((time_t) (time_t_min + now)));
18490 /* Based on code from Ariel Faigon. */
18500 return tm.tm_mon == 2 && tm.tm_mday == 31;
18509 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18510 now = mktime (&tm);
18511 if (now != (time_t) -1)
18513 struct tm *lt = localtime (&now);
18515 && lt->tm_year == tm.tm_year
18516 && lt->tm_mon == tm.tm_mon
18517 && lt->tm_mday == tm.tm_mday
18518 && lt->tm_hour == tm.tm_hour
18519 && lt->tm_min == tm.tm_min
18520 && lt->tm_sec == tm.tm_sec
18521 && lt->tm_yday == tm.tm_yday
18522 && lt->tm_wday == tm.tm_wday
18523 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18524 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18533 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18534 ignoring leap seconds. */
18535 unsigned long int answer = 2527315200UL;
18539 tm.tm_year = 2050 - 1900;
18542 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18545 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18546 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18547 on systems that don't support the Olson extension, or don't have the
18548 full zoneinfo tables installed. */
18549 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18553 /* Check that the result is either a failure, or close enough
18554 to the correct answer that we can assume the discrepancy is
18555 due to leap seconds. */
18556 return (t == (time_t) -1
18557 || (0 < t && answer - 120 <= t && t <= answer + 120));
18566 /* This test makes some buggy mktime implementations loop.
18567 Give up after 60 seconds; a mktime slower than that
18568 isn't worth using anyway. */
18573 t = (time_t_max << 1) + 1;
18574 if (t <= time_t_max)
18578 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18580 delta = time_t_max / 997; /* a suitable prime number */
18581 for (i = 0; i < N_STRINGS; i++)
18584 putenv (tz_strings[i]);
18586 for (t = 0; t <= time_t_max - delta; t += delta)
18587 if (! mktime_test (t))
18589 if (! (mktime_test ((time_t) 1)
18590 && mktime_test ((time_t) (60 * 60))
18591 && mktime_test ((time_t) (60 * 60 * 24))))
18594 for (j = 1; ; j <<= 1)
18595 if (! bigtime_test (j))
18597 else if (INT_MAX / 2 < j)
18599 if (! bigtime_test (INT_MAX))
18602 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18605 rm -f conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18612 $as_echo "$ac_try_echo") >&5
18613 (eval "$ac_link") 2>&5
18615 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18622 $as_echo "$ac_try_echo") >&5
18623 (eval "$ac_try") 2>&5
18625 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_func_working_mktime=yes
18629 $as_echo "$as_me: program exited with status
$ac_status" >&5
18630 $as_echo "$as_me: failed program was
:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ( exit $ac_status )
18634 ac_cv_func_working_mktime=no
18636 rm -rf conftest.dSYM
18637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18642 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18643 $as_echo "$ac_cv_func_working_mktime" >&6; }
18644 if test $ac_cv_func_working_mktime = no; then
18645 case " $LIBOBJS " in
18646 *" mktime.
$ac_objext "* ) ;;
18647 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18653 if test "$ac_cv_func_working_mktime" = no; then
18655 cat >>confdefs.h <<\_ACEOF
18656 #define BROKEN_MKTIME 1
18661 ac_have_func=no # yes means we've found a way to get the load average.
18663 # Make sure getloadavg.c is where it belongs, at configure-time.
18664 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18665 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18666 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18667 { (exit 1); exit 1; }; }
18671 # Check for getloadavg, but be sure not to touch the cache variable.
18672 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18673 $as_echo_n "checking
for getloadavg...
" >&6; }
18674 if test "${ac_cv_func_getloadavg+set}" = set; then
18675 $as_echo_n "(cached
) " >&6
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define getloadavg innocuous_getloadavg
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char getloadavg (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18693 # include <limits.h>
18695 # include <assert.h>
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18706 char getloadavg ();
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_getloadavg || defined __stub___getloadavg
18717 return getloadavg ();
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18729 $as_echo "$ac_try_echo") >&5
18730 (eval "$ac_link") 2>conftest.er1
18732 grep -v '^ *+' conftest.er1 >conftest.err
18734 cat conftest.err >&5
18735 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18736 (exit $ac_status); } && {
18737 test -z "$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 } && test -s conftest$ac_exeext && {
18740 test "$cross_compiling" = yes ||
18741 $as_test_x conftest$ac_exeext
18743 ac_cv_func_getloadavg=yes
18745 $as_echo "$as_me: failed program was
:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 ac_cv_func_getloadavg=no
18751 rm -rf conftest.dSYM
18752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18753 conftest$ac_exeext conftest.$ac_ext
18755 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18756 $as_echo "$ac_cv_func_getloadavg" >&6; }
18757 if test "x
$ac_cv_func_getloadavg" = x""yes; then
18762 ) && ac_have_func=yes
18764 # On HPUX9, an unprivileged user can get load averages through this function.
18766 for ac_func in pstat_getdynamic
18768 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18769 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18770 $as_echo_n "checking
for $ac_func...
" >&6; }
18771 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18772 $as_echo_n "(cached
) " >&6
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18782 #define $ac_func innocuous_$ac_func
18784 /* System header to define __stub macros and hopefully few prototypes,
18785 which can conflict with char $ac_func (); below.
18786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18787 <limits.h> exists even on freestanding compilers. */
18790 # include <limits.h>
18792 # include <assert.h>
18797 /* Override any GCC internal prototype to avoid an error.
18798 Use char because int might match the return type of a GCC
18799 builtin and then its argument prototype would still apply. */
18804 /* The GNU C library defines this for functions which it implements
18805 to always fail with ENOSYS. Some functions are actually named
18806 something starting with __ and the normal name is an alias. */
18807 #if defined __stub_$ac_func || defined __stub___$ac_func
18814 return $ac_func ();
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (ac_try="$ac_link"
18821 case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18826 $as_echo "$ac_try_echo") >&5
18827 (eval "$ac_link") 2>conftest.er1
18829 grep -v '^ *+' conftest.er1 >conftest.err
18831 cat conftest.err >&5
18832 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18833 (exit $ac_status); } && {
18834 test -z "$ac_c_werror_flag" ||
18835 test ! -s conftest.err
18836 } && test -s conftest$ac_exeext && {
18837 test "$cross_compiling" = yes ||
18838 $as_test_x conftest$ac_exeext
18840 eval "$as_ac_var=yes"
18842 $as_echo "$as_me: failed program was
:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 eval "$as_ac_var=no
"
18848 rm -rf conftest.dSYM
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18852 ac_res=`eval 'as_val=${'$as_ac_var'}
18853 $as_echo "$as_val"'`
18854 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18855 $as_echo "$ac_res" >&6; }
18856 as_val=`eval 'as_val=${'$as_ac_var'}
18857 $as_echo "$as_val"'`
18858 if test "x
$as_val" = x""yes; then
18859 cat >>confdefs.h <<_ACEOF
18860 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18867 # Solaris has libkstat which does not require root.
18869 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18870 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18871 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18872 $as_echo_n "(cached
) " >&6
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lkstat $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18889 char kstat_open ();
18893 return kstat_open ();
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18905 $as_echo "$ac_try_echo") >&5
18906 (eval "$ac_link") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest$ac_exeext && {
18916 test "$cross_compiling" = yes ||
18917 $as_test_x conftest$ac_exeext
18919 ac_cv_lib_kstat_kstat_open=yes
18921 $as_echo "$as_me: failed program was
:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ac_cv_lib_kstat_kstat_open=no
18927 rm -rf conftest.dSYM
18928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18929 conftest$ac_exeext conftest.$ac_ext
18930 LIBS=$ac_check_lib_save_LIBS
18932 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18933 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18934 if test "x
$ac_cv_lib_kstat_kstat_open" = x""yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_LIBKSTAT 1
18939 LIBS="-lkstat $LIBS"
18943 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18945 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18946 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18947 # to get the right answer into the cache.
18948 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18949 if test $ac_have_func = no; then
18950 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18951 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18952 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18953 $as_echo_n "(cached
) " >&6
18955 ac_check_lib_save_LIBS=$LIBS
18957 cat >conftest.$ac_ext <<_ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18974 return elf_begin ();
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987 (eval "$ac_link") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18993 (exit $ac_status); } && {
18994 test -z "$ac_c_werror_flag" ||
18995 test ! -s conftest.err
18996 } && test -s conftest$ac_exeext && {
18997 test "$cross_compiling" = yes ||
18998 $as_test_x conftest$ac_exeext
19000 ac_cv_lib_elf_elf_begin=yes
19002 $as_echo "$as_me: failed program was
:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_cv_lib_elf_elf_begin=no
19008 rm -rf conftest.dSYM
19009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19010 conftest$ac_exeext conftest.$ac_ext
19011 LIBS=$ac_check_lib_save_LIBS
19013 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
19014 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19015 if test "x
$ac_cv_lib_elf_elf_begin" = x""yes; then
19020 if test $ac_have_func = no; then
19021 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
19022 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
19023 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
19024 $as_echo_n "(cached
) " >&6
19026 ac_check_lib_save_LIBS=$LIBS
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19035 /* Override any GCC internal prototype to avoid an error.
19036 Use char because int might match the return type of a GCC
19037 builtin and then its argument prototype would still apply. */
19045 return kvm_open ();
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19057 $as_echo "$ac_try_echo") >&5
19058 (eval "$ac_link") 2>conftest.er1
19060 grep -v '^ *+' conftest.er1 >conftest.err
19062 cat conftest.err >&5
19063 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19064 (exit $ac_status); } && {
19065 test -z "$ac_c_werror_flag" ||
19066 test ! -s conftest.err
19067 } && test -s conftest$ac_exeext && {
19068 test "$cross_compiling" = yes ||
19069 $as_test_x conftest$ac_exeext
19071 ac_cv_lib_kvm_kvm_open=yes
19073 $as_echo "$as_me: failed program was
:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 ac_cv_lib_kvm_kvm_open=no
19079 rm -rf conftest.dSYM
19080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19084 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
19085 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19086 if test "x
$ac_cv_lib_kvm_kvm_open" = x""yes; then
19090 # Check for the 4.4BSD definition of getloadavg.
19091 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
19092 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
19093 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
19094 $as_echo_n "(cached
) " >&6
19096 ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lutil $LIBS"
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 /* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19111 char getloadavg ();
19115 return getloadavg ();
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19127 $as_echo "$ac_try_echo") >&5
19128 (eval "$ac_link") 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest$ac_exeext && {
19138 test "$cross_compiling" = yes ||
19139 $as_test_x conftest$ac_exeext
19141 ac_cv_lib_util_getloadavg=yes
19143 $as_echo "$as_me: failed program was
:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_cv_lib_util_getloadavg=no
19149 rm -rf conftest.dSYM
19150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19155 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19156 if test "x
$ac_cv_lib_util_getloadavg" = x""yes; then
19157 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19162 if test $ac_have_func = no; then
19163 # There is a commonly available library for RS/6000 AIX.
19164 # Since it is not a standard part of AIX, it might be installed locally.
19165 ac_getloadavg_LIBS=$LIBS
19166 LIBS="-L/usr
/local
/lib
$LIBS"
19167 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19168 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19169 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19170 $as_echo_n "(cached
) " >&6
19172 ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-lgetloadavg $LIBS"
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19187 char getloadavg ();
19191 return getloadavg ();
19196 rm -f conftest.$ac_objext conftest$ac_exeext
19197 if { (ac_try="$ac_link"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19203 $as_echo "$ac_try_echo") >&5
19204 (eval "$ac_link") 2>conftest.er1
19206 grep -v '^ *+' conftest.er1 >conftest.err
19208 cat conftest.err >&5
19209 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19210 (exit $ac_status); } && {
19211 test -z "$ac_c_werror_flag" ||
19212 test ! -s conftest.err
19213 } && test -s conftest$ac_exeext && {
19214 test "$cross_compiling" = yes ||
19215 $as_test_x conftest$ac_exeext
19217 ac_cv_lib_getloadavg_getloadavg=yes
19219 $as_echo "$as_me: failed program was
:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_lib_getloadavg_getloadavg=no
19225 rm -rf conftest.dSYM
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19228 LIBS=$ac_check_lib_save_LIBS
19230 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19231 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19232 if test "x
$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
19233 LIBS="-lgetloadavg $LIBS"
19235 LIBS=$ac_getloadavg_LIBS
19240 # Make sure it is really in the library, if we think we found it,
19241 # otherwise set up the replacement function.
19243 for ac_func in getloadavg
19245 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19246 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19247 $as_echo_n "checking
for $ac_func...
" >&6; }
19248 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19249 $as_echo_n "(cached
) " >&6
19251 cat >conftest.$ac_ext <<_ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19259 #define $ac_func innocuous_$ac_func
19261 /* System header to define __stub macros and hopefully few prototypes,
19262 which can conflict with char $ac_func (); below.
19263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19264 <limits.h> exists even on freestanding compilers. */
19267 # include <limits.h>
19269 # include <assert.h>
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19281 /* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284 #if defined __stub_$ac_func || defined __stub___$ac_func
19291 return $ac_func ();
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (ac_try="$ac_link"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19303 $as_echo "$ac_try_echo") >&5
19304 (eval "$ac_link") 2>conftest.er1
19306 grep -v '^ *+' conftest.er1 >conftest.err
19308 cat conftest.err >&5
19309 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19310 (exit $ac_status); } && {
19311 test -z "$ac_c_werror_flag" ||
19312 test ! -s conftest.err
19313 } && test -s conftest$ac_exeext && {
19314 test "$cross_compiling" = yes ||
19315 $as_test_x conftest$ac_exeext
19317 eval "$as_ac_var=yes"
19319 $as_echo "$as_me: failed program was
:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 eval "$as_ac_var=no
"
19325 rm -rf conftest.dSYM
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327 conftest$ac_exeext conftest.$ac_ext
19329 ac_res=`eval 'as_val=${'$as_ac_var'}
19330 $as_echo "$as_val"'`
19331 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19332 $as_echo "$ac_res" >&6; }
19333 as_val=`eval 'as_val=${'$as_ac_var'}
19334 $as_echo "$as_val"'`
19335 if test "x
$as_val" = x""yes; then
19336 cat >>confdefs.h <<_ACEOF
19337 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19341 case " $LIBOBJS " in
19342 *" getloadavg.
$ac_objext "* ) ;;
19343 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19348 cat >>confdefs.h <<\_ACEOF
19349 #define C_GETLOADAVG 1
19352 # Figure out what our getloadavg.c needs.
19354 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19355 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19356 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19357 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19358 $as_echo_n "(cached
) " >&6
19360 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19361 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19363 # Is the header compilable?
19364 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19365 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19366 cat >conftest.$ac_ext <<_ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19372 $ac_includes_default
19373 #include <sys/dg_sys_info.h>
19375 rm -f conftest.$ac_objext
19376 if { (ac_try="$ac_compile"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19382 $as_echo "$ac_try_echo") >&5
19383 (eval "$ac_compile") 2>conftest.er1
19385 grep -v '^ *+' conftest.er1 >conftest.err
19387 cat conftest.err >&5
19388 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19389 (exit $ac_status); } && {
19390 test -z "$ac_c_werror_flag" ||
19391 test ! -s conftest.err
19392 } && test -s conftest.$ac_objext; then
19393 ac_header_compiler=yes
19395 $as_echo "$as_me: failed program was
:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_header_compiler=no
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19403 $as_echo "$ac_header_compiler" >&6; }
19405 # Is the header present?
19406 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19407 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <sys/dg_sys_info.h>
19416 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19421 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19422 $as_echo "$ac_try_echo") >&5
19423 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19425 grep -v '^ *+' conftest.er1 >conftest.err
19427 cat conftest.err >&5
19428 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19429 (exit $ac_status); } >/dev/null && {
19430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19431 test ! -s conftest.err
19433 ac_header_preproc=yes
19435 $as_echo "$as_me: failed program was
:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_header_preproc=no
19441 rm -f conftest.err conftest.$ac_ext
19442 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19443 $as_echo "$ac_header_preproc" >&6; }
19445 # So? What about this header?
19446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19448 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19449 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19450 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19451 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19452 ac_header_preproc=yes
19455 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19456 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19457 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19458 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19459 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19460 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19461 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19462 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19463 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19464 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19465 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19466 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19470 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19471 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19473 $as_echo_n "(cached
) " >&6
19475 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19477 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19478 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19481 if test "x
$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19484 cat >>confdefs.h <<\_ACEOF
19489 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19490 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19492 $as_echo_n "(cached
) " >&6
19494 ac_check_lib_save_LIBS=$LIBS
19496 cat >conftest.$ac_ext <<_ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19503 /* Override any GCC internal prototype to avoid an error.
19504 Use char because int might match the return type of a GCC
19505 builtin and then its argument prototype would still apply. */
19509 char dg_sys_info ();
19513 return dg_sys_info ();
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19524 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19525 $as_echo "$ac_try_echo") >&5
19526 (eval "$ac_link") 2>conftest.er1
19528 grep -v '^ *+' conftest.er1 >conftest.err
19530 cat conftest.err >&5
19531 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19532 (exit $ac_status); } && {
19533 test -z "$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 } && test -s conftest$ac_exeext && {
19536 test "$cross_compiling" = yes ||
19537 $as_test_x conftest$ac_exeext
19539 ac_cv_lib_dgc_dg_sys_info=yes
19541 $as_echo "$as_me: failed program was
:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_lib_dgc_dg_sys_info=no
19547 rm -rf conftest.dSYM
19548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19549 conftest$ac_exeext conftest.$ac_ext
19550 LIBS=$ac_check_lib_save_LIBS
19552 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19553 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19554 if test "x
$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19555 cat >>confdefs.h <<_ACEOF
19556 #define HAVE_LIBDGC 1
19567 if test "${ac_cv_header_locale_h+set}" = set; then
19568 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19569 $as_echo_n "checking
for locale.h...
" >&6; }
19570 if test "${ac_cv_header_locale_h+set}" = set; then
19571 $as_echo_n "(cached
) " >&6
19573 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19574 $as_echo "$ac_cv_header_locale_h" >&6; }
19576 # Is the header compilable?
19577 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19578 $as_echo_n "checking locale.h usability...
" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 $ac_includes_default
19586 #include <locale.h>
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19594 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19595 $as_echo "$ac_try_echo") >&5
19596 (eval "$ac_compile") 2>conftest.er1
19598 grep -v '^ *+' conftest.er1 >conftest.err
19600 cat conftest.err >&5
19601 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19602 (exit $ac_status); } && {
19603 test -z "$ac_c_werror_flag" ||
19604 test ! -s conftest.err
19605 } && test -s conftest.$ac_objext; then
19606 ac_header_compiler=yes
19608 $as_echo "$as_me: failed program was
:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_header_compiler=no
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19616 $as_echo "$ac_header_compiler" >&6; }
19618 # Is the header present?
19619 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19620 $as_echo_n "checking locale.h presence...
" >&6; }
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 #include <locale.h>
19629 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19635 $as_echo "$ac_try_echo") >&5
19636 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19642 (exit $ac_status); } >/dev/null && {
19643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19646 ac_header_preproc=yes
19648 $as_echo "$as_me: failed program was
:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 ac_header_preproc=no
19654 rm -f conftest.err conftest.$ac_ext
19655 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19656 $as_echo "$ac_header_preproc" >&6; }
19658 # So? What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19661 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19662 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19663 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19664 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19665 ac_header_preproc=yes
19668 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19669 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19670 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19671 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19672 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19673 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19674 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19675 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19676 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19677 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19679 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19683 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19684 $as_echo_n "checking
for locale.h...
" >&6; }
19685 if test "${ac_cv_header_locale_h+set}" = set; then
19686 $as_echo_n "(cached
) " >&6
19688 ac_cv_header_locale_h=$ac_header_preproc
19690 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19691 $as_echo "$ac_cv_header_locale_h" >&6; }
19697 for ac_func in setlocale
19699 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19700 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19701 $as_echo_n "checking
for $ac_func...
" >&6; }
19702 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19703 $as_echo_n "(cached
) " >&6
19705 cat >conftest.$ac_ext <<_ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19713 #define $ac_func innocuous_$ac_func
19715 /* System header to define __stub macros and hopefully few prototypes,
19716 which can conflict with char $ac_func (); below.
19717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19718 <limits.h> exists even on freestanding compilers. */
19721 # include <limits.h>
19723 # include <assert.h>
19728 /* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19735 /* The GNU C library defines this for functions which it implements
19736 to always fail with ENOSYS. Some functions are actually named
19737 something starting with __ and the normal name is an alias. */
19738 #if defined __stub_$ac_func || defined __stub___$ac_func
19745 return $ac_func ();
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19757 $as_echo "$ac_try_echo") >&5
19758 (eval "$ac_link") 2>conftest.er1
19760 grep -v '^ *+' conftest.er1 >conftest.err
19762 cat conftest.err >&5
19763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19764 (exit $ac_status); } && {
19765 test -z "$ac_c_werror_flag" ||
19766 test ! -s conftest.err
19767 } && test -s conftest$ac_exeext && {
19768 test "$cross_compiling" = yes ||
19769 $as_test_x conftest$ac_exeext
19771 eval "$as_ac_var=yes"
19773 $as_echo "$as_me: failed program was
:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19776 eval "$as_ac_var=no
"
19779 rm -rf conftest.dSYM
19780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19781 conftest$ac_exeext conftest.$ac_ext
19783 ac_res=`eval 'as_val=${'$as_ac_var'}
19784 $as_echo "$as_val"'`
19785 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19786 $as_echo "$ac_res" >&6; }
19787 as_val=`eval 'as_val=${'$as_ac_var'}
19788 $as_echo "$as_val"'`
19789 if test "x
$as_val" = x""yes; then
19790 cat >>confdefs.h <<_ACEOF
19791 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19798 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19799 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19800 # Irix 4.0.5F has the header but not the library.
19801 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19804 cat >>confdefs.h <<\_ACEOF
19810 if test $ac_have_func = no; then
19811 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19812 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19813 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19814 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19815 $as_echo_n "(cached
) " >&6
19817 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19818 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19820 # Is the header compilable?
19821 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19822 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19823 cat >conftest.$ac_ext <<_ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 $ac_includes_default
19830 #include <inq_stats/cpustats.h>
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19839 $as_echo "$ac_try_echo") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest.$ac_objext; then
19850 ac_header_compiler=yes
19852 $as_echo "$as_me: failed program was
:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19855 ac_header_compiler=no
19858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19859 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19860 $as_echo "$ac_header_compiler" >&6; }
19862 # Is the header present?
19863 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19864 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 #include <inq_stats/cpustats.h>
19873 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19879 $as_echo "$ac_try_echo") >&5
19880 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19886 (exit $ac_status); } >/dev/null && {
19887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19890 ac_header_preproc=yes
19892 $as_echo "$as_me: failed program was
:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_header_preproc=no
19898 rm -f conftest.err conftest.$ac_ext
19899 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19900 $as_echo "$ac_header_preproc" >&6; }
19902 # So? What about this header?
19903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19905 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19906 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19907 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19908 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19909 ac_header_preproc=yes
19912 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19913 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19914 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19915 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19916 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19917 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19918 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19919 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19920 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19923 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19927 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19928 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19929 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19930 $as_echo_n "(cached
) " >&6
19932 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19934 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19935 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19938 if test "x
$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
19941 cat >>confdefs.h <<\_ACEOF
19946 cat >>confdefs.h <<\_ACEOF
19955 if test $ac_have_func = no; then
19956 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19957 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19958 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19959 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19960 $as_echo_n "(cached
) " >&6
19962 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19963 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19965 # Is the header compilable?
19966 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19967 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <sys/cpustats.h>
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19984 $as_echo "$ac_try_echo") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest.$ac_objext; then
19995 ac_header_compiler=yes
19997 $as_echo "$as_me: failed program was
:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_header_compiler=no
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20005 $as_echo "$ac_header_compiler" >&6; }
20007 # Is the header present?
20008 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
20009 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <sys/cpustats.h>
20018 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20024 $as_echo "$ac_try_echo") >&5
20025 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20031 (exit $ac_status); } >/dev/null && {
20032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20035 ac_header_preproc=yes
20037 $as_echo "$as_me: failed program was
:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_preproc=no
20043 rm -f conftest.err conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20045 $as_echo "$ac_header_preproc" >&6; }
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20050 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
20051 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
20053 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
20054 ac_header_preproc=yes
20057 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
20058 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
20059 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
20060 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
20061 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
20062 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
20063 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
20064 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
20066 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
20068 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
20072 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
20073 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
20074 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
20075 $as_echo_n "(cached
) " >&6
20077 ac_cv_header_sys_cpustats_h=$ac_header_preproc
20079 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
20080 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
20083 if test "x
$ac_cv_header_sys_cpustats_h" = x""yes; then
20084 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
20093 if test $ac_have_func = no; then
20095 for ac_header in mach/mach.h
20097 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20099 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20100 $as_echo_n "checking
for $ac_header...
" >&6; }
20101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20102 $as_echo_n "(cached
) " >&6
20104 ac_res=`eval 'as_val=${'$as_ac_Header'}
20105 $as_echo "$as_val"'`
20106 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20107 $as_echo "$ac_res" >&6; }
20109 # Is the header compilable?
20110 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20111 $as_echo_n "checking
$ac_header usability...
" >&6; }
20112 cat >conftest.$ac_ext <<_ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 $ac_includes_default
20119 #include <$ac_header>
20121 rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20128 $as_echo "$ac_try_echo") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20131 grep -v '^ *+' conftest.er1 >conftest.err
20133 cat conftest.err >&5
20134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.$ac_objext; then
20139 ac_header_compiler=yes
20141 $as_echo "$as_me: failed program was
:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_header_compiler=no
20147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20149 $as_echo "$ac_header_compiler" >&6; }
20151 # Is the header present?
20152 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20153 $as_echo_n "checking
$ac_header presence...
" >&6; }
20154 cat >conftest.$ac_ext <<_ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 #include <$ac_header>
20162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20175 (exit $ac_status); } >/dev/null && {
20176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20179 ac_header_preproc=yes
20181 $as_echo "$as_me: failed program was
:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_header_preproc=no
20187 rm -f conftest.err conftest.$ac_ext
20188 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20189 $as_echo "$ac_header_preproc" >&6; }
20191 # So? What about this header?
20192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20194 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20195 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20196 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20198 ac_header_preproc=yes
20201 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20202 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20203 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20204 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20205 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20206 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20207 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20208 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20209 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20211 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20212 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20216 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20217 $as_echo_n "checking
for $ac_header...
" >&6; }
20218 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20219 $as_echo_n "(cached
) " >&6
20221 eval "$as_ac_Header=\
$ac_header_preproc"
20223 ac_res=`eval 'as_val=${'$as_ac_Header'}
20224 $as_echo "$as_val"'`
20225 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20226 $as_echo "$ac_res" >&6; }
20229 as_val=`eval 'as_val=${'$as_ac_Header'}
20230 $as_echo "$as_val"'`
20231 if test "x
$as_val" = x""yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20243 for ac_header in nlist.h
20245 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20246 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20247 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20248 $as_echo_n "checking
for $ac_header...
" >&6; }
20249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20250 $as_echo_n "(cached
) " >&6
20252 ac_res=`eval 'as_val=${'$as_ac_Header'}
20253 $as_echo "$as_val"'`
20254 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20255 $as_echo "$ac_res" >&6; }
20257 # Is the header compilable?
20258 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20259 $as_echo_n "checking
$ac_header usability...
" >&6; }
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 $ac_includes_default
20267 #include <$ac_header>
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20276 $as_echo "$ac_try_echo") >&5
20277 (eval "$ac_compile") 2>conftest.er1
20279 grep -v '^ *+' conftest.er1 >conftest.err
20281 cat conftest.err >&5
20282 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20283 (exit $ac_status); } && {
20284 test -z "$ac_c_werror_flag" ||
20285 test ! -s conftest.err
20286 } && test -s conftest.$ac_objext; then
20287 ac_header_compiler=yes
20289 $as_echo "$as_me: failed program was
:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_header_compiler=no
20295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20296 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20297 $as_echo "$ac_header_compiler" >&6; }
20299 # Is the header present?
20300 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20301 $as_echo_n "checking
$ac_header presence...
" >&6; }
20302 cat >conftest.$ac_ext <<_ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20308 #include <$ac_header>
20310 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20311 case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20316 $as_echo "$ac_try_echo") >&5
20317 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20319 grep -v '^ *+' conftest.er1 >conftest.err
20321 cat conftest.err >&5
20322 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20323 (exit $ac_status); } >/dev/null && {
20324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20327 ac_header_preproc=yes
20329 $as_echo "$as_me: failed program was
:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_header_preproc=no
20335 rm -f conftest.err conftest.$ac_ext
20336 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20337 $as_echo "$ac_header_preproc" >&6; }
20339 # So? What about this header?
20340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20342 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20343 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20344 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20346 ac_header_preproc=yes
20349 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20350 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20351 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20352 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20353 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20354 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20355 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20356 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20357 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20359 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20360 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20364 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20365 $as_echo_n "checking
for $ac_header...
" >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20367 $as_echo_n "(cached
) " >&6
20369 eval "$as_ac_Header=\
$ac_header_preproc"
20371 ac_res=`eval 'as_val=${'$as_ac_Header'}
20372 $as_echo "$as_val"'`
20373 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20374 $as_echo "$ac_res" >&6; }
20377 as_val=`eval 'as_val=${'$as_ac_Header'}
20378 $as_echo "$as_val"'`
20379 if test "x
$as_val" = x""yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20383 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20384 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20385 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20386 $as_echo_n "(cached
) " >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20399 static struct nlist ac_aggr;
20400 if (ac_aggr.n_un.n_name)
20406 rm -f conftest.$ac_objext
20407 if { (ac_try="$ac_compile"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20413 $as_echo "$ac_try_echo") >&5
20414 (eval "$ac_compile") 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest.$ac_objext; then
20424 ac_cv_member_struct_nlist_n_un_n_name=yes
20426 $as_echo "$as_me: failed program was
:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 cat >conftest.$ac_ext <<_ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20440 static struct nlist ac_aggr;
20441 if (sizeof ac_aggr.n_un.n_name)
20447 rm -f conftest.$ac_objext
20448 if { (ac_try="$ac_compile"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20454 $as_echo "$ac_try_echo") >&5
20455 (eval "$ac_compile") 2>conftest.er1
20457 grep -v '^ *+' conftest.er1 >conftest.err
20459 cat conftest.err >&5
20460 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest.$ac_objext; then
20465 ac_cv_member_struct_nlist_n_un_n_name=yes
20467 $as_echo "$as_me: failed program was
:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_cv_member_struct_nlist_n_un_n_name=no
20473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20479 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20480 if test "x
$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20487 cat >>confdefs.h <<\_ACEOF
20488 #define NLIST_NAME_UNION 1
20502 # Some definitions of getloadavg require that the program be installed setgid.
20503 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20504 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20505 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20506 $as_echo_n "(cached
) " >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20515 #ifdef LDAV_PRIVILEGED
20516 Yowza Am I SETGID yet
20519 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20520 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20521 ac_cv_func_getloadavg_setgid=yes
20523 ac_cv_func_getloadavg_setgid=no
20528 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20529 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20530 if test $ac_cv_func_getloadavg_setgid = yes; then
20533 cat >>confdefs.h <<\_ACEOF
20534 #define GETLOADAVG_PRIVILEGED 1
20541 if test $ac_cv_func_getloadavg_setgid = yes; then
20542 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20543 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20544 if test "${ac_cv_group_kmem+set}" = set; then
20545 $as_echo_n "(cached
) " >&6
20547 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20548 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20549 # If we got an error (system does not support symlinks), try without -L.
20550 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20551 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20552 | sed -ne 's/[ ][ ]*/ /g;
20553 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20557 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20558 $as_echo "$ac_cv_group_kmem" >&6; }
20559 KMEM_GROUP=$ac_cv_group_kmem
20561 if test "x
$ac_save_LIBS" = x; then
20562 GETLOADAVG_LIBS=$LIBS
20564 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20570 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20571 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20572 if test "${ac_cv_sys_largefile_source+set}" = set; then
20573 $as_echo_n "(cached
) " >&6
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 #include <sys/types.h> /* for off_t */
20587 int (*fp) (FILE *, off_t, int) = fseeko;
20588 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (ac_try="$ac_link"
20595 case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20599 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20600 $as_echo "$ac_try_echo") >&5
20601 (eval "$ac_link") 2>conftest.er1
20603 grep -v '^ *+' conftest.er1 >conftest.err
20605 cat conftest.err >&5
20606 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20607 (exit $ac_status); } && {
20608 test -z "$ac_c_werror_flag" ||
20609 test ! -s conftest.err
20610 } && test -s conftest$ac_exeext && {
20611 test "$cross_compiling" = yes ||
20612 $as_test_x conftest$ac_exeext
20614 ac_cv_sys_largefile_source=no; break
20616 $as_echo "$as_me: failed program was
:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20622 rm -rf conftest.dSYM
20623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20624 conftest$ac_exeext conftest.$ac_ext
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 #define _LARGEFILE_SOURCE 1
20632 #include <sys/types.h> /* for off_t */
20637 int (*fp) (FILE *, off_t, int) = fseeko;
20638 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (ac_try="$ac_link"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20650 $as_echo "$ac_try_echo") >&5
20651 (eval "$ac_link") 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest$ac_exeext && {
20661 test "$cross_compiling" = yes ||
20662 $as_test_x conftest$ac_exeext
20664 ac_cv_sys_largefile_source=1; break
20666 $as_echo "$as_me: failed program was
:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20672 rm -rf conftest.dSYM
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20675 ac_cv_sys_largefile_source=unknown
20679 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20680 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20681 case $ac_cv_sys_largefile_source in #(
20684 cat >>confdefs.h <<_ACEOF
20685 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20691 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20692 # in glibc 2.1.3, but that breaks too many other things.
20693 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20694 if test $ac_cv_sys_largefile_source != unknown; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_FSEEKO 1
20703 # Configure getopt.
20704 # getopt.m4 serial 10
20706 # The getopt module assume you want GNU getopt, with getopt_long etc,
20707 # rather than vanilla POSIX getopt. This means your your code should
20708 # always include <getopt.h> for the getopt prototypes.
20720 # Prerequisites of lib/getopt*.
20727 for ac_header in getopt.h
20729 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20730 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20731 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20732 $as_echo_n "checking
for $ac_header...
" >&6; }
20733 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20734 $as_echo_n "(cached
) " >&6
20736 ac_res=`eval 'as_val=${'$as_ac_Header'}
20737 $as_echo "$as_val"'`
20738 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20739 $as_echo "$ac_res" >&6; }
20741 # Is the header compilable?
20742 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20743 $as_echo_n "checking
$ac_header usability...
" >&6; }
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 $ac_includes_default
20751 #include <$ac_header>
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20760 $as_echo "$ac_try_echo") >&5
20761 (eval "$ac_compile") 2>conftest.er1
20763 grep -v '^ *+' conftest.er1 >conftest.err
20765 cat conftest.err >&5
20766 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest.$ac_objext; then
20771 ac_header_compiler=yes
20773 $as_echo "$as_me: failed program was
:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_header_compiler=no
20779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20781 $as_echo "$ac_header_compiler" >&6; }
20783 # Is the header present?
20784 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20785 $as_echo_n "checking
$ac_header presence...
" >&6; }
20786 cat >conftest.$ac_ext <<_ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 #include <$ac_header>
20794 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20807 (exit $ac_status); } >/dev/null && {
20808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20811 ac_header_preproc=yes
20813 $as_echo "$as_me: failed program was
:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ac_header_preproc=no
20819 rm -f conftest.err conftest.$ac_ext
20820 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20821 $as_echo "$ac_header_preproc" >&6; }
20823 # So? What about this header?
20824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20826 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20827 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20828 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20830 ac_header_preproc=yes
20833 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20834 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20835 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20836 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20837 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20838 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20839 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20840 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20841 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20843 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20844 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20848 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20849 $as_echo_n "checking
for $ac_header...
" >&6; }
20850 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20851 $as_echo_n "(cached
) " >&6
20853 eval "$as_ac_Header=\
$ac_header_preproc"
20855 ac_res=`eval 'as_val=${'$as_ac_Header'}
20856 $as_echo "$as_val"'`
20857 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20858 $as_echo "$ac_res" >&6; }
20861 as_val=`eval 'as_val=${'$as_ac_Header'}
20862 $as_echo "$as_val"'`
20863 if test "x
$as_val" = x""yes; then
20864 cat >>confdefs.h <<_ACEOF
20865 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20874 if test -z "$GETOPT_H"; then
20876 for ac_func in getopt_long_only
20878 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20879 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20880 $as_echo_n "checking
for $ac_func...
" >&6; }
20881 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20882 $as_echo_n "(cached
) " >&6
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20892 #define $ac_func innocuous_$ac_func
20894 /* System header to define __stub macros and hopefully few prototypes,
20895 which can conflict with char $ac_func (); below.
20896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20897 <limits.h> exists even on freestanding compilers. */
20900 # include <limits.h>
20902 # include <assert.h>
20907 /* Override any GCC internal prototype to avoid an error.
20908 Use char because int might match the return type of a GCC
20909 builtin and then its argument prototype would still apply. */
20914 /* The GNU C library defines this for functions which it implements
20915 to always fail with ENOSYS. Some functions are actually named
20916 something starting with __ and the normal name is an alias. */
20917 #if defined __stub_$ac_func || defined __stub___$ac_func
20924 return $ac_func ();
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20936 $as_echo "$ac_try_echo") >&5
20937 (eval "$ac_link") 2>conftest.er1
20939 grep -v '^ *+' conftest.er1 >conftest.err
20941 cat conftest.err >&5
20942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20943 (exit $ac_status); } && {
20944 test -z "$ac_c_werror_flag" ||
20945 test ! -s conftest.err
20946 } && test -s conftest$ac_exeext && {
20947 test "$cross_compiling" = yes ||
20948 $as_test_x conftest$ac_exeext
20950 eval "$as_ac_var=yes"
20952 $as_echo "$as_me: failed program was
:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 eval "$as_ac_var=no
"
20958 rm -rf conftest.dSYM
20959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20960 conftest$ac_exeext conftest.$ac_ext
20962 ac_res=`eval 'as_val=${'$as_ac_var'}
20963 $as_echo "$as_val"'`
20964 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20965 $as_echo "$ac_res" >&6; }
20966 as_val=`eval 'as_val=${'$as_ac_var'}
20967 $as_echo "$as_val"'`
20968 if test "x
$as_val" = x""yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20980 if test -z "$GETOPT_H"; then
20981 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20982 $as_echo_n "checking whether optreset is declared...
" >&6; }
20983 if test "${ac_cv_have_decl_optreset+set}" = set; then
20984 $as_echo_n "(cached
) " >&6
20986 cat >conftest.$ac_ext <<_ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 #include <getopt.h>
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21012 $as_echo "$ac_try_echo") >&5
21013 (eval "$ac_compile") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest.$ac_objext; then
21023 ac_cv_have_decl_optreset=yes
21025 $as_echo "$as_me: failed program was
:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_cv_have_decl_optreset=no
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
21034 $as_echo "$ac_cv_have_decl_optreset" >&6; }
21035 if test "x
$ac_cv_have_decl_optreset" = x""yes; then
21041 if test -z "$GETOPT_H"; then
21042 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
21043 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
21044 if test "${gl_cv_func_gnu_getopt+set}" = set; then
21045 $as_echo_n "(cached
) " >&6
21047 if test "$cross_compiling" = yes; then
21048 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
21049 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
21050 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
21051 $as_echo_n "(cached
) " >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <getopt.h>
21064 #ifndef getopt_clip
21065 (void) getopt_clip;
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21079 $as_echo "$ac_try_echo") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest.$ac_objext; then
21090 ac_cv_have_decl_getopt_clip=yes
21092 $as_echo "$as_me: failed program was
:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21095 ac_cv_have_decl_getopt_clip=no
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
21101 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
21102 if test "x
$ac_cv_have_decl_getopt_clip" = x""yes; then
21103 gl_cv_func_gnu_getopt=no
21105 gl_cv_func_gnu_getopt=yes
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <getopt.h>
21121 myargv[0] = "conftest
";
21124 return getopt (2, myargv, "+a
") != '?';
21130 rm -f conftest$ac_exeext
21131 if { (ac_try="$ac_link"
21132 case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21136 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21137 $as_echo "$ac_try_echo") >&5
21138 (eval "$ac_link") 2>&5
21140 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21142 { (case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21147 $as_echo "$ac_try_echo") >&5
21148 (eval "$ac_try") 2>&5
21150 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 gl_cv_func_gnu_getopt=yes
21154 $as_echo "$as_me: program exited with status
$ac_status" >&5
21155 $as_echo "$as_me: failed program was
:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ( exit $ac_status )
21159 gl_cv_func_gnu_getopt=no
21161 rm -rf conftest.dSYM
21162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21167 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21168 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21169 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21176 if test -n "$GETOPT_H"; then
21181 cat >>confdefs.h <<\_ACEOF
21182 #define __GETOPT_PREFIX rpl_
21188 GETOPTOBJS='getopt.o getopt1.o'
21195 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21196 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21197 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21198 $as_echo_n "(cached
) " >&6
21200 # Use it with a single arg.
21201 cat >conftest.$ac_ext <<_ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 $ac_includes_default
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21223 $as_echo "$ac_try_echo") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21230 (exit $ac_status); } && {
21231 test -z "$ac_c_werror_flag" ||
21232 test ! -s conftest.err
21233 } && test -s conftest.$ac_objext; then
21234 ac_cv_func_getpgrp_void=no
21236 $as_echo "$as_me: failed program was
:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_cv_func_getpgrp_void=yes
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21246 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21247 if test $ac_cv_func_getpgrp_void = yes; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define GETPGRP_VOID 1
21257 for ac_func in strftime
21259 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21260 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21261 $as_echo_n "checking
for $ac_func...
" >&6; }
21262 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21263 $as_echo_n "(cached
) " >&6
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21273 #define $ac_func innocuous_$ac_func
21275 /* System header to define __stub macros and hopefully few prototypes,
21276 which can conflict with char $ac_func (); below.
21277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278 <limits.h> exists even on freestanding compilers. */
21281 # include <limits.h>
21283 # include <assert.h>
21288 /* Override any GCC internal prototype to avoid an error.
21289 Use char because int might match the return type of a GCC
21290 builtin and then its argument prototype would still apply. */
21295 /* The GNU C library defines this for functions which it implements
21296 to always fail with ENOSYS. Some functions are actually named
21297 something starting with __ and the normal name is an alias. */
21298 #if defined __stub_$ac_func || defined __stub___$ac_func
21305 return $ac_func ();
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (ac_try="$ac_link"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21316 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21317 $as_echo "$ac_try_echo") >&5
21318 (eval "$ac_link") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest$ac_exeext && {
21328 test "$cross_compiling" = yes ||
21329 $as_test_x conftest$ac_exeext
21331 eval "$as_ac_var=yes"
21333 $as_echo "$as_me: failed program was
:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21336 eval "$as_ac_var=no
"
21339 rm -rf conftest.dSYM
21340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21341 conftest$ac_exeext conftest.$ac_ext
21343 ac_res=`eval 'as_val=${'$as_ac_var'}
21344 $as_echo "$as_val"'`
21345 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21346 $as_echo "$ac_res" >&6; }
21347 as_val=`eval 'as_val=${'$as_ac_var'}
21348 $as_echo "$as_val"'`
21349 if test "x
$as_val" = x""yes; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21355 # strftime is in -lintl on SCO UNIX.
21356 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21357 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21358 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21359 $as_echo_n "(cached
) " >&6
21361 ac_check_lib_save_LIBS=$LIBS
21362 LIBS="-lintl $LIBS"
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21380 return strftime ();
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21392 $as_echo "$ac_try_echo") >&5
21393 (eval "$ac_link") 2>conftest.er1
21395 grep -v '^ *+' conftest.er1 >conftest.err
21397 cat conftest.err >&5
21398 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest$ac_exeext && {
21403 test "$cross_compiling" = yes ||
21404 $as_test_x conftest$ac_exeext
21406 ac_cv_lib_intl_strftime=yes
21408 $as_echo "$as_me: failed program was
:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_cv_lib_intl_strftime=no
21414 rm -rf conftest.dSYM
21415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21416 conftest$ac_exeext conftest.$ac_ext
21417 LIBS=$ac_check_lib_save_LIBS
21419 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21420 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21421 if test "x
$ac_cv_lib_intl_strftime" = x""yes; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_STRFTIME 1
21426 LIBS="-lintl $LIBS"
21435 for ac_func in grantpt
21437 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21438 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21439 $as_echo_n "checking
for $ac_func...
" >&6; }
21440 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21441 $as_echo_n "(cached
) " >&6
21443 cat >conftest.$ac_ext <<_ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21451 #define $ac_func innocuous_$ac_func
21453 /* System header to define __stub macros and hopefully few prototypes,
21454 which can conflict with char $ac_func (); below.
21455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456 <limits.h> exists even on freestanding compilers. */
21459 # include <limits.h>
21461 # include <assert.h>
21466 /* Override any GCC internal prototype to avoid an error.
21467 Use char because int might match the return type of a GCC
21468 builtin and then its argument prototype would still apply. */
21473 /* The GNU C library defines this for functions which it implements
21474 to always fail with ENOSYS. Some functions are actually named
21475 something starting with __ and the normal name is an alias. */
21476 #if defined __stub_$ac_func || defined __stub___$ac_func
21483 return $ac_func ();
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21495 $as_echo "$ac_try_echo") >&5
21496 (eval "$ac_link") 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest$ac_exeext && {
21506 test "$cross_compiling" = yes ||
21507 $as_test_x conftest$ac_exeext
21509 eval "$as_ac_var=yes"
21511 $as_echo "$as_me: failed program was
:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 eval "$as_ac_var=no
"
21517 rm -rf conftest.dSYM
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519 conftest$ac_exeext conftest.$ac_ext
21521 ac_res=`eval 'as_val=${'$as_ac_var'}
21522 $as_echo "$as_val"'`
21523 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21524 $as_echo "$ac_res" >&6; }
21525 as_val=`eval 'as_val=${'$as_ac_var'}
21526 $as_echo "$as_val"'`
21527 if test "x
$as_val" = x""yes; then
21528 cat >>confdefs.h <<_ACEOF
21529 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21536 # PTY-related GNU extensions.
21538 for ac_func in getpt
21540 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21541 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21542 $as_echo_n "checking
for $ac_func...
" >&6; }
21543 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21544 $as_echo_n "(cached
) " >&6
21546 cat >conftest.$ac_ext <<_ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21554 #define $ac_func innocuous_$ac_func
21556 /* System header to define __stub macros and hopefully few prototypes,
21557 which can conflict with char $ac_func (); below.
21558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21559 <limits.h> exists even on freestanding compilers. */
21562 # include <limits.h>
21564 # include <assert.h>
21569 /* Override any GCC internal prototype to avoid an error.
21570 Use char because int might match the return type of a GCC
21571 builtin and then its argument prototype would still apply. */
21576 /* The GNU C library defines this for functions which it implements
21577 to always fail with ENOSYS. Some functions are actually named
21578 something starting with __ and the normal name is an alias. */
21579 #if defined __stub_$ac_func || defined __stub___$ac_func
21586 return $ac_func ();
21591 rm -f conftest.$ac_objext conftest$ac_exeext
21592 if { (ac_try="$ac_link"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21597 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21598 $as_echo "$ac_try_echo") >&5
21599 (eval "$ac_link") 2>conftest.er1
21601 grep -v '^ *+' conftest.er1 >conftest.err
21603 cat conftest.err >&5
21604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21605 (exit $ac_status); } && {
21606 test -z "$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 } && test -s conftest$ac_exeext && {
21609 test "$cross_compiling" = yes ||
21610 $as_test_x conftest$ac_exeext
21612 eval "$as_ac_var=yes"
21614 $as_echo "$as_me: failed program was
:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 eval "$as_ac_var=no
"
21620 rm -rf conftest.dSYM
21621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21622 conftest$ac_exeext conftest.$ac_ext
21624 ac_res=`eval 'as_val=${'$as_ac_var'}
21625 $as_echo "$as_val"'`
21626 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21627 $as_echo "$ac_res" >&6; }
21628 as_val=`eval 'as_val=${'$as_ac_var'}
21629 $as_echo "$as_val"'`
21630 if test "x
$as_val" = x""yes; then
21631 cat >>confdefs.h <<_ACEOF
21632 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21639 # Check this now, so that we will NOT find the above functions in ncurses.
21640 # That is because we have not set up to link ncurses in lib-src.
21641 # It's better to believe a function is not available
21642 # than to expect to find it in ncurses.
21643 # Also we need tputs and friends to be able to build at all.
21644 have_tputs_et_al=true
21645 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21646 $as_echo_n "checking
for library containing tputs...
" >&6; }
21647 if test "${ac_cv_search_tputs+set}" = set; then
21648 $as_echo_n "(cached
) " >&6
21650 ac_func_search_save_LIBS=$LIBS
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21673 for ac_lib in '' ncurses terminfo termcap; do
21674 if test -z "$ac_lib"; then
21675 ac_res="none required
"
21678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (ac_try="$ac_link"
21682 case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21687 $as_echo "$ac_try_echo") >&5
21688 (eval "$ac_link") 2>conftest.er1
21690 grep -v '^ *+' conftest.er1 >conftest.err
21692 cat conftest.err >&5
21693 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest$ac_exeext && {
21698 test "$cross_compiling" = yes ||
21699 $as_test_x conftest$ac_exeext
21701 ac_cv_search_tputs=$ac_res
21703 $as_echo "$as_me: failed program was
:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21709 rm -rf conftest.dSYM
21710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21712 if test "${ac_cv_search_tputs+set}" = set; then
21716 if test "${ac_cv_search_tputs+set}" = set; then
21719 ac_cv_search_tputs=no
21721 rm conftest.$ac_ext
21722 LIBS=$ac_func_search_save_LIBS
21724 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21725 $as_echo "$ac_cv_search_tputs" >&6; }
21726 ac_res=$ac_cv_search_tputs
21727 if test "$ac_res" != no; then
21728 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21731 have_tputs_et_al=false
21734 if test "$have_tputs_et_al" != true; then
21735 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21736 Maybe some development libraries/packages are missing? Try installing
21737 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21738 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21739 Maybe some development libraries
/packages are missing? Try installing
21740 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21741 { (exit 1); exit 1; }; }
21743 # Must define this when any termcap library is found.
21745 cat >>confdefs.h <<\_ACEOF
21746 #define HAVE_LIBNCURSES 1
21749 ## FIXME This was the cpp logic, but I am not sure it is right.
21750 ## The above test has not necessarily found libncurses.
21751 HAVE_LIBNCURSES=yes
21753 ## Use terminfo instead of termcap?
21754 ## Note only system files NOT using terminfo are:
21755 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21756 ## darwin|gnu without ncurses.
21760 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21761 ## hpux10-20: Use the system provided termcap(3) library.
21762 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21763 ## is necessary. Otherwise Emacs dumps core when run -nw.
21764 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21766 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21767 ## The ncurses library has been moved out of the System framework in
21768 ## Mac OS X 10.2. So if configure detects it, set the command-line
21769 ## option to use it.
21771 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21772 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21774 LIBS_TERMCAP="-lncurses"
21779 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21780 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21781 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21782 $as_echo_n "(cached
) " >&6
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <osreldate.h>
21794 #if __FreeBSD_version < 400000
21802 rm -f conftest.$ac_objext conftest$ac_exeext
21803 if { (ac_try="$ac_link"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21809 $as_echo "$ac_try_echo") >&5
21810 (eval "$ac_link") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext && {
21820 test "$cross_compiling" = yes ||
21821 $as_test_x conftest$ac_exeext
21823 emacs_cv_freebsd_terminfo=yes
21825 $as_echo "$as_me: failed program was
:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 emacs_cv_freebsd_terminfo=no
21831 rm -rf conftest.dSYM
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21837 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21838 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21840 if test $emacs_cv_freebsd_terminfo = yes; then
21842 LIBS_TERMCAP="-lncurses"
21844 LIBS_TERMCAP="-ltermcap"
21851 ## hpux: Make sure we get select from libc rather than from libcurses
21852 ## because libcurses on HPUX 10.10 has a broken version of select.
21853 ## We used to use -lc -lcurses, but this may be cleaner.
21854 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21856 openbsd) LIBS_TERMCAP="-lncurses" ;;
21858 ## Must use system termcap, if we use any termcap. It does special things.
21859 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21862 TERMCAP_OBJ=tparam.o
21863 if test $TERMINFO = yes; then
21865 cat >>confdefs.h <<\_ACEOF
21870 ## Default used to be -ltermcap. Add a case above if need something else.
21871 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21873 TERMCAP_OBJ=terminfo.o
21879 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 #include <netinet/in.h>
21888 #include <arpa/nameser.h>
21889 #include <resolv.h>
21898 rm -f conftest.$ac_objext conftest$ac_exeext
21899 if { (ac_try="$ac_link"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21905 $as_echo "$ac_try_echo") >&5
21906 (eval "$ac_link") 2>conftest.er1
21908 grep -v '^ *+' conftest.er1 >conftest.err
21910 cat conftest.err >&5
21911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21912 (exit $ac_status); } && {
21913 test -z "$ac_c_werror_flag" ||
21914 test ! -s conftest.err
21915 } && test -s conftest$ac_exeext && {
21916 test "$cross_compiling" = yes ||
21917 $as_test_x conftest$ac_exeext
21921 $as_echo "$as_me: failed program was
:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21927 rm -rf conftest.dSYM
21928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21929 conftest$ac_exeext conftest.$ac_ext
21930 if test "$have_res_init" = no; then
21932 LIBS="$LIBS -lresolv"
21933 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21934 $as_echo_n "checking
for res_init with
-lresolv...
" >&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 #include <netinet/in.h>
21942 #include <arpa/nameser.h>
21943 #include <resolv.h>
21952 rm -f conftest.$ac_objext conftest$ac_exeext
21953 if { (ac_try="$ac_link"
21954 case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21958 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21959 $as_echo "$ac_try_echo") >&5
21960 (eval "$ac_link") 2>conftest.er1
21962 grep -v '^ *+' conftest.er1 >conftest.err
21964 cat conftest.err >&5
21965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21966 (exit $ac_status); } && {
21967 test -z "$ac_c_werror_flag" ||
21968 test ! -s conftest.err
21969 } && test -s conftest$ac_exeext && {
21970 test "$cross_compiling" = yes ||
21971 $as_test_x conftest$ac_exeext
21975 $as_echo "$as_me: failed program was
:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21981 rm -rf conftest.dSYM
21982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21983 conftest$ac_exeext conftest.$ac_ext
21984 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21985 $as_echo "$have_res_init" >&6; }
21986 if test "$have_res_init" = yes ; then
21992 if test "$have_res_init" = yes; then
21994 cat >>confdefs.h <<\_ACEOF
21995 #define HAVE_RES_INIT 1
22000 # Do we need the Hesiod library to provide the support routines?
22002 if test "$with_hesiod" != no ; then
22003 # Don't set $LIBS here -- see comments above. FIXME which comments?
22004 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
22005 $as_echo_n "checking
for res_send...
" >&6; }
22006 if test "${ac_cv_func_res_send+set}" = set; then
22007 $as_echo_n "(cached
) " >&6
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
22016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22017 #define res_send innocuous_res_send
22019 /* System header to define __stub macros and hopefully few prototypes,
22020 which can conflict with char res_send (); below.
22021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22022 <limits.h> exists even on freestanding compilers. */
22025 # include <limits.h>
22027 # include <assert.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. */
22039 /* The GNU C library defines this for functions which it implements
22040 to always fail with ENOSYS. Some functions are actually named
22041 something starting with __ and the normal name is an alias. */
22042 #if defined __stub_res_send || defined __stub___res_send
22049 return res_send ();
22054 rm -f conftest.$ac_objext conftest$ac_exeext
22055 if { (ac_try="$ac_link"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22061 $as_echo "$ac_try_echo") >&5
22062 (eval "$ac_link") 2>conftest.er1
22064 grep -v '^ *+' conftest.er1 >conftest.err
22066 cat conftest.err >&5
22067 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22068 (exit $ac_status); } && {
22069 test -z "$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22071 } && test -s conftest$ac_exeext && {
22072 test "$cross_compiling" = yes ||
22073 $as_test_x conftest$ac_exeext
22075 ac_cv_func_res_send=yes
22077 $as_echo "$as_me: failed program was
:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_cv_func_res_send=no
22083 rm -rf conftest.dSYM
22084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22085 conftest$ac_exeext conftest.$ac_ext
22087 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
22088 $as_echo "$ac_cv_func_res_send" >&6; }
22089 if test "x
$ac_cv_func_res_send" = x""yes; then
22092 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
22093 $as_echo_n "checking
for __res_send...
" >&6; }
22094 if test "${ac_cv_func___res_send+set}" = set; then
22095 $as_echo_n "(cached
) " >&6
22097 cat >conftest.$ac_ext <<_ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
22104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22105 #define __res_send innocuous___res_send
22107 /* System header to define __stub macros and hopefully few prototypes,
22108 which can conflict with char __res_send (); below.
22109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22110 <limits.h> exists even on freestanding compilers. */
22113 # include <limits.h>
22115 # include <assert.h>
22120 /* Override any GCC internal prototype to avoid an error.
22121 Use char because int might match the return type of a GCC
22122 builtin and then its argument prototype would still apply. */
22126 char __res_send ();
22127 /* The GNU C library defines this for functions which it implements
22128 to always fail with ENOSYS. Some functions are actually named
22129 something starting with __ and the normal name is an alias. */
22130 #if defined __stub___res_send || defined __stub_____res_send
22137 return __res_send ();
22142 rm -f conftest.$ac_objext conftest$ac_exeext
22143 if { (ac_try="$ac_link"
22144 case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22149 $as_echo "$ac_try_echo") >&5
22150 (eval "$ac_link") 2>conftest.er1
22152 grep -v '^ *+' conftest.er1 >conftest.err
22154 cat conftest.err >&5
22155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22156 (exit $ac_status); } && {
22157 test -z "$ac_c_werror_flag" ||
22158 test ! -s conftest.err
22159 } && test -s conftest$ac_exeext && {
22160 test "$cross_compiling" = yes ||
22161 $as_test_x conftest$ac_exeext
22163 ac_cv_func___res_send=yes
22165 $as_echo "$as_me: failed program was
:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22168 ac_cv_func___res_send=no
22171 rm -rf conftest.dSYM
22172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22173 conftest$ac_exeext conftest.$ac_ext
22175 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22176 $as_echo "$ac_cv_func___res_send" >&6; }
22177 if test "x
$ac_cv_func___res_send" = x""yes; then
22180 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22181 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22182 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22183 $as_echo_n "(cached
) " >&6
22185 ac_check_lib_save_LIBS=$LIBS
22186 LIBS="-lresolv $LIBS"
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
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. */
22204 return res_send ();
22209 rm -f conftest.$ac_objext conftest$ac_exeext
22210 if { (ac_try="$ac_link"
22211 case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22215 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22216 $as_echo "$ac_try_echo") >&5
22217 (eval "$ac_link") 2>conftest.er1
22219 grep -v '^ *+' conftest.er1 >conftest.err
22221 cat conftest.err >&5
22222 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest$ac_exeext && {
22227 test "$cross_compiling" = yes ||
22228 $as_test_x conftest$ac_exeext
22230 ac_cv_lib_resolv_res_send=yes
22232 $as_echo "$as_me: failed program was
:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 ac_cv_lib_resolv_res_send=no
22238 rm -rf conftest.dSYM
22239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22240 conftest$ac_exeext conftest.$ac_ext
22241 LIBS=$ac_check_lib_save_LIBS
22243 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22244 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22245 if test "x
$ac_cv_lib_resolv_res_send" = x""yes; then
22248 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22249 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22250 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22251 $as_echo_n "(cached
) " >&6
22253 ac_check_lib_save_LIBS=$LIBS
22254 LIBS="-lresolv $LIBS"
22255 cat >conftest.$ac_ext <<_ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22262 /* Override any GCC internal prototype to avoid an error.
22263 Use char because int might match the return type of a GCC
22264 builtin and then its argument prototype would still apply. */
22268 char __res_send ();
22272 return __res_send ();
22277 rm -f conftest.$ac_objext conftest$ac_exeext
22278 if { (ac_try="$ac_link"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22284 $as_echo "$ac_try_echo") >&5
22285 (eval "$ac_link") 2>conftest.er1
22287 grep -v '^ *+' conftest.er1 >conftest.err
22289 cat conftest.err >&5
22290 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest$ac_exeext && {
22295 test "$cross_compiling" = yes ||
22296 $as_test_x conftest$ac_exeext
22298 ac_cv_lib_resolv___res_send=yes
22300 $as_echo "$as_me: failed program was
:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 ac_cv_lib_resolv___res_send=no
22306 rm -rf conftest.dSYM
22307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22308 conftest$ac_exeext conftest.$ac_ext
22309 LIBS=$ac_check_lib_save_LIBS
22311 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22312 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22313 if test "x
$ac_cv_lib_resolv___res_send" = x""yes; then
22323 if test "$resolv" = yes ; then
22328 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22329 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22330 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22331 $as_echo_n "(cached
) " >&6
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22341 #define hes_getmailhost innocuous_hes_getmailhost
22343 /* System header to define __stub macros and hopefully few prototypes,
22344 which can conflict with char hes_getmailhost (); below.
22345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22346 <limits.h> exists even on freestanding compilers. */
22349 # include <limits.h>
22351 # include <assert.h>
22354 #undef hes_getmailhost
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22362 char hes_getmailhost ();
22363 /* The GNU C library defines this for functions which it implements
22364 to always fail with ENOSYS. Some functions are actually named
22365 something starting with __ and the normal name is an alias. */
22366 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22373 return hes_getmailhost ();
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386 (eval "$ac_link") 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest$ac_exeext && {
22396 test "$cross_compiling" = yes ||
22397 $as_test_x conftest$ac_exeext
22399 ac_cv_func_hes_getmailhost=yes
22401 $as_echo "$as_me: failed program was
:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 ac_cv_func_hes_getmailhost=no
22407 rm -rf conftest.dSYM
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409 conftest$ac_exeext conftest.$ac_ext
22411 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22412 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22413 if test "x
$ac_cv_func_hes_getmailhost" = x""yes; then
22416 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22417 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22418 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22419 $as_echo_n "(cached
) " >&6
22421 ac_check_lib_save_LIBS=$LIBS
22422 LIBS="-lhesiod $RESOLVLIB $LIBS"
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22430 /* Override any GCC internal prototype to avoid an error.
22431 Use char because int might match the return type of a GCC
22432 builtin and then its argument prototype would still apply. */
22436 char hes_getmailhost ();
22440 return hes_getmailhost ();
22445 rm -f conftest.$ac_objext conftest$ac_exeext
22446 if { (ac_try="$ac_link"
22447 case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22451 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22452 $as_echo "$ac_try_echo") >&5
22453 (eval "$ac_link") 2>conftest.er1
22455 grep -v '^ *+' conftest.er1 >conftest.err
22457 cat conftest.err >&5
22458 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest$ac_exeext && {
22463 test "$cross_compiling" = yes ||
22464 $as_test_x conftest$ac_exeext
22466 ac_cv_lib_hesiod_hes_getmailhost=yes
22468 $as_echo "$as_me: failed program was
:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22471 ac_cv_lib_hesiod_hes_getmailhost=no
22474 rm -rf conftest.dSYM
22475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22476 conftest$ac_exeext conftest.$ac_ext
22477 LIBS=$ac_check_lib_save_LIBS
22479 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22480 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22481 if test "x
$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
22490 if test x"$hesiod" = xyes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_LIBHESIOD 1
22501 # Do we need libresolv (due to res_init or Hesiod)?
22502 if test "$resolv" = yes ; then
22504 cat >>confdefs.h <<\_ACEOF
22505 #define HAVE_LIBRESOLV 1
22514 # These tell us which Kerberos-related libraries to use.
22521 if test "${with_kerberos}" != no; then
22522 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22523 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22524 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22525 $as_echo_n "(cached
) " >&6
22527 ac_check_lib_save_LIBS=$LIBS
22528 LIBS="-lcom_err $LIBS"
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22536 /* Override any GCC internal prototype to avoid an error.
22537 Use char because int might match the return type of a GCC
22538 builtin and then its argument prototype would still apply. */
22551 rm -f conftest.$ac_objext conftest$ac_exeext
22552 if { (ac_try="$ac_link"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22557 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22558 $as_echo "$ac_try_echo") >&5
22559 (eval "$ac_link") 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest$ac_exeext && {
22569 test "$cross_compiling" = yes ||
22570 $as_test_x conftest$ac_exeext
22572 ac_cv_lib_com_err_com_err=yes
22574 $as_echo "$as_me: failed program was
:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 ac_cv_lib_com_err_com_err=no
22580 rm -rf conftest.dSYM
22581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22582 conftest$ac_exeext conftest.$ac_ext
22583 LIBS=$ac_check_lib_save_LIBS
22585 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22586 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22587 if test "x
$ac_cv_lib_com_err_com_err" = x""yes; then
22593 if test $have_com_err = yes; then
22594 COM_ERRLIB=-lcom_err
22595 LIBS="$COM_ERRLIB $LIBS"
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_LIBCOM_ERR 1
22602 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22603 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22604 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22605 $as_echo_n "(cached
) " >&6
22607 ac_check_lib_save_LIBS=$LIBS
22608 LIBS="-lcrypto $LIBS"
22609 cat >conftest.$ac_ext <<_ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22616 /* Override any GCC internal prototype to avoid an error.
22617 Use char because int might match the return type of a GCC
22618 builtin and then its argument prototype would still apply. */
22622 char mit_des_cbc_encrypt ();
22626 return mit_des_cbc_encrypt ();
22631 rm -f conftest.$ac_objext conftest$ac_exeext
22632 if { (ac_try="$ac_link"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22637 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22638 $as_echo "$ac_try_echo") >&5
22639 (eval "$ac_link") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest$ac_exeext && {
22649 test "$cross_compiling" = yes ||
22650 $as_test_x conftest$ac_exeext
22652 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22654 $as_echo "$as_me: failed program was
:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22660 rm -rf conftest.dSYM
22661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22662 conftest$ac_exeext conftest.$ac_ext
22663 LIBS=$ac_check_lib_save_LIBS
22665 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22666 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22667 if test "x
$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22673 if test $have_crypto = yes; then
22675 LIBS="$CRYPTOLIB $LIBS"
22677 cat >>confdefs.h <<\_ACEOF
22678 #define HAVE_LIBCRYPTO 1
22682 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22683 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22684 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22685 $as_echo_n "(cached
) " >&6
22687 ac_check_lib_save_LIBS=$LIBS
22688 LIBS="-lk5crypto $LIBS"
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22696 /* Override any GCC internal prototype to avoid an error.
22697 Use char because int might match the return type of a GCC
22698 builtin and then its argument prototype would still apply. */
22702 char mit_des_cbc_encrypt ();
22706 return mit_des_cbc_encrypt ();
22711 rm -f conftest.$ac_objext conftest$ac_exeext
22712 if { (ac_try="$ac_link"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22718 $as_echo "$ac_try_echo") >&5
22719 (eval "$ac_link") 2>conftest.er1
22721 grep -v '^ *+' conftest.er1 >conftest.err
22723 cat conftest.err >&5
22724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext && {
22729 test "$cross_compiling" = yes ||
22730 $as_test_x conftest$ac_exeext
22732 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22734 $as_echo "$as_me: failed program was
:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22740 rm -rf conftest.dSYM
22741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22742 conftest$ac_exeext conftest.$ac_ext
22743 LIBS=$ac_check_lib_save_LIBS
22745 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22746 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22747 if test "x
$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22753 if test $have_k5crypto = yes; then
22754 CRYPTOLIB=-lk5crypto
22755 LIBS="$CRYPTOLIB $LIBS"
22757 cat >>confdefs.h <<\_ACEOF
22758 #define HAVE_LIBK5CRYPTO 1
22762 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22763 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22764 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22765 $as_echo_n "(cached
) " >&6
22767 ac_check_lib_save_LIBS=$LIBS
22768 LIBS="-lkrb5 $LIBS"
22769 cat >conftest.$ac_ext <<_ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22776 /* Override any GCC internal prototype to avoid an error.
22777 Use char because int might match the return type of a GCC
22778 builtin and then its argument prototype would still apply. */
22782 char krb5_init_context ();
22786 return krb5_init_context ();
22791 rm -f conftest.$ac_objext conftest$ac_exeext
22792 if { (ac_try="$ac_link"
22793 case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22797 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22798 $as_echo "$ac_try_echo") >&5
22799 (eval "$ac_link") 2>conftest.er1
22801 grep -v '^ *+' conftest.er1 >conftest.err
22803 cat conftest.err >&5
22804 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22805 (exit $ac_status); } && {
22806 test -z "$ac_c_werror_flag" ||
22807 test ! -s conftest.err
22808 } && test -s conftest$ac_exeext && {
22809 test "$cross_compiling" = yes ||
22810 $as_test_x conftest$ac_exeext
22812 ac_cv_lib_krb5_krb5_init_context=yes
22814 $as_echo "$as_me: failed program was
:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22817 ac_cv_lib_krb5_krb5_init_context=no
22820 rm -rf conftest.dSYM
22821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22822 conftest$ac_exeext conftest.$ac_ext
22823 LIBS=$ac_check_lib_save_LIBS
22825 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22826 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22827 if test "x
$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22833 if test $have_krb5=yes; then
22835 LIBS="$KRB5LIB $LIBS"
22837 cat >>confdefs.h <<\_ACEOF
22838 #define HAVE_LIBKRB5 1
22842 if test "${with_kerberos5}" = no; then
22843 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22844 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22845 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22846 $as_echo_n "(cached
) " >&6
22848 ac_check_lib_save_LIBS=$LIBS
22849 LIBS="-ldes425 $LIBS"
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22857 /* Override any GCC internal prototype to avoid an error.
22858 Use char because int might match the return type of a GCC
22859 builtin and then its argument prototype would still apply. */
22863 char des_cbc_encrypt ();
22867 return des_cbc_encrypt ();
22872 rm -f conftest.$ac_objext conftest$ac_exeext
22873 if { (ac_try="$ac_link"
22874 case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22878 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22879 $as_echo "$ac_try_echo") >&5
22880 (eval "$ac_link") 2>conftest.er1
22882 grep -v '^ *+' conftest.er1 >conftest.err
22884 cat conftest.err >&5
22885 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest$ac_exeext && {
22890 test "$cross_compiling" = yes ||
22891 $as_test_x conftest$ac_exeext
22893 ac_cv_lib_des425_des_cbc_encrypt=yes
22895 $as_echo "$as_me: failed program was
:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ac_cv_lib_des425_des_cbc_encrypt=no
22901 rm -rf conftest.dSYM
22902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22903 conftest$ac_exeext conftest.$ac_ext
22904 LIBS=$ac_check_lib_save_LIBS
22906 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22907 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22908 if test "x
$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22914 if test $have_des425 = yes; then
22916 LIBS="$DESLIB $LIBS"
22918 cat >>confdefs.h <<\_ACEOF
22919 #define HAVE_LIBDES425 1
22923 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22924 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22925 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22926 $as_echo_n "(cached
) " >&6
22928 ac_check_lib_save_LIBS=$LIBS
22930 cat >conftest.$ac_ext <<_ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22937 /* Override any GCC internal prototype to avoid an error.
22938 Use char because int might match the return type of a GCC
22939 builtin and then its argument prototype would still apply. */
22943 char des_cbc_encrypt ();
22947 return des_cbc_encrypt ();
22952 rm -f conftest.$ac_objext conftest$ac_exeext
22953 if { (ac_try="$ac_link"
22954 case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22958 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22959 $as_echo "$ac_try_echo") >&5
22960 (eval "$ac_link") 2>conftest.er1
22962 grep -v '^ *+' conftest.er1 >conftest.err
22964 cat conftest.err >&5
22965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest$ac_exeext && {
22970 test "$cross_compiling" = yes ||
22971 $as_test_x conftest$ac_exeext
22973 ac_cv_lib_des_des_cbc_encrypt=yes
22975 $as_echo "$as_me: failed program was
:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 ac_cv_lib_des_des_cbc_encrypt=no
22981 rm -rf conftest.dSYM
22982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22983 conftest$ac_exeext conftest.$ac_ext
22984 LIBS=$ac_check_lib_save_LIBS
22986 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22987 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22988 if test "x
$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
22994 if test $have_des = yes; then
22996 LIBS="$DESLIB $LIBS"
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_LIBDES 1
23004 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
23005 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
23006 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
23007 $as_echo_n "(cached
) " >&6
23009 ac_check_lib_save_LIBS=$LIBS
23010 LIBS="-lkrb4 $LIBS"
23011 cat >conftest.$ac_ext <<_ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23018 /* Override any GCC internal prototype to avoid an error.
23019 Use char because int might match the return type of a GCC
23020 builtin and then its argument prototype would still apply. */
23024 char krb_get_cred ();
23028 return krb_get_cred ();
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (ac_try="$ac_link"
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_link") 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_exeext && {
23051 test "$cross_compiling" = yes ||
23052 $as_test_x conftest$ac_exeext
23054 ac_cv_lib_krb4_krb_get_cred=yes
23056 $as_echo "$as_me: failed program was
:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23059 ac_cv_lib_krb4_krb_get_cred=no
23062 rm -rf conftest.dSYM
23063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23064 conftest$ac_exeext conftest.$ac_ext
23065 LIBS=$ac_check_lib_save_LIBS
23067 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
23068 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23069 if test "x
$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
23075 if test $have_krb4 = yes; then
23077 LIBS="$KRB4LIB $LIBS"
23079 cat >>confdefs.h <<\_ACEOF
23080 #define HAVE_LIBKRB4 1
23084 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
23085 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
23086 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
23087 $as_echo_n "(cached
) " >&6
23089 ac_check_lib_save_LIBS=$LIBS
23091 cat >conftest.$ac_ext <<_ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h. */
23098 /* Override any GCC internal prototype to avoid an error.
23099 Use char because int might match the return type of a GCC
23100 builtin and then its argument prototype would still apply. */
23104 char krb_get_cred ();
23108 return krb_get_cred ();
23113 rm -f conftest.$ac_objext conftest$ac_exeext
23114 if { (ac_try="$ac_link"
23115 case "(($ac_try" in
23116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117 *) ac_try_echo=$ac_try;;
23119 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23120 $as_echo "$ac_try_echo") >&5
23121 (eval "$ac_link") 2>conftest.er1
23123 grep -v '^ *+' conftest.er1 >conftest.err
23125 cat conftest.err >&5
23126 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23127 (exit $ac_status); } && {
23128 test -z "$ac_c_werror_flag" ||
23129 test ! -s conftest.err
23130 } && test -s conftest$ac_exeext && {
23131 test "$cross_compiling" = yes ||
23132 $as_test_x conftest$ac_exeext
23134 ac_cv_lib_krb_krb_get_cred=yes
23136 $as_echo "$as_me: failed program was
:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_cv_lib_krb_krb_get_cred=no
23142 rm -rf conftest.dSYM
23143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23144 conftest$ac_exeext conftest.$ac_ext
23145 LIBS=$ac_check_lib_save_LIBS
23147 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
23148 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23149 if test "x
$ac_cv_lib_krb_krb_get_cred" = x""yes; then
23155 if test $have_krb = yes; then
23157 LIBS="$KRB4LIB $LIBS"
23159 cat >>confdefs.h <<\_ACEOF
23160 #define HAVE_LIBKRB 1
23167 if test "${with_kerberos5}" != no; then
23169 for ac_header in krb5.h
23171 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23172 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23173 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23174 $as_echo_n "checking
for $ac_header...
" >&6; }
23175 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23176 $as_echo_n "(cached
) " >&6
23178 ac_res=`eval 'as_val=${'$as_ac_Header'}
23179 $as_echo "$as_val"'`
23180 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23181 $as_echo "$ac_res" >&6; }
23183 # Is the header compilable?
23184 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23185 $as_echo_n "checking
$ac_header usability...
" >&6; }
23186 cat >conftest.$ac_ext <<_ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 $ac_includes_default
23193 #include <$ac_header>
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23202 $as_echo "$ac_try_echo") >&5
23203 (eval "$ac_compile") 2>conftest.er1
23205 grep -v '^ *+' conftest.er1 >conftest.err
23207 cat conftest.err >&5
23208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23209 (exit $ac_status); } && {
23210 test -z "$ac_c_werror_flag" ||
23211 test ! -s conftest.err
23212 } && test -s conftest.$ac_objext; then
23213 ac_header_compiler=yes
23215 $as_echo "$as_me: failed program was
:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23218 ac_header_compiler=no
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23223 $as_echo "$ac_header_compiler" >&6; }
23225 # Is the header present?
23226 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23227 $as_echo_n "checking
$ac_header presence...
" >&6; }
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 #include <$ac_header>
23236 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23237 case "(($ac_try" in
23238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23239 *) ac_try_echo=$ac_try;;
23241 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23242 $as_echo "$ac_try_echo") >&5
23243 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23245 grep -v '^ *+' conftest.er1 >conftest.err
23247 cat conftest.err >&5
23248 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23249 (exit $ac_status); } >/dev/null && {
23250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23251 test ! -s conftest.err
23253 ac_header_preproc=yes
23255 $as_echo "$as_me: failed program was
:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23258 ac_header_preproc=no
23261 rm -f conftest.err conftest.$ac_ext
23262 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23263 $as_echo "$ac_header_preproc" >&6; }
23265 # So? What about this header?
23266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23268 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23269 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23270 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23272 ac_header_preproc=yes
23275 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23276 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23278 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23279 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23280 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23281 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23282 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23283 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23286 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23290 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23291 $as_echo_n "checking
for $ac_header...
" >&6; }
23292 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23293 $as_echo_n "(cached
) " >&6
23295 eval "$as_ac_Header=\
$ac_header_preproc"
23297 ac_res=`eval 'as_val=${'$as_ac_Header'}
23298 $as_echo "$as_val"'`
23299 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23300 $as_echo "$ac_res" >&6; }
23303 as_val=`eval 'as_val=${'$as_ac_Header'}
23304 $as_echo "$as_val"'`
23305 if test "x
$as_val" = x""yes; then
23306 cat >>confdefs.h <<_ACEOF
23307 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23309 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23310 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23311 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23312 $as_echo_n "(cached
) " >&6
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23325 static krb5_error ac_aggr;
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23339 $as_echo "$ac_try_echo") >&5
23340 (eval "$ac_compile") 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest.$ac_objext; then
23350 ac_cv_member_krb5_error_text=yes
23352 $as_echo "$as_me: failed program was
:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 cat >conftest.$ac_ext <<_ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23366 static krb5_error ac_aggr;
23367 if (sizeof ac_aggr.text)
23373 rm -f conftest.$ac_objext
23374 if { (ac_try="$ac_compile"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23379 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23380 $as_echo "$ac_try_echo") >&5
23381 (eval "$ac_compile") 2>conftest.er1
23383 grep -v '^ *+' conftest.er1 >conftest.err
23385 cat conftest.err >&5
23386 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23387 (exit $ac_status); } && {
23388 test -z "$ac_c_werror_flag" ||
23389 test ! -s conftest.err
23390 } && test -s conftest.$ac_objext; then
23391 ac_cv_member_krb5_error_text=yes
23393 $as_echo "$as_me: failed program was
:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ac_cv_member_krb5_error_text=no
23399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23404 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23405 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23406 if test "x
$ac_cv_member_krb5_error_text" = x""yes; then
23408 cat >>confdefs.h <<_ACEOF
23409 #define HAVE_KRB5_ERROR_TEXT 1
23414 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23415 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23416 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23417 $as_echo_n "(cached
) " >&6
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23430 static krb5_error ac_aggr;
23431 if (ac_aggr.e_text)
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23444 $as_echo "$ac_try_echo") >&5
23445 (eval "$ac_compile") 2>conftest.er1
23447 grep -v '^ *+' conftest.er1 >conftest.err
23449 cat conftest.err >&5
23450 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23451 (exit $ac_status); } && {
23452 test -z "$ac_c_werror_flag" ||
23453 test ! -s conftest.err
23454 } && test -s conftest.$ac_objext; then
23455 ac_cv_member_krb5_error_e_text=yes
23457 $as_echo "$as_me: failed program was
:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23471 static krb5_error ac_aggr;
23472 if (sizeof ac_aggr.e_text)
23478 rm -f conftest.$ac_objext
23479 if { (ac_try="$ac_compile"
23480 case "(($ac_try" in
23481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23482 *) ac_try_echo=$ac_try;;
23484 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23485 $as_echo "$ac_try_echo") >&5
23486 (eval "$ac_compile") 2>conftest.er1
23488 grep -v '^ *+' conftest.er1 >conftest.err
23490 cat conftest.err >&5
23491 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23492 (exit $ac_status); } && {
23493 test -z "$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 } && test -s conftest.$ac_objext; then
23496 ac_cv_member_krb5_error_e_text=yes
23498 $as_echo "$as_me: failed program was
:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23501 ac_cv_member_krb5_error_e_text=no
23504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23510 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23511 if test "x
$ac_cv_member_krb5_error_e_text" = x""yes; then
23513 cat >>confdefs.h <<_ACEOF
23514 #define HAVE_KRB5_ERROR_E_TEXT 1
23526 for ac_header in des.h
23528 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23530 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23531 $as_echo_n "checking
for $ac_header...
" >&6; }
23532 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23533 $as_echo_n "(cached
) " >&6
23535 ac_res=`eval 'as_val=${'$as_ac_Header'}
23536 $as_echo "$as_val"'`
23537 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23538 $as_echo "$ac_res" >&6; }
23540 # Is the header compilable?
23541 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23542 $as_echo_n "checking
$ac_header usability...
" >&6; }
23543 cat >conftest.$ac_ext <<_ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23549 $ac_includes_default
23550 #include <$ac_header>
23552 rm -f conftest.$ac_objext
23553 if { (ac_try="$ac_compile"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23558 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23559 $as_echo "$ac_try_echo") >&5
23560 (eval "$ac_compile") 2>conftest.er1
23562 grep -v '^ *+' conftest.er1 >conftest.err
23564 cat conftest.err >&5
23565 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest.$ac_objext; then
23570 ac_header_compiler=yes
23572 $as_echo "$as_me: failed program was
:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ac_header_compiler=no
23578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23580 $as_echo "$ac_header_compiler" >&6; }
23582 # Is the header present?
23583 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23584 $as_echo_n "checking
$ac_header presence...
" >&6; }
23585 cat >conftest.$ac_ext <<_ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h. */
23591 #include <$ac_header>
23593 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23599 $as_echo "$ac_try_echo") >&5
23600 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23602 grep -v '^ *+' conftest.er1 >conftest.err
23604 cat conftest.err >&5
23605 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23606 (exit $ac_status); } >/dev/null && {
23607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23610 ac_header_preproc=yes
23612 $as_echo "$as_me: failed program was
:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_header_preproc=no
23618 rm -f conftest.err conftest.$ac_ext
23619 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23620 $as_echo "$ac_header_preproc" >&6; }
23622 # So? What about this header?
23623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23625 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23626 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23629 ac_header_preproc=yes
23632 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23633 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23634 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23635 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23637 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23638 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23639 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23640 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23642 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23643 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23647 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23648 $as_echo_n "checking
for $ac_header...
" >&6; }
23649 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23650 $as_echo_n "(cached
) " >&6
23652 eval "$as_ac_Header=\
$ac_header_preproc"
23654 ac_res=`eval 'as_val=${'$as_ac_Header'}
23655 $as_echo "$as_val"'`
23656 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23657 $as_echo "$ac_res" >&6; }
23660 as_val=`eval 'as_val=${'$as_ac_Header'}
23661 $as_echo "$as_val"'`
23662 if test "x
$as_val" = x""yes; then
23663 cat >>confdefs.h <<_ACEOF
23664 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23669 for ac_header in kerberosIV/des.h
23671 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23673 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23674 $as_echo_n "checking
for $ac_header...
" >&6; }
23675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23676 $as_echo_n "(cached
) " >&6
23678 ac_res=`eval 'as_val=${'$as_ac_Header'}
23679 $as_echo "$as_val"'`
23680 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23683 # Is the header compilable?
23684 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23685 $as_echo_n "checking
$ac_header usability...
" >&6; }
23686 cat >conftest.$ac_ext <<_ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 $ac_includes_default
23693 #include <$ac_header>
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23701 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23702 $as_echo "$ac_try_echo") >&5
23703 (eval "$ac_compile") 2>conftest.er1
23705 grep -v '^ *+' conftest.er1 >conftest.err
23707 cat conftest.err >&5
23708 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23709 (exit $ac_status); } && {
23710 test -z "$ac_c_werror_flag" ||
23711 test ! -s conftest.err
23712 } && test -s conftest.$ac_objext; then
23713 ac_header_compiler=yes
23715 $as_echo "$as_me: failed program was
:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23718 ac_header_compiler=no
23721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23723 $as_echo "$ac_header_compiler" >&6; }
23725 # Is the header present?
23726 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23727 $as_echo_n "checking
$ac_header presence...
" >&6; }
23728 cat >conftest.$ac_ext <<_ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 #include <$ac_header>
23736 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23741 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23742 $as_echo "$ac_try_echo") >&5
23743 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23745 grep -v '^ *+' conftest.er1 >conftest.err
23747 cat conftest.err >&5
23748 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23749 (exit $ac_status); } >/dev/null && {
23750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23751 test ! -s conftest.err
23753 ac_header_preproc=yes
23755 $as_echo "$as_me: failed program was
:" >&5
23756 sed 's/^/| /' conftest.$ac_ext >&5
23758 ac_header_preproc=no
23761 rm -f conftest.err conftest.$ac_ext
23762 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23763 $as_echo "$ac_header_preproc" >&6; }
23765 # So? What about this header?
23766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23768 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23769 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23772 ac_header_preproc=yes
23775 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23776 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23777 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23778 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23779 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23780 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23781 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23782 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23783 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23785 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23786 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23790 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23791 $as_echo_n "checking
for $ac_header...
" >&6; }
23792 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23793 $as_echo_n "(cached
) " >&6
23795 eval "$as_ac_Header=\
$ac_header_preproc"
23797 ac_res=`eval 'as_val=${'$as_ac_Header'}
23798 $as_echo "$as_val"'`
23799 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23800 $as_echo "$ac_res" >&6; }
23803 as_val=`eval 'as_val=${'$as_ac_Header'}
23804 $as_echo "$as_val"'`
23805 if test "x
$as_val" = x""yes; then
23806 cat >>confdefs.h <<_ACEOF
23807 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23812 for ac_header in kerberos/des.h
23814 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23815 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23816 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23817 $as_echo_n "checking
for $ac_header...
" >&6; }
23818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23819 $as_echo_n "(cached
) " >&6
23821 ac_res=`eval 'as_val=${'$as_ac_Header'}
23822 $as_echo "$as_val"'`
23823 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23824 $as_echo "$ac_res" >&6; }
23826 # Is the header compilable?
23827 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23828 $as_echo_n "checking
$ac_header usability...
" >&6; }
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 $ac_includes_default
23836 #include <$ac_header>
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23844 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23845 $as_echo "$ac_try_echo") >&5
23846 (eval "$ac_compile") 2>conftest.er1
23848 grep -v '^ *+' conftest.er1 >conftest.err
23850 cat conftest.err >&5
23851 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23852 (exit $ac_status); } && {
23853 test -z "$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23855 } && test -s conftest.$ac_objext; then
23856 ac_header_compiler=yes
23858 $as_echo "$as_me: failed program was
:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23861 ac_header_compiler=no
23864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23866 $as_echo "$ac_header_compiler" >&6; }
23868 # Is the header present?
23869 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23870 $as_echo_n "checking
$ac_header presence...
" >&6; }
23871 cat >conftest.$ac_ext <<_ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 #include <$ac_header>
23879 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23884 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23885 $as_echo "$ac_try_echo") >&5
23886 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23892 (exit $ac_status); } >/dev/null && {
23893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23896 ac_header_preproc=yes
23898 $as_echo "$as_me: failed program was
:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_header_preproc=no
23904 rm -f conftest.err conftest.$ac_ext
23905 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23906 $as_echo "$ac_header_preproc" >&6; }
23908 # So? What about this header?
23909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23911 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23912 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23915 ac_header_preproc=yes
23918 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23919 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23921 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23923 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23925 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23929 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23933 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23934 $as_echo_n "checking
for $ac_header...
" >&6; }
23935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23936 $as_echo_n "(cached
) " >&6
23938 eval "$as_ac_Header=\
$ac_header_preproc"
23940 ac_res=`eval 'as_val=${'$as_ac_Header'}
23941 $as_echo "$as_val"'`
23942 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23943 $as_echo "$ac_res" >&6; }
23946 as_val=`eval 'as_val=${'$as_ac_Header'}
23947 $as_echo "$as_val"'`
23948 if test "x
$as_val" = x""yes; then
23949 cat >>confdefs.h <<_ACEOF
23950 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23966 for ac_header in krb.h
23968 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23970 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23971 $as_echo_n "checking
for $ac_header...
" >&6; }
23972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23973 $as_echo_n "(cached
) " >&6
23975 ac_res=`eval 'as_val=${'$as_ac_Header'}
23976 $as_echo "$as_val"'`
23977 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23978 $as_echo "$ac_res" >&6; }
23980 # Is the header compilable?
23981 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23982 $as_echo_n "checking
$ac_header usability...
" >&6; }
23983 cat >conftest.$ac_ext <<_ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 $ac_includes_default
23990 #include <$ac_header>
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23999 $as_echo "$ac_try_echo") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24002 grep -v '^ *+' conftest.er1 >conftest.err
24004 cat conftest.err >&5
24005 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.$ac_objext; then
24010 ac_header_compiler=yes
24012 $as_echo "$as_me: failed program was
:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 ac_header_compiler=no
24018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24020 $as_echo "$ac_header_compiler" >&6; }
24022 # Is the header present?
24023 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24024 $as_echo_n "checking
$ac_header presence...
" >&6; }
24025 cat >conftest.$ac_ext <<_ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24031 #include <$ac_header>
24033 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24038 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24039 $as_echo "$ac_try_echo") >&5
24040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24042 grep -v '^ *+' conftest.er1 >conftest.err
24044 cat conftest.err >&5
24045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24046 (exit $ac_status); } >/dev/null && {
24047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24048 test ! -s conftest.err
24050 ac_header_preproc=yes
24052 $as_echo "$as_me: failed program was
:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 ac_header_preproc=no
24058 rm -f conftest.err conftest.$ac_ext
24059 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24060 $as_echo "$ac_header_preproc" >&6; }
24062 # So? What about this header?
24063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24066 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24069 ac_header_preproc=yes
24072 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24073 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24074 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24075 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24076 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24077 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24078 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24079 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24080 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24083 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24087 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24088 $as_echo_n "checking
for $ac_header...
" >&6; }
24089 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24090 $as_echo_n "(cached
) " >&6
24092 eval "$as_ac_Header=\
$ac_header_preproc"
24094 ac_res=`eval 'as_val=${'$as_ac_Header'}
24095 $as_echo "$as_val"'`
24096 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24097 $as_echo "$ac_res" >&6; }
24100 as_val=`eval 'as_val=${'$as_ac_Header'}
24101 $as_echo "$as_val"'`
24102 if test "x
$as_val" = x""yes; then
24103 cat >>confdefs.h <<_ACEOF
24104 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24109 for ac_header in kerberosIV/krb.h
24111 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24113 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24114 $as_echo_n "checking
for $ac_header...
" >&6; }
24115 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24116 $as_echo_n "(cached
) " >&6
24118 ac_res=`eval 'as_val=${'$as_ac_Header'}
24119 $as_echo "$as_val"'`
24120 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24121 $as_echo "$ac_res" >&6; }
24123 # Is the header compilable?
24124 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24125 $as_echo_n "checking
$ac_header usability...
" >&6; }
24126 cat >conftest.$ac_ext <<_ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h. */
24132 $ac_includes_default
24133 #include <$ac_header>
24135 rm -f conftest.$ac_objext
24136 if { (ac_try="$ac_compile"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24142 $as_echo "$ac_try_echo") >&5
24143 (eval "$ac_compile") 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest.$ac_objext; then
24153 ac_header_compiler=yes
24155 $as_echo "$as_me: failed program was
:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 ac_header_compiler=no
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24163 $as_echo "$ac_header_compiler" >&6; }
24165 # Is the header present?
24166 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24167 $as_echo_n "checking
$ac_header presence...
" >&6; }
24168 cat >conftest.$ac_ext <<_ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 #include <$ac_header>
24176 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24182 $as_echo "$ac_try_echo") >&5
24183 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24185 grep -v '^ *+' conftest.er1 >conftest.err
24187 cat conftest.err >&5
24188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24189 (exit $ac_status); } >/dev/null && {
24190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24191 test ! -s conftest.err
24193 ac_header_preproc=yes
24195 $as_echo "$as_me: failed program was
:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 ac_header_preproc=no
24201 rm -f conftest.err conftest.$ac_ext
24202 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24203 $as_echo "$ac_header_preproc" >&6; }
24205 # So? What about this header?
24206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24208 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24209 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24210 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24212 ac_header_preproc=yes
24215 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24216 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24217 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24218 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24219 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24220 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24221 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24222 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24223 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24225 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24226 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24230 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24231 $as_echo_n "checking
for $ac_header...
" >&6; }
24232 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24233 $as_echo_n "(cached
) " >&6
24235 eval "$as_ac_Header=\
$ac_header_preproc"
24237 ac_res=`eval 'as_val=${'$as_ac_Header'}
24238 $as_echo "$as_val"'`
24239 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24240 $as_echo "$ac_res" >&6; }
24243 as_val=`eval 'as_val=${'$as_ac_Header'}
24244 $as_echo "$as_val"'`
24245 if test "x
$as_val" = x""yes; then
24246 cat >>confdefs.h <<_ACEOF
24247 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24252 for ac_header in kerberos/krb.h
24254 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24256 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24257 $as_echo_n "checking
for $ac_header...
" >&6; }
24258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24259 $as_echo_n "(cached
) " >&6
24261 ac_res=`eval 'as_val=${'$as_ac_Header'}
24262 $as_echo "$as_val"'`
24263 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24264 $as_echo "$ac_res" >&6; }
24266 # Is the header compilable?
24267 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24268 $as_echo_n "checking
$ac_header usability...
" >&6; }
24269 cat >conftest.$ac_ext <<_ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h. */
24275 $ac_includes_default
24276 #include <$ac_header>
24278 rm -f conftest.$ac_objext
24279 if { (ac_try="$ac_compile"
24280 case "(($ac_try" in
24281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282 *) ac_try_echo=$ac_try;;
24284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24285 $as_echo "$ac_try_echo") >&5
24286 (eval "$ac_compile") 2>conftest.er1
24288 grep -v '^ *+' conftest.er1 >conftest.err
24290 cat conftest.err >&5
24291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24292 (exit $ac_status); } && {
24293 test -z "$ac_c_werror_flag" ||
24294 test ! -s conftest.err
24295 } && test -s conftest.$ac_objext; then
24296 ac_header_compiler=yes
24298 $as_echo "$as_me: failed program was
:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 ac_header_compiler=no
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24306 $as_echo "$ac_header_compiler" >&6; }
24308 # Is the header present?
24309 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24310 $as_echo_n "checking
$ac_header presence...
" >&6; }
24311 cat >conftest.$ac_ext <<_ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h. */
24317 #include <$ac_header>
24319 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24320 case "(($ac_try" in
24321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24322 *) ac_try_echo=$ac_try;;
24324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24325 $as_echo "$ac_try_echo") >&5
24326 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24328 grep -v '^ *+' conftest.er1 >conftest.err
24330 cat conftest.err >&5
24331 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24332 (exit $ac_status); } >/dev/null && {
24333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24334 test ! -s conftest.err
24336 ac_header_preproc=yes
24338 $as_echo "$as_me: failed program was
:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24341 ac_header_preproc=no
24344 rm -f conftest.err conftest.$ac_ext
24345 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24346 $as_echo "$ac_header_preproc" >&6; }
24348 # So? What about this header?
24349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24351 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24352 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24353 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24355 ac_header_preproc=yes
24358 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24359 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24360 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24361 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24362 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24363 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24364 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24365 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24366 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24368 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24369 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24373 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24374 $as_echo_n "checking
for $ac_header...
" >&6; }
24375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24376 $as_echo_n "(cached
) " >&6
24378 eval "$as_ac_Header=\
$ac_header_preproc"
24380 ac_res=`eval 'as_val=${'$as_ac_Header'}
24381 $as_echo "$as_val"'`
24382 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24383 $as_echo "$ac_res" >&6; }
24386 as_val=`eval 'as_val=${'$as_ac_Header'}
24387 $as_echo "$as_val"'`
24388 if test "x
$as_val" = x""yes; then
24389 cat >>confdefs.h <<_ACEOF
24390 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24407 for ac_header in com_err.h
24409 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24411 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24412 $as_echo_n "checking
for $ac_header...
" >&6; }
24413 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24414 $as_echo_n "(cached
) " >&6
24416 ac_res=`eval 'as_val=${'$as_ac_Header'}
24417 $as_echo "$as_val"'`
24418 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24419 $as_echo "$ac_res" >&6; }
24421 # Is the header compilable?
24422 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24423 $as_echo_n "checking
$ac_header usability...
" >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 $ac_includes_default
24431 #include <$ac_header>
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_compile") 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest.$ac_objext; then
24451 ac_header_compiler=yes
24453 $as_echo "$as_me: failed program was
:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_header_compiler=no
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24461 $as_echo "$ac_header_compiler" >&6; }
24463 # Is the header present?
24464 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24465 $as_echo_n "checking
$ac_header presence...
" >&6; }
24466 cat >conftest.$ac_ext <<_ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 #include <$ac_header>
24474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24475 case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24479 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24480 $as_echo "$ac_try_echo") >&5
24481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24483 grep -v '^ *+' conftest.er1 >conftest.err
24485 cat conftest.err >&5
24486 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24487 (exit $ac_status); } >/dev/null && {
24488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24489 test ! -s conftest.err
24491 ac_header_preproc=yes
24493 $as_echo "$as_me: failed program was
:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ac_header_preproc=no
24499 rm -f conftest.err conftest.$ac_ext
24500 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24501 $as_echo "$ac_header_preproc" >&6; }
24503 # So? What about this header?
24504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24506 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24507 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24508 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24510 ac_header_preproc=yes
24513 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24514 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24515 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24516 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24517 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24518 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24520 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24524 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24528 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24529 $as_echo_n "checking
for $ac_header...
" >&6; }
24530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24531 $as_echo_n "(cached
) " >&6
24533 eval "$as_ac_Header=\
$ac_header_preproc"
24535 ac_res=`eval 'as_val=${'$as_ac_Header'}
24536 $as_echo "$as_val"'`
24537 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24538 $as_echo "$ac_res" >&6; }
24541 as_val=`eval 'as_val=${'$as_ac_Header'}
24542 $as_echo "$as_val"'`
24543 if test "x
$as_val" = x""yes; then
24544 cat >>confdefs.h <<_ACEOF
24545 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24560 # Solaris requires -lintl if you want strerror (which calls dgettext)
24561 # to return localized messages.
24563 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24564 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24565 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24566 $as_echo_n "(cached
) " >&6
24568 ac_check_lib_save_LIBS=$LIBS
24569 LIBS="-lintl $LIBS"
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24577 /* Override any GCC internal prototype to avoid an error.
24578 Use char because int might match the return type of a GCC
24579 builtin and then its argument prototype would still apply. */
24587 return dgettext ();
24592 rm -f conftest.$ac_objext conftest$ac_exeext
24593 if { (ac_try="$ac_link"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24599 $as_echo "$ac_try_echo") >&5
24600 (eval "$ac_link") 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest$ac_exeext && {
24610 test "$cross_compiling" = yes ||
24611 $as_test_x conftest$ac_exeext
24613 ac_cv_lib_intl_dgettext=yes
24615 $as_echo "$as_me: failed program was
:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 ac_cv_lib_intl_dgettext=no
24621 rm -rf conftest.dSYM
24622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24623 conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24626 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24627 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24628 if test "x
$ac_cv_lib_intl_dgettext" = x""yes; then
24629 cat >>confdefs.h <<_ACEOF
24630 #define HAVE_LIBINTL 1
24633 LIBS="-lintl $LIBS"
24638 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24639 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24640 if test "${emacs_cv_localtime_cache+set}" = set; then
24641 $as_echo_n "(cached
) " >&6
24643 if test x$ac_cv_func_tzset = xyes; then
24644 if test "$cross_compiling" = yes; then
24645 # If we have tzset, assume the worst when cross-compiling.
24646 emacs_cv_localtime_cache=yes
24648 cat >conftest.$ac_ext <<_ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24655 extern char **environ;
24659 for (to = from = environ; (*to = *from); from++)
24660 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24663 char TZ_GMT0[] = "TZ
=GMT0
";
24664 char TZ_PST8[] = "TZ
=PST8
";
24667 time_t now = time ((time_t *) 0);
24668 int hour_GMT0, hour_unset;
24669 if (putenv (TZ_GMT0) != 0)
24671 hour_GMT0 = localtime (&now)->tm_hour;
24673 hour_unset = localtime (&now)->tm_hour;
24674 if (putenv (TZ_PST8) != 0)
24676 if (localtime (&now)->tm_hour == hour_GMT0)
24679 if (localtime (&now)->tm_hour != hour_unset)
24684 rm -f conftest$ac_exeext
24685 if { (ac_try="$ac_link"
24686 case "(($ac_try" in
24687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688 *) ac_try_echo=$ac_try;;
24690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24691 $as_echo "$ac_try_echo") >&5
24692 (eval "$ac_link") 2>&5
24694 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24696 { (case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24700 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24701 $as_echo "$ac_try_echo") >&5
24702 (eval "$ac_try") 2>&5
24704 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24705 (exit $ac_status); }; }; then
24706 emacs_cv_localtime_cache=no
24708 $as_echo "$as_me: program exited with status
$ac_status" >&5
24709 $as_echo "$as_me: failed program was
:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 ( exit $ac_status )
24713 emacs_cv_localtime_cache=yes
24715 rm -rf conftest.dSYM
24716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24721 # If we lack tzset, report that localtime does not cache TZ,
24722 # since we can't invalidate the cache if we don't have tzset.
24723 emacs_cv_localtime_cache=no
24726 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24727 $as_echo "$emacs_cv_localtime_cache" >&6; }
24728 if test $emacs_cv_localtime_cache = yes; then
24730 cat >>confdefs.h <<\_ACEOF
24731 #define LOCALTIME_CACHE 1
24736 if test "x
$HAVE_TIMEVAL" = xyes; then
24738 for ac_func in gettimeofday
24740 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24741 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24742 $as_echo_n "checking
for $ac_func...
" >&6; }
24743 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24744 $as_echo_n "(cached
) " >&6
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24754 #define $ac_func innocuous_$ac_func
24756 /* System header to define __stub macros and hopefully few prototypes,
24757 which can conflict with char $ac_func (); below.
24758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24759 <limits.h> exists even on freestanding compilers. */
24762 # include <limits.h>
24764 # include <assert.h>
24769 /* Override any GCC internal prototype to avoid an error.
24770 Use char because int might match the return type of a GCC
24771 builtin and then its argument prototype would still apply. */
24776 /* The GNU C library defines this for functions which it implements
24777 to always fail with ENOSYS. Some functions are actually named
24778 something starting with __ and the normal name is an alias. */
24779 #if defined __stub_$ac_func || defined __stub___$ac_func
24786 return $ac_func ();
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (ac_try="$ac_link"
24793 case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24797 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24798 $as_echo "$ac_try_echo") >&5
24799 (eval "$ac_link") 2>conftest.er1
24801 grep -v '^ *+' conftest.er1 >conftest.err
24803 cat conftest.err >&5
24804 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24805 (exit $ac_status); } && {
24806 test -z "$ac_c_werror_flag" ||
24807 test ! -s conftest.err
24808 } && test -s conftest$ac_exeext && {
24809 test "$cross_compiling" = yes ||
24810 $as_test_x conftest$ac_exeext
24812 eval "$as_ac_var=yes"
24814 $as_echo "$as_me: failed program was
:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24817 eval "$as_ac_var=no
"
24820 rm -rf conftest.dSYM
24821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24822 conftest$ac_exeext conftest.$ac_ext
24824 ac_res=`eval 'as_val=${'$as_ac_var'}
24825 $as_echo "$as_val"'`
24826 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24827 $as_echo "$ac_res" >&6; }
24828 as_val=`eval 'as_val=${'$as_ac_var'}
24829 $as_echo "$as_val"'`
24830 if test "x
$as_val" = x""yes; then
24831 cat >>confdefs.h <<_ACEOF
24832 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24838 if test $ac_cv_func_gettimeofday = yes; then
24839 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24840 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24841 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24842 $as_echo_n "(cached
) " >&6
24844 cat >conftest.$ac_ext <<_ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24851 #ifdef TIME_WITH_SYS_TIME
24852 #include <sys/time.h>
24855 #ifdef HAVE_SYS_TIME_H
24856 #include <sys/time.h>
24864 struct timeval time;
24865 gettimeofday (&time, 0);
24870 rm -f conftest.$ac_objext
24871 if { (ac_try="$ac_compile"
24872 case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24877 $as_echo "$ac_try_echo") >&5
24878 (eval "$ac_compile") 2>conftest.er1
24880 grep -v '^ *+' conftest.er1 >conftest.err
24882 cat conftest.err >&5
24883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24884 (exit $ac_status); } && {
24885 test -z "$ac_c_werror_flag" ||
24886 test ! -s conftest.err
24887 } && test -s conftest.$ac_objext; then
24888 emacs_cv_gettimeofday_two_arguments=yes
24890 $as_echo "$as_me: failed program was
:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24893 emacs_cv_gettimeofday_two_arguments=no
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24898 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24899 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24900 if test $emacs_cv_gettimeofday_two_arguments = no; then
24902 cat >>confdefs.h <<\_ACEOF
24903 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24911 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24912 $as_echo_n "checking
for socket...
" >&6; }
24913 if test "${ac_cv_func_socket+set}" = set; then
24914 $as_echo_n "(cached
) " >&6
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24924 #define socket innocuous_socket
24926 /* System header to define __stub macros and hopefully few prototypes,
24927 which can conflict with char socket (); below.
24928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24929 <limits.h> exists even on freestanding compilers. */
24932 # include <limits.h>
24934 # include <assert.h>
24939 /* Override any GCC internal prototype to avoid an error.
24940 Use char because int might match the return type of a GCC
24941 builtin and then its argument prototype would still apply. */
24946 /* The GNU C library defines this for functions which it implements
24947 to always fail with ENOSYS. Some functions are actually named
24948 something starting with __ and the normal name is an alias. */
24949 #if defined __stub_socket || defined __stub___socket
24961 rm -f conftest.$ac_objext conftest$ac_exeext
24962 if { (ac_try="$ac_link"
24963 case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24967 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24968 $as_echo "$ac_try_echo") >&5
24969 (eval "$ac_link") 2>conftest.er1
24971 grep -v '^ *+' conftest.er1 >conftest.err
24973 cat conftest.err >&5
24974 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24975 (exit $ac_status); } && {
24976 test -z "$ac_c_werror_flag" ||
24977 test ! -s conftest.err
24978 } && test -s conftest$ac_exeext && {
24979 test "$cross_compiling" = yes ||
24980 $as_test_x conftest$ac_exeext
24982 ac_cv_func_socket=yes
24984 $as_echo "$as_me: failed program was
:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24987 ac_cv_func_socket=no
24990 rm -rf conftest.dSYM
24991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24992 conftest$ac_exeext conftest.$ac_ext
24994 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24995 $as_echo "$ac_cv_func_socket" >&6; }
24996 if test "x
$ac_cv_func_socket" = x""yes; then
25002 if test $ok_so_far = yes; then
25003 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25004 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
25005 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
25006 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25007 $as_echo_n "(cached
) " >&6
25009 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
25010 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25012 # Is the header compilable?
25013 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
25014 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 $ac_includes_default
25022 #include <netinet/in.h>
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25030 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25031 $as_echo "$ac_try_echo") >&5
25032 (eval "$ac_compile") 2>conftest.er1
25034 grep -v '^ *+' conftest.er1 >conftest.err
25036 cat conftest.err >&5
25037 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25038 (exit $ac_status); } && {
25039 test -z "$ac_c_werror_flag" ||
25040 test ! -s conftest.err
25041 } && test -s conftest.$ac_objext; then
25042 ac_header_compiler=yes
25044 $as_echo "$as_me: failed program was
:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25047 ac_header_compiler=no
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25052 $as_echo "$ac_header_compiler" >&6; }
25054 # Is the header present?
25055 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
25056 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
25057 cat >conftest.$ac_ext <<_ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 #include <netinet/in.h>
25065 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25071 $as_echo "$ac_try_echo") >&5
25072 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25074 grep -v '^ *+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25078 (exit $ac_status); } >/dev/null && {
25079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25082 ac_header_preproc=yes
25084 $as_echo "$as_me: failed program was
:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25087 ac_header_preproc=no
25090 rm -f conftest.err conftest.$ac_ext
25091 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25092 $as_echo "$ac_header_preproc" >&6; }
25094 # So? What about this header?
25095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25097 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25098 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25099 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
25100 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
25101 ac_header_preproc=yes
25104 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
25105 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
25106 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
25107 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
25108 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
25109 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
25110 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25111 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25112 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
25113 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
25115 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
25119 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
25120 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
25121 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25122 $as_echo_n "(cached
) " >&6
25124 ac_cv_header_netinet_in_h=$ac_header_preproc
25126 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
25127 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25130 if test "x
$ac_cv_header_netinet_in_h" = x""yes; then
25138 if test $ok_so_far = yes; then
25139 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25140 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25141 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25142 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25143 $as_echo_n "(cached
) " >&6
25145 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25146 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25148 # Is the header compilable?
25149 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
25150 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
25151 cat >conftest.$ac_ext <<_ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 $ac_includes_default
25158 #include <arpa/inet.h>
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25167 $as_echo "$ac_try_echo") >&5
25168 (eval "$ac_compile") 2>conftest.er1
25170 grep -v '^ *+' conftest.er1 >conftest.err
25172 cat conftest.err >&5
25173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25174 (exit $ac_status); } && {
25175 test -z "$ac_c_werror_flag" ||
25176 test ! -s conftest.err
25177 } && test -s conftest.$ac_objext; then
25178 ac_header_compiler=yes
25180 $as_echo "$as_me: failed program was
:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25183 ac_header_compiler=no
25186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25188 $as_echo "$ac_header_compiler" >&6; }
25190 # Is the header present?
25191 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25192 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25193 cat >conftest.$ac_ext <<_ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h. */
25199 #include <arpa/inet.h>
25201 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25202 case "(($ac_try" in
25203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204 *) ac_try_echo=$ac_try;;
25206 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25207 $as_echo "$ac_try_echo") >&5
25208 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25210 grep -v '^ *+' conftest.er1 >conftest.err
25212 cat conftest.err >&5
25213 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25214 (exit $ac_status); } >/dev/null && {
25215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25216 test ! -s conftest.err
25218 ac_header_preproc=yes
25220 $as_echo "$as_me: failed program was
:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25223 ac_header_preproc=no
25226 rm -f conftest.err conftest.$ac_ext
25227 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25228 $as_echo "$ac_header_preproc" >&6; }
25230 # So? What about this header?
25231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25233 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25234 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25235 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25236 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25237 ac_header_preproc=yes
25240 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25241 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25242 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25243 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25244 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25245 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25246 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25247 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25248 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25249 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25250 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25251 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25255 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25256 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25257 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25258 $as_echo_n "(cached
) " >&6
25260 ac_cv_header_arpa_inet_h=$ac_header_preproc
25262 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25263 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25266 if test "x
$ac_cv_header_arpa_inet_h" = x""yes; then
25274 if test $ok_so_far = yes; then
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_INET_SOCKETS 1
25283 for ac_header in sys/ioctl.h
25285 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25286 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25287 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25288 $as_echo_n "checking
for $ac_header...
" >&6; }
25289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25290 $as_echo_n "(cached
) " >&6
25292 ac_res=`eval 'as_val=${'$as_ac_Header'}
25293 $as_echo "$as_val"'`
25294 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25295 $as_echo "$ac_res" >&6; }
25297 # Is the header compilable?
25298 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25299 $as_echo_n "checking
$ac_header usability...
" >&6; }
25300 cat >conftest.$ac_ext <<_ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25306 $ac_includes_default
25307 #include <$ac_header>
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25315 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25316 $as_echo "$ac_try_echo") >&5
25317 (eval "$ac_compile") 2>conftest.er1
25319 grep -v '^ *+' conftest.er1 >conftest.err
25321 cat conftest.err >&5
25322 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25323 (exit $ac_status); } && {
25324 test -z "$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 } && test -s conftest.$ac_objext; then
25327 ac_header_compiler=yes
25329 $as_echo "$as_me: failed program was
:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_header_compiler=no
25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25337 $as_echo "$ac_header_compiler" >&6; }
25339 # Is the header present?
25340 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25341 $as_echo_n "checking
$ac_header presence...
" >&6; }
25342 cat >conftest.$ac_ext <<_ACEOF
25345 cat confdefs.h >>conftest.$ac_ext
25346 cat >>conftest.$ac_ext <<_ACEOF
25347 /* end confdefs.h. */
25348 #include <$ac_header>
25350 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25351 case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25355 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25356 $as_echo "$ac_try_echo") >&5
25357 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25359 grep -v '^ *+' conftest.er1 >conftest.err
25361 cat conftest.err >&5
25362 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25363 (exit $ac_status); } >/dev/null && {
25364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25365 test ! -s conftest.err
25367 ac_header_preproc=yes
25369 $as_echo "$as_me: failed program was
:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25372 ac_header_preproc=no
25375 rm -f conftest.err conftest.$ac_ext
25376 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25377 $as_echo "$ac_header_preproc" >&6; }
25379 # So? What about this header?
25380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25382 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25383 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25384 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25386 ac_header_preproc=yes
25389 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25390 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25391 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25392 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25393 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25394 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25395 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25396 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25397 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25399 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25400 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25404 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25405 $as_echo_n "checking
for $ac_header...
" >&6; }
25406 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25407 $as_echo_n "(cached
) " >&6
25409 eval "$as_ac_Header=\
$ac_header_preproc"
25411 ac_res=`eval 'as_val=${'$as_ac_Header'}
25412 $as_echo "$as_val"'`
25413 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25414 $as_echo "$ac_res" >&6; }
25417 as_val=`eval 'as_val=${'$as_ac_Header'}
25418 $as_echo "$as_val"'`
25419 if test "x
$as_val" = x""yes; then
25420 cat >>confdefs.h <<_ACEOF
25421 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25429 if test -f /usr/lpp/X11/bin/smt.exp; then
25431 cat >>confdefs.h <<\_ACEOF
25432 #define HAVE_AIX_SMT_EXP 1
25437 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25438 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25439 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25440 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25441 $as_echo "yes" >&6; }
25443 cat >>confdefs.h <<\_ACEOF
25444 #define HAVE_DEV_PTMX 1
25448 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25449 $as_echo "no
" >&6; }
25452 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25453 $as_echo_n "checking
for pid_t...
" >&6; }
25454 if test "${ac_cv_type_pid_t+set}" = set; then
25455 $as_echo_n "(cached
) " >&6
25457 ac_cv_type_pid_t=no
25458 cat >conftest.$ac_ext <<_ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25464 $ac_includes_default
25468 if (sizeof (pid_t))
25474 rm -f conftest.$ac_objext
25475 if { (ac_try="$ac_compile"
25476 case "(($ac_try" in
25477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25478 *) ac_try_echo=$ac_try;;
25480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25481 $as_echo "$ac_try_echo") >&5
25482 (eval "$ac_compile") 2>conftest.er1
25484 grep -v '^ *+' conftest.er1 >conftest.err
25486 cat conftest.err >&5
25487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25488 (exit $ac_status); } && {
25489 test -z "$ac_c_werror_flag" ||
25490 test ! -s conftest.err
25491 } && test -s conftest.$ac_objext; then
25492 cat >conftest.$ac_ext <<_ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h. */
25498 $ac_includes_default
25502 if (sizeof ((pid_t)))
25508 rm -f conftest.$ac_objext
25509 if { (ac_try="$ac_compile"
25510 case "(($ac_try" in
25511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25512 *) ac_try_echo=$ac_try;;
25514 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25515 $as_echo "$ac_try_echo") >&5
25516 (eval "$ac_compile") 2>conftest.er1
25518 grep -v '^ *+' conftest.er1 >conftest.err
25520 cat conftest.err >&5
25521 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25522 (exit $ac_status); } && {
25523 test -z "$ac_c_werror_flag" ||
25524 test ! -s conftest.err
25525 } && test -s conftest.$ac_objext; then
25528 $as_echo "$as_me: failed program was
:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25531 ac_cv_type_pid_t=yes
25534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25536 $as_echo "$as_me: failed program was
:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25545 $as_echo "$ac_cv_type_pid_t" >&6; }
25546 if test "x
$ac_cv_type_pid_t" = x""yes; then
25550 cat >>confdefs.h <<_ACEOF
25557 for ac_header in vfork.h
25559 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25560 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25561 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25562 $as_echo_n "checking
for $ac_header...
" >&6; }
25563 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25564 $as_echo_n "(cached
) " >&6
25566 ac_res=`eval 'as_val=${'$as_ac_Header'}
25567 $as_echo "$as_val"'`
25568 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25569 $as_echo "$ac_res" >&6; }
25571 # Is the header compilable?
25572 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25573 $as_echo_n "checking
$ac_header usability...
" >&6; }
25574 cat >conftest.$ac_ext <<_ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 $ac_includes_default
25581 #include <$ac_header>
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587 *) ac_try_echo=$ac_try;;
25589 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25590 $as_echo "$ac_try_echo") >&5
25591 (eval "$ac_compile") 2>conftest.er1
25593 grep -v '^ *+' conftest.er1 >conftest.err
25595 cat conftest.err >&5
25596 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25597 (exit $ac_status); } && {
25598 test -z "$ac_c_werror_flag" ||
25599 test ! -s conftest.err
25600 } && test -s conftest.$ac_objext; then
25601 ac_header_compiler=yes
25603 $as_echo "$as_me: failed program was
:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 ac_header_compiler=no
25609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25611 $as_echo "$ac_header_compiler" >&6; }
25613 # Is the header present?
25614 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25615 $as_echo_n "checking
$ac_header presence...
" >&6; }
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 #include <$ac_header>
25624 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25625 case "(($ac_try" in
25626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627 *) ac_try_echo=$ac_try;;
25629 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25630 $as_echo "$ac_try_echo") >&5
25631 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25633 grep -v '^ *+' conftest.er1 >conftest.err
25635 cat conftest.err >&5
25636 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25637 (exit $ac_status); } >/dev/null && {
25638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25639 test ! -s conftest.err
25641 ac_header_preproc=yes
25643 $as_echo "$as_me: failed program was
:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25646 ac_header_preproc=no
25649 rm -f conftest.err conftest.$ac_ext
25650 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25651 $as_echo "$ac_header_preproc" >&6; }
25653 # So? What about this header?
25654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25656 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25657 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25658 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25660 ac_header_preproc=yes
25663 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25664 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25665 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25666 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25667 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25668 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25669 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25670 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25671 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25673 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25674 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25678 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25679 $as_echo_n "checking
for $ac_header...
" >&6; }
25680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25681 $as_echo_n "(cached
) " >&6
25683 eval "$as_ac_Header=\
$ac_header_preproc"
25685 ac_res=`eval 'as_val=${'$as_ac_Header'}
25686 $as_echo "$as_val"'`
25687 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25688 $as_echo "$ac_res" >&6; }
25691 as_val=`eval 'as_val=${'$as_ac_Header'}
25692 $as_echo "$as_val"'`
25693 if test "x
$as_val" = x""yes; then
25694 cat >>confdefs.h <<_ACEOF
25695 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25704 for ac_func in fork vfork
25706 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25707 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25708 $as_echo_n "checking
for $ac_func...
" >&6; }
25709 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25710 $as_echo_n "(cached
) " >&6
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25720 #define $ac_func innocuous_$ac_func
25722 /* System header to define __stub macros and hopefully few prototypes,
25723 which can conflict with char $ac_func (); below.
25724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25725 <limits.h> exists even on freestanding compilers. */
25728 # include <limits.h>
25730 # include <assert.h>
25735 /* Override any GCC internal prototype to avoid an error.
25736 Use char because int might match the return type of a GCC
25737 builtin and then its argument prototype would still apply. */
25742 /* The GNU C library defines this for functions which it implements
25743 to always fail with ENOSYS. Some functions are actually named
25744 something starting with __ and the normal name is an alias. */
25745 #if defined __stub_$ac_func || defined __stub___$ac_func
25752 return $ac_func ();
25757 rm -f conftest.$ac_objext conftest$ac_exeext
25758 if { (ac_try="$ac_link"
25759 case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25763 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25764 $as_echo "$ac_try_echo") >&5
25765 (eval "$ac_link") 2>conftest.er1
25767 grep -v '^ *+' conftest.er1 >conftest.err
25769 cat conftest.err >&5
25770 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25771 (exit $ac_status); } && {
25772 test -z "$ac_c_werror_flag" ||
25773 test ! -s conftest.err
25774 } && test -s conftest$ac_exeext && {
25775 test "$cross_compiling" = yes ||
25776 $as_test_x conftest$ac_exeext
25778 eval "$as_ac_var=yes"
25780 $as_echo "$as_me: failed program was
:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25783 eval "$as_ac_var=no
"
25786 rm -rf conftest.dSYM
25787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25788 conftest$ac_exeext conftest.$ac_ext
25790 ac_res=`eval 'as_val=${'$as_ac_var'}
25791 $as_echo "$as_val"'`
25792 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25793 $as_echo "$ac_res" >&6; }
25794 as_val=`eval 'as_val=${'$as_ac_var'}
25795 $as_echo "$as_val"'`
25796 if test "x
$as_val" = x""yes; then
25797 cat >>confdefs.h <<_ACEOF
25798 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25804 if test "x
$ac_cv_func_fork" = xyes; then
25805 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25806 $as_echo_n "checking
for working fork...
" >&6; }
25807 if test "${ac_cv_func_fork_works+set}" = set; then
25808 $as_echo_n "(cached
) " >&6
25810 if test "$cross_compiling" = yes; then
25811 ac_cv_func_fork_works=cross
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25824 /* By Ruediger Kuhlmann. */
25825 return fork () < 0;
25831 rm -f conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25837 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25838 $as_echo "$ac_try_echo") >&5
25839 (eval "$ac_link") 2>&5
25841 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25843 { (case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25848 $as_echo "$ac_try_echo") >&5
25849 (eval "$ac_try") 2>&5
25851 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 ac_cv_func_fork_works=yes
25855 $as_echo "$as_me: program exited with status
$ac_status" >&5
25856 $as_echo "$as_me: failed program was
:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25859 ( exit $ac_status )
25860 ac_cv_func_fork_works=no
25862 rm -rf conftest.dSYM
25863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25868 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25869 $as_echo "$ac_cv_func_fork_works" >&6; }
25872 ac_cv_func_fork_works=$ac_cv_func_fork
25874 if test "x
$ac_cv_func_fork_works" = xcross; then
25876 *-*-amigaos* | *-*-msdosdjgpp*)
25877 # Override, as these systems have only a dummy fork() stub
25878 ac_cv_func_fork_works=no
25881 ac_cv_func_fork_works=yes
25884 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25885 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25887 ac_cv_func_vfork_works=$ac_cv_func_vfork
25888 if test "x
$ac_cv_func_vfork" = xyes; then
25889 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25890 $as_echo_n "checking
for working vfork...
" >&6; }
25891 if test "${ac_cv_func_vfork_works+set}" = set; then
25892 $as_echo_n "(cached
) " >&6
25894 if test "$cross_compiling" = yes; then
25895 ac_cv_func_vfork_works=cross
25897 cat >conftest.$ac_ext <<_ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 /* Thanks to Paul Eggert for this test. */
25904 $ac_includes_default
25905 #include <sys/wait.h>
25906 #ifdef HAVE_VFORK_H
25907 # include <vfork.h>
25909 /* On some sparc systems, changes by the child to local and incoming
25910 argument registers are propagated back to the parent. The compiler
25911 is told about this with #include <vfork.h>, but some compilers
25912 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25913 static variable whose address is put into a register that is
25914 clobbered by the vfork. */
25917 sparc_address_test (int arg)
25919 sparc_address_test (arg) int arg;
25922 static pid_t child;
25940 pid_t parent = getpid ();
25943 sparc_address_test (0);
25948 /* Here is another test for sparc vfork register problems. This
25949 test uses lots of local variables, at least as many local
25950 variables as main has allocated so far including compiler
25951 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25952 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25953 reuse the register of parent for one of the local variables,
25954 since it will think that parent can't possibly be used any more
25955 in this routine. Assigning to the local variable will thus
25956 munge parent in the parent process. */
25958 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25959 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25960 /* Convince the compiler that p..p7 are live; otherwise, it might
25961 use the same hardware register for all 8 local variables. */
25962 if (p != p1 || p != p2 || p != p3 || p != p4
25963 || p != p5 || p != p6 || p != p7)
25966 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25967 from child file descriptors. If the child closes a descriptor
25968 before it execs or exits, this munges the parent's descriptor
25969 as well. Test for this by closing stdout in the child. */
25970 _exit(close(fileno(stdout)) != 0);
25975 while (wait(&status) != child)
25978 /* Was there some problem with vforking? */
25981 /* Did the child fail? (This shouldn't happen.) */
25984 /* Did the vfork/compiler bug occur? */
25985 || parent != getpid()
25987 /* Did the file descriptor bug occur? */
25988 || fstat(fileno(stdout), &st) != 0
25993 rm -f conftest$ac_exeext
25994 if { (ac_try="$ac_link"
25995 case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25999 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26000 $as_echo "$ac_try_echo") >&5
26001 (eval "$ac_link") 2>&5
26003 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26005 { (case "(($ac_try" in
26006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007 *) ac_try_echo=$ac_try;;
26009 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26010 $as_echo "$ac_try_echo") >&5
26011 (eval "$ac_try") 2>&5
26013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26014 (exit $ac_status); }; }; then
26015 ac_cv_func_vfork_works=yes
26017 $as_echo "$as_me: program exited with status
$ac_status" >&5
26018 $as_echo "$as_me: failed program was
:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 ( exit $ac_status )
26022 ac_cv_func_vfork_works=no
26024 rm -rf conftest.dSYM
26025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26030 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
26031 $as_echo "$ac_cv_func_vfork_works" >&6; }
26034 if test "x
$ac_cv_func_fork_works" = xcross; then
26035 ac_cv_func_vfork_works=$ac_cv_func_vfork
26036 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
26037 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
26040 if test "x
$ac_cv_func_vfork_works" = xyes; then
26042 cat >>confdefs.h <<\_ACEOF
26043 #define HAVE_WORKING_VFORK 1
26048 cat >>confdefs.h <<\_ACEOF
26053 if test "x
$ac_cv_func_fork_works" = xyes; then
26055 cat >>confdefs.h <<\_ACEOF
26056 #define HAVE_WORKING_FORK 1
26062 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
26063 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
26064 if test "${emacs_cv_langinfo_codeset+set}" = set; then
26065 $as_echo_n "(cached
) " >&6
26067 cat >conftest.$ac_ext <<_ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h. */
26073 #include <langinfo.h>
26077 char* cs = nl_langinfo(CODESET);
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (ac_try="$ac_link"
26084 case "(($ac_try" in
26085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086 *) ac_try_echo=$ac_try;;
26088 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26089 $as_echo "$ac_try_echo") >&5
26090 (eval "$ac_link") 2>conftest.er1
26092 grep -v '^ *+' conftest.er1 >conftest.err
26094 cat conftest.err >&5
26095 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26096 (exit $ac_status); } && {
26097 test -z "$ac_c_werror_flag" ||
26098 test ! -s conftest.err
26099 } && test -s conftest$ac_exeext && {
26100 test "$cross_compiling" = yes ||
26101 $as_test_x conftest$ac_exeext
26103 emacs_cv_langinfo_codeset=yes
26105 $as_echo "$as_me: failed program was
:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26108 emacs_cv_langinfo_codeset=no
26111 rm -rf conftest.dSYM
26112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26113 conftest$ac_exeext conftest.$ac_ext
26116 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
26117 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
26118 if test $emacs_cv_langinfo_codeset = yes; then
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_LANGINFO_CODESET 1
26126 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
26127 $as_echo_n "checking
for size_t...
" >&6; }
26128 if test "${ac_cv_type_size_t+set}" = set; then
26129 $as_echo_n "(cached
) " >&6
26131 ac_cv_type_size_t=no
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 $ac_includes_default
26142 if (sizeof (size_t))
26148 rm -f conftest.$ac_objext
26149 if { (ac_try="$ac_compile"
26150 case "(($ac_try" in
26151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 *) ac_try_echo=$ac_try;;
26154 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26155 $as_echo "$ac_try_echo") >&5
26156 (eval "$ac_compile") 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_c_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest.$ac_objext; then
26166 cat >conftest.$ac_ext <<_ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 $ac_includes_default
26176 if (sizeof ((size_t)))
26182 rm -f conftest.$ac_objext
26183 if { (ac_try="$ac_compile"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26189 $as_echo "$ac_try_echo") >&5
26190 (eval "$ac_compile") 2>conftest.er1
26192 grep -v '^ *+' conftest.er1 >conftest.err
26194 cat conftest.err >&5
26195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26196 (exit $ac_status); } && {
26197 test -z "$ac_c_werror_flag" ||
26198 test ! -s conftest.err
26199 } && test -s conftest.$ac_objext; then
26202 $as_echo "$as_me: failed program was
:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 ac_cv_type_size_t=yes
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 $as_echo "$as_me: failed program was
:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26219 $as_echo "$ac_cv_type_size_t" >&6; }
26220 if test "x
$ac_cv_type_size_t" = x""yes; then
26222 cat >>confdefs.h <<_ACEOF
26223 #define HAVE_SIZE_T 1
26230 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26231 $as_echo_n "checking
for mbstate_t...
" >&6; }
26232 if test "${ac_cv_type_mbstate_t+set}" = set; then
26233 $as_echo_n "(cached
) " >&6
26235 cat >conftest.$ac_ext <<_ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h. */
26241 $ac_includes_default
26242 # include <wchar.h>
26246 mbstate_t x; return sizeof x;
26251 rm -f conftest.$ac_objext
26252 if { (ac_try="$ac_compile"
26253 case "(($ac_try" in
26254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26255 *) ac_try_echo=$ac_try;;
26257 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26258 $as_echo "$ac_try_echo") >&5
26259 (eval "$ac_compile") 2>conftest.er1
26261 grep -v '^ *+' conftest.er1 >conftest.err
26263 cat conftest.err >&5
26264 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26265 (exit $ac_status); } && {
26266 test -z "$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 } && test -s conftest.$ac_objext; then
26269 ac_cv_type_mbstate_t=yes
26271 $as_echo "$as_me: failed program was
:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26274 ac_cv_type_mbstate_t=no
26277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26279 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26280 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26281 if test $ac_cv_type_mbstate_t = yes; then
26283 cat >>confdefs.h <<\_ACEOF
26284 #define HAVE_MBSTATE_T 1
26289 cat >>confdefs.h <<\_ACEOF
26290 #define mbstate_t int
26295 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26296 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26297 if test "${emacs_cv_c_restrict+set}" = set; then
26298 $as_echo_n "(cached
) " >&6
26300 cat >conftest.$ac_ext <<_ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h. */
26306 void fred (int *restrict x);
26315 rm -f conftest.$ac_objext
26316 if { (ac_try="$ac_compile"
26317 case "(($ac_try" in
26318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319 *) ac_try_echo=$ac_try;;
26321 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26322 $as_echo "$ac_try_echo") >&5
26323 (eval "$ac_compile") 2>conftest.er1
26325 grep -v '^ *+' conftest.er1 >conftest.err
26327 cat conftest.err >&5
26328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26329 (exit $ac_status); } && {
26330 test -z "$ac_c_werror_flag" ||
26331 test ! -s conftest.err
26332 } && test -s conftest.$ac_objext; then
26333 emacs_cv_c_restrict=yes
26335 $as_echo "$as_me: failed program was
:" >&5
26336 sed 's/^/| /' conftest.$ac_ext >&5
26338 cat >conftest.$ac_ext <<_ACEOF
26341 cat confdefs.h >>conftest.$ac_ext
26342 cat >>conftest.$ac_ext <<_ACEOF
26343 /* end confdefs.h. */
26344 void fred (int *__restrict x);
26353 rm -f conftest.$ac_objext
26354 if { (ac_try="$ac_compile"
26355 case "(($ac_try" in
26356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26357 *) ac_try_echo=$ac_try;;
26359 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26360 $as_echo "$ac_try_echo") >&5
26361 (eval "$ac_compile") 2>conftest.er1
26363 grep -v '^ *+' conftest.er1 >conftest.err
26365 cat conftest.err >&5
26366 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26367 (exit $ac_status); } && {
26368 test -z "$ac_c_werror_flag" ||
26369 test ! -s conftest.err
26370 } && test -s conftest.$ac_objext; then
26371 emacs_cv_c_restrict=__restrict
26373 $as_echo "$as_me: failed program was
:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26376 emacs_cv_c_restrict=no
26379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26384 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26385 $as_echo "$emacs_cv_c_restrict" >&6; }
26386 case "$emacs_cv_c_restrict" in
26387 yes) emacs_restrict=restrict;;
26388 no) emacs_restrict="";;
26389 *) emacs_restrict="$emacs_cv_c_restrict";;
26391 if test "$emacs_restrict" != __restrict; then
26393 cat >>confdefs.h <<_ACEOF
26394 #define __restrict $emacs_restrict
26399 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26400 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26401 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26402 $as_echo_n "(cached
) " >&6
26404 cat >conftest.$ac_ext <<_ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h. */
26410 void fred (int x[__restrict]);
26419 rm -f conftest.$ac_objext
26420 if { (ac_try="$ac_compile"
26421 case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26425 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26426 $as_echo "$ac_try_echo") >&5
26427 (eval "$ac_compile") 2>conftest.er1
26429 grep -v '^ *+' conftest.er1 >conftest.err
26431 cat conftest.err >&5
26432 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26433 (exit $ac_status); } && {
26434 test -z "$ac_c_werror_flag" ||
26435 test ! -s conftest.err
26436 } && test -s conftest.$ac_objext; then
26437 emacs_cv_c_restrict_arr=yes
26439 $as_echo "$as_me: failed program was
:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 emacs_cv_c_restrict_arr=no
26445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26447 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26448 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26449 if test "$emacs_cv_c_restrict_arr" = yes; then
26451 cat >>confdefs.h <<\_ACEOF
26452 #define __restrict_arr __restrict
26459 # Set up the CFLAGS for real compilation, so we can substitute it.
26460 CFLAGS="$REAL_CFLAGS"
26461 CPPFLAGS="$REAL_CPPFLAGS"
26463 ## Hack to detect a buggy GCC version.
26464 if test "x
$GCC" = xyes \
26465 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26466 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26467 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26468 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26469 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26470 { (exit 1); exit 1; }; }
26473 #### Find out which version of Emacs this is.
26474 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26475 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26476 if test x"${version}" = x; then
26477 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
26478 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
26479 { (exit 1); exit 1; }; }
26481 if test x"${version}" != x"$PACKAGE_VERSION"; then
26482 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
26483 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26486 ### Specify what sort of things we'll be editing into Makefile and config.h.
26487 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26515 ## Used in lwlib/Makefile.in.
26531 cat >>confdefs.h
<<_ACEOF
26532 #define EMACS_CONFIGURATION "${canonical}"
26536 cat >>confdefs.h
<<_ACEOF
26537 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26541 cat >>confdefs.h
<<_ACEOF
26542 #define config_machfile "${machfile}"
26546 cat >>confdefs.h
<<_ACEOF
26547 #define config_opsysfile "${opsysfile}"
26551 cat >>confdefs.h
<<_ACEOF
26552 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26556 cat >>confdefs.h
<<_ACEOF
26557 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26563 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26565 cat >>confdefs.h
<<\_ACEOF
26566 #define HAVE_X_WINDOWS 1
26570 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26577 if test "${USE_X_TOOLKIT}" != "none" ; then
26578 WIDGET_OBJ
=widget.o
26580 cat >>confdefs.h
<<\_ACEOF
26581 #define USE_X_TOOLKIT 1
26584 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26586 cat >>confdefs.h
<<\_ACEOF
26587 #define USE_LUCID 1
26590 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26592 cat >>confdefs.h
<<\_ACEOF
26593 #define USE_MOTIF 1
26599 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26600 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26604 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26605 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26606 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26610 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26611 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26614 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26620 case "$USE_X_TOOLKIT" in
26621 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26622 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26623 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26627 if test "$USE_X_TOOLKIT" = "none"; then
26628 LIBXT_OTHER
="\$(LIBXSM)"
26630 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26634 ## The X Menu stuff is present in the X10 distribution, but missing
26635 ## from X11. If we have X10, just use the installed library;
26636 ## otherwise, use our own copy.
26637 if test "${HAVE_X11}" = "yes" ; then
26639 cat >>confdefs.h
<<\_ACEOF
26644 if test "$USE_X_TOOLKIT" = "none"; then
26645 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26647 OLDXMENU
="\${lwlibdir}liblw.a"
26649 LIBXMENU
="\$(OLDXMENU)"
26650 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26657 if test "$HAVE_GTK" = "yes"; then
26666 if test "${HAVE_MENUS}" = "yes" ; then
26668 cat >>confdefs.h
<<\_ACEOF
26669 #define HAVE_MENUS 1
26673 if test "${GNU_MALLOC}" = "yes" ; then
26675 cat >>confdefs.h
<<\_ACEOF
26676 #define GNU_MALLOC 1
26680 if test "${REL_ALLOC}" = "yes" ; then
26682 cat >>confdefs.h
<<\_ACEOF
26683 #define REL_ALLOC 1
26689 if test "$opsys" = "cygwin"; then
26690 CYGWIN_OBJ
="sheap.o"
26691 ## Cygwin differs because of its unexec().
26693 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
26696 PRE_ALLOC_OBJ
=lastfile.o
26697 POST_ALLOC_OBJ
="\$(vmlimitobj)"
26705 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26708 ## The -headerpad option tells ld (see man page) to leave room at the
26709 ## end of the header for adding load commands. Needed for dumping.
26710 ## 0x690 is the total size of 30 segment load commands (at 56
26711 ## each); under Cocoa 31 commands are required.
26712 if test "$HAVE_NS" = "yes"; then
26713 libs_nsgui
="-framework AppKit"
26714 headerpad_extra
=6C8
26717 headerpad_extra
=690
26719 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26722 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26727 ## This exists because src/Makefile.in did some extra fiddling around
26728 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26729 ## #ifndef LD_SWITCH_SYSTEM
26730 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26731 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26732 ## not using gcc, darwin system not on an alpha (ie darwin, since
26733 ## darwin + alpha does not occur).
26734 ## Note that unlike L_S_S, this is not used in ac_link.
26735 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26736 test "$opsys" = "darwin"; then
26737 LD_SWITCH_SYSTEM_EXTRA
="-X"
26739 LD_SWITCH_SYSTEM_EXTRA
=
26745 if test "x$GCC" = "xyes"; then
26748 ## cygwin: don't link against static libgcc.
26749 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26752 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26753 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26754 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26755 if test "$machine" = "arm"; then
26758 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26759 ## immediately undefine it again and redefine it to empty.
26760 ## Was the C_SWITCH_X_SITE part really necessary?
26761 ## LIB_GCC=`$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
26766 ## Ask GCC where to find libgcc.a.
26767 *) LIB_GCC
=`$(CC) -print-libgcc-file-name 2> /dev/null` ;;
26776 #### Report on what we decided to do.
26777 #### Report GTK as a toolkit, even if it doesn't use Xt.
26778 #### It makes printing result more understandable as using GTK sets
26779 #### toolkit_scroll_bars to yes by default.
26780 if test "${HAVE_GTK}" = "yes"; then
26785 Configured for \`${canonical}'.
26787 Where should the build process find the source code? ${srcdir}
26788 What operating system and machine description files should Emacs use?
26789 \`${opsysfile}' and \`${machfile}'
26790 What compiler should emacs be built with? ${CC} ${CFLAGS}
26791 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26792 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26793 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26794 What window system should Emacs use? ${window_system}
26795 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26797 if test -n "${x_includes}"; then
26798 echo " Where do we find X Windows header files? ${x_includes}"
26800 echo " Where do we find X Windows header files? Standard dirs"
26802 if test -n "${x_libraries}"; then
26803 echo " Where do we find X Windows libraries? ${x_libraries}"
26805 echo " Where do we find X Windows libraries? Standard dirs"
26808 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26809 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26810 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26811 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26812 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26813 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26814 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26815 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26816 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26817 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26818 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26819 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26821 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26822 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26823 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26824 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26826 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26829 if test $USE_XASSERTS = yes; then
26830 echo " Compiling with asserts turned on."
26831 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26836 if test "$HAVE_NS" = "yes"; then
26838 echo "You must run \"make install\" in order to test the built application.
26839 The installed application will go to nextstep/Emacs.app and can be
26840 run or moved from there."
26841 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26842 echo "The application will be fully self-contained."
26844 echo "The lisp resources for the application will be installed under ${prefix}.
26845 You may need to run \"make install\" with sudo. The application will fail
26846 to run if these resources are not installed."
26851 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26852 echo "D-Bus integration has been tested for GNU/Linux only."
26857 # Remove any trailing slashes in these variables.
26858 test "${prefix}" != NONE
&&
26859 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26860 test "${exec_prefix}" != NONE
&&
26861 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26863 # Now get this: Some word that is part of the ${srcdir} directory name
26864 # or the ${configuration} value might, just might, happen to be an
26865 # identifier like `sun4' or `i386' or something, and be predefined by
26866 # the C preprocessor to some helpful value like 1, or maybe the empty
26867 # string. Needless to say consequent macro substitutions are less
26868 # than conducive to the makefile finding the correct directory.
26869 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
26870 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26871 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26873 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26874 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26875 ## from Makefile.c can correctly provide the arg `-traditional' to the
26878 cat >conftest.
$ac_ext <<_ACEOF
26881 cat confdefs.h
>>conftest.
$ac_ext
26882 cat >>conftest.
$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26887 $EGREP "yes..yes" >/dev
/null
2>&1; then
26888 CPP_NEED_TRADITIONAL
=no
26890 CPP_NEED_TRADITIONAL
=yes
26895 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"
26897 ac_config_commands
="$ac_config_commands default"
26899 cat >confcache
<<\_ACEOF
26900 # This file is a shell script that caches the results of configure
26901 # tests run on this system so they can be shared between configure
26902 # scripts and configure runs, see configure's option --config-cache.
26903 # It is not useful on other systems. If it contains results you don't
26904 # want to keep, you may remove or edit it.
26906 # config.status only pays attention to the cache file if you give it
26907 # the --recheck option to rerun configure.
26909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26911 # following values.
26915 # The following way of writing the cache mishandles newlines in values,
26916 # but we know of no workaround that is simple, portable, and efficient.
26917 # So, we kill variables containing newlines.
26918 # Ultrix sh set writes to stderr and can't be redirected directly,
26919 # and sets the high bit in the cache file unless we assign to the vars.
26921 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26922 eval ac_val
=\$
$ac_var
26926 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26930 _ | IFS | as_nl
) ;; #(
26931 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26932 *) $as_unset $ac_var ;;
26938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26939 *${as_nl}ac_space
=\
*)
26940 # `set' does not quote correctly, so add quotes (double-quote
26941 # substitution turns \\\\ into \\, and sed turns \\ into \).
26944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26947 # `set' quotes correctly as required by POSIX, so do not add quotes.
26948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26961 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26962 if test -w "$cache_file"; then
26963 test "x$cache_file" != "x/dev/null" &&
26964 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26965 $as_echo "$as_me: updating cache $cache_file" >&6;}
26966 cat confcache
>$cache_file
26968 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26974 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26975 # Let make expand exec_prefix.
26976 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26978 DEFS
=-DHAVE_CONFIG_H
26982 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26983 # 1. Remove the extension, and $U if already installed.
26984 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26985 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26987 # will be set to the directory where LIBOBJS objects are built.
26988 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26989 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26991 LIBOBJS
=$ac_libobjs
26993 LTLIBOBJS
=$ac_ltlibobjs
26997 : ${CONFIG_STATUS=./config.status}
26999 ac_clean_files_save
=$ac_clean_files
27000 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27001 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27002 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27003 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27005 # Generated by $as_me.
27006 # Run this file to recreate the current configuration.
27007 # Compiler output produced by configure, useful for debugging
27008 # configure, is in config.log if it exists.
27011 ac_cs_recheck=false
27013 SHELL=\${CONFIG_SHELL-$SHELL}
27016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27017 ## --------------------- ##
27018 ## M4sh Initialization. ##
27019 ## --------------------- ##
27021 # Be more Bourne compatible
27022 DUALCASE
=1; export DUALCASE
# for MKS sh
27023 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27027 # is contrary to our usage. Disable this feature.
27028 alias -g '${1+"$@"}'='"$@"'
27029 setopt NO_GLOB_SUBST
27031 case `(set -o) 2>/dev/null` in
27032 *posix
*) set -o posix
;;
27041 # Avoid depending upon Character Ranges.
27042 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27043 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27044 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27045 as_cr_digits
='0123456789'
27046 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27052 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27055 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27056 as_echo='printf %s
\n'
27057 as_echo_n='printf %s
'
27059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27060 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27061 as_echo_n='/usr
/ucb
/echo -n'
27063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27064 as_echo_n_body='eval
27068 expr "X$arg" : "X\\(.*\\)$as_nl";
27069 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27071 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27073 export as_echo_n_body
27074 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27076 export as_echo_body
27077 as_echo='sh
-c $as_echo_body as_echo
'
27080 # The user is always right.
27081 if test "${PATH_SEPARATOR+set}" != set; then
27083 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27084 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27089 # Support unset when possible.
27090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27098 # We need space, tab and new line, in precisely that order. Quoting is
27099 # there to prevent editors from complaining about space-tab.
27100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27101 # splitting by setting IFS to empty value.)
27104 # Find who we are. Look in the path if we contain no directory separator.
27106 *[\\/]* ) as_myself=$0 ;;
27107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27108 for as_dir in $PATH
27111 test -z "$as_dir" && as_dir=.
27112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27118 # We did not find ourselves, most probably we were run as `sh COMMAND'
27119 # in which case we are not to be found in the path.
27120 if test "x$as_myself" = x
; then
27123 if test ! -f "$as_myself"; then
27124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27125 { (exit 1); exit 1; }
27128 # Work around bugs in pre-3.0 UWIN ksh.
27129 for as_var
in ENV MAIL MAILPATH
27130 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27142 # Required to use basename.
27143 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27144 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27150 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27151 as_basename
=basename
27157 # Name of the executable.
27158 as_me
=`$as_basename -- "$0" ||
27159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27160 X"$0" : 'X\(//\)$' \| \
27161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27163 sed '/^.*\/\([^/][^/]*\)\/*$/{
27182 as_lineno_1
=$LINENO
27183 as_lineno_2
=$LINENO
27184 test "x$as_lineno_1" != "x$as_lineno_2" &&
27185 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27188 # uniformly replaced by the line number. The first 'sed' inserts a
27189 # line-number line after each line using $LINENO; the second 'sed'
27190 # does the real work. The second script uses 'N' to pair each
27191 # line-number line with the line containing $LINENO, and appends
27192 # trailing '-' during substitution so that $LINENO is not a special
27193 # case at line end.
27194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27195 # scripts with optimization help from Paolo Bonzini. Blame Lee
27196 # E. McMahon (1931-1989) for sed's syntax. :-)
27208 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27211 ' >$as_me.lineno
&&
27212 chmod +x
"$as_me.lineno" ||
27213 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27214 { (exit 1); exit 1; }; }
27216 # Don't try to exec as it changes $[0], causing all sort of problems
27217 # (the dirname of $[0] is not the place where we might find the
27218 # original and so on. Autoconf is especially sensitive to this).
27219 .
"./$as_me.lineno"
27220 # Exit status is that of the last command.
27225 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27231 ECHO_C
= ECHO_N
= ECHO_T
=
27232 case `echo -n x` in
27234 case `echo 'x\c'` in
27235 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27241 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27242 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27248 rm -f conf$$ conf$$.exe conf$$.
file
27249 if test -d conf$$.dir
; then
27250 rm -f conf$$.dir
/conf$$.
file
27253 mkdir conf$$.dir
2>/dev
/null
27255 if (echo >conf$$.
file) 2>/dev
/null
; then
27256 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27258 # ... but there are two gotchas:
27259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27261 # In both cases, we have to default to `cp -p'.
27262 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27264 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27272 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27273 rmdir conf$$.dir
2>/dev
/null
27275 if mkdir
-p .
2>/dev
/null
; then
27278 test -d .
/-p && rmdir .
/-p
27282 if test -x / >/dev
/null
2>&1; then
27283 as_test_x
='test -x'
27285 if ls -dL / >/dev
/null
2>&1; then
27292 if test -d "$1"; then
27298 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27299 ???[sx]*):;;*)false;;esac;fi
27303 as_executable_p
=$as_test_x
27305 # Sed expression to map a string onto a valid CPP name.
27306 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27308 # Sed expression to map a string onto a valid variable name.
27309 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27314 # Save the log message, to keep $[0] and so on meaningful, and to
27315 # report actual input values of CONFIG_FILES etc. instead of their
27316 # values after options handling.
27318 This file was extended by emacs $as_me 24.0.50, which was
27319 generated by GNU Autoconf 2.63. Invocation command line was
27321 CONFIG_FILES = $CONFIG_FILES
27322 CONFIG_HEADERS = $CONFIG_HEADERS
27323 CONFIG_LINKS = $CONFIG_LINKS
27324 CONFIG_COMMANDS = $CONFIG_COMMANDS
27327 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27332 case $ac_config_files in *"
27333 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27336 case $ac_config_headers in *"
27337 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27342 # Files that config.status was made for.
27343 config_files="$ac_config_files"
27344 config_headers="$ac_config_headers"
27345 config_commands="$ac_config_commands"
27349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27351 \`$as_me' instantiates files from templates according to the
27352 current configuration.
27354 Usage: $0 [OPTION]... [FILE]...
27356 -h, --help print this help, then exit
27357 -V, --version print version number and configuration settings, then exit
27358 -q, --quiet, --silent
27359 do not print progress messages
27360 -d, --debug don't remove temporary files
27361 --recheck update $as_me by reconfiguring in the same conditions
27362 --file=FILE[:TEMPLATE]
27363 instantiate the configuration file FILE
27364 --header=FILE[:TEMPLATE]
27365 instantiate the configuration header FILE
27367 Configuration files:
27370 Configuration headers:
27373 Configuration commands:
27376 Report bugs to <bug-autoconf@gnu.org>."
27379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27381 emacs config.status 24.0.50
27382 configured by $0, generated by GNU Autoconf 2.63,
27383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27385 Copyright (C) 2008 Free Software Foundation, Inc.
27386 This config.status script is free software; the Free Software Foundation
27387 gives unlimited permission to copy, distribute and modify it."
27392 test -n "\$AWK" || AWK=awk
27395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27396 # The default lists apply if the user does not specify any file.
27402 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27403 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27414 # Handling of the options.
27415 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27417 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27418 $as_echo "$ac_cs_version"; exit ;;
27419 --debug |
--debu |
--deb |
--de |
--d |
-d )
27421 --file |
--fil |
--fi |
--f )
27424 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27426 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27427 ac_need_defaults
=false
;;
27428 --header |
--heade |
--head |
--hea )
27431 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27433 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27434 ac_need_defaults
=false
;;
27436 # Conflict between --help and --header
27437 { $as_echo "$as_me: error: ambiguous option: $1
27438 Try \`$0 --help' for more information." >&2
27439 { (exit 1); exit 1; }; };;
27440 --help |
--hel |
-h )
27441 $as_echo "$ac_cs_usage"; exit ;;
27442 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27443 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27446 # This is an error.
27447 -*) { $as_echo "$as_me: error: unrecognized option: $1
27448 Try \`$0 --help' for more information." >&2
27449 { (exit 1); exit 1; }; } ;;
27451 *) ac_config_targets
="$ac_config_targets $1"
27452 ac_need_defaults
=false
;;
27458 ac_configure_extra_args
=
27460 if $ac_cs_silent; then
27462 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27467 if \$ac_cs_recheck; then
27468 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27471 CONFIG_SHELL='$SHELL'
27472 export CONFIG_SHELL
27477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27482 ## Running $as_me. ##
27488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27492 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27498 # Handling of arguments.
27499 for ac_config_target
in $ac_config_targets
27501 case $ac_config_target in
27502 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27503 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27504 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27505 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27506 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27507 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27508 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27509 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27510 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27511 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27512 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27513 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27514 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27516 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27517 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27518 { (exit 1); exit 1; }; };;
27523 # If the user did not use the arguments to specify the items to instantiate,
27524 # then the envvar interface is used. Set only those that are not.
27525 # We use the long form for the default assignment because of an extremely
27526 # bizarre bug on SunOS 4.1.3.
27527 if $ac_need_defaults; then
27528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27529 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27533 # Have a temporary directory for convenience. Make it in the build tree
27534 # simply because there is no reason against having it here, and in addition,
27535 # creating and moving files from /tmp can sometimes cause problems.
27536 # Hook for its removal unless debugging.
27537 # Note that there is a small window in which the directory will not be cleaned:
27538 # after its creation but before its name has been assigned to `$tmp'.
27542 trap 'exit_status=$?
27543 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27545 trap '{ (exit 1); exit 1; }' 1 2 13 15
27547 # Create a (secure) tmp directory for tmp files.
27550 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27551 test -n "$tmp" && test -d "$tmp"
27554 tmp
=.
/conf$$
-$RANDOM
27555 (umask 077 && mkdir
"$tmp")
27558 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27559 { (exit 1); exit 1; }
27562 # Set up the scripts for CONFIG_FILES section.
27563 # No need to generate them if there are no CONFIG_FILES.
27564 # This happens for instance with `./config.status config.h'.
27565 if test -n "$CONFIG_FILES"; then
27569 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27573 ac_cs_awk_cr
=$ac_cr
27576 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27581 echo "cat >conf$$subs.awk <<_ACEOF" &&
27582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27584 } >conf$$subs.sh ||
27585 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27586 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27587 { (exit 1); exit 1; }; }
27588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27590 for ac_last_try in false false false false false :; do
27591 . ./conf$$subs.sh ||
27592 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27593 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27594 { (exit 1); exit 1; }; }
27596 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27597 if test $ac_delim_n = $ac_delim_num; then
27599 elif $ac_last_try; then
27600 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27601 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27602 { (exit 1); exit 1; }; }
27604 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27607 rm -f conf$$subs.sh
27609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27610 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27614 s/^/S["/; s
/!.
*/"]=/
27624 s/\(.\{148\}\).*/\1/
27626 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27631 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27638 s/\(.\{148\}\).*/\1/
27640 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27644 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27649 ' <conf$$subs.awk | sed '
27654 ' >>$CONFIG_STATUS || ac_write_fail=1
27655 rm -f conf$$subs.awk
27656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27658 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27659 for (key in S) S_is_set[key] = 1
27665 nfields = split(line, field, "@
")
27667 len = length(field[1])
27668 for (i = 2; i < nfields; i++) {
27670 keylen = length(key)
27671 if (S_is_set[key]) {
27673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27674 len += length(value) + length(field[++i])
27685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27686 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27687 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27690 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27691 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27692 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27693 { (exit 1); exit 1; }; }
27696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27698 # trailing colons and then remove the whole line if VPATH becomes empty
27699 # (actually we leave an empty line to preserve line numbers).
27700 if test "x
$srcdir" = x.; then
27701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27702 s/:*\$(srcdir):*/:/
27703 s/:*\${srcdir}:*/:/
27705 s/^\([^=]*=[ ]*\):*/\1/
27711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27712 fi # test -n "$CONFIG_FILES"
27714 # Set up the scripts for CONFIG_HEADERS section.
27715 # No need to generate them if there are no CONFIG_HEADERS.
27716 # This happens for instance with `./config.status Makefile'.
27717 if test -n "$CONFIG_HEADERS"; then
27718 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27722 # Transform confdefs.h into an awk script `defines.awk', embedded as
27723 # here-document in config.status, that substitutes the proper values into
27724 # config.h.in to produce config.h.
27726 # Create a delimiter string that does not exist in confdefs.h, to ease
27727 # handling of long lines.
27729 for ac_last_try in false false :; do
27730 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27731 if test -z "$ac_t"; then
27733 elif $ac_last_try; then
27734 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27735 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27736 { (exit 1); exit 1; }; }
27738 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27742 # For the awk script, D is an array of macro values keyed by name,
27743 # likewise P contains macro parameters if any. Preserve backslash
27744 # newline sequences.
27746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27748 s/.\{148\}/&'"$ac_delim"'/g
27751 s/^[ ]*#[ ]*define[ ][ ]*/ /
27758 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27760 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27765 D["\
1"]=" \
3\\\\\\n
"\\/p
27767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27772 s/.\{148\}/&'"$ac_delim"'/g
27777 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27780 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27782 ' <confdefs.h | sed '
27783 s/'"$ac_delim"'/"\\\
27784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27787 for (key in D) D_is_set[key] = 1
27790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27792 split(line, arg, " ")
27793 if (arg[1] == "#") {
27797 defundef
= substr
(arg
[1], 2)
27800 split(mac1
, mac2
, "(") #)
27802 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27803 if (D_is_set
[macro
]) {
27804 # Preserve the white space surrounding the "#".
27805 print prefix
"define", macro P
[macro
] D
[macro
]
27808 # Replace #undef with comments. This is necessary, for example,
27809 # in the case of _POSIX_SOURCE, which is predefined and required
27810 # on some systems where configure will not decide to define it.
27811 if (defundef
== "undef") {
27812 print
"/*", prefix defundef
, macro
, "*/"
27820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27821 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27822 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27823 { (exit 1); exit 1; }; }
27824 fi # test -n "$CONFIG_HEADERS"
27827 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27832 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27834 case $ac_mode$ac_tag in
27836 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27837 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27838 { (exit 1); exit 1; }; };;
27839 :[FH
]-) ac_tag
=-:-;;
27840 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27857 -) ac_f
="$tmp/stdin";;
27858 *) # Look for the file first in the build tree, then in the source tree
27859 # (if the path is not absolute). The absolute path cannot be DOS-style,
27860 # because $ac_f cannot contain `:'.
27864 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27866 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27867 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27868 { (exit 1); exit 1; }; };;
27870 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27871 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27874 # Let's still pretend it is `configure' which instantiates (i.e., don't
27875 # use $as_me), people would be surprised to read:
27876 # /* config.h. Generated by config.status. */
27877 configure_input
='Generated from '`
27878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27880 if test x
"$ac_file" != x-
; then
27881 configure_input
="$ac_file. $configure_input"
27882 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27883 $as_echo "$as_me: creating $ac_file" >&6;}
27885 # Neutralize special characters interpreted by sed in replacement strings.
27886 case $configure_input in #(
27887 *\
&* |
*\|
* |
*\\* )
27888 ac_sed_conf_input
=`$as_echo "$configure_input" |
27889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27890 *) ac_sed_conf_input
=$configure_input;;
27894 *:-:* |
*:-) cat >"$tmp/stdin" \
27895 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27897 { (exit 1); exit 1; }; } ;;
27902 ac_dir
=`$as_dirname -- "$ac_file" ||
27903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27904 X"$ac_file" : 'X\(//\)[^/]' \| \
27905 X"$ac_file" : 'X\(//\)$' \| \
27906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27907 $as_echo X"$ac_file" |
27908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27912 /^X\(\/\/\)[^/].*/{
27927 -*) as_dir
=.
/$as_dir;;
27929 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27933 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27934 *) as_qdir
=$as_dir;;
27936 as_dirs
="'$as_qdir' $as_dirs"
27937 as_dir
=`$as_dirname -- "$as_dir" ||
27938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27939 X"$as_dir" : 'X\(//\)[^/]' \| \
27940 X"$as_dir" : 'X\(//\)$' \| \
27941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27942 $as_echo X"$as_dir" |
27943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27947 /^X\(\/\/\)[^/].*/{
27960 test -d "$as_dir" && break
27962 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27963 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27964 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27965 { (exit 1); exit 1; }; }; }
27969 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27971 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27972 # A ".." for each directory in $ac_dir_suffix.
27973 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27974 case $ac_top_builddir_sub in
27975 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27976 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27979 ac_abs_top_builddir
=$ac_pwd
27980 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27981 # for backward compatibility:
27982 ac_top_builddir
=$ac_top_build_prefix
27985 .
) # We are building in place.
27987 ac_top_srcdir
=$ac_top_builddir_sub
27988 ac_abs_top_srcdir
=$ac_pwd ;;
27989 [\\/]* | ?
:[\\/]* ) # Absolute name.
27990 ac_srcdir
=$srcdir$ac_dir_suffix;
27991 ac_top_srcdir
=$srcdir
27992 ac_abs_top_srcdir
=$srcdir ;;
27993 *) # Relative name.
27994 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27995 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27996 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27998 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28008 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28009 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28014 # If the template does not know about datarootdir, expand it.
28015 # FIXME: This hack should be removed a few years after 2.60.
28016 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28029 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28030 *datarootdir
*) ac_datarootdir_seen
=yes;;
28031 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28032 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28033 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28036 ac_datarootdir_hack='
28037 s&@datadir@&$datadir&g
28038 s&@docdir@&$docdir&g
28039 s&@infodir@&$infodir&g
28040 s&@localedir@&$localedir&g
28041 s&@mandir@&$mandir&g
28042 s&\\\${datarootdir}&$datarootdir&g' ;;
28046 # Neutralize VPATH when `$srcdir' = `.'.
28047 # Shell code in configure.ac might set extrasub.
28048 # FIXME: do we really want to maintain this feature?
28049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28050 ac_sed_extra="$ac_vpsub
28053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28055 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28056 s|@configure_input@|
$ac_sed_conf_input|
;t t
28057 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28058 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28059 s
&@srcdir@
&$ac_srcdir&;t t
28060 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28061 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28062 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28063 s
&@builddir@
&$ac_builddir&;t t
28064 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28065 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28066 s
&@INSTALL@
&$ac_INSTALL&;t t
28067 $ac_datarootdir_hack
28069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
28070 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
28071 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
28072 { (exit 1); exit 1; }; }
28074 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28075 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28076 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28077 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28078 which seems to be undefined. Please make sure it is defined." >&5
28079 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28080 which seems to be undefined. Please make sure it is defined." >&2;}
28084 -) cat "$tmp/out" && rm -f "$tmp/out";;
28085 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28087 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28088 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28089 { (exit 1); exit 1; }; }
28095 if test x"$ac_file" != x-; then
28097 $as_echo "/* $configure_input */" \
28098 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28099 } >"$tmp/config.h" \
28100 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28101 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28102 { (exit 1); exit 1; }; }
28103 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28104 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28108 mv "$tmp/config.h" "$ac_file" \
28109 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28110 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28111 { (exit 1); exit 1; }; }
28114 $as_echo "/* $configure_input */" \
28115 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28116 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28117 $as_echo "$as_me: error: could not create -" >&2;}
28118 { (exit 1); exit 1; }; }
28122 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28123 $as_echo "$as_me: executing $ac_file commands" >&6;}
28128 case $ac_file$ac_mode in
28131 ### Make the necessary directories, if they don't exist.
28132 for dir
in etc lisp
; do
28133 test -d ${dir} || mkdir
${dir}
28136 # Build src/Makefile from ${srcdir}/src/Makefile.c
28137 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28138 # This must be done after src/config.h is built, since we rely on that file.
28140 echo creating src
/epaths.h
28141 ${MAKE-make} epaths-force
28143 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28144 # `..' to `. .' unless invoked with -traditional
28146 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
28147 CPPFLAGS
="$CPPFLAGS -traditional"
28150 echo creating src
/Makefile
28152 rm -f junk.c junk1.c junk2.c
28153 sed -e '/start of cpp stuff/q' \
28154 < Makefile.c
> junk1.c
28155 sed -e '1,/start of cpp stuff/d'\
28156 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28157 < Makefile.c
> junk.c
28158 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28159 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28160 cat junk1.c junk2.c
> Makefile.new
28161 rm -f junk.c junk1.c junk2.c
28162 chmod 444 Makefile.new
28163 mv -f Makefile.new Makefile
28166 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28167 echo creating src
/.gdbinit
28168 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28177 { (exit 0); exit 0; }
28179 chmod +x
$CONFIG_STATUS
28180 ac_clean_files
=$ac_clean_files_save
28182 test $ac_write_fail = 0 ||
28183 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28184 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28185 { (exit 1); exit 1; }; }
28188 # configure is writing to config.log, and then calls config.status.
28189 # config.status does its own redirection, appending to config.log.
28190 # Unfortunately, on DOS this fails, as config.log is still kept open
28191 # by configure, so config.status won't be able to write to it; its
28192 # output is simply discarded. So we exec the FD to /dev/null,
28193 # effectively closing config.log, so it can be properly (re)opened and
28194 # appended to by config.status. When coming back to configure, we
28195 # need to make the FD available again.
28196 if test "$no_create" != yes; then
28198 ac_config_status_args
=
28199 test "$silent" = yes &&
28200 ac_config_status_args
="$ac_config_status_args --quiet"
28202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28205 # would make configure fail if this is the last instruction.
28206 $ac_cs_success ||
{ (exit 1); exit 1; }
28208 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28209 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28210 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}