2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.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
='23.1.50'
598 PACKAGE_STRING
='emacs 23.1.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
744 x_default_search_path
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
766 LIB_SRC_EXTRA_INSTALLABLES
770 enable_option_checking
787 with_toolkit_scroll_bars
798 enable_ns_self_contained
800 enable_maintainer_mode
807 ac_precious_vars
='build_alias
819 # Initialize some variables set by options.
821 ac_init_version
=false
822 ac_unrecognized_opts
=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name
=s
,x
,x
,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir
='${exec_prefix}/bin'
848 sbindir
='${exec_prefix}/sbin'
849 libexecdir
='${exec_prefix}/libexec'
850 datarootdir
='${prefix}/share'
851 datadir
='${datarootdir}'
852 sysconfdir
='${prefix}/etc'
853 sharedstatedir
='${prefix}/com'
854 localstatedir
='${prefix}/var'
855 includedir
='${prefix}/include'
856 oldincludedir
='/usr/include'
857 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir
='${datarootdir}/info'
863 libdir
='${exec_prefix}/lib'
864 localedir
='${datarootdir}/locale'
865 mandir
='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\
$ac_option
879 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
891 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
894 -build |
--build |
--buil |
--bui |
--bu)
895 ac_prev
=build_alias
;;
896 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
897 build_alias
=$ac_optarg ;;
899 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
900 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
901 ac_prev
=cache_file
;;
902 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
903 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
904 cache_file
=$ac_optarg ;;
907 cache_file
=config.cache
;;
909 -datadir |
--datadir |
--datadi |
--datad)
911 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
912 datadir
=$ac_optarg ;;
914 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
915 |
--dataroo |
--dataro |
--datar)
916 ac_prev
=datarootdir
;;
917 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
918 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
919 datarootdir
=$ac_optarg ;;
921 -disable-* |
--disable-*)
922 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
925 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
926 { (exit 1); exit 1; }; }
927 ac_useropt_orig
=$ac_useropt
928 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep
=', ';;
936 eval enable_
$ac_useropt=no
;;
938 -docdir |
--docdir |
--docdi |
--doc |
--do)
940 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
943 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
945 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
948 -enable-* |
--enable-*)
949 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig
=$ac_useropt
955 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep
=', ';;
963 eval enable_
$ac_useropt=\
$ac_optarg ;;
965 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
966 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
967 |
--exec |
--exe |
--ex)
968 ac_prev
=exec_prefix
;;
969 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
970 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
971 |
--exec=* |
--exe=* |
--ex=*)
972 exec_prefix
=$ac_optarg ;;
974 -gas |
--gas |
--ga |
--g)
975 # Obsolete; use --with-gas.
978 -help |
--help |
--hel |
--he |
-h)
980 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
981 ac_init_help
=recursive
;;
982 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
983 ac_init_help
=short
;;
985 -host |
--host |
--hos |
--ho)
986 ac_prev
=host_alias
;;
987 -host=* |
--host=* |
--hos=* |
--ho=*)
988 host_alias
=$ac_optarg ;;
990 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
992 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
994 htmldir
=$ac_optarg ;;
996 -includedir |
--includedir |
--includedi |
--included |
--include \
997 |
--includ |
--inclu |
--incl |
--inc)
998 ac_prev
=includedir
;;
999 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1000 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1001 includedir
=$ac_optarg ;;
1003 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1005 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1006 infodir
=$ac_optarg ;;
1008 -libdir |
--libdir |
--libdi |
--libd)
1010 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1011 libdir
=$ac_optarg ;;
1013 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1014 |
--libexe |
--libex |
--libe)
1015 ac_prev
=libexecdir
;;
1016 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1017 |
--libexe=* |
--libex=* |
--libe=*)
1018 libexecdir
=$ac_optarg ;;
1020 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1021 ac_prev
=localedir
;;
1022 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1023 localedir
=$ac_optarg ;;
1025 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1026 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1027 ac_prev
=localstatedir
;;
1028 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1029 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1030 localstatedir
=$ac_optarg ;;
1032 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1034 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1035 mandir
=$ac_optarg ;;
1037 -nfp |
--nfp |
--nf)
1038 # Obsolete; use --without-fp.
1041 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1042 |
--no-cr |
--no-c |
-n)
1045 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1046 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1049 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1050 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1051 |
--oldin |
--oldi |
--old |
--ol |
--o)
1052 ac_prev
=oldincludedir
;;
1053 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1054 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1055 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1056 oldincludedir
=$ac_optarg ;;
1058 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1060 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1061 prefix
=$ac_optarg ;;
1063 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1064 |
--program-pre |
--program-pr |
--program-p)
1065 ac_prev
=program_prefix
;;
1066 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1067 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1068 program_prefix
=$ac_optarg ;;
1070 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1071 |
--program-suf |
--program-su |
--program-s)
1072 ac_prev
=program_suffix
;;
1073 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1074 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1075 program_suffix
=$ac_optarg ;;
1077 -program-transform-name |
--program-transform-name \
1078 |
--program-transform-nam |
--program-transform-na \
1079 |
--program-transform-n |
--program-transform- \
1080 |
--program-transform |
--program-transfor \
1081 |
--program-transfo |
--program-transf \
1082 |
--program-trans |
--program-tran \
1083 |
--progr-tra |
--program-tr |
--program-t)
1084 ac_prev
=program_transform_name
;;
1085 -program-transform-name=* |
--program-transform-name=* \
1086 |
--program-transform-nam=* |
--program-transform-na=* \
1087 |
--program-transform-n=* |
--program-transform-=* \
1088 |
--program-transform=* |
--program-transfor=* \
1089 |
--program-transfo=* |
--program-transf=* \
1090 |
--program-trans=* |
--program-tran=* \
1091 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1092 program_transform_name
=$ac_optarg ;;
1094 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1096 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1097 pdfdir
=$ac_optarg ;;
1099 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1101 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1104 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1105 |
-silent |
--silent |
--silen |
--sile |
--sil)
1108 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1110 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1112 sbindir
=$ac_optarg ;;
1114 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1115 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1116 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1118 ac_prev
=sharedstatedir
;;
1119 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1120 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1121 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1123 sharedstatedir
=$ac_optarg ;;
1125 -site |
--site |
--sit)
1127 -site=* |
--site=* |
--sit=*)
1130 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1132 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1133 srcdir
=$ac_optarg ;;
1135 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1136 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1137 ac_prev
=sysconfdir
;;
1138 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1139 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1140 sysconfdir
=$ac_optarg ;;
1142 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1143 ac_prev
=target_alias
;;
1144 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1145 target_alias
=$ac_optarg ;;
1147 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1150 -version |
--version |
--versio |
--versi |
--vers |
-V)
1151 ac_init_version
=: ;;
1154 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_useropt_orig
=$ac_useropt
1160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep
=', ';;
1168 eval with_
$ac_useropt=\
$ac_optarg ;;
1170 -without-* |
--without-*)
1171 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig
=$ac_useropt
1177 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep
=', ';;
1185 eval with_
$ac_useropt=no
;;
1188 # Obsolete; use --with-x.
1191 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1192 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1193 ac_prev
=x_includes
;;
1194 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1195 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1196 x_includes
=$ac_optarg ;;
1198 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1199 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1200 ac_prev
=x_libraries
;;
1201 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1202 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1203 x_libraries
=$ac_optarg ;;
1205 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1206 Try \`$0 --help' for more information." >&2
1207 { (exit 1); exit 1; }; }
1211 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1214 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1215 { (exit 1); exit 1; }; }
1216 eval $ac_envvar=\
$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230 if test -n "$ac_prev"; then
1231 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1232 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1233 { (exit 1); exit 1; }; }
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1240 { (exit 1); exit 1; }; } ;;
1241 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 # Check all directory arguments for consistency.
1246 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val
=\$
$ac_var
1252 # Remove trailing slashes.
1255 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\
$ac_val;;
1258 # Be sure to have absolute directory names.
1260 [\\/$
]* | ?
:[\\/]* ) continue;;
1261 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1263 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1264 { (exit 1); exit 1; }; }
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1272 target
=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x
; then
1276 if test "x$build_alias" = x
; then
1277 cross_compiling
=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1286 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1288 test "$silent" = yes && exec 6>/dev
/null
1291 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di
=`ls -di .` &&
1293 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1294 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1295 { (exit 1); exit 1; }; }
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1298 { (exit 1); exit 1; }; }
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted
=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir
=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1333 ac_srcdir_defaulted
=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1337 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1338 { (exit 1); exit 1; }; }
1340 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1343 { (exit 1); exit 1; }; }
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1353 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 for ac_var
in $ac_precious_vars; do
1356 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1358 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1369 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1432 --x-includes=DIR X include files are
in DIR
1433 --x-libraries=DIR X library files are
in DIR
1436 --build=BUILD configure
for building on BUILD
[guessed
]
1437 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1448 --disable-option-checking ignore unrecognized
--enable/--with options
1449 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1450 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1451 --disable-ns-self-contained
1452 disable self contained build under NeXTstep
1453 --enable-asserts compile code with asserts enabled
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful
(and
1456 sometimes confusing
) to the casual installer
1457 --enable-locallisppath=PATH
1458 directories Emacs should search
for lisp files
1459 specific to this site
1460 --enable-checking[=LIST
]
1461 enable expensive run-time checks. With LIST
, enable
1462 only specific categories of checks. Categories are
:
1463 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1464 stringfreelist
, xmallocoverrun
, conslist
1465 --enable-profiling build emacs with profiling support. This might not
1466 work on all platforms
1467 --disable-largefile omit support
for large files
1470 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1471 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1472 --without-pop don
't support POP mail retrieval with movemail
1473 --with-kerberos support Kerberos-authenticated POP
1474 --with-kerberos5 support Kerberos version 5 authenticated POP
1475 --with-hesiod support Hesiod to get the POP server host
1476 --without-sound don't compile with sound support
1477 --without-sync-input process async input synchronously
1478 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1480 --without-xpm don
't compile with XPM image support
1481 --without-jpeg don't compile with JPEG image support
1482 --without-tiff don
't compile with TIFF image support
1483 --without-gif don't compile with GIF image support
1484 --without-png don
't compile with PNG image support
1485 --without-rsvg don't compile with SVG image support
1486 --without-xft don
't use XFT for anti aliased fonts
1487 --without-libotf don't use libotf
for OpenType font support
1488 --without-m17n-flt don
't use m17n-flt for text shaping
1489 --without-toolkit-scroll-bars
1490 don't use Motif or Xaw3d scroll bars
1491 --without-xaw3d don
't use Xaw3d
1492 --without-xim don't use X11 XIM
1493 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1494 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1496 --without-dbus don't compile with D-Bus support
1497 --without-makeinfo don
't require makeinfo for building manuals
1499 --with-pkg-config-prog=PATH
1500 path to pkg-config for finding GTK and librsvg
1501 --with-gnustep-conf=PATH
1502 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1503 or /etc/GNUstep/GNUstep.conf
1504 --with-x use the X Window System
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1515 XMKMF Path to xmkmf, Makefile generator for X Window System
1517 Use these variables to override the choices made by `configure' or to
help
1518 it to
find libraries and programs with nonstandard names
/locations.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1533 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1535 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1540 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir
=$ac_pwd
1544 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir
=$ac_top_build_prefix
1549 .
) # We are building in place.
1551 ac_top_srcdir
=$ac_top_builddir_sub
1552 ac_abs_top_srcdir
=$ac_pwd ;;
1553 [\\/]* | ?
:[\\/]* ) # Absolute name.
1554 ac_srcdir
=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir
=$srcdir
1556 ac_abs_top_srcdir
=$srcdir ;;
1558 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1582 emacs configure
23.1.50
1583 generated by GNU Autoconf
2.62
1585 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1587 This configure
script is free software
; the Free Software Foundation
1588 gives unlimited permission to copy
, distribute and modify it.
1592 cat >config.log
<<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by emacs $as_me 23.1.50, which was
1597 generated by GNU Autoconf 2.62. Invocation command line was
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir
=.
1633 $as_echo "PATH: $as_dir"
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_must_keep_next
=false
1663 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1664 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1665 |
-silent |
--silent |
--silen |
--sile |
--sil)
1668 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true
; then
1675 ac_must_keep_next
=false
# Got value, back to normal.
1678 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1679 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1680 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1681 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686 -* ) ac_must_keep_next
=true
;;
1689 ac_configure_args
="$ac_configure_args '$ac_arg'"
1694 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1695 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1720 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1724 _ | IFS | as_nl) ;; #(
1725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 $as_echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var
in $ac_subst_files
1770 eval ac_val
=\$
$ac_var
1772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 $as_echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 $as_echo "$as_me: caught signal $ac_signal"
1791 $as_echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal
in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest
* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h
<<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h
<<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h
<<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h
<<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h
<<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer an explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 ac_site_file1
=$CONFIG_SITE
1838 elif test "x$prefix" != xNONE
; then
1839 ac_site_file1
=$prefix/share
/config.site
1840 ac_site_file2
=$prefix/etc
/config.site
1842 ac_site_file1
=$ac_default_prefix/share
/config.site
1843 ac_site_file2
=$ac_default_prefix/etc
/config.site
1845 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1847 test "x$ac_site_file" = xNONE
&& continue
1848 if test -r "$ac_site_file"; then
1849 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 $as_echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1864 *) .
"./$cache_file";;
1868 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 $as_echo "$as_me: creating cache $cache_file" >&6;}
1873 ac_header_list
="$ac_header_list sys/time.h"
1874 ac_header_list
="$ac_header_list unistd.h"
1875 ac_func_list
="$ac_func_list alarm"
1876 # Check that the precious variables saved in the cache have kept the same
1878 ac_cache_corrupted
=false
1879 for ac_var
in $ac_precious_vars; do
1880 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1881 eval ac_new_set
=\
$ac_env_${ac_var}_set
1882 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1883 eval ac_new_val
=\
$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1886 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted
=: ;;
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted
=: ;;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 # differences in whitespace do not lead to failure.
1897 ac_old_val_w
=`echo x $ac_old_val`
1898 ac_new_val_w
=`echo x $ac_new_val`
1899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902 ac_cache_corrupted
=:
1904 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1906 eval $ac_var=\
$ac_old_val
1908 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1909 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1910 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1911 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1914 # Pass precious variables to config.status.
1915 if test "$ac_new_set" = set; then
1917 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 *) ac_arg
=$ac_var=$ac_new_val ;;
1920 case " $ac_configure_args " in
1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1926 if $ac_cache_corrupted; then
1927 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931 { (exit 1); exit 1; }; }
1959 ac_cpp
='$CPP $CPPFLAGS'
1960 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1965 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1969 test "$program_prefix" != NONE
&&
1970 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1971 # Use a double $ so make ignores it.
1972 test "$program_suffix" != NONE
&&
1973 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1974 # Double any \ or $.
1975 # By default was `s,x,x', remove it if useless.
1976 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
1977 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
1980 lispdir
='${datadir}/emacs/${version}/lisp'
1981 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1982 '${datadir}/emacs/site-lisp'
1983 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1984 etcdir
='${datadir}/emacs/${version}/etc'
1985 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1986 docdir
='${datadir}/emacs/${version}/etc'
1987 gamedir
='${localstatedir}/games/emacs'
1994 # Check whether --with-pop was given.
1995 if test "${with_pop+set}" = set; then
2001 if test "$with_pop" = yes; then
2002 cat >>confdefs.h
<<\_ACEOF
2003 #define MAIL_USE_POP 1
2010 # Check whether --with-kerberos was given.
2011 if test "${with_kerberos+set}" = set; then
2012 withval
=$with_kerberos;
2017 if test "$with_kerberos" != no
; then
2018 cat >>confdefs.h
<<\_ACEOF
2026 # Check whether --with-kerberos5 was given.
2027 if test "${with_kerberos5+set}" = set; then
2028 withval
=$with_kerberos5;
2033 if test "${with_kerberos5}" != no
; then
2034 if test "${with_kerberos}" = no
; then
2036 cat >>confdefs.h
<<\_ACEOF
2042 cat >>confdefs.h
<<\_ACEOF
2049 # Check whether --with-hesiod was given.
2050 if test "${with_hesiod+set}" = set; then
2051 withval
=$with_hesiod;
2056 if test "$with_hesiod" != no
; then
2058 cat >>confdefs.h
<<\_ACEOF
2065 # Check whether --with-sound was given.
2066 if test "${with_sound+set}" = set; then
2067 withval
=$with_sound;
2074 # Check whether --with-sync-input was given.
2075 if test "${with_sync_input+set}" = set; then
2076 withval
=$with_sync_input;
2081 if test "$with_sync_input" = yes; then
2083 cat >>confdefs.h
<<\_ACEOF
2084 #define SYNC_INPUT 1
2090 # Check whether --with-x-toolkit was given.
2091 if test "${with_x_toolkit+set}" = set; then
2092 withval
=$with_x_toolkit; case "${withval}" in
2093 y | ye |
yes ) val
=gtk
;;
2095 l | lu | luc | luci | lucid
) val
=lucid
;;
2096 a |
at | ath | athe | athen | athena
) val
=athena
;;
2097 m | mo | mot | moti | motif
) val
=motif
;;
2098 g | gt | gtk
) val
=gtk
;;
2100 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2101 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2102 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2103 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2104 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2105 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2106 { (exit 1); exit 1; }; }
2115 # Check whether --with-xpm was given.
2116 if test "${with_xpm+set}" = set; then
2123 # Check whether --with-jpeg was given.
2124 if test "${with_jpeg+set}" = set; then
2131 # Check whether --with-tiff was given.
2132 if test "${with_tiff+set}" = set; then
2139 # Check whether --with-gif was given.
2140 if test "${with_gif+set}" = set; then
2147 # Check whether --with-png was given.
2148 if test "${with_png+set}" = set; then
2155 # Check whether --with-rsvg was given.
2156 if test "${with_rsvg+set}" = set; then
2164 # Check whether --with-xft was given.
2165 if test "${with_xft+set}" = set; then
2172 # Check whether --with-libotf was given.
2173 if test "${with_libotf+set}" = set; then
2174 withval
=$with_libotf;
2180 # Check whether --with-m17n-flt was given.
2181 if test "${with_m17n_flt+set}" = set; then
2182 withval
=$with_m17n_flt;
2189 # Check whether --with-toolkit-scroll-bars was given.
2190 if test "${with_toolkit_scroll_bars+set}" = set; then
2191 withval
=$with_toolkit_scroll_bars;
2193 with_toolkit_scroll_bars
=yes
2197 # Check whether --with-xaw3d was given.
2198 if test "${with_xaw3d+set}" = set; then
2199 withval
=$with_xaw3d;
2205 # Check whether --with-xim was given.
2206 if test "${with_xim+set}" = set; then
2213 # Check whether --with-ns was given.
2214 if test "${with_ns+set}" = set; then
2222 # Check whether --with-gpm was given.
2223 if test "${with_gpm+set}" = set; then
2230 # Check whether --with-dbus was given.
2231 if test "${with_dbus+set}" = set; then
2238 ## For the times when you want to build Emacs but don't have
2239 ## a suitable makeinfo, and can live without the manuals.
2241 # Check whether --with-makeinfo was given.
2242 if test "${with_makeinfo+set}" = set; then
2243 withval
=$with_makeinfo;
2250 # Check whether --with-gtk was given.
2251 if test "${with_gtk+set}" = set; then
2252 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2253 specify a toolkit." >&5
2254 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2255 specify a toolkit." >&2;}
2256 { (exit 1); exit 1; }; }
2261 # Check whether --with-gcc was given.
2262 if test "${with_gcc+set}" = set; then
2263 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2264 variable to specify a compiler." >&5
2265 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2266 variable to specify a compiler." >&2;}
2267 { (exit 1); exit 1; }; }
2272 # Check whether --with-pkg-config-prog was given.
2273 if test "${with_pkg_config_prog+set}" = set; then
2274 withval
=$with_pkg_config_prog;
2277 if test "X${with_pkg_config_prog}" != X
; then
2278 if test "${with_pkg_config_prog}" != yes; then
2279 PKG_CONFIG
="${with_pkg_config_prog}"
2284 # Check whether --with-gnustep-conf was given.
2285 if test "${with_gnustep_conf+set}" = set; then
2286 withval
=$with_gnustep_conf;
2289 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2290 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2291 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2292 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2294 # Check whether --enable-ns-self-contained was given.
2295 if test "${enable_ns_self_contained+set}" = set; then
2296 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2298 EN_NS_SELF_CONTAINED
=yes
2302 # Check whether --enable-asserts was given.
2303 if test "${enable_asserts+set}" = set; then
2304 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2310 # Check whether --enable-maintainer-mode was given.
2311 if test "${enable_maintainer_mode+set}" = set; then
2312 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2314 USE_MAINTAINER_MODE
=no
2317 if test $USE_MAINTAINER_MODE = yes; then
2324 # Check whether --enable-locallisppath was given.
2325 if test "${enable_locallisppath+set}" = set; then
2326 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2328 elif test "${enableval}" != "yes"; then
2329 locallisppath
=${enableval}
2334 # Check whether --enable-checking was given.
2335 if test "${enable_checking+set}" = set; then
2336 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2339 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2340 for check
in $ac_checking_flags
2343 # these set all the flags to specific states
2344 yes) ac_enable_checking
=1 ;;
2345 no
) ac_enable_checking
= ;
2346 ac_gc_check_stringbytes
= ;
2347 ac_gc_check_string_overrun
= ;
2348 ac_gc_check_string_free_list
= ;
2349 ac_xmalloc_overrun
= ;
2350 ac_gc_check_cons_list
= ;;
2351 all
) ac_enable_checking
=1 ;
2352 ac_gc_check_stringbytes
=1 ;
2353 ac_gc_check_string_overrun
=1 ;
2354 ac_gc_check_string_free_list
=1 ;
2355 ac_xmalloc_overrun
=1 ;
2356 ac_gc_check_cons_list
=1 ;;
2357 # these enable particular checks
2358 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2359 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2360 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2361 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2362 conslist
) ac_gc_check_cons_list
=1 ;;
2363 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2364 $as_echo "$as_me: error: unknown check category $check" >&2;}
2365 { (exit 1); exit 1; }; } ;;
2370 if test x
$ac_enable_checking != x
; then
2372 cat >>confdefs.h
<<\_ACEOF
2373 #define ENABLE_CHECKING 1
2377 if test x
$ac_gc_check_stringbytes != x
; then
2379 cat >>confdefs.h
<<\_ACEOF
2380 #define GC_CHECK_STRING_BYTES 1
2384 if test x
$ac_gc_check_stringoverrun != x
; then
2386 cat >>confdefs.h
<<\_ACEOF
2387 #define GC_CHECK_STRING_OVERRUN 1
2391 if test x
$ac_gc_check_string_free_list != x
; then
2393 cat >>confdefs.h
<<\_ACEOF
2394 #define GC_CHECK_STRING_FREE_LIST 1
2398 if test x
$ac_xmalloc_overrun != x
; then
2400 cat >>confdefs.h
<<\_ACEOF
2401 #define XMALLOC_OVERRUN_CHECK 1
2405 if test x
$ac_gc_check_cons_list != x
; then
2407 cat >>confdefs.h
<<\_ACEOF
2408 #define GC_CHECK_CONS_LIST 1
2413 # Check whether --enable-profiling was given.
2414 if test "${enable_profiling+set}" = set; then
2415 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2418 if test x
$ac_enable_profiling != x
; then
2419 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2420 PROFILING_LDFLAGS
="-pg"
2426 #### Make srcdir absolute, if it isn't already. It's important to
2427 #### avoid running the path through pwd unnecessarily, since pwd can
2428 #### give you automounter prefixes, which can go away. We do all this
2429 #### so Emacs can find its files when run uninstalled.
2430 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2435 ## We may be able to use the $PWD environment variable to make this
2436 ## absolute. But sometimes PWD is inaccurate.
2437 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2438 ## but that tested only for a well-formed and valid PWD,
2439 ## it did not object when PWD was well-formed and valid but just wrong.
2440 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2444 srcdir
="`(cd ${srcdir}; pwd)`"
2447 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2450 #### Check if the source directory already has a configured system in it.
2451 if test `pwd` != `(cd ${srcdir} && pwd)` \
2452 && test -f "${srcdir}/src/config.h" ; then
2453 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2454 as a build directory right now; it has been configured in its own
2455 right. To configure in another directory as well, you MUST
2456 use GNU make. If you do not have GNU make, then you must
2457 now do \`make distclean' in ${srcdir},
2458 and then run $0 again." >&5
2459 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2460 as a build directory right now; it has been configured in its own
2461 right. To configure in another directory as well, you MUST
2462 use GNU make. If you do not have GNU make, then you must
2463 now do \`make distclean' in ${srcdir},
2464 and then run $0 again." >&2;}
2467 #### Given the configuration name, set machfile and opsysfile to the
2468 #### names of the m/*.h and s/*.h files we should use.
2470 ### Canonicalize the configuration name.
2473 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2476 ac_install_sh
="$ac_aux_dir/install-sh -c"
2478 elif test -f "$ac_dir/install.sh"; then
2480 ac_install_sh
="$ac_aux_dir/install.sh -c"
2482 elif test -f "$ac_dir/shtool"; then
2484 ac_install_sh
="$ac_aux_dir/shtool install -c"
2488 if test -z "$ac_aux_dir"; then
2489 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2490 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2491 { (exit 1); exit 1; }; }
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2505 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2506 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2507 { (exit 1); exit 1; }; }
2509 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2510 $as_echo_n "checking build system type... " >&6; }
2511 if test "${ac_cv_build+set}" = set; then
2512 $as_echo_n "(cached) " >&6
2514 ac_build_alias
=$build_alias
2515 test "x$ac_build_alias" = x
&&
2516 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2517 test "x$ac_build_alias" = x
&&
2518 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2519 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2520 { (exit 1); exit 1; }; }
2521 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2522 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2523 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2524 { (exit 1); exit 1; }; }
2527 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2528 $as_echo "$ac_cv_build" >&6; }
2529 case $ac_cv_build in
2531 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2532 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2533 { (exit 1); exit 1; }; };;
2536 ac_save_IFS
=$IFS; IFS
='-'
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2546 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2550 $as_echo_n "checking host system type... " >&6; }
2551 if test "${ac_cv_host+set}" = set; then
2552 $as_echo_n "(cached) " >&6
2554 if test "x$host_alias" = x
; then
2555 ac_cv_host
=$ac_cv_build
2557 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2558 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2559 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2560 { (exit 1); exit 1; }; }
2564 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2565 $as_echo "$ac_cv_host" >&6; }
2568 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2569 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2570 { (exit 1); exit 1; }; };;
2573 ac_save_IFS
=$IFS; IFS
='-'
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2583 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2587 configuration
=${host_alias-${build_alias-$host}}
2591 ### If you add support for a new configuration, add code to this
2592 ### switch statement to recognize your configuration name and select
2593 ### the appropriate operating system and machine description files.
2595 ### You would hope that you could choose an m/*.h file pretty much
2596 ### based on the machine portion of the configuration name, and an s-
2597 ### file based on the operating system portion. However, it turns out
2598 ### that each m/*.h file is pretty manufacturer-specific - for
2599 ### example mips.h is MIPS
2600 ### So we basically have to have a special case for each
2601 ### configuration name.
2603 ### As far as handling version numbers on operating systems is
2604 ### concerned, make sure things will fail in a fixable way. If
2605 ### /etc/MACHINES doesn't say anything about version numbers, be
2606 ### prepared to handle anything reasonably. If version numbers
2607 ### matter, be sure /etc/MACHINES says something about it.
2609 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2610 ### "System V Release 4"; he writes, "The old convention encouraged
2611 ### confusion between `system' and `release' levels'."
2613 machine
='' opsys
='' unported
=no
2614 case "${canonical}" in
2619 case "${canonical}" in
2620 alpha
*-*-freebsd*) machine
=alpha
;;
2621 arm
*-*-freebsd*) machine
=arm
;;
2622 ia64-
*-freebsd*) machine
=ia64
;;
2623 sparc-
*-freebsd*) machine
=sparc
;;
2624 sparc64-
*-freebsd*) machine
=sparc
;;
2625 powerpc-
*-freebsd*) machine
=macppc
;;
2626 i
[3456]86-*-freebsd*) machine
=intel386
;;
2627 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2631 ## FreeBSD kernel + glibc based userland
2634 case "${canonical}" in
2635 alpha
*-*-kfreebsd*) machine
=alpha
;;
2636 ia64-
*-kfreebsd*) machine
=ia64
;;
2637 sparc-
*-kfreebsd*) machine
=sparc
;;
2638 sparc64-
*-kfreebsd*) machine
=sparc
;;
2639 powerpc-
*-kfreebsd*) machine
=macppc
;;
2640 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2641 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2648 if test -f /usr
/lib
/crti.o
; then
2650 cat >>confdefs.h
<<\_ACEOF
2651 #define HAVE_CRTIN /**/
2656 case "${canonical}" in
2657 alpha
*-*-netbsd*) machine
=alpha
;;
2658 i
[3456]86-*-netbsd*) machine
=intel386
;;
2659 mips-
*-netbsd*) machine
=mips
;;
2660 mipsel-
*-netbsd*) machine
=mips
;;
2661 mipseb-
*-netbsd*) machine
=mips
;;
2662 powerpc-
*-netbsd*) machine
=macppc
;;
2663 sparc
*-*-netbsd*) machine
=sparc
;;
2664 vax-
*-netbsd*) machine
=vax
;;
2665 arm-
*-netbsd*) machine
=arm
;;
2666 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2667 hppa-
*-netbsd*) machine
=hp800
;;
2668 m68k-
*-netbsd*) machine
=m68k
;;
2675 case "${canonical}" in
2676 alpha
*-*-openbsd*) machine
=alpha
;;
2677 arm-
*-openbsd*) machine
=arm
;;
2678 i386-
*-openbsd*) machine
=intel386
;;
2679 powerpc-
*-openbsd*) machine
=macppc
;;
2680 sparc
*-*-openbsd*) machine
=sparc
;;
2681 vax-
*-openbsd*) machine
=vax
;;
2682 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2683 hppa-
*-openbsd*) machine
=hp800
;;
2690 case "${canonical}" in
2691 i
[3456]86-*-lynxos*) machine
=intel386
;;
2692 powerpc-
*-lynxos*) machine
=powerpc
;;
2696 alpha
*-*-linux-gnu* )
2697 machine
=alpha opsys
=gnu-linux
2701 machine
=arm opsys
=gnu-linux
2704 ## Apple Darwin / Mac OS X
2706 case "${canonical}" in
2707 i
[3456]86-* ) machine
=intel386
;;
2708 powerpc-
* ) machine
=macppc
;;
2712 # Define CPP as follows to make autoconf work correctly.
2713 CPP
="${CC-cc} -E -no-cpp-precomp"
2714 # Use fink packages if available.
2715 if test -d /sw
/include
&& test -d /sw
/lib
; then
2716 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2717 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2718 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2722 ## HP 9000 series 700 and 800, running HP/UX
2723 hppa
*-hp-hpux10.2
* )
2724 machine
=hp800 opsys
=hpux10-20
2726 hppa
*-hp-hpux1[1-9]* )
2727 machine
=hp800 opsys
=hpux11
2728 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2731 hppa
*-*-linux-gnu* )
2732 machine
=hp800 opsys
=gnu-linux
2737 machine
=ibms390 opsys
=gnu-linux
2739 s390x-
*-linux-gnu* )
2740 machine
=ibms390x opsys
=gnu-linux
2742 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2743 machine
=ibmrs6000 opsys
=aix4-2
2745 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2746 machine
=ibmrs6000 opsys
=aix4-2
2748 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2749 machine
=ibmrs6000 opsys
=aix4-2
2751 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2752 machine
=ibmrs6000 opsys
=aix4-2
2755 ## Macintosh PowerPC
2756 powerpc
*-*-linux-gnu* )
2757 machine
=macppc opsys
=gnu-linux
2760 ## Silicon Graphics machines
2763 machine
=iris4d opsys
=irix6-5
2764 # Without defining _LANGUAGE_C, things get masked out in the headers
2765 # so that, for instance, grepping for `free' in stdlib.h fails and
2766 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2767 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2768 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2772 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2773 machine
=sparc opsys
=gnu-linux
2777 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2778 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2779 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2780 case "${canonical}" in
2781 i
[3456]86-*-* ) machine
=intel386
;;
2782 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2783 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2784 sparc
* ) machine
=sparc
;;
2787 case "${canonical}" in
2788 *-sunos5.3
* |
*-solaris2.3
* )
2790 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2792 *-sunos5.4
* |
*-solaris2.4
* )
2794 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2797 *-sunos5.5
* |
*-solaris2.5
* )
2799 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2802 *-sunos5.6
* |
*-solaris2.6
* )
2804 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2807 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2809 emacs_check_sunpro_c
=yes
2810 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2812 *-sunos5* |
*-solaris* )
2814 emacs_check_sunpro_c
=yes
2815 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2818 ## Watch out for a compiler that we know will not work.
2819 case "${canonical}" in
2820 *-solaris* |
*-sunos5* )
2821 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2822 ## /usr/ucb/cc doesn't work;
2823 ## we should find some other compiler that does work.
2834 case "${canonical}" in
2835 *-vms* ) opsys
=vms
;;
2842 machine
=ia64 opsys
=gnu-linux
2845 ## Intel 386 machines where we don't care about the manufacturer
2848 case "${canonical}" in
2849 *-cygwin ) opsys
=cygwin
;;
2850 *-darwin* ) opsys
=darwin
2851 CPP
="${CC-cc} -E -no-cpp-precomp"
2853 *-linux-gnu* ) opsys
=gnu-linux
;;
2854 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2855 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2856 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2857 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2861 ## m68k Linux-based GNU system
2863 machine
=m68k opsys
=gnu-linux
2866 ## Mips Linux-based GNU system
2867 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2868 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2869 machine
=mips opsys
=gnu-linux
2872 ## AMD x86-64 Linux-based GNU system
2873 x86_64-
*-linux-gnu* )
2874 machine
=amdx86-64 opsys
=gnu-linux
2877 ## Tensilica Xtensa Linux-based GNU system
2878 xtensa
*-*-linux-gnu* )
2879 machine
=xtensa opsys
=gnu-linux
2882 ## SuperH Linux-based GNU system
2883 sh
[34]*-*-linux-gnu* )
2884 machine
=sh3 opsys
=gnu-linux
2892 ### If the code above didn't choose an operating system, just choose
2893 ### an operating system based on the configuration name. You really
2894 ### only want to use this when you have no idea what the right
2895 ### operating system is; if you know what operating systems a machine
2896 ### runs, it's cleaner to make it explicit in the case statement
2898 if test x
"${opsys}" = x
; then
2899 case "${canonical}" in
2900 *-gnu* ) opsys
=gnu
;;
2901 *-sysv4.2uw
* ) opsys
=unixware
;;
2902 *-sysv5uw* ) opsys
=unixware
;;
2903 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2904 *-sysv4.1
* |
*-sysvr4.1
* )
2905 NON_GNU_CPP
=/usr
/lib
/cpp
2907 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2908 if [ x
$NON_GNU_CPP = x
]; then
2909 if [ -f /usr
/ccs
/lib
/cpp
]; then
2910 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2912 NON_GNU_CPP
=/lib
/cpp
2916 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2925 if test $unported = yes; then
2926 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2927 Check \`etc/MACHINES' for recognized configuration names." >&5
2928 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2929 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2930 { (exit 1); exit 1; }; }
2933 machfile
="m/${machine}.h"
2934 opsysfile
="s/${opsys}.h"
2937 #### Choose a compiler.
2938 test -n "$CC" && cc_specified
=yes
2940 # Save the value of CFLAGS that the user specified.
2941 SPECIFIED_CFLAGS
="$CFLAGS"
2944 ac_cpp
='$CPP $CPPFLAGS'
2945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC
="$CC" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2981 { $as_echo "$as_me:$LINENO: result: no" >&5
2982 $as_echo "no" >&6; }
2987 if test -z "$ac_cv_prog_CC"; then
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc
; ac_word
=$2
2991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2994 $as_echo_n "(cached) " >&6
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir
=.
3004 for ac_exec_ext
in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC
="gcc"
3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3021 { $as_echo "$as_me:$LINENO: result: no" >&5
3022 $as_echo "no" >&6; }
3025 if test "x$ac_ct_CC" = x
; then
3028 case $cross_compiling:$ac_tool_warned in
3030 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3031 whose name does not start with the host triplet. If you think this
3032 configuration is useful to you, please write to autoconf@gnu.org." >&5
3033 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3034 whose name does not start with the host triplet. If you think this
3035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3036 ac_tool_warned
=yes ;;
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC
="$CC" # Let the user override the test.
3056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir
=.
3061 for ac_exec_ext
in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3078 { $as_echo "$as_me:$LINENO: result: no" >&5
3079 $as_echo "no" >&6; }
3085 if test -z "$CC"; then
3086 # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc
; ac_word
=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC
="$CC" # Let the user override the test.
3097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir
=.
3102 for ac_exec_ext
in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105 ac_prog_rejected
=yes
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test $ac_prog_rejected = yes; then
3117 # We found a bogon in the path, so make sure we never use it.
3118 set dummy
$ac_cv_prog_CC
3120 if test $# != 0; then
3121 # We chose a different compiler from the bogus one.
3122 # However, it has the same basename, so the bogon will be chosen
3123 # first if we set CC to just the basename; use the full file name.
3125 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3135 { $as_echo "$as_me:$LINENO: result: no" >&5
3136 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 for ac_prog
in cl.exe
3145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3177 { $as_echo "$as_me:$LINENO: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$CC" && break
3185 if test -z "$CC"; then
3187 for ac_prog
in cl.exe
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy
$ac_prog; ac_word
=$2
3191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir
=.
3204 for ac_exec_ext
in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC
="$ac_prog"
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3221 { $as_echo "$as_me:$LINENO: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$ac_ct_CC" && break
3229 if test "x$ac_ct_CC" = x
; then
3232 case $cross_compiling:$ac_tool_warned in
3234 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3235 whose name does not start with the host triplet. If you think this
3236 configuration is useful to you, please write to autoconf@gnu.org." >&5
3237 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3238 whose name does not start with the host triplet. If you think this
3239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3240 ac_tool_warned
=yes ;;
3249 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3255 # Provide some information about the compiler.
3256 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3259 { (ac_try
="$ac_compiler --version >&5"
3261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compiler --version >&5") 2>&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }
3270 { (ac_try="$ac_compiler -v >&5"
3272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3273 *) ac_try_echo
=$ac_try;;
3275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_compiler -v >&5") 2>&5
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (ac_try
="$ac_compiler -V >&5"
3283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287 $as_echo "$ac_try_echo") >&5
3288 (eval "$ac_compiler -V >&5") 2>&5
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3308 ac_clean_files_save=$ac_clean_files
3309 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310 # Try to create an executable without -o first, disregard a.out.
3311 # It will help us diagnose broken compilers, and finding out an intuition
3313 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3314 $as_echo_n "checking for C compiler default output file name... " >&6; }
3315 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3317 # The possible output files:
3318 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3321 for ac_file in $ac_files
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3330 if { (ac_try="$ac_link_default"
3332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3333 *) ac_try_echo
=$ac_try;;
3335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337 (eval "$ac_link_default") 2>&5
3339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; then
3341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3344 # so that the user can short-circuit this test for compilers unknown to
3346 for ac_file
in $ac_files ''
3348 test -f "$ac_file" ||
continue
3350 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3353 # We found the default executable, but exeext='' is most
3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3359 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 # We set ac_cv_exeext here because the later test for it is not
3362 # safe: cross compilers may not add the suffix if given an `-o'
3363 # argument, so we may need to know it at that point already.
3364 # Even if this section looks crufty: it has the advantage of
3371 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3377 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 if test -z "$ac_file"; then
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3383 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3384 See \`config.log' for more details." >&5
3385 $as_echo "$as_me: error: C compiler cannot create executables
3386 See \`config.log' for more details." >&2;}
3387 { (exit 77); exit 77; }; }
3390 ac_exeext
=$ac_cv_exeext
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3395 $as_echo_n "checking whether the C compiler works... " >&6; }
3396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3397 # If not cross compiling, check that we can run a simple program.
3398 if test "$cross_compiling" != yes; then
3399 if { ac_try
='./$ac_file'
3400 { (case "(($ac_try" in
3401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_try") 2>&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3412 if test "$cross_compiling" = maybe; then
3415 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3416 If you meant to cross compile, use \`--host'.
3417 See \`config.log' for more details.
" >&5
3418 $as_echo "$as_me: error
: cannot run C compiled programs.
3419 If you meant to cross compile
, use \
`--host'.
3420 See \`config.log
' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3425 { $as_echo "$as_me:$LINENO: result: yes" >&5
3426 $as_echo "yes" >&6; }
3428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3429 ac_clean_files=$ac_clean_files_save
3430 # Check that the compiler produces executables we can run. If not, either
3431 # the compiler is broken, or we cross compile.
3432 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3433 $as_echo_n "checking whether we are cross compiling... " >&6; }
3434 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3435 $as_echo "$cross_compiling" >&6; }
3437 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3438 $as_echo_n "checking for suffix of executables... " >&6; }
3439 if { (ac_try="$ac_link"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_link") 2>&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; then
3450 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3451 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3452 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3454 for ac_file
in conftest.exe conftest conftest.
*; do
3455 test -f "$ac_file" ||
continue
3457 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3458 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3467 See \`config.log' for more details." >&2;}
3468 { (exit 1); exit 1; }; }
3471 rm -f conftest
$ac_cv_exeext
3472 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3473 $as_echo "$ac_cv_exeext" >&6; }
3475 rm -f conftest.
$ac_ext
3476 EXEEXT
=$ac_cv_exeext
3478 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3479 $as_echo_n "checking for suffix of object files... " >&6; }
3480 if test "${ac_cv_objext+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3483 cat >conftest.
$ac_ext <<_ACEOF
3486 cat confdefs.h
>>conftest.
$ac_ext
3487 cat >>conftest.
$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3498 rm -f conftest.o conftest.obj
3499 if { (ac_try
="$ac_compile"
3501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505 $as_echo "$ac_try_echo") >&5
3506 (eval "$ac_compile") 2>&5
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; then
3510 for ac_file in conftest.o conftest.obj conftest.*; do
3511 test -f "$ac_file" || continue;
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3519 $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3523 See \`config.log
' for more details." >&5
3524 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3525 See \`config.log' for more details.
" >&2;}
3526 { (exit 1); exit 1; }; }
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3535 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3538 $as_echo_n "(cached
) " >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3578 $as_echo "$as_me: failed program was
:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3595 ac_test_CFLAGS=${CFLAGS+set}
3596 ac_save_CFLAGS=$CFLAGS
3597 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3598 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3599 if test "${ac_cv_prog_cc_g+set}" = set; then
3600 $as_echo_n "(cached
) " >&6
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3628 $as_echo "$ac_try_echo") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3641 $as_echo "$as_me: failed program was
:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3667 $as_echo "$ac_try_echo") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.$ac_objext; then
3680 $as_echo "$as_me: failed program was
:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 ac_c_werror_flag=$ac_save_c_werror_flag
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3720 $as_echo "$as_me: failed program was
:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3735 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3736 $as_echo "$ac_cv_prog_cc_g" >&6; }
3737 if test "$ac_test_CFLAGS" = set; then
3738 CFLAGS=$ac_save_CFLAGS
3739 elif test $ac_cv_prog_cc_g = yes; then
3740 if test "$GCC" = yes; then
3746 if test "$GCC" = yes; then
3752 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3753 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3754 if test "${ac_cv_prog_cc_c89+set}" = set; then
3755 $as_echo_n "(cached
) " >&6
3757 ac_cv_prog_cc_c89=no
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3767 #include <sys/types.h>
3768 #include <sys/stat.h>
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3783 s = g (p, va_arg (v,int));
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 CC="$ac_save_CC $ac_arg"
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_cv_prog_cc_c89=$ac_arg
3840 $as_echo "$as_me: failed program was
:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3849 rm -f conftest.$ac_ext
3854 case "x
$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3857 $as_echo "none needed
" >&6; } ;;
3859 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3860 $as_echo "unsupported
" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3880 ## If not using gcc, and on Solaris, and no CPP specified, see if
3881 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3882 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3883 test x"$CPP" = x; then
3884 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3885 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3887 if test "${emacs_cv_sunpro_c+set}" = set; then
3888 $as_echo_n "(cached
) " >&6
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (ac_try="$ac_link"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_link") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest$ac_exeext && {
3926 test "$cross_compiling" = yes ||
3927 $as_test_x conftest$ac_exeext
3929 emacs_cv_sunpro_c=yes
3931 $as_echo "$as_me: failed program was
:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 emacs_cv_sunpro_c=no
3937 rm -rf conftest.dSYM
3938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3939 conftest$ac_exeext conftest.$ac_ext
3942 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3943 $as_echo "$emacs_cv_sunpro_c" >&6; }
3945 if test x"$emacs_cv_sunpro_c" = xyes; then
3946 NON_GNU_CPP="$CC -E -Xs"
3950 #### Some systems specify a CPP to use unless we are using GCC.
3951 #### Now that we know whether we are using GCC, we can decide whether
3952 #### to use that one.
3953 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3958 #### Some systems specify a CC to use unless we are using GCC.
3959 #### Now that we know whether we are using GCC, we can decide whether
3960 #### to use that one.
3961 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3962 test x$cc_specified != xyes
3967 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3969 CC="$CC $GCC_TEST_OPTIONS"
3972 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3974 CC="$CC $NON_GCC_TEST_OPTIONS"
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3983 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3984 # On Suns, sometimes $CPP names a directory.
3985 if test -n "$CPP" && test -d "$CPP"; then
3988 if test -z "$CPP"; then
3989 if test "${ac_cv_prog_CPP+set}" = set; then
3990 $as_echo_n "(cached
) " >&6
3992 # Double quotes because CPP needs to be expanded
3993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3996 for ac_c_preproc_warn_flag in '' yes
3998 # Use a header file that comes with gcc, so configuring glibc
3999 # with a fresh cross-compiler works.
4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 # <limits.h> exists even on freestanding compilers.
4002 # On the NeXT, cc -E runs the code through the compiler's parser,
4003 # not just through cpp. "Syntax error
" is here to catch this case.
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4011 # include <limits.h>
4013 # include <assert.h>
4017 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4030 (exit $ac_status); } >/dev/null && {
4031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4036 $as_echo "$as_me: failed program was
:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 # Broken: fails on valid input.
4043 rm -f conftest.err conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <ac_nonexistent.h>
4055 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4068 (exit $ac_status); } >/dev/null && {
4069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4072 # Broken: success on invalid input.
4075 $as_echo "$as_me: failed program was
:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 # Passes both tests.
4083 rm -f conftest.err conftest.$ac_ext
4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087 rm -f conftest.err conftest.$ac_ext
4088 if $ac_preproc_ok; then
4100 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4101 $as_echo "$CPP" >&6; }
4103 for ac_c_preproc_warn_flag in '' yes
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error
" is here to catch this case.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4118 # include <limits.h>
4120 # include <assert.h>
4124 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4143 $as_echo "$as_me: failed program was
:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 # Broken: fails on valid input.
4150 rm -f conftest.err conftest.$ac_ext
4152 # OK, works on sane cases. Now check whether nonexistent headers
4153 # can be detected and how.
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4175 (exit $ac_status); } >/dev/null && {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4179 # Broken: success on invalid input.
4182 $as_echo "$as_me: failed program was
:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Passes both tests.
4190 rm -f conftest.err conftest.$ac_ext
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4198 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4199 See \
`config.log' for more details." >&5
4200 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4201 See \`config.log
' for more details." >&2;}
4202 { (exit 1); exit 1; }; }
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4208 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if test "${ac_cv_path_GREP+set}" = set; then
4215 $as_echo_n "(cached) " >&6
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and
test for each of PROGNAME-LIST
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4221 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_prog
in grep ggrep
; do
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4233 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4236 $as_echo_n 0123456789 >"conftest.in"
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4244 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4245 ac_count
=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP
="$ac_path_GREP"
4249 ac_path_GREP_max
=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4254 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4257 $ac_path_GREP_found && break 3
4262 if test -z "$ac_cv_path_GREP"; then
4263 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4268 ac_cv_path_GREP
=$GREP
4272 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274 GREP
="$ac_cv_path_GREP"
4277 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4282 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4283 then ac_cv_path_EGREP
="$GREP -E"
4285 if test -z "$EGREP"; then
4286 ac_path_EGREP_found
=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4292 test -z "$as_dir" && as_dir
=.
4293 for ac_prog
in egrep; do
4294 for ac_exec_ext
in '' $ac_executable_extensions; do
4295 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298 # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4301 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4304 $as_echo_n 0123456789 >"conftest.in"
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'EGREP' >> "conftest.nl"
4311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4312 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4313 ac_count
=`expr $ac_count + 1`
4314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_EGREP
="$ac_path_EGREP"
4317 ac_path_EGREP_max
=$ac_count
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4322 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4325 $ac_path_EGREP_found && break 3
4330 if test -z "$ac_cv_path_EGREP"; then
4331 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4332 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4333 { (exit 1); exit 1; }; }
4336 ac_cv_path_EGREP
=$EGREP
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP
="$ac_cv_path_EGREP"
4346 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4351 cat >conftest.
$ac_ext <<_ACEOF
4354 cat confdefs.h
>>conftest.
$ac_ext
4355 cat >>conftest.
$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4370 rm -f conftest.
$ac_objext
4371 if { (ac_try
="$ac_compile"
4373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4377 $as_echo "$ac_try_echo") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4380 grep -v '^ *+' conftest.er1 >conftest.err
4382 cat conftest.err >&5
4383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest.$ac_objext; then
4388 ac_cv_header_stdc=yes
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_header_stdc=no
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 if test $ac_cv_header_stdc = yes; then
4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 $EGREP "memchr" >/dev/null 2>&1; then
4413 ac_cv_header_stdc=no
4419 if test $ac_cv_header_stdc = yes; then
4420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4421 cat >conftest.$ac_ext <<_ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4431 $EGREP "free" >/dev/null 2>&1; then
4434 ac_cv_header_stdc=no
4440 if test $ac_cv_header_stdc = yes; then
4441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4442 if test "$cross_compiling" = yes; then
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4453 #if ((' ' & 0x0FF) == 0x020)
4454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4457 # define ISLOWER(c) \
4458 (('a' <= (c) && (c) <= 'i') \
4459 || ('j' <= (c) && (c) <= 'r') \
4460 || ('s' <= (c) && (c) <= 'z'))
4461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4469 for (i = 0; i < 256; i++)
4470 if (XOR (islower (i), ISLOWER (i))
4471 || toupper (i) != TOUPPER (i))
4476 rm -f conftest$ac_exeext
4477 if { (ac_try="$ac_link"
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_link") 2>&5
4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4488 { (case "(($ac_try" in
4489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4493 $as_echo "$ac_try_echo") >&5
4494 (eval "$ac_try") 2>&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4500 $as_echo "$as_me: program exited with status $ac_status" >&5
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4505 ac_cv_header_stdc=no
4507 rm -rf conftest.dSYM
4508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4515 $as_echo "$ac_cv_header_stdc" >&6; }
4516 if test $ac_cv_header_stdc = yes; then
4518 cat >>confdefs.h <<\_ACEOF
4519 #define STDC_HEADERS 1
4524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4538 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 $as_echo_n "checking for $ac_header... " >&6; }
4540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 $as_echo_n "(cached) " >&6
4543 cat >conftest.$ac_ext <<_ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4551 #include <$ac_header>
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4557 *) ac_try_echo
=$ac_try;;
4559 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4560 $as_echo "$ac_try_echo") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1
>conftest.err
4565 cat conftest.err
>&5
4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.
$ac_objext; then
4571 eval "$as_ac_Header=yes"
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.
$ac_ext >&5
4576 eval "$as_ac_Header=no"
4579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4581 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'`
4583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4584 $as_echo "$ac_res" >&6; }
4585 if test `eval 'as_val=${'$as_ac_Header'}
4586 $as_echo "$as_val"'` = yes; then
4587 cat >>confdefs.h
<<_ACEOF
4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 if test "${ac_cv_header_minix_config_h+set}" = set; then
4598 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4599 $as_echo_n "checking for minix/config.h... " >&6; }
4600 if test "${ac_cv_header_minix_config_h+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4604 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4606 # Is the header compilable?
4607 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4608 $as_echo_n "checking minix/config.h usability... " >&6; }
4609 cat >conftest.
$ac_ext <<_ACEOF
4612 cat confdefs.h
>>conftest.
$ac_ext
4613 cat >>conftest.
$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4615 $ac_includes_default
4616 #include <minix/config.h>
4618 rm -f conftest.
$ac_objext
4619 if { (ac_try
="$ac_compile"
4621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626 (eval "$ac_compile") 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } && {
4633 test -z "$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4635 } && test -s conftest.$ac_objext; then
4636 ac_header_compiler=yes
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_header_compiler=no
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4646 $as_echo "$ac_header_compiler" >&6; }
4648 # Is the header present?
4649 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4650 $as_echo_n "checking minix/config.h presence... " >&6; }
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #include <minix/config.h>
4659 if { (ac_try="$ac_cpp conftest.$ac_ext"
4661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4662 *) ac_try_echo
=$ac_try;;
4664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4665 $as_echo "$ac_try_echo") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 grep -v '^ *+' conftest.er1
>conftest.err
4670 cat conftest.err
>&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev
/null
&& {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4676 ac_header_preproc
=yes
4678 $as_echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.
$ac_ext >&5
4681 ac_header_preproc
=no
4684 rm -f conftest.err conftest.
$ac_ext
4685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4686 $as_echo "$ac_header_preproc" >&6; }
4688 # So? What about this header?
4689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4691 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4692 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4693 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4694 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4695 ac_header_preproc
=yes
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4700 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4701 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4702 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4703 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4704 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4705 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4706 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4707 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4713 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4714 $as_echo_n "checking for minix/config.h... " >&6; }
4715 if test "${ac_cv_header_minix_config_h+set}" = set; then
4716 $as_echo_n "(cached) " >&6
4718 ac_cv_header_minix_config_h
=$ac_header_preproc
4720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4721 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4724 if test $ac_cv_header_minix_config_h = yes; then
4731 if test "$MINIX" = yes; then
4733 cat >>confdefs.h
<<\_ACEOF
4734 #define _POSIX_SOURCE 1
4738 cat >>confdefs.h
<<\_ACEOF
4739 #define _POSIX_1_SOURCE 2
4743 cat >>confdefs.h
<<\_ACEOF
4751 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4752 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4754 $as_echo_n "(cached) " >&6
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4763 # define __EXTENSIONS__ 1
4764 $ac_includes_default
4773 rm -f conftest.
$ac_objext
4774 if { (ac_try
="$ac_compile"
4776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780 $as_echo "$ac_try_echo") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4791 ac_cv_safe_to_define___extensions__=yes
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 ac_cv_safe_to_define___extensions__=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4802 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4803 test $ac_cv_safe_to_define___extensions__ = yes &&
4804 cat >>confdefs.h <<\_ACEOF
4805 #define __EXTENSIONS__ 1
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _ALL_SOURCE 1
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _GNU_SOURCE 1
4816 cat >>confdefs.h <<\_ACEOF
4817 #define _POSIX_PTHREAD_SEMANTICS 1
4820 cat >>confdefs.h <<\_ACEOF
4821 #define _TANDEM_SOURCE 1
4826 ### Use -Wno-pointer-sign if the compiler supports it
4827 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4828 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4829 SAVE_CFLAGS="$CFLAGS"
4830 CFLAGS="$CFLAGS -Wno-pointer-sign"
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4850 *) ac_try_echo
=$ac_try;;
4852 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1
>conftest.err
4858 cat conftest.err
>&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.
$ac_objext; then
4866 $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.
$ac_ext >&5
4872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4873 if test $has_option = yes; then
4874 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4876 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4877 $as_echo "$has_option" >&6; }
4878 CFLAGS
="$SAVE_CFLAGS"
4882 #### Some other nice autoconf tests.
4884 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4885 $as_echo_n "checking whether ln -s works... " >&6; }
4887 if test "$LN_S" = "ln -s"; then
4888 { $as_echo "$as_me:$LINENO: result: yes" >&5
4889 $as_echo "yes" >&6; }
4891 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4892 $as_echo "no, using $LN_S" >&6; }
4896 ac_cpp
='$CPP $CPPFLAGS'
4897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4900 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4902 # On Suns, sometimes $CPP names a directory.
4903 if test -n "$CPP" && test -d "$CPP"; then
4906 if test -z "$CPP"; then
4907 if test "${ac_cv_prog_CPP+set}" = set; then
4908 $as_echo_n "(cached) " >&6
4910 # Double quotes because CPP needs to be expanded
4911 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4914 for ac_c_preproc_warn_flag
in '' yes
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 # include <limits.h>
4931 # include <assert.h>
4935 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null && {
4949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4954 $as_echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 # Broken: fails on valid input.
4961 rm -f conftest.err conftest.$ac_ext
4963 # OK, works on sane cases. Now check whether nonexistent headers
4964 # can be detected and how.
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4973 if { (ac_try="$ac_cpp conftest.$ac_ext"
4975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4976 *) ac_try_echo
=$ac_try;;
4978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4982 grep -v '^ *+' conftest.er1
>conftest.err
4984 cat conftest.err
>&5
4985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev
/null
&& {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4990 # Broken: success on invalid input.
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4996 # Passes both tests.
5001 rm -f conftest.err conftest.
$ac_ext
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.
$ac_ext
5006 if $ac_preproc_ok; then
5018 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5019 $as_echo "$CPP" >&6; }
5021 for ac_c_preproc_warn_flag
in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.
$ac_ext <<_ACEOF
5032 cat confdefs.h
>>conftest.
$ac_ext
5033 cat >>conftest.
$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 # include <limits.h>
5038 # include <assert.h>
5042 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048 $as_echo "$ac_try_echo") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 # Broken: fails on valid input.
5068 rm -f conftest.err conftest.$ac_ext
5070 # OK, works on sane cases. Now check whether nonexistent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5080 if { (ac_try="$ac_cpp conftest.$ac_ext"
5082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5083 *) ac_try_echo
=$ac_try;;
5085 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1
>conftest.err
5091 cat conftest.err
>&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev
/null
&& {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5097 # Broken: success on invalid input.
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.
$ac_ext >&5
5103 # Passes both tests.
5108 rm -f conftest.err conftest.
$ac_ext
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.
$ac_ext
5113 if $ac_preproc_ok; then
5116 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details." >&5
5118 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details." >&2;}
5120 { (exit 1); exit 1; }; }
5124 ac_cpp
='$CPP $CPPFLAGS'
5125 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5129 # Find a good install program. We prefer a C program (faster),
5130 # so one script is as good as another. But avoid the broken or
5131 # incompatible versions:
5132 # SysV /etc/install, /usr/sbin/install
5133 # SunOS /usr/etc/install
5134 # IRIX /sbin/install
5136 # AmigaOS /C/install, which installs bootblocks on floppy discs
5137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5140 # OS/2's system install, which has a completely different semantic
5141 # ./install, which can be erroneously created by make from ./install.sh.
5142 # Reject install programs that cannot install multiple files.
5143 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5144 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5145 if test -z "$INSTALL"; then
5146 if test "${ac_cv_path_install+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir
=.
5154 # Account for people who put trailing slashes in PATH elements.
5156 .
/ | .
// |
/cC
/* | \
5157 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5158 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5161 # OSF1 and SCO ODT 3.0 have their own names for install.
5162 # Don't use installbsd from OSF since it installs stuff as root
5164 for ac_prog
in ginstall scoinst
install; do
5165 for ac_exec_ext
in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5167 if test $ac_prog = install &&
5168 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5169 # AIX install. It has an incompatible calling convention.
5171 elif test $ac_prog = install &&
5172 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5173 # program-specific install script used by HP pwplus--don't use.
5176 rm -rf conftest.one conftest.two conftest.dir
5177 echo one
> conftest.one
5178 echo two
> conftest.two
5180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5181 test -s conftest.one
&& test -s conftest.two
&&
5182 test -s conftest.dir
/conftest.one
&&
5183 test -s conftest.dir
/conftest.two
5185 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5198 rm -rf conftest.one conftest.two conftest.dir
5201 if test "${ac_cv_path_install+set}" = set; then
5202 INSTALL
=$ac_cv_path_install
5204 # As a last resort, use the slow shell script. Don't cache a
5205 # value for INSTALL within a source directory, because that will
5206 # break other packages using the cache if that directory is
5207 # removed, or if the value is a relative name.
5208 INSTALL
=$ac_install_sh
5211 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5212 $as_echo "$INSTALL" >&6; }
5214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5215 # It thinks the first close brace ends the variable substitution.
5216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5220 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5222 if test "x$RANLIB" = x
; then
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5225 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_RANLIB+set}" = set; then
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$RANLIB"; then
5232 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir
=.
5239 for ac_exec_ext
in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 RANLIB
=$ac_cv_prog_RANLIB
5252 if test -n "$RANLIB"; then
5253 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5254 $as_echo "$RANLIB" >&6; }
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }
5262 if test -z "$ac_cv_prog_RANLIB"; then
5263 ac_ct_RANLIB
=$RANLIB
5264 # Extract the first word of "ranlib", so it can be a program name with args.
5265 set dummy ranlib
; ac_word
=$2
5266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5269 $as_echo_n "(cached) " >&6
5271 if test -n "$ac_ct_RANLIB"; then
5272 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir
=.
5279 for ac_exec_ext
in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5292 if test -n "$ac_ct_RANLIB"; then
5293 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5294 $as_echo "$ac_ct_RANLIB" >&6; }
5296 { $as_echo "$as_me:$LINENO: result: no" >&5
5297 $as_echo "no" >&6; }
5300 if test "x$ac_ct_RANLIB" = x
; then
5303 case $cross_compiling:$ac_tool_warned in
5305 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5306 whose name does not start with the host triplet. If you think this
5307 configuration is useful to you, please write to autoconf@gnu.org." >&5
5308 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5309 whose name does not start with the host triplet. If you think this
5310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5311 ac_tool_warned
=yes ;;
5313 RANLIB
=$ac_ct_RANLIB
5316 RANLIB
="$ac_cv_prog_RANLIB"
5320 # Extract the first word of "install-info", so it can be a program name with args.
5321 set dummy install-info
; ac_word
=$2
5322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5325 $as_echo_n "(cached) " >&6
5327 case $INSTALL_INFO in
5329 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5336 test -z "$as_dir" && as_dir
=.
5337 for ac_exec_ext
in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5351 if test -n "$INSTALL_INFO"; then
5352 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5353 $as_echo "$INSTALL_INFO" >&6; }
5355 { $as_echo "$as_me:$LINENO: result: no" >&5
5356 $as_echo "no" >&6; }
5360 # Extract the first word of "install-info", so it can be a program name with args.
5361 set dummy install-info
; ac_word
=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5367 case $INSTALL_INFO in
5369 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 for as_dir
in /usr
/sbin
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5391 if test -n "$INSTALL_INFO"; then
5392 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5393 $as_echo "$INSTALL_INFO" >&6; }
5395 { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5400 # Extract the first word of "install-info", so it can be a program name with args.
5401 set dummy install-info
; ac_word
=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5407 case $INSTALL_INFO in
5409 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir
=.
5417 for ac_exec_ext
in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5431 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5432 if test -n "$INSTALL_INFO"; then
5433 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5434 $as_echo "$INSTALL_INFO" >&6; }
5436 { $as_echo "$as_me:$LINENO: result: no" >&5
5437 $as_echo "no" >&6; }
5441 # Extract the first word of "gzip", so it can be a program name with args.
5442 set dummy
gzip; ac_word
=$2
5443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5450 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir
=.
5458 for ac_exec_ext
in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5472 if test -n "$GZIP_PROG"; then
5473 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5474 $as_echo "$GZIP_PROG" >&6; }
5476 { $as_echo "$as_me:$LINENO: result: no" >&5
5477 $as_echo "no" >&6; }
5483 ## Need makeinfo >= 4.6 (?) to build the manuals.
5484 # Extract the first word of "makeinfo", so it can be a program name with args.
5485 set dummy makeinfo
; ac_word
=$2
5486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5489 $as_echo_n "(cached) " >&6
5493 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir
=.
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5515 MAKEINFO
=$ac_cv_path_MAKEINFO
5516 if test -n "$MAKEINFO"; then
5517 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5518 $as_echo "$MAKEINFO" >&6; }
5520 { $as_echo "$as_me:$LINENO: result: no" >&5
5521 $as_echo "no" >&6; }
5525 if test "$MAKEINFO" != "no" && \
5526 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
5530 ## Makeinfo is unusual. For a released Emacs, the manuals are
5531 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5532 ## therefore in the category of "special tools" not normally required, which
5533 ## configure does not have to check for (eg autoconf itself).
5534 ## In a CVS checkout on the other hand, the manuals are not included.
5535 ## So makeinfo is a requirement to build from CVS, and configure
5536 ## should test for it as it does for any other build requirement.
5537 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5538 ## with pre-built manuals, from a CVS checkout.
5539 if test "$MAKEINFO" = "no"; then
5540 if test "x${with_makeinfo}" = "xno"; then
5542 elif ! test -e $srcdir/info
/emacs
; then
5543 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5544 source tree does not seem to have pre-built manuals in the \`info' directory.
5545 Either install a suitable version of makeinfo, or re-run configure
5546 with the \`--without-makeinfo' option to build without the manuals. " >&5
5547 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5548 source tree does not seem to have pre-built manuals in the \`info' directory.
5549 Either install a suitable version of makeinfo, or re-run configure
5550 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5551 { (exit 1); exit 1; }; }
5556 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5558 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5561 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5563 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5567 late_LDFLAGS
=$LDFLAGS
5568 if test "$GCC" = yes; then
5569 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5571 LDFLAGS
="$LDFLAGS -znocombreloc"
5574 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5575 $as_echo_n "checking for -znocombreloc... " >&6; }
5576 cat >conftest.
$ac_ext <<_ACEOF
5579 rm -f conftest.
$ac_objext conftest
$ac_exeext
5580 if { (ac_try
="$ac_link"
5582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5586 $as_echo "$ac_try_echo") >&5
5587 (eval "$ac_link") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest$ac_exeext && {
5597 test "$cross_compiling" = yes ||
5598 $as_test_x conftest$ac_exeext
5600 { $as_echo "$as_me:$LINENO: result: yes" >&5
5601 $as_echo "yes" >&6; }
5603 $as_echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 LDFLAGS=$late_LDFLAGS
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5611 rm -rf conftest.dSYM
5612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5613 conftest$ac_exeext conftest.$ac_ext
5615 #### Extract some information from the operating system and machine files.
5617 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5618 - which libraries the lib-src programs will want, and
5619 - whether the GNU malloc routines are usable..." >&5
5620 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5621 - which libraries the lib-src programs will want, and
5622 - whether the GNU malloc routines are usable..." >&6;}
5624 ### First figure out CFLAGS (which we use for running the compiler here)
5625 ### and REAL_CFLAGS (which we use for real compilation).
5626 ### The two are the same except on a few systems, where they are made
5627 ### different to work around various lossages. For example,
5628 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5629 ### as implying static linking.
5631 ### If the CFLAGS env var is specified, we use that value
5632 ### instead of the default.
5634 ### It's not important that this name contain the PID; you can't run
5635 ### two configures in the same directory and have anything work
5637 tempcname="conftest.c"
5640 #include "'${srcdir}'/src/'${opsysfile}'"
5641 #include "'${srcdir}'/src/'${machfile}'"
5642 #ifndef LIBS_MACHINE
5643 #define LIBS_MACHINE
5648 #ifndef C_SWITCH_SYSTEM
5649 #define C_SWITCH_SYSTEM
5651 #ifndef C_SWITCH_MACHINE
5652 #define C_SWITCH_MACHINE
5654 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5655 configure___ c_switch_system=C_SWITCH_SYSTEM
5656 configure___ c_switch_machine=C_SWITCH_MACHINE
5659 #define LIB_X11_LIB -lX11
5662 #ifndef LIBX11_SYSTEM
5663 #define LIBX11_SYSTEM
5665 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5668 configure___ unexec=UNEXEC
5670 configure___ unexec=unexec.o
5673 #ifdef SYSTEM_MALLOC
5674 configure___ system_malloc=yes
5676 configure___ system_malloc=no
5679 #ifdef USE_MMAP_FOR_BUFFERS
5680 configure___ use_mmap_for_buffers=yes
5682 configure___ use_mmap_for_buffers=no
5685 #ifndef C_DEBUG_SWITCH
5686 #define C_DEBUG_SWITCH -g
5689 #ifndef C_OPTIMIZE_SWITCH
5691 #define C_OPTIMIZE_SWITCH -O2
5693 #define C_OPTIMIZE_SWITCH -O
5697 #ifndef C_WARNINGS_SWITCH
5698 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5701 #ifndef LD_SWITCH_MACHINE
5702 #define LD_SWITCH_MACHINE
5705 #ifndef LD_SWITCH_SYSTEM
5706 #define LD_SWITCH_SYSTEM
5709 #ifndef LD_SWITCH_X_SITE_AUX
5710 #define LD_SWITCH_X_SITE_AUX
5713 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5714 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5716 #ifdef THIS_IS_CONFIGURE
5718 /* Get the CFLAGS for tests in configure. */
5720 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5722 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5725 #else /* not THIS_IS_CONFIGURE */
5727 /* Get the CFLAGS for real compilation. */
5729 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5731 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5734 #endif /* not THIS_IS_CONFIGURE */
5737 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5739 # The value of CPP is a quoted variable reference, so we need to do this
5740 # to get its actual value...
5741 CPP=`eval "echo $CPP"`
5742 eval `${CPP} -Isrc ${tempcname} \
5743 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5744 if test "x$SPECIFIED_CFLAGS" = x; then
5745 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5746 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5748 REAL_CFLAGS="$CFLAGS"
5752 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5754 ### Make sure subsequent tests use flags consistent with the build flags.
5756 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5757 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5759 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5764 # Check whether --enable-largefile was given.
5765 if test "${enable_largefile+set}" = set; then
5766 enableval=$enable_largefile;
5769 if test "$enable_largefile" != no; then
5771 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5772 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5773 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5776 ac_cv_sys_largefile_CC=no
5777 if test "$GCC" != yes; then
5780 # IRIX 6.2 and later do not support large files by default,
5781 # so use the C compiler's -n32 option if that helps.
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 /* Check that off_t can represent 2**63 - 1 correctly.
5790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5791 since some C++ compilers masquerading as C compilers
5792 incorrectly reject 9223372036854775807. */
5793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5795 && LARGE_OFF_T % 2147483647 == 1)
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5809 *) ac_try_echo
=$ac_try;;
5811 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.
$ac_objext; then
5825 $as_echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5831 rm -f core conftest.err conftest.
$ac_objext
5833 rm -f conftest.
$ac_objext
5834 if { (ac_try
="$ac_compile"
5836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840 $as_echo "$ac_try_echo") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 ac_cv_sys_largefile_CC=' -n32'; break
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5859 rm -f core conftest.err conftest.$ac_objext
5863 rm -f conftest.$ac_ext
5866 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5867 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5868 if test "$ac_cv_sys_largefile_CC" != no; then
5869 CC=$CC$ac_cv_sys_largefile_CC
5872 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5873 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5874 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5875 $as_echo_n "(cached) " >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5905 *) ac_try_echo
=$ac_try;;
5907 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.
$ac_objext; then
5919 ac_cv_sys_file_offset_bits
=no
; break
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5928 cat >conftest.
$ac_ext <<_ACEOF
5931 cat confdefs.h
>>conftest.
$ac_ext
5932 cat >>conftest.
$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #define _FILE_OFFSET_BITS 64
5935 #include <sys/types.h>
5936 /* Check that off_t can represent 2**63 - 1 correctly.
5937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5938 since some C++ compilers masquerading as C compilers
5939 incorrectly reject 9223372036854775807. */
5940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5942 && LARGE_OFF_T % 2147483647 == 1)
5952 rm -f conftest.
$ac_objext
5953 if { (ac_try
="$ac_compile"
5955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959 $as_echo "$ac_try_echo") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_objext; then
5970 ac_cv_sys_file_offset_bits=64; break
5972 $as_echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ac_cv_sys_file_offset_bits=unknown
5983 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5984 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5985 case $ac_cv_sys_file_offset_bits in #(
5988 cat >>confdefs.h <<_ACEOF
5989 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5994 if test $ac_cv_sys_file_offset_bits = unknown; then
5995 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5996 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5997 if test "${ac_cv_sys_large_files+set}" = set; then
5998 $as_echo_n "(cached) " >&6
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #include <sys/types.h>
6008 /* Check that off_t can represent 2**63 - 1 correctly.
6009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6010 since some C++ compilers masquerading as C compilers
6011 incorrectly reject 9223372036854775807. */
6012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6014 && LARGE_OFF_T % 2147483647 == 1)
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6028 *) ac_try_echo
=$ac_try;;
6030 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6031 $as_echo "$ac_try_echo") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6034 grep -v '^ *+' conftest.er1
>conftest.err
6036 cat conftest.err
>&5
6037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_c_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest.
$ac_objext; then
6042 ac_cv_sys_large_files
=no
; break
6044 $as_echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.
$ac_ext >&5
6050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6051 cat >conftest.
$ac_ext <<_ACEOF
6054 cat confdefs.h
>>conftest.
$ac_ext
6055 cat >>conftest.
$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #define _LARGE_FILES 1
6058 #include <sys/types.h>
6059 /* Check that off_t can represent 2**63 - 1 correctly.
6060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6061 since some C++ compilers masquerading as C compilers
6062 incorrectly reject 9223372036854775807. */
6063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6065 && LARGE_OFF_T % 2147483647 == 1)
6075 rm -f conftest.
$ac_objext
6076 if { (ac_try
="$ac_compile"
6078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6082 $as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_cv_sys_large_files=1; break
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_cv_sys_large_files=unknown
6106 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6107 $as_echo "$ac_cv_sys_large_files" >&6; }
6108 case $ac_cv_sys_large_files in #(
6111 cat >>confdefs.h <<_ACEOF
6112 #define _LARGE_FILES $ac_cv_sys_large_files
6122 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6123 ### be located in either /usr/lib64 or /usr/lib.
6124 ### In some rare cases, /usr/lib64 exists but does not contain the
6125 ### relevant files (bug#1287). Hence test for crtn.o.
6126 case "${canonical}" in
6127 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6128 if test -e /usr/lib64/crtn.o; then
6130 cat >>confdefs.h <<\_ACEOF
6131 #define HAVE_LIB64_DIR 1
6140 if test "${with_sound}" != "no"; then
6141 # Sound support for GNU/Linux and the free BSDs.
6145 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 $as_echo_n "checking for $ac_header... " >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 $as_echo_n "(cached) " >&6
6154 ac_res=`eval 'as_val=${'$as_ac_Header'}
6155 $as_echo "$as_val"'`
6156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6157 $as_echo "$ac_res" >&6; }
6159 # Is the header compilable?
6160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 $as_echo_n "checking $ac_header usability... " >&6; }
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6175 *) ac_try_echo
=$ac_try;;
6177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6178 $as_echo "$ac_try_echo") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6181 grep -v '^ *+' conftest.er1
>conftest.err
6183 cat conftest.err
>&5
6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.
$ac_objext; then
6189 ac_header_compiler
=yes
6191 $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.
$ac_ext >&5
6194 ac_header_compiler
=no
6197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6199 $as_echo "$ac_header_compiler" >&6; }
6201 # Is the header present?
6202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6203 $as_echo_n "checking $ac_header presence... " >&6; }
6204 cat >conftest.
$ac_ext <<_ACEOF
6207 cat confdefs.h
>>conftest.
$ac_ext
6208 cat >>conftest.
$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <$ac_header>
6212 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } >/dev/null && {
6226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6229 ac_header_preproc=yes
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_header_preproc=no
6237 rm -f conftest.err conftest.$ac_ext
6238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6239 $as_echo "$ac_header_preproc" >&6; }
6241 # So? What about this header?
6242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6248 ac_header_preproc=yes
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 $as_echo_n "checking for $ac_header... " >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 $as_echo_n "(cached) " >&6
6271 eval "$as_ac_Header=\$ac_header_preproc"
6273 ac_res=`eval 'as_val=${'$as_ac_Header'}
6274 $as_echo "$as_val"'`
6275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6276 $as_echo "$ac_res" >&6; }
6279 if test `eval 'as_val=${'$as_ac_Header'}
6280 $as_echo "$as_val"'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6289 # Emulation library used on NetBSD.
6290 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6291 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6292 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6295 ac_check_lib_save_LIBS=$LIBS
6296 LIBS="-lossaudio $LIBS"
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6314 return _oss_ioctl ();
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (ac_try="$ac_link"
6322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6323 *) ac_try_echo
=$ac_try;;
6325 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6326 $as_echo "$ac_try_echo") >&5
6327 (eval "$ac_link") 2>conftest.er1
6329 grep -v '^ *+' conftest.er1
>conftest.err
6331 cat conftest.err
>&5
6332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest
$ac_exeext && {
6337 test "$cross_compiling" = yes ||
6338 $as_test_x conftest
$ac_exeext
6340 ac_cv_lib_ossaudio__oss_ioctl
=yes
6342 $as_echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.
$ac_ext >&5
6345 ac_cv_lib_ossaudio__oss_ioctl
=no
6348 rm -rf conftest.dSYM
6349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6350 conftest
$ac_exeext conftest.
$ac_ext
6351 LIBS
=$ac_check_lib_save_LIBS
6353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6354 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6355 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6364 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6368 # Extract the first word of "pkg-config", so it can be a program name with args.
6369 set dummy pkg-config
; ac_word
=$2
6370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6373 $as_echo_n "(cached) " >&6
6377 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir
=.
6385 for ac_exec_ext
in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6399 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6400 if test -n "$PKG_CONFIG"; then
6401 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6402 $as_echo "$PKG_CONFIG" >&6; }
6404 { $as_echo "$as_me:$LINENO: result: no" >&5
6405 $as_echo "no" >&6; }
6410 if test "$PKG_CONFIG" = "no" ; then
6413 PKG_CONFIG_MIN_VERSION
=0.9.0
6414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6415 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6416 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6418 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6419 { $as_echo "$as_me:$LINENO: result: yes" >&5
6420 $as_echo "yes" >&6; }
6423 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6424 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6425 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6426 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6427 $as_echo "$ALSA_CFLAGS" >&6; }
6429 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6430 $as_echo_n "checking ALSA_LIBS... " >&6; }
6431 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6432 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6433 $as_echo "$ALSA_LIBS" >&6; }
6435 { $as_echo "$as_me:$LINENO: result: no" >&5
6436 $as_echo "no" >&6; }
6439 ## If we have a custom action on failure, don't print errors, but
6440 ## do set a variable so people can do so.
6441 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6448 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6449 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6453 if test $succeeded = yes; then
6459 if test $HAVE_ALSA = yes; then
6460 SAVE_CFLAGS
="$CFLAGS"
6461 SAVE_LDFLAGS
="$LDFLAGS"
6462 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6463 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <asoundlib.h>
6474 snd_lib_error_set_handler (0);
6479 rm -f conftest.
$ac_objext
6480 if { (ac_try
="$ac_compile"
6482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 emacs_alsa_normal=yes
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 emacs_alsa_normal=no
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 if test "$emacs_alsa_normal" != yes; then
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <alsa/asoundlib.h>
6517 snd_lib_error_set_handler (0);
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6526 *) ac_try_echo
=$ac_try;;
6528 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6529 $as_echo "$ac_try_echo") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6532 grep -v '^ *+' conftest.er1
>conftest.err
6534 cat conftest.err
>&5
6535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.
$ac_objext; then
6540 emacs_alsa_subdir
=yes
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6545 emacs_alsa_subdir
=no
6548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 if test "$emacs_alsa_subdir" != yes; then
6550 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6551 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6552 { (exit 1); exit 1; }; }
6554 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6557 CFLAGS
="$SAVE_CFLAGS"
6558 LDFLAGS
="$SAVE_LDFLAGS"
6559 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6560 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6562 cat >>confdefs.h
<<\_ACEOF
6595 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6596 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6597 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6598 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6602 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6604 $as_echo_n "checking for $ac_header... " >&6; }
6605 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6606 $as_echo_n "(cached) " >&6
6608 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6609 $as_echo "$as_val"'`
6610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6611 $as_echo "$ac_res" >&6; }
6613 # Is the header compilable?
6614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6615 $as_echo_n "checking $ac_header usability... " >&6; }
6616 cat >conftest.
$ac_ext <<_ACEOF
6619 cat confdefs.h
>>conftest.
$ac_ext
6620 cat >>conftest.
$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 $ac_includes_default
6623 #include <$ac_header>
6625 rm -f conftest.
$ac_objext
6626 if { (ac_try
="$ac_compile"
6628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_compile") 2>conftest.er1
6635 grep -v '^ *+' conftest.er1 >conftest.err
6637 cat conftest.err >&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest.$ac_objext; then
6643 ac_header_compiler=yes
6645 $as_echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 ac_header_compiler=no
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6653 $as_echo "$ac_header_compiler" >&6; }
6655 # Is the header present?
6656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6657 $as_echo_n "checking $ac_header presence... " >&6; }
6658 cat >conftest.$ac_ext <<_ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <$ac_header>
6666 if { (ac_try="$ac_cpp conftest.$ac_ext"
6668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6669 *) ac_try_echo
=$ac_try;;
6671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1
>conftest.err
6677 cat conftest.err
>&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } >/dev
/null
&& {
6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6683 ac_header_preproc
=yes
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6688 ac_header_preproc
=no
6691 rm -f conftest.err conftest.
$ac_ext
6692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6693 $as_echo "$ac_header_preproc" >&6; }
6695 # So? What about this header?
6696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6702 ac_header_preproc
=yes
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 $as_echo_n "checking for $ac_header... " >&6; }
6722 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6723 $as_echo_n "(cached) " >&6
6725 eval "$as_ac_Header=\$ac_header_preproc"
6727 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6728 $as_echo "$as_val"'`
6729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6730 $as_echo "$ac_res" >&6; }
6733 if test `eval 'as_val=${'$as_ac_Header'}
6734 $as_echo "$as_val"'` = yes; then
6735 cat >>confdefs.h
<<_ACEOF
6736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6744 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6745 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6746 cat >conftest.
$ac_ext <<_ACEOF
6749 cat confdefs.h
>>conftest.
$ac_ext
6750 cat >>conftest.
$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <sys/personality.h>
6756 personality (PER_LINUX32)
6761 rm -f conftest.
$ac_objext
6762 if { (ac_try
="$ac_compile"
6764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 emacs_cv_personality_linux32=yes
6781 $as_echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 emacs_cv_personality_linux32=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6789 $as_echo "$emacs_cv_personality_linux32" >&6; }
6791 if test $emacs_cv_personality_linux32 = yes; then
6793 cat >>confdefs.h <<\_ACEOF
6794 #define HAVE_PERSONALITY_LINUX32 1
6800 for ac_header in term.h
6802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6804 $as_echo_n "checking for $ac_header... " >&6; }
6805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6806 $as_echo_n "(cached) " >&6
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <$ac_header>
6816 if { (ac_try="$ac_cpp conftest.$ac_ext"
6818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6819 *) ac_try_echo
=$ac_try;;
6821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6822 $as_echo "$ac_try_echo") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 grep -v '^ *+' conftest.er1
>conftest.err
6827 cat conftest.err
>&5
6828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev
/null
&& {
6830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6833 eval "$as_ac_Header=yes"
6835 $as_echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.
$ac_ext >&5
6838 eval "$as_ac_Header=no"
6841 rm -f conftest.err conftest.
$ac_ext
6843 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6844 $as_echo "$as_val"'`
6845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6847 if test `eval 'as_val=${'$as_ac_Header'}
6848 $as_echo "$as_val"'` = yes; then
6849 cat >>confdefs.h
<<_ACEOF
6850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6857 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6858 $as_echo_n "checking for ANSI C header files... " >&6; }
6859 if test "${ac_cv_header_stdc+set}" = set; then
6860 $as_echo_n "(cached) " >&6
6862 cat >conftest.
$ac_ext <<_ACEOF
6865 cat confdefs.h
>>conftest.
$ac_ext
6866 cat >>conftest.
$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6881 rm -f conftest.
$ac_objext
6882 if { (ac_try
="$ac_compile"
6884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
6899 ac_cv_header_stdc=yes
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_cv_header_stdc=no
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 if test $ac_cv_header_stdc = yes; then
6910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6921 $EGREP "memchr" >/dev/null 2>&1; then
6924 ac_cv_header_stdc=no
6930 if test $ac_cv_header_stdc = yes; then
6931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "free" >/dev/null 2>&1; then
6945 ac_cv_header_stdc=no
6951 if test $ac_cv_header_stdc = yes; then
6952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6953 if test "$cross_compiling" = yes; then
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6964 #if ((' ' & 0x0FF) == 0x020)
6965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6968 # define ISLOWER(c) \
6969 (('a' <= (c) && (c) <= 'i') \
6970 || ('j' <= (c) && (c) <= 'r') \
6971 || ('s' <= (c) && (c) <= 'z'))
6972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6980 for (i = 0; i < 256; i++)
6981 if (XOR (islower (i), ISLOWER (i))
6982 || toupper (i) != TOUPPER (i))
6987 rm -f conftest$ac_exeext
6988 if { (ac_try="$ac_link"
6990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6991 *) ac_try_echo
=$ac_try;;
6993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_link") 2>&5
6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6999 { (case "(($ac_try" in
7000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005 (eval "$ac_try") 2>&5
7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7011 $as_echo "$as_me: program exited with status $ac_status" >&5
7012 $as_echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_header_stdc=no
7018 rm -rf conftest.dSYM
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 $as_echo "$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7035 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7036 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7037 if test "${ac_cv_header_time+set}" = set; then
7038 $as_echo_n "(cached) " >&6
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <sys/time.h>
7053 if ((struct tm *) 0)
7059 rm -f conftest.$ac_objext
7060 if { (ac_try="$ac_compile"
7062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7063 *) ac_try_echo
=$ac_try;;
7065 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7066 $as_echo "$ac_try_echo") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.
$ac_objext; then
7077 ac_cv_header_time
=yes
7079 $as_echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.
$ac_ext >&5
7082 ac_cv_header_time
=no
7085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7088 $as_echo "$ac_cv_header_time" >&6; }
7089 if test $ac_cv_header_time = yes; then
7091 cat >>confdefs.h
<<\_ACEOF
7092 #define TIME_WITH_SYS_TIME 1
7097 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7098 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7102 cat >conftest.
$ac_ext <<_ACEOF
7105 cat confdefs.h
>>conftest.
$ac_ext
7106 cat >>conftest.
$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 $ac_includes_default
7120 rm -f conftest.
$ac_objext
7121 if { (ac_try
="$ac_compile"
7123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7130 grep -v '^ *+' conftest.er1 >conftest.err
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_cv_have_decl_sys_siglist=yes
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_cv_have_decl_sys_siglist=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7149 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7150 if test $ac_cv_have_decl_sys_siglist = yes; then
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_DECL_SYS_SIGLIST 1
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_DECL_SYS_SIGLIST 0
7166 if test $ac_cv_have_decl_sys_siglist != yes; then
7167 # For Tru64, at least:
7168 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7169 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7170 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7171 $as_echo_n "(cached) " >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7183 #ifndef __sys_siglist
7184 (void) __sys_siglist;
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7195 *) ac_try_echo
=$ac_try;;
7197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7198 $as_echo "$ac_try_echo") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7201 grep -v '^ *+' conftest.er1
>conftest.err
7203 cat conftest.err
>&5
7204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.
$ac_objext; then
7209 ac_cv_have_decl___sys_siglist
=yes
7211 $as_echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.
$ac_ext >&5
7214 ac_cv_have_decl___sys_siglist
=no
7217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7219 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7220 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7221 if test $ac_cv_have_decl___sys_siglist = yes; then
7223 cat >>confdefs.h
<<_ACEOF
7224 #define HAVE_DECL___SYS_SIGLIST 1
7229 cat >>confdefs.h
<<_ACEOF
7230 #define HAVE_DECL___SYS_SIGLIST 0
7237 if test $ac_cv_have_decl___sys_siglist = yes; then
7239 cat >>confdefs.h
<<\_ACEOF
7240 #define sys_siglist __sys_siglist
7245 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7246 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7247 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7250 cat >conftest.
$ac_ext <<_ACEOF
7253 cat confdefs.h
>>conftest.
$ac_ext
7254 cat >>conftest.
$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 #include <sys/types.h>
7257 #include <sys/wait.h>
7259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7275 rm -f conftest.
$ac_objext
7276 if { (ac_try
="$ac_compile"
7278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7282 $as_echo "$ac_try_echo") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7293 ac_cv_header_sys_wait_h=yes
7295 $as_echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_cv_header_sys_wait_h=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7304 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7305 if test $ac_cv_header_sys_wait_h = yes; then
7307 cat >>confdefs.h <<\_ACEOF
7308 #define HAVE_SYS_WAIT_H 1
7314 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7315 $as_echo_n "checking for struct utimbuf... " >&6; }
7316 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #ifdef TIME_WITH_SYS_TIME
7326 #include <sys/time.h>
7329 #ifdef HAVE_SYS_TIME_H
7330 #include <sys/time.h>
7341 static struct utimbuf x; x.actime = x.modtime;
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7350 *) ac_try_echo
=$ac_try;;
7352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1
>conftest.err
7358 cat conftest.err
>&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.
$ac_objext; then
7364 emacs_cv_struct_utimbuf
=yes
7366 $as_echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.
$ac_ext >&5
7369 emacs_cv_struct_utimbuf
=no
7372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7374 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7375 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7376 if test $emacs_cv_struct_utimbuf = yes; then
7378 cat >>confdefs.h
<<\_ACEOF
7379 #define HAVE_STRUCT_UTIMBUF 1
7384 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7385 $as_echo_n "checking return type of signal handlers... " >&6; }
7386 if test "${ac_cv_type_signal+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7389 cat >conftest.
$ac_ext <<_ACEOF
7392 cat confdefs.h
>>conftest.
$ac_ext
7393 cat >>conftest.
$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <sys/types.h>
7401 return *(signal (0, 0)) (0) == 1;
7406 rm -f conftest.
$ac_objext
7407 if { (ac_try
="$ac_compile"
7409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413 $as_echo "$ac_try_echo") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7416 grep -v '^ *+' conftest.er1 >conftest.err
7418 cat conftest.err >&5
7419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_type_signal=int
7426 $as_echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_type_signal=void
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7435 $as_echo "$ac_cv_type_signal" >&6; }
7437 cat >>confdefs.h <<_ACEOF
7438 #define RETSIGTYPE $ac_cv_type_signal
7443 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7444 $as_echo_n "checking for speed_t... " >&6; }
7445 if test "${emacs_cv_speed_t+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <termios.h>
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7467 *) ac_try_echo
=$ac_try;;
7469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7470 $as_echo "$ac_try_echo") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7473 grep -v '^ *+' conftest.er1
>conftest.err
7475 cat conftest.err
>&5
7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.
$ac_objext; then
7481 emacs_cv_speed_t
=yes
7483 $as_echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.
$ac_ext >&5
7489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7491 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7492 $as_echo "$emacs_cv_speed_t" >&6; }
7493 if test $emacs_cv_speed_t = yes; then
7495 cat >>confdefs.h
<<\_ACEOF
7496 #define HAVE_SPEED_T 1
7501 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7502 $as_echo_n "checking for struct timeval... " >&6; }
7503 if test "${emacs_cv_struct_timeval+set}" = set; then
7504 $as_echo_n "(cached) " >&6
7506 cat >conftest.
$ac_ext <<_ACEOF
7509 cat confdefs.h
>>conftest.
$ac_ext
7510 cat >>conftest.
$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 #ifdef TIME_WITH_SYS_TIME
7513 #include <sys/time.h>
7516 #ifdef HAVE_SYS_TIME_H
7517 #include <sys/time.h>
7525 static struct timeval x; x.tv_sec = x.tv_usec;
7530 rm -f conftest.
$ac_objext
7531 if { (ac_try
="$ac_compile"
7533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7537 $as_echo "$ac_try_echo") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 emacs_cv_struct_timeval=yes
7550 $as_echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 emacs_cv_struct_timeval=no
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7559 $as_echo "$emacs_cv_struct_timeval" >&6; }
7560 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7561 if test $emacs_cv_struct_timeval = yes; then
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_TIMEVAL 1
7569 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7570 $as_echo_n "checking for struct exception... " >&6; }
7571 if test "${emacs_cv_struct_exception+set}" = set; then
7572 $as_echo_n "(cached) " >&6
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7584 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7593 *) ac_try_echo
=$ac_try;;
7595 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7596 $as_echo "$ac_try_echo") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7599 grep -v '^ *+' conftest.er1
>conftest.err
7601 cat conftest.err
>&5
7602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.
$ac_objext; then
7607 emacs_cv_struct_exception
=yes
7609 $as_echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.
$ac_ext >&5
7612 emacs_cv_struct_exception
=no
7615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7617 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7618 $as_echo "$emacs_cv_struct_exception" >&6; }
7619 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7620 if test $emacs_cv_struct_exception != yes; then
7622 cat >>confdefs.h
<<\_ACEOF
7623 #define NO_MATHERR 1
7629 for ac_header
in sys
/socket.h
7631 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 $as_echo_n "checking for $ac_header... " >&6; }
7635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 $as_echo_n "(cached) " >&6
7638 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7639 $as_echo "$as_val"'`
7640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7641 $as_echo "$ac_res" >&6; }
7643 # Is the header compilable?
7644 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7645 $as_echo_n "checking $ac_header usability... " >&6; }
7646 cat >conftest.
$ac_ext <<_ACEOF
7649 cat confdefs.h
>>conftest.
$ac_ext
7650 cat >>conftest.
$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 #include <$ac_header>
7655 rm -f conftest.
$ac_objext
7656 if { (ac_try
="$ac_compile"
7658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7662 $as_echo "$ac_try_echo") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7665 grep -v '^ *+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_header_compiler=yes
7675 $as_echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_header_compiler=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 $as_echo "$ac_header_compiler" >&6; }
7685 # Is the header present?
7686 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 $as_echo_n "checking $ac_header presence... " >&6; }
7688 cat >conftest.$ac_ext <<_ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <$ac_header>
7696 if { (ac_try="$ac_cpp conftest.$ac_ext"
7698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7699 *) ac_try_echo
=$ac_try;;
7701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7702 $as_echo "$ac_try_echo") >&5
7703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev
/null
&& {
7710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7713 ac_header_preproc
=yes
7715 $as_echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 ac_header_preproc
=no
7721 rm -f conftest.err conftest.
$ac_ext
7722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 $as_echo "$ac_header_preproc" >&6; }
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7732 ac_header_preproc
=yes
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7738 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7740 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7742 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7746 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 $as_echo_n "checking for $ac_header... " >&6; }
7752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7753 $as_echo_n "(cached) " >&6
7755 eval "$as_ac_Header=\$ac_header_preproc"
7757 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7758 $as_echo "$as_val"'`
7759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7760 $as_echo "$ac_res" >&6; }
7763 if test `eval 'as_val=${'$as_ac_Header'}
7764 $as_echo "$as_val"'` = yes; then
7765 cat >>confdefs.h
<<_ACEOF
7766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7774 for ac_header
in net
/if.h
7776 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 $as_echo_n "checking for $ac_header... " >&6; }
7779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780 $as_echo_n "(cached) " >&6
7782 cat >conftest.
$ac_ext <<_ACEOF
7785 cat confdefs.h
>>conftest.
$ac_ext
7786 cat >>conftest.
$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 #if HAVE_SYS_SOCKET_H
7790 #include <sys/socket.h>
7793 #include <$ac_header>
7795 rm -f conftest.
$ac_objext
7796 if { (ac_try
="$ac_compile"
7798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7802 $as_echo "$ac_try_echo") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7815 $as_echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 eval "$as_ac_Header=no"
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 ac_res=`eval 'as_val=${'$as_ac_Header'}
7824 $as_echo "$as_val"'`
7825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7826 $as_echo "$ac_res" >&6; }
7827 if test `eval 'as_val=${'$as_ac_Header'}
7828 $as_echo "$as_val"'` = yes; then
7829 cat >>confdefs.h <<_ACEOF
7830 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7838 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7839 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7840 if test "${ac_cv_struct_tm+set}" = set; then
7841 $as_echo_n "(cached) " >&6
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 #include <sys/types.h>
7856 int *p = &tm.tm_sec;
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7866 *) ac_try_echo
=$ac_try;;
7868 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7869 $as_echo "$ac_try_echo") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1
>conftest.err
7874 cat conftest.err
>&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.
$ac_objext; then
7880 ac_cv_struct_tm
=time.h
7882 $as_echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.
$ac_ext >&5
7885 ac_cv_struct_tm
=sys
/time.h
7888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7890 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7891 $as_echo "$ac_cv_struct_tm" >&6; }
7892 if test $ac_cv_struct_tm = sys
/time.h
; then
7894 cat >>confdefs.h
<<\_ACEOF
7895 #define TM_IN_SYS_TIME 1
7900 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7901 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7902 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7903 $as_echo_n "(cached) " >&6
7905 cat >conftest.
$ac_ext <<_ACEOF
7908 cat confdefs.h
>>conftest.
$ac_ext
7909 cat >>conftest.
$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <sys/types.h>
7912 #include <$ac_cv_struct_tm>
7918 static struct tm ac_aggr;
7919 if (ac_aggr.tm_zone)
7925 rm -f conftest.
$ac_objext
7926 if { (ac_try
="$ac_compile"
7928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7935 grep -v '^ *+' conftest.er1 >conftest.err
7937 cat conftest.err >&5
7938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7943 ac_cv_member_struct_tm_tm_zone=yes
7945 $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7955 #include <$ac_cv_struct_tm>
7961 static struct tm ac_aggr;
7962 if (sizeof ac_aggr.tm_zone)
7968 rm -f conftest.$ac_objext
7969 if { (ac_try="$ac_compile"
7971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7972 *) ac_try_echo
=$ac_try;;
7974 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7975 $as_echo "$ac_try_echo") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7978 grep -v '^ *+' conftest.er1
>conftest.err
7980 cat conftest.err
>&5
7981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.
$ac_objext; then
7986 ac_cv_member_struct_tm_tm_zone
=yes
7988 $as_echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.
$ac_ext >&5
7991 ac_cv_member_struct_tm_tm_zone
=no
7994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8000 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8001 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8003 cat >>confdefs.h
<<_ACEOF
8004 #define HAVE_STRUCT_TM_TM_ZONE 1
8010 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8012 cat >>confdefs.h
<<\_ACEOF
8013 #define HAVE_TM_ZONE 1
8017 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8018 $as_echo_n "checking whether tzname is declared... " >&6; }
8019 if test "${ac_cv_have_decl_tzname+set}" = set; then
8020 $as_echo_n "(cached) " >&6
8022 cat >conftest.
$ac_ext <<_ACEOF
8025 cat confdefs.h
>>conftest.
$ac_ext
8026 cat >>conftest.
$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8041 rm -f conftest.
$ac_objext
8042 if { (ac_try
="$ac_compile"
8044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8048 $as_echo "$ac_try_echo") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1 >conftest.err
8053 cat conftest.err >&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_have_decl_tzname=yes
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_have_decl_tzname=no
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8070 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8071 if test $ac_cv_have_decl_tzname = yes; then
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DECL_TZNAME 1
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_DECL_TZNAME 0
8087 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8088 $as_echo_n "checking for tzname... " >&6; }
8089 if test "${ac_cv_var_tzname+set}" = set; then
8090 $as_echo_n "(cached) " >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8099 #if !HAVE_DECL_TZNAME
8100 extern char *tzname[];
8106 return tzname[0][0];
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8115 *) ac_try_echo
=$ac_try;;
8117 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8118 $as_echo "$ac_try_echo") >&5
8119 (eval "$ac_link") 2>conftest.er1
8121 grep -v '^ *+' conftest.er1
>conftest.err
8123 cat conftest.err
>&5
8124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest
$ac_exeext && {
8129 test "$cross_compiling" = yes ||
8130 $as_test_x conftest
$ac_exeext
8132 ac_cv_var_tzname
=yes
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.
$ac_ext >&5
8140 rm -rf conftest.dSYM
8141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8142 conftest
$ac_exeext conftest.
$ac_ext
8144 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8145 $as_echo "$ac_cv_var_tzname" >&6; }
8146 if test $ac_cv_var_tzname = yes; then
8148 cat >>confdefs.h
<<\_ACEOF
8149 #define HAVE_TZNAME 1
8155 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8156 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8157 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8158 $as_echo_n "(cached) " >&6
8160 cat >conftest.
$ac_ext <<_ACEOF
8163 cat confdefs.h
>>conftest.
$ac_ext
8164 cat >>conftest.
$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8171 static struct tm ac_aggr;
8172 if (ac_aggr.tm_gmtoff)
8178 rm -f conftest.
$ac_objext
8179 if { (ac_try
="$ac_compile"
8181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_member_struct_tm_tm_gmtoff=yes
8198 $as_echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8212 static struct tm ac_aggr;
8213 if (sizeof ac_aggr.tm_gmtoff)
8219 rm -f conftest.$ac_objext
8220 if { (ac_try="$ac_compile"
8222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8223 *) ac_try_echo
=$ac_try;;
8225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8229 grep -v '^ *+' conftest.er1
>conftest.err
8231 cat conftest.err
>&5
8232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.
$ac_objext; then
8237 ac_cv_member_struct_tm_tm_gmtoff
=yes
8239 $as_echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.
$ac_ext >&5
8242 ac_cv_member_struct_tm_tm_gmtoff
=no
8245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8251 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8252 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8254 cat >>confdefs.h
<<\_ACEOF
8255 #define HAVE_TM_GMTOFF 1
8260 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8261 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8262 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #if HAVE_SYS_SOCKET_H
8273 #include <sys/socket.h>
8282 static struct ifreq ac_aggr;
8283 if (ac_aggr.ifr_flags)
8289 rm -f conftest.
$ac_objext
8290 if { (ac_try
="$ac_compile"
8292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_flags=yes
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8319 #if HAVE_SYS_SOCKET_H
8320 #include <sys/socket.h>
8329 static struct ifreq ac_aggr;
8330 if (sizeof ac_aggr.ifr_flags)
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8340 *) ac_try_echo
=$ac_try;;
8342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_compile") 2>conftest.er1
8346 grep -v '^ *+' conftest.er1
>conftest.err
8348 cat conftest.err
>&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest.
$ac_objext; then
8354 ac_cv_member_struct_ifreq_ifr_flags
=yes
8356 $as_echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.
$ac_ext >&5
8359 ac_cv_member_struct_ifreq_ifr_flags
=no
8362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8367 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8368 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8369 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8371 cat >>confdefs.h
<<_ACEOF
8372 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8377 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8378 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8379 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8382 cat >conftest.
$ac_ext <<_ACEOF
8385 cat confdefs.h
>>conftest.
$ac_ext
8386 cat >>conftest.
$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 #if HAVE_SYS_SOCKET_H
8390 #include <sys/socket.h>
8399 static struct ifreq ac_aggr;
8400 if (ac_aggr.ifr_hwaddr)
8406 rm -f conftest.
$ac_objext
8407 if { (ac_try
="$ac_compile"
8409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8446 static struct ifreq ac_aggr;
8447 if (sizeof ac_aggr.ifr_hwaddr)
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8457 *) ac_try_echo
=$ac_try;;
8459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8460 $as_echo "$ac_try_echo") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1
>conftest.err
8465 cat conftest.err
>&5
8466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.
$ac_objext; then
8471 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8473 $as_echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.
$ac_ext >&5
8476 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8484 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8485 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8486 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8488 cat >>confdefs.h
<<_ACEOF
8489 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8494 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8495 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8496 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8499 cat >conftest.
$ac_ext <<_ACEOF
8502 cat confdefs.h
>>conftest.
$ac_ext
8503 cat >>conftest.
$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 $ac_includes_default
8506 #if HAVE_SYS_SOCKET_H
8507 #include <sys/socket.h>
8516 static struct ifreq ac_aggr;
8517 if (ac_aggr.ifr_netmask)
8523 rm -f conftest.
$ac_objext
8524 if { (ac_try
="$ac_compile"
8526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_netmask=yes
8543 $as_echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 #if HAVE_SYS_SOCKET_H
8554 #include <sys/socket.h>
8563 static struct ifreq ac_aggr;
8564 if (sizeof ac_aggr.ifr_netmask)
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8574 *) ac_try_echo
=$ac_try;;
8576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8577 $as_echo "$ac_try_echo") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1
>conftest.err
8582 cat conftest.err
>&5
8583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.
$ac_objext; then
8588 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8590 $as_echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.
$ac_ext >&5
8593 ac_cv_member_struct_ifreq_ifr_netmask
=no
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8602 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8603 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8605 cat >>confdefs.h
<<_ACEOF
8606 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8611 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8612 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8613 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8614 $as_echo_n "(cached) " >&6
8616 cat >conftest.
$ac_ext <<_ACEOF
8619 cat confdefs.h
>>conftest.
$ac_ext
8620 cat >>conftest.
$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8623 #if HAVE_SYS_SOCKET_H
8624 #include <sys/socket.h>
8633 static struct ifreq ac_aggr;
8634 if (ac_aggr.ifr_broadaddr)
8640 rm -f conftest.
$ac_objext
8641 if { (ac_try
="$ac_compile"
8643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8647 $as_echo "$ac_try_echo") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8660 $as_echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8663 cat >conftest.$ac_ext <<_ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_broadaddr)
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8691 *) ac_try_echo
=$ac_try;;
8693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8694 $as_echo "$ac_try_echo") >&5
8695 (eval "$ac_compile") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1
>conftest.err
8699 cat conftest.err
>&5
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest.
$ac_objext; then
8705 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8707 $as_echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.
$ac_ext >&5
8710 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8719 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8720 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8722 cat >>confdefs.h
<<_ACEOF
8723 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8728 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8729 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8730 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8733 cat >conftest.
$ac_ext <<_ACEOF
8736 cat confdefs.h
>>conftest.
$ac_ext
8737 cat >>conftest.
$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 #if HAVE_SYS_SOCKET_H
8741 #include <sys/socket.h>
8750 static struct ifreq ac_aggr;
8751 if (ac_aggr.ifr_addr)
8757 rm -f conftest.
$ac_objext
8758 if { (ac_try
="$ac_compile"
8760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_compile") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest.$ac_objext; then
8775 ac_cv_member_struct_ifreq_ifr_addr=yes
8777 $as_echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 $ac_includes_default
8787 #if HAVE_SYS_SOCKET_H
8788 #include <sys/socket.h>
8797 static struct ifreq ac_aggr;
8798 if (sizeof ac_aggr.ifr_addr)
8804 rm -f conftest.$ac_objext
8805 if { (ac_try="$ac_compile"
8807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8808 *) ac_try_echo
=$ac_try;;
8810 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8811 $as_echo "$ac_try_echo") >&5
8812 (eval "$ac_compile") 2>conftest.er1
8814 grep -v '^ *+' conftest.er1
>conftest.err
8816 cat conftest.err
>&5
8817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } && {
8819 test -z "$ac_c_werror_flag" ||
8820 test ! -s conftest.err
8821 } && test -s conftest.
$ac_objext; then
8822 ac_cv_member_struct_ifreq_ifr_addr
=yes
8824 $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.
$ac_ext >&5
8827 ac_cv_member_struct_ifreq_ifr_addr
=no
8830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8835 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8836 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8837 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8839 cat >>confdefs.h
<<_ACEOF
8840 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8848 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8849 $as_echo_n "checking for function prototypes... " >&6; }
8850 if test "$ac_cv_prog_cc_c89" != no
; then
8851 { $as_echo "$as_me:$LINENO: result: yes" >&5
8852 $as_echo "yes" >&6; }
8854 cat >>confdefs.h
<<\_ACEOF
8855 #define PROTOTYPES 1
8859 cat >>confdefs.h
<<\_ACEOF
8860 #define __PROTOTYPES 1
8864 { $as_echo "$as_me:$LINENO: result: no" >&5
8865 $as_echo "no" >&6; }
8868 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8869 $as_echo_n "checking for working volatile... " >&6; }
8870 if test "${ac_cv_c_volatile+set}" = set; then
8871 $as_echo_n "(cached) " >&6
8873 cat >conftest.
$ac_ext <<_ACEOF
8876 cat confdefs.h
>>conftest.
$ac_ext
8877 cat >>conftest.
$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8885 int * volatile y = (int *) 0;
8891 rm -f conftest.
$ac_objext
8892 if { (ac_try
="$ac_compile"
8894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1 >conftest.err
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest.$ac_objext; then
8909 ac_cv_c_volatile=yes
8911 $as_echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8920 $as_echo "$ac_cv_c_volatile" >&6; }
8921 if test $ac_cv_c_volatile = no; then
8923 cat >>confdefs.h <<\_ACEOF
8924 #define volatile /**/
8929 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8930 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8931 if test "${ac_cv_c_const+set}" = set; then
8932 $as_echo_n "(cached) " >&6
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8944 /* FIXME: Include the comments suggested by Paul. */
8946 /* Ultrix mips cc rejects this. */
8947 typedef int charset[2];
8949 /* SunOS 4.1.1 cc rejects this. */
8950 char const *const *pcpcc;
8952 /* NEC SVR4.0.2 mips cc rejects this. */
8953 struct point {int x, y;};
8954 static struct point const zero = {0,0};
8955 /* AIX XL C 1.02.0.0 rejects this.
8956 It does not let you subtract one const X* pointer from another in
8957 an arm of an if-expression whose if-part is not a constant
8959 const char *g = "string";
8960 pcpcc = &g + (g ? g-g : 0);
8961 /* HPUX 7.0 cc rejects these. */
8963 ppc = (char**) pcpcc;
8964 pcpcc = (char const *const *) ppc;
8965 { /* SCO 3.2v4 cc rejects this. */
8967 char const *s = 0 ? (char *) 0 : (char const *) 0;
8972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8974 const int *foo = &x[0];
8977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8978 typedef const int *iptr;
8982 { /* AIX XL C 1.02.0.0 rejects this saying
8983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8984 struct s { int j; const int *ap[3]; };
8985 struct s *b; b->j = 5;
8987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8991 return !cs[0] && !zero.x;
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9002 *) ac_try_echo
=$ac_try;;
9004 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9008 grep -v '^ *+' conftest.er1
>conftest.err
9010 cat conftest.err
>&5
9011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.
$ac_objext; then
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9027 $as_echo "$ac_cv_c_const" >&6; }
9028 if test $ac_cv_c_const = no
; then
9030 cat >>confdefs.h
<<\_ACEOF
9036 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9037 $as_echo_n "checking for void * support... " >&6; }
9038 if test "${emacs_cv_void_star+set}" = set; then
9039 $as_echo_n "(cached) " >&6
9041 cat >conftest.
$ac_ext <<_ACEOF
9044 cat confdefs.h
>>conftest.
$ac_ext
9045 cat >>conftest.
$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9056 rm -f conftest.
$ac_objext
9057 if { (ac_try
="$ac_compile"
9059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9063 $as_echo "$ac_try_echo") >&5
9064 (eval "$ac_compile") 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest.$ac_objext; then
9074 emacs_cv_void_star=yes
9076 $as_echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 emacs_cv_void_star=no
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9085 $as_echo "$emacs_cv_void_star" >&6; }
9086 if test $emacs_cv_void_star = yes; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define POINTER_TYPE void
9092 cat >>confdefs.h <<\_ACEOF
9093 #define POINTER_TYPE char
9102 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9105 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9106 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9107 $as_echo_n "(cached) " >&6
9109 cat >conftest.make <<\_ACEOF
9112 @echo '@@@%%%=$(MAKE)=@@@%%%'
9114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9115 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9117 eval ac_cv_prog_make_${ac_make}_set=yes;;
9119 eval ac_cv_prog_make_${ac_make}_set=no;;
9123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9124 { $as_echo "$as_me:$LINENO: result: yes" >&5
9125 $as_echo "yes" >&6; }
9128 { $as_echo "$as_me:$LINENO: result: no" >&5
9129 $as_echo "no" >&6; }
9130 SET_MAKE="MAKE=${MAKE-make}"
9134 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9135 $as_echo_n "checking for long file names... " >&6; }
9136 if test "${ac_cv_sys_long_file_names+set}" = set; then
9137 $as_echo_n "(cached) " >&6
9139 ac_cv_sys_long_file_names=yes
9140 # Test for long file names in all the places we know might matter:
9141 # . the current directory, where building will happen
9142 # $prefix/lib where we will be installing things
9143 # $exec_prefix/lib likewise
9144 # $TMPDIR if set, where it might want to write temporary files
9145 # /tmp where it might want to write temporary files
9148 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9149 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9150 # in the usual case where exec_prefix is '${prefix}'.
9152 . | /* | ?:[\\/]*) ;; #(
9155 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9156 ac_xdir=$ac_dir/cf$$
9157 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9158 ac_tf1=$ac_xdir/conftest9012345
9159 ac_tf2=$ac_xdir/conftest9012346
9160 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9161 ac_cv_sys_long_file_names=no
9162 rm -f -r "$ac_xdir" 2>/dev/null
9163 test $ac_cv_sys_long_file_names = no && break
9166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9167 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9168 if test $ac_cv_sys_long_file_names = yes; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_LONG_FILE_NAMES 1
9177 #### Choose a window system.
9179 { $as_echo "$as_me:$LINENO: checking for X" >&5
9180 $as_echo_n "checking for X... " >&6; }
9183 # Check whether --with-x was given.
9184 if test "${with_x+set}" = set; then
9188 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9189 if test "x$with_x" = xno; then
9190 # The user explicitly disabled X.
9193 case $x_includes,$x_libraries in #(
9194 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9195 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9196 { (exit 1); exit 1; }; };; #(
9197 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9200 # One or both of the vars are not set, and there is no cached value.
9201 ac_x_includes=no ac_x_libraries=no
9202 rm -f -r conftest.dir
9203 if mkdir conftest.dir; then
9205 cat >Imakefile <<'_ACEOF'
9207 @echo incroot='${INCROOT}'
9209 @echo usrlibdir='${USRLIBDIR}'
9211 @echo libdir='${LIBDIR}'
9213 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 for ac_var in incroot usrlibdir libdir; do
9216 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9219 for ac_extension in a so sl dylib la dll; do
9220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9221 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9222 ac_im_usrlibdir=$ac_im_libdir; break
9225 # Screen out bogus values from the imake configuration. They are
9226 # bogus both because they are the default anyway, and because
9227 # using them would break gcc on systems where it needs fixed includes.
9228 case $ac_im_incroot in
9229 /usr/include) ac_x_includes= ;;
9230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9232 case $ac_im_usrlibdir in
9234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9238 rm -f -r conftest.dir
9241 # Standard set of common directories for X headers.
9242 # Check X11 before X11Rn because it is often a symlink to the current release.
9254 /usr/local/X11/include
9255 /usr/local/X11R6/include
9256 /usr/local/X11R5/include
9257 /usr/local/X11R4/include
9259 /usr/local/include/X11
9260 /usr/local/include/X11R6
9261 /usr/local/include/X11R5
9262 /usr/local/include/X11R4
9266 /usr/XFree86/include/X11
9270 /usr/unsupported/include
9272 /usr/local/x11r5/include
9273 /usr/lpp/Xamples/include
9275 /usr/openwin/include
9276 /usr/openwin/share/include'
9278 if test "$ac_x_includes" = no; then
9279 # Guess where to find include files, by looking for Xlib.h.
9280 # First, try using that file with no special directory specified.
9281 cat >conftest.$ac_ext <<_ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 #include <X11/Xlib.h>
9289 if { (ac_try="$ac_cpp conftest.$ac_ext"
9291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9292 *) ac_try_echo
=$ac_try;;
9294 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9295 $as_echo "$ac_try_echo") >&5
9296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9298 grep -v '^ *+' conftest.er1
>conftest.err
9300 cat conftest.err
>&5
9301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } >/dev
/null
&& {
9303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9304 test ! -s conftest.err
9306 # We can compile using X headers with no special include directory.
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.
$ac_ext >&5
9312 for ac_dir
in $ac_x_header_dirs; do
9313 if test -r "$ac_dir/X11/Xlib.h"; then
9314 ac_x_includes
=$ac_dir
9320 rm -f conftest.err conftest.
$ac_ext
9321 fi # $ac_x_includes = no
9323 if test "$ac_x_libraries" = no
; then
9324 # Check for the libraries.
9325 # See if we find them without any special options.
9326 # Don't add to $LIBS permanently.
9329 cat >conftest.
$ac_ext <<_ACEOF
9332 cat confdefs.h
>>conftest.
$ac_ext
9333 cat >>conftest.
$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <X11/Xlib.h>
9344 rm -f conftest.
$ac_objext conftest
$ac_exeext
9345 if { (ac_try
="$ac_link"
9347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9351 $as_echo "$ac_try_echo") >&5
9352 (eval "$ac_link") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest$ac_exeext && {
9362 test "$cross_compiling" = yes ||
9363 $as_test_x conftest$ac_exeext
9366 # We can link X programs with no special library path.
9369 $as_echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9375 # Don't even attempt the hair of trying to link an X program!
9376 for ac_extension in a so sl dylib la dll; do
9377 if test -r "$ac_dir/libX11.$ac_extension"; then
9378 ac_x_libraries=$ac_dir
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi # $ac_x_libraries = no
9390 case $ac_x_includes,$ac_x_libraries in #(
9392 # Didn't find X, or a directory has "'" in its name.
9393 ac_cv_have_x="have_x=no";; #(
9395 # Record where we found X for the cache.
9396 ac_cv_have_x="have_x=yes\
9397 ac_x_includes='$ac_x_includes'\
9398 ac_x_libraries='$ac_x_libraries'"
9404 eval "$ac_cv_have_x"
9407 if test "$have_x" != yes; then
9408 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9409 $as_echo "$have_x" >&6; }
9412 # If each of the values was on the command line, it overrides each guess.
9413 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9414 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9415 # Update the cache value to reflect the command line values.
9416 ac_cv_have_x="have_x=yes\
9417 ac_x_includes='$x_includes'\
9418 ac_x_libraries='$x_libraries'"
9419 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9420 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9423 if test "$no_x" = yes; then
9429 ## Workaround for bug in autoconf <= 2.62.
9430 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9431 ## No need to do anything special for these standard directories.
9432 ## This is an experiment, take it out if it causes problems.
9433 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9435 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9439 if test "${x_libraries}" != NONE; then
9440 if test -n "${x_libraries}"; then
9441 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9442 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9444 x_default_search_path=""
9445 x_search_path=${x_libraries}
9446 if test -z "${x_search_path}"; then
9447 x_search_path=/usr/lib
9449 for x_library in `echo ${x_search_path}: | \
9450 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9452 ${x_library}/X11/%L/%T/%N%C%S:\
9453 ${x_library}/X11/%l/%T/%N%C%S:\
9454 ${x_library}/X11/%T/%N%C%S:\
9455 ${x_library}/X11/%L/%T/%N%S:\
9456 ${x_library}/X11/%l/%T/%N%S:\
9457 ${x_library}/X11/%T/%N%S"
9458 if test x"${x_default_search_path}" = x; then
9459 x_default_search_path=${x_search_path}
9461 x_default_search_path="${x_search_path}:${x_default_search_path}"
9465 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9466 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9469 if test x"${x_includes}" = x; then
9470 bitmapdir=/usr/include/X11/bitmaps
9472 # accumulate include directories that have X11 bitmap subdirectories
9474 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9475 if test -d "${bmd}/X11/bitmaps"; then
9476 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9478 if test -d "${bmd}/bitmaps"; then
9479 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9482 if test ${bmd_acc} != "dummyval"; then
9483 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9490 tmp_CPPFLAGS="$CPPFLAGS"
9491 tmp_CFLAGS="$CFLAGS"
9492 CPPFLAGS="$CPPFLAGS -x objective-c"
9493 CFLAGS="$CFLAGS -x objective-c"
9494 if test "${with_ns}" != no; then
9495 if test "${opsys}" = darwin; then
9497 ns_appdir=`pwd`/nextstep/Emacs.app
9498 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9499 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9500 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9501 elif test -f $GNUSTEP_CONFIG_FILE; then
9503 ns_appdir=`pwd`/nextstep/Emacs.app
9504 ns_appbindir=`pwd`/nextstep/Emacs.app
9505 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9506 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9507 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9508 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9509 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9510 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9511 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9512 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9513 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9515 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9516 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9517 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9518 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9519 $as_echo_n "(cached) " >&6
9521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9522 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9524 # Is the header compilable?
9525 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9526 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 #include <AppKit/AppKit.h>
9536 rm -f conftest.$ac_objext
9537 if { (ac_try="$ac_compile"
9539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9540 *) ac_try_echo
=$ac_try;;
9542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544 (eval "$ac_compile") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1
>conftest.err
9548 cat conftest.err
>&5
9549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.
$ac_objext; then
9554 ac_header_compiler
=yes
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9559 ac_header_compiler
=no
9562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 $as_echo "$ac_header_compiler" >&6; }
9566 # Is the header present?
9567 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9568 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9569 cat >conftest.
$ac_ext <<_ACEOF
9572 cat confdefs.h
>>conftest.
$ac_ext
9573 cat >>conftest.
$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #include <AppKit/AppKit.h>
9577 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583 $as_echo "$ac_try_echo") >&5
9584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev/null && {
9591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9594 ac_header_preproc=yes
9596 $as_echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_header_preproc=no
9602 rm -f conftest.err conftest.$ac_ext
9603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 $as_echo "$ac_header_preproc" >&6; }
9606 # So? What about this header?
9607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9609 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9610 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9612 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9613 ac_header_preproc=yes
9616 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9617 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9618 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9619 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9620 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9621 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9622 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9623 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9624 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9625 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9626 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9627 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9631 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9632 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9633 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9634 $as_echo_n "(cached) " >&6
9636 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9639 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9642 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9645 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9646 files are missing or cannot be compiled." >&5
9647 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9648 files are missing or cannot be compiled.
" >&2;}
9649 { (exit 1); exit 1; }; }
9653 NS_HAVE_NSINTEGER=yes
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <Foundation/NSObjCRuntime.h>
9669 rm -f conftest.$ac_objext
9670 if { (ac_try="$ac_compile"
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9676 $as_echo "$ac_try_echo") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ns_have_nsinteger=yes
9689 $as_echo "$as_me: failed program was
:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ns_have_nsinteger=no
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 if test $ns_have_nsinteger = no; then
9697 NS_HAVE_NSINTEGER=no
9700 if test "${HAVE_NS}" = yes; then
9701 window_system=nextstep
9703 # set up packaging dirs
9704 exec_prefix=${ns_appbindir}
9705 libexecdir=${ns_appbindir}/libexec
9706 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9707 prefix=${ns_appresdir}
9710 CFLAGS="$tmp_CFLAGS"
9711 CPPFLAGS="$tmp_CPPFLAGS"
9713 case "${window_system}" in
9717 case "${with_x_toolkit}" in
9718 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9719 motif ) USE_X_TOOLKIT=MOTIF ;;
9721 USE_X_TOOLKIT=none ;;
9722 no ) USE_X_TOOLKIT=none ;;
9723 * ) USE_X_TOOLKIT=maybe ;;
9733 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9734 # Extract the first word of "X
", so it can be a program name with args.
9735 set dummy X; ac_word=$2
9736 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
9737 $as_echo_n "checking
for $ac_word...
" >&6; }
9738 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9739 $as_echo_n "(cached
) " >&6
9741 if test -n "$HAVE_XSERVER"; then
9742 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_prog_HAVE_XSERVER="true
"
9752 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9759 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9762 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9763 if test -n "$HAVE_XSERVER"; then
9764 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9765 $as_echo "$HAVE_XSERVER" >&6; }
9767 { $as_echo "$as_me:$LINENO: result
: no
" >&5
9768 $as_echo "no
" >&6; }
9772 if test "$HAVE_XSERVER" = true ||
9773 test -n "$DISPLAY" ||
9774 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9775 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9776 were found. You should
install the relevant development files
for X
9777 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9778 sure you have development files
for image handling
, i.e.
9779 tiff
, gif
, jpeg
, png and xpm.
9780 If you are sure you want Emacs compiled without X window support
, pass
9783 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
9784 were found. You should
install the relevant development files
for X
9785 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9786 sure you have development files
for image handling
, i.e.
9787 tiff
, gif
, jpeg
, png and xpm.
9788 If you are sure you want Emacs compiled without X window support
, pass
9790 to configure.
" >&2;}
9791 { (exit 1); exit 1; }; }
9795 ### If we're using X11, we should use the X menu package.
9798 yes ) HAVE_MENUS=yes ;;
9801 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9802 # Assume not, until told otherwise.
9805 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9806 $as_echo_n "checking
for malloc_get_state...
" >&6; }
9807 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9808 $as_echo_n "(cached
) " >&6
9810 cat >conftest.$ac_ext <<_ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818 #define malloc_get_state innocuous_malloc_get_state
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char malloc_get_state (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9826 # include <limits.h>
9828 # include <assert.h>
9831 #undef malloc_get_state
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9839 char malloc_get_state ();
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9850 return malloc_get_state ();
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863 (eval "$ac_link") 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9876 ac_cv_func_malloc_get_state=yes
9878 $as_echo "$as_me: failed program was
:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_func_malloc_get_state=no
9884 rm -rf conftest.dSYM
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9888 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9889 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9890 if test $ac_cv_func_malloc_get_state = yes; then
9896 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9897 $as_echo_n "checking
for malloc_set_state...
" >&6; }
9898 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9899 $as_echo_n "(cached
) " >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define malloc_set_state innocuous_malloc_set_state
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char malloc_set_state (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9917 # include <limits.h>
9919 # include <assert.h>
9922 #undef malloc_set_state
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9930 char malloc_set_state ();
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9941 return malloc_set_state ();
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_link") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest$ac_exeext && {
9964 test "$cross_compiling" = yes ||
9965 $as_test_x conftest$ac_exeext
9967 ac_cv_func_malloc_set_state=yes
9969 $as_echo "$as_me: failed program was
:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_cv_func_malloc_set_state=no
9975 rm -rf conftest.dSYM
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9979 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9980 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9981 if test $ac_cv_func_malloc_set_state = yes; then
9987 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9988 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
9989 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9990 $as_echo_n "(cached
) " >&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 extern void (* __after_morecore_hook)();
10002 __after_morecore_hook = 0
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10014 $as_echo "$ac_try_echo") >&5
10015 (eval "$ac_link") 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext && {
10025 test "$cross_compiling" = yes ||
10026 $as_test_x conftest$ac_exeext
10028 emacs_cv_var___after_morecore_hook=yes
10030 $as_echo "$as_me: failed program was
:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 emacs_cv_var___after_morecore_hook=no
10036 rm -rf conftest.dSYM
10037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038 conftest$ac_exeext conftest.$ac_ext
10040 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10041 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10042 if test $emacs_cv_var___after_morecore_hook = no; then
10045 if test "${system_malloc}" = "yes"; then
10047 GNU_MALLOC_reason="
10048 (The GNU allocators don
't work with this system configuration.)"
10050 if test "$doug_lea_malloc" = "yes" ; then
10051 if test "$GNU_MALLOC" = yes ; then
10052 GNU_MALLOC_reason="
10053 (Using Doug Lea's new malloc from the GNU C Library.
)"
10056 cat >>confdefs.h <<\_ACEOF
10057 #define DOUG_LEA_MALLOC 1
10062 if test x"${REL_ALLOC}" = x; then
10063 REL_ALLOC=${GNU_MALLOC}
10069 for ac_header in stdlib.h unistd.h
10071 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10073 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10074 $as_echo_n "checking
for $ac_header...
" >&6; }
10075 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10076 $as_echo_n "(cached
) " >&6
10078 ac_res=`eval 'as_val=${'$as_ac_Header'}
10079 $as_echo "$as_val"'`
10080 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10081 $as_echo "$ac_res" >&6; }
10083 # Is the header compilable?
10084 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10085 $as_echo_n "checking
$ac_header usability...
" >&6; }
10086 cat >conftest.$ac_ext <<_ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 $ac_includes_default
10093 #include <$ac_header>
10095 rm -f conftest.$ac_objext
10096 if { (ac_try="$ac_compile"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1 >conftest.err
10107 cat conftest.err >&5
10108 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
10113 ac_header_compiler=yes
10115 $as_echo "$as_me: failed program was
:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_header_compiler=no
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10123 $as_echo "$ac_header_compiler" >&6; }
10125 # Is the header present?
10126 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10127 $as_echo_n "checking
$ac_header presence...
" >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10136 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10149 (exit $ac_status); } >/dev/null && {
10150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10153 ac_header_preproc=yes
10155 $as_echo "$as_me: failed program was
:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ac_header_preproc=no
10161 rm -f conftest.err conftest.$ac_ext
10162 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10163 $as_echo "$ac_header_preproc" >&6; }
10165 # So? What about this header?
10166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10168 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10169 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10170 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10172 ac_header_preproc=yes
10175 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10176 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10177 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10178 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10179 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10180 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10181 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10182 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10183 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10185 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10186 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10190 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10191 $as_echo_n "checking
for $ac_header...
" >&6; }
10192 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10193 $as_echo_n "(cached
) " >&6
10195 eval "$as_ac_Header=\
$ac_header_preproc"
10197 ac_res=`eval 'as_val=${'$as_ac_Header'}
10198 $as_echo "$as_val"'`
10199 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10200 $as_echo "$ac_res" >&6; }
10203 if test `eval 'as_val=${'$as_ac_Header'}
10204 $as_echo "$as_val"'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10214 for ac_func in getpagesize
10216 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10217 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10218 $as_echo_n "checking
for $ac_func...
" >&6; }
10219 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10220 $as_echo_n "(cached
) " >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230 #define $ac_func innocuous_$ac_func
10232 /* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char $ac_func (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10238 # include <limits.h>
10240 # include <assert.h>
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10252 /* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255 #if defined __stub_$ac_func || defined __stub___$ac_func
10262 return $ac_func ();
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10273 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10274 $as_echo "$ac_try_echo") >&5
10275 (eval "$ac_link") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest$ac_exeext && {
10285 test "$cross_compiling" = yes ||
10286 $as_test_x conftest$ac_exeext
10288 eval "$as_ac_var=yes"
10290 $as_echo "$as_me: failed program was
:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 eval "$as_ac_var=no
"
10296 rm -rf conftest.dSYM
10297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10298 conftest$ac_exeext conftest.$ac_ext
10300 ac_res=`eval 'as_val=${'$as_ac_var'}
10301 $as_echo "$as_val"'`
10302 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10303 $as_echo "$ac_res" >&6; }
10304 if test `eval 'as_val=${'$as_ac_var'}
10305 $as_echo "$as_val"'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10313 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10314 $as_echo_n "checking
for working mmap...
" >&6; }
10315 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10316 $as_echo_n "(cached
) " >&6
10318 if test "$cross_compiling" = yes; then
10319 ac_cv_func_mmap_fixed_mapped=no
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 /* malloc might have been renamed as rpl_malloc. */
10331 /* Thanks to Mike Haertel and Jim Avera for this test.
10332 Here is a matrix of mmap possibilities:
10333 mmap private not fixed
10334 mmap private fixed at somewhere currently unmapped
10335 mmap private fixed at somewhere already mapped
10336 mmap shared not fixed
10337 mmap shared fixed at somewhere currently unmapped
10338 mmap shared fixed at somewhere already mapped
10339 For private mappings, we should verify that changes cannot be read()
10340 back from the file, nor mmap's back from the file at a different
10341 address. (There have been systems where private was not correctly
10342 implemented like the infamous i386 svr4.0, and systems where the
10343 VM page cache was not coherent with the file system buffer cache
10344 like early versions of FreeBSD and possibly contemporary NetBSD.)
10345 For shared mappings, we should conversely verify that changes get
10346 propagated back to all the places they're supposed to be.
10348 Grep wants private fixed already mapped.
10349 The main things grep needs to know about mmap are:
10350 * does it exist and is it safe to write into the mmap'd area
10351 * how to use it (BSD variants) */
10354 #include <sys/mman.h>
10356 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10360 /* This mess was copied from the GNU getpagesize.h. */
10361 #ifndef HAVE_GETPAGESIZE
10362 /* Assume that all systems that can run configure have sys/param.h. */
10363 # ifndef HAVE_SYS_PARAM_H
10364 # define HAVE_SYS_PARAM_H 1
10367 # ifdef _SC_PAGESIZE
10368 # define getpagesize() sysconf(_SC_PAGESIZE)
10369 # else /* no _SC_PAGESIZE */
10370 # ifdef HAVE_SYS_PARAM_H
10371 # include <sys/param.h>
10372 # ifdef EXEC_PAGESIZE
10373 # define getpagesize() EXEC_PAGESIZE
10374 # else /* no EXEC_PAGESIZE */
10376 # define getpagesize() NBPG * CLSIZE
10379 # endif /* no CLSIZE */
10380 # else /* no NBPG */
10382 # define getpagesize() NBPC
10383 # else /* no NBPC */
10385 # define getpagesize() PAGESIZE
10386 # endif /* PAGESIZE */
10387 # endif /* no NBPC */
10388 # endif /* no NBPG */
10389 # endif /* no EXEC_PAGESIZE */
10390 # else /* no HAVE_SYS_PARAM_H */
10391 # define getpagesize() 8192 /* punt totally */
10392 # endif /* no HAVE_SYS_PARAM_H */
10393 # endif /* no _SC_PAGESIZE */
10395 #endif /* no HAVE_GETPAGESIZE */
10400 char *data, *data2, *data3;
10404 pagesize = getpagesize ();
10406 /* First, make a file with some known garbage in it. */
10407 data = (char *) malloc (pagesize);
10410 for (i = 0; i < pagesize; ++i)
10411 *(data + i) = rand ();
10413 fd = creat ("conftest.mmap
", 0600);
10416 if (write (fd, data, pagesize) != pagesize)
10420 /* Next, try to mmap the file at a fixed address which already has
10421 something else allocated at it. If we can, also make sure that
10422 we see the same garbage. */
10423 fd = open ("conftest.mmap
", O_RDWR);
10426 data2 = (char *) malloc (2 * pagesize);
10429 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10430 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10431 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10433 for (i = 0; i < pagesize; ++i)
10434 if (*(data + i) != *(data2 + i))
10437 /* Finally, make sure that changes to the mapped area do not
10438 percolate back to the file as seen by read(). (This is a bug on
10439 some variants of i386 svr4.0.) */
10440 for (i = 0; i < pagesize; ++i)
10441 *(data2 + i) = *(data2 + i) + 1;
10442 data3 = (char *) malloc (pagesize);
10445 if (read (fd, data3, pagesize) != pagesize)
10447 for (i = 0; i < pagesize; ++i)
10448 if (*(data + i) != *(data3 + i))
10454 rm -f conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10461 $as_echo "$ac_try_echo") >&5
10462 (eval "$ac_link") 2>&5
10464 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472 (eval "$ac_try") 2>&5
10474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_func_mmap_fixed_mapped=yes
10478 $as_echo "$as_me: program exited with status
$ac_status" >&5
10479 $as_echo "$as_me: failed program was
:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ( exit $ac_status )
10483 ac_cv_func_mmap_fixed_mapped=no
10485 rm -rf conftest.dSYM
10486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10491 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10492 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10493 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_MMAP 1
10500 rm -f conftest.mmap
10502 if test $use_mmap_for_buffers = yes; then
10506 LIBS="$libsrc_libs $LIBS"
10509 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10510 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10511 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10512 $as_echo_n "(cached
) " >&6
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-ldnet $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10533 return dnet_ntoa ();
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10545 $as_echo "$ac_try_echo") >&5
10546 (eval "$ac_link") 2>conftest.er1
10548 grep -v '^ *+' conftest.er1 >conftest.err
10550 cat conftest.err >&5
10551 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest$ac_exeext && {
10556 test "$cross_compiling" = yes ||
10557 $as_test_x conftest$ac_exeext
10559 ac_cv_lib_dnet_dnet_ntoa=yes
10561 $as_echo "$as_me: failed program was
:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_lib_dnet_dnet_ntoa=no
10567 rm -rf conftest.dSYM
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10572 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10573 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_LIBDNET 1
10579 LIBS="-ldnet $LIBS"
10584 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10585 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10587 $as_echo_n "(cached
) " >&6
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lXbsd $LIBS"
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10614 $as_echo "$ac_try_echo") >&5
10615 (eval "$ac_link") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1 >conftest.err
10619 cat conftest.err >&5
10620 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext && {
10625 test "$cross_compiling" = yes ||
10626 $as_test_x conftest$ac_exeext
10628 ac_cv_lib_Xbsd_main=yes
10630 $as_echo "$as_me: failed program was
:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_lib_Xbsd_main=no
10636 rm -rf conftest.dSYM
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10641 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10642 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10643 if test $ac_cv_lib_Xbsd_main = yes; then
10644 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10649 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10650 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10651 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10652 $as_echo_n "(cached
) " >&6
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-lpthreads $LIBS"
10656 cat >conftest.$ac_ext <<_ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10673 return cma_open ();
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686 (eval "$ac_link") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext && {
10696 test "$cross_compiling" = yes ||
10697 $as_test_x conftest$ac_exeext
10699 ac_cv_lib_pthreads_cma_open=yes
10701 $as_echo "$as_me: failed program was
:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_cv_lib_pthreads_cma_open=no
10707 rm -rf conftest.dSYM
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10713 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10714 if test $ac_cv_lib_pthreads_cma_open = yes; then
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_LIBPTHREADS 1
10719 LIBS="-lpthreads $LIBS"
10727 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10728 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
10729 if test "${gdb_cv_bigtoc+set}" = set; then
10730 $as_echo_n "(cached
) " >&6
10734 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10735 *) gdb_cv_bigtoc=-bbigtoc ;;
10738 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10739 cat >conftest.$ac_ext <<_ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10777 $as_echo "$as_me: failed program was
:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10788 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10789 $as_echo "$gdb_cv_bigtoc" >&6; }
10793 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10794 # used for the tests that follow. We set them back to REAL_CFLAGS and
10795 # REAL_CPPFLAGS later on.
10797 REAL_CPPFLAGS="$CPPFLAGS"
10799 if test "${HAVE_X11}" = "yes"; then
10800 DEFS="$C_SWITCH_X_SITE $DEFS"
10801 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10803 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10804 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10806 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10807 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10808 # but it's more convenient here to set LD_RUN_PATH
10809 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10810 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10811 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10815 if test "${opsys}" = "gnu-linux
"; then
10816 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10817 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10828 XOpenDisplay ("foo
");
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10840 $as_echo "$ac_try_echo") >&5
10841 (eval "$ac_link") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest$ac_exeext && {
10851 test "$cross_compiling" = yes ||
10852 $as_test_x conftest$ac_exeext
10854 xlinux_first_failure=no
10856 $as_echo "$as_me: failed program was
:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 xlinux_first_failure=yes
10862 rm -rf conftest.dSYM
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
10865 if test "${xlinux_first_failure}" = "yes"; then
10866 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10867 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10868 OLD_CPPFLAGS="$CPPFLAGS"
10870 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10871 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10872 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10873 LIBS="$LIBS -b i486-linuxaout
"
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10884 XOpenDisplay ("foo
");
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10910 xlinux_second_failure=no
10912 $as_echo "$as_me: failed program was
:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 xlinux_second_failure=yes
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
10921 if test "${xlinux_second_failure}" = "yes"; then
10922 # If we get the same failure with -b, there is no use adding -b.
10923 # So take it out. This plays safe.
10924 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10925 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10926 CPPFLAGS="$OLD_CPPFLAGS"
10928 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10929 $as_echo "no
" >&6; }
10931 { $as_echo "$as_me:$LINENO: result
: yes" >&5
10932 $as_echo "yes" >&6; }
10935 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10936 $as_echo "no
" >&6; }
10940 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10941 # header files included from there.
10942 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
10943 $as_echo_n "checking
for Xkb...
" >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <X11/Xlib.h>
10951 #include <X11/XKBlib.h>
10955 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10966 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10967 $as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10983 $as_echo "$as_me: failed program was
:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10989 rm -rf conftest.dSYM
10990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10992 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10993 $as_echo "$emacs_xkb" >&6; }
10994 if test $emacs_xkb = yes; then
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_XKBGETKEYBOARD 1
11006 for ac_func in XrmSetDatabase XScreenResourceString \
11007 XScreenNumberOfScreen XSetWMProtocols
11009 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11010 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11011 $as_echo_n "checking
for $ac_func...
" >&6; }
11012 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11013 $as_echo_n "(cached
) " >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define $ac_func innocuous_$ac_func
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char $ac_func (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11031 # include <limits.h>
11033 # include <assert.h>
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub_$ac_func || defined __stub___$ac_func
11055 return $ac_func ();
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11081 eval "$as_ac_var=yes"
11083 $as_echo "$as_me: failed program was
:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 eval "$as_ac_var=no
"
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11093 ac_res=`eval 'as_val=${'$as_ac_var'}
11094 $as_echo "$as_val"'`
11095 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11096 $as_echo "$ac_res" >&6; }
11097 if test `eval 'as_val=${'$as_ac_var'}
11098 $as_echo "$as_val"'` = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11108 if test "${window_system}" = "x11
"; then
11109 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11110 $as_echo_n "checking X11 version
6...
" >&6; }
11111 if test "${emacs_cv_x11_version_6+set}" = set; then
11112 $as_echo_n "(cached
) " >&6
11114 cat >conftest.$ac_ext <<_ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 #include <X11/Xlib.h>
11124 #if XlibSpecificationRelease < 6
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11139 $as_echo "$ac_try_echo") >&5
11140 (eval "$ac_link") 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext && {
11150 test "$cross_compiling" = yes ||
11151 $as_test_x conftest$ac_exeext
11153 emacs_cv_x11_version_6=yes
11155 $as_echo "$as_me: failed program was
:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 emacs_cv_x11_version_6=no
11161 rm -rf conftest.dSYM
11162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163 conftest$ac_exeext conftest.$ac_ext
11166 if test $emacs_cv_x11_version_6 = yes; then
11167 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11168 $as_echo "6 or newer
" >&6; }
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_X11R6 1
11175 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11176 $as_echo "before
6" >&6; }
11181 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11183 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11184 if test "${with_rsvg}" != "no
"; then
11185 RSVG_REQUIRED=2.11.0
11186 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11191 # Extract the first word of "pkg-config
", so it can be a program name with args.
11192 set dummy pkg-config; ac_word=$2
11193 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11194 $as_echo_n "checking
for $ac_word...
" >&6; }
11195 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11196 $as_echo_n "(cached
) " >&6
11198 case $PKG_CONFIG in
11200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11211 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11223 if test -n "$PKG_CONFIG"; then
11224 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11225 $as_echo "$PKG_CONFIG" >&6; }
11227 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11228 $as_echo "no
" >&6; }
11233 if test "$PKG_CONFIG" = "no
" ; then
11236 PKG_CONFIG_MIN_VERSION=0.9.0
11237 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11238 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11239 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11241 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11242 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11243 $as_echo "yes" >&6; }
11246 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11247 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11248 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11249 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11250 $as_echo "$RSVG_CFLAGS" >&6; }
11252 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11253 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11254 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11255 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11256 $as_echo "$RSVG_LIBS" >&6; }
11258 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11259 $as_echo "no
" >&6; }
11262 ## If we have a custom action on failure, don't print errors, but
11263 ## do set a variable so people can do so.
11264 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11271 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11272 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11276 if test $succeeded = yes; then
11285 if test ".
${RSVG_CFLAGS}" != ".
"; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_RSVG 1
11292 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11293 LIBS="$RSVG_LIBS $LIBS"
11300 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11303 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11308 # Extract the first word of "pkg-config
", so it can be a program name with args.
11309 set dummy pkg-config; ac_word=$2
11310 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11311 $as_echo_n "checking
for $ac_word...
" >&6; }
11312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11313 $as_echo_n "(cached
) " >&6
11315 case $PKG_CONFIG in
11317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11340 if test -n "$PKG_CONFIG"; then
11341 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11342 $as_echo "$PKG_CONFIG" >&6; }
11344 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11345 $as_echo "no
" >&6; }
11350 if test "$PKG_CONFIG" = "no
" ; then
11353 PKG_CONFIG_MIN_VERSION=0.9.0
11354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11355 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11356 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11358 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11359 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11360 $as_echo "yes" >&6; }
11363 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11364 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11365 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11366 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11367 $as_echo "$GTK_CFLAGS" >&6; }
11369 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11370 $as_echo_n "checking GTK_LIBS...
" >&6; }
11371 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11372 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11373 $as_echo "$GTK_LIBS" >&6; }
11375 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11376 $as_echo "no
" >&6; }
11379 ## If we have a custom action on failure, don't print errors, but
11380 ## do set a variable so people can do so.
11381 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11388 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11389 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11393 if test $succeeded = yes; then
11399 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11400 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11401 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11402 { (exit 1); exit 1; }; }
11407 if test x"$pkg_check_gtk" = xyes; then
11411 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11412 CFLAGS="$CFLAGS $GTK_CFLAGS"
11413 LIBS="$GTK_LIBS $LIBS"
11416 for ac_func in gtk_main
11418 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11419 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11420 $as_echo_n "checking
for $ac_func...
" >&6; }
11421 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11422 $as_echo_n "(cached
) " >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define $ac_func innocuous_$ac_func
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11440 # include <limits.h>
11442 # include <assert.h>
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11454 /* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457 #if defined __stub_$ac_func || defined __stub___$ac_func
11464 return $ac_func ();
11469 rm -f conftest.$ac_objext conftest$ac_exeext
11470 if { (ac_try="$ac_link"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11476 $as_echo "$ac_try_echo") >&5
11477 (eval "$ac_link") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest$ac_exeext && {
11487 test "$cross_compiling" = yes ||
11488 $as_test_x conftest$ac_exeext
11490 eval "$as_ac_var=yes"
11492 $as_echo "$as_me: failed program was
:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 eval "$as_ac_var=no
"
11498 rm -rf conftest.dSYM
11499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11500 conftest$ac_exeext conftest.$ac_ext
11502 ac_res=`eval 'as_val=${'$as_ac_var'}
11503 $as_echo "$as_val"'`
11504 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11505 $as_echo "$ac_res" >&6; }
11506 if test `eval 'as_val=${'$as_ac_var'}
11507 $as_echo "$as_val"'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11515 if test "${GTK_COMPILES}" != "yes"; then
11516 if test "$USE_X_TOOLKIT" != "maybe
"; then
11517 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11518 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11519 { (exit 1); exit 1; }; };
11524 cat >>confdefs.h <<\_ACEOF
11529 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11532 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11533 closing open displays. This is no problem
if you just use
11534 one display
, but
if you use
more than one and close one of them
11535 Emacs may crash.
" >&5
11536 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11537 closing open displays. This is no problem
if you just use
11538 one display
, but
if you use
more than one and close one of them
11539 Emacs may crash.
" >&2;}
11547 if test "${HAVE_GTK}" = "yes"; then
11549 if test "$with_toolkit_scroll_bars" != no; then
11550 with_toolkit_scroll_bars=yes
11553 HAVE_GTK_MULTIDISPLAY=no
11555 for ac_func in gdk_display_open
11557 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11558 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11559 $as_echo_n "checking
for $ac_func...
" >&6; }
11560 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11561 $as_echo_n "(cached
) " >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11571 #define $ac_func innocuous_$ac_func
11573 /* System header to define __stub macros and hopefully few prototypes,
11574 which can conflict with char $ac_func (); below.
11575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576 <limits.h> exists even on freestanding compilers. */
11579 # include <limits.h>
11581 # include <assert.h>
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11593 /* The GNU C library defines this for functions which it implements
11594 to always fail with ENOSYS. Some functions are actually named
11595 something starting with __ and the normal name is an alias. */
11596 #if defined __stub_$ac_func || defined __stub___$ac_func
11603 return $ac_func ();
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11615 $as_echo "$ac_try_echo") >&5
11616 (eval "$ac_link") 2>conftest.er1
11618 grep -v '^ *+' conftest.er1 >conftest.err
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest$ac_exeext && {
11626 test "$cross_compiling" = yes ||
11627 $as_test_x conftest$ac_exeext
11629 eval "$as_ac_var=yes"
11631 $as_echo "$as_me: failed program was
:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 eval "$as_ac_var=no
"
11637 rm -rf conftest.dSYM
11638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11639 conftest$ac_exeext conftest.$ac_ext
11641 ac_res=`eval 'as_val=${'$as_ac_var'}
11642 $as_echo "$as_val"'`
11643 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11644 $as_echo "$ac_res" >&6; }
11645 if test `eval 'as_val=${'$as_ac_var'}
11646 $as_echo "$as_val"'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11650 HAVE_GTK_MULTIDISPLAY=yes
11654 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_GTK_MULTIDISPLAY 1
11662 HAVE_GTK_FILE_SELECTION=no
11663 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11664 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11665 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11666 $as_echo_n "(cached
) " >&6
11668 cat >conftest.$ac_ext <<_ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11675 #include <gtk/gtk.h>
11680 #ifndef GTK_TYPE_FILE_SELECTION
11681 (void) GTK_TYPE_FILE_SELECTION;
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11695 $as_echo "$ac_try_echo") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest.$ac_objext; then
11706 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11708 $as_echo "$as_me: failed program was
:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11717 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11718 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11719 HAVE_GTK_FILE_SELECTION=yes
11721 HAVE_GTK_FILE_SELECTION=no
11724 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11726 for ac_func in gtk_file_selection_new
11728 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11729 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11730 $as_echo_n "checking
for $ac_func...
" >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11732 $as_echo_n "(cached
) " >&6
11734 cat >conftest.$ac_ext <<_ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11750 # include <limits.h>
11752 # include <assert.h>
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11774 return $ac_func ();
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_link") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext && {
11797 test "$cross_compiling" = yes ||
11798 $as_test_x conftest$ac_exeext
11800 eval "$as_ac_var=yes"
11802 $as_echo "$as_me: failed program was
:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 eval "$as_ac_var=no
"
11808 rm -rf conftest.dSYM
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810 conftest$ac_exeext conftest.$ac_ext
11812 ac_res=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11815 $as_echo "$ac_res" >&6; }
11816 if test `eval 'as_val=${'$as_ac_var'}
11817 $as_echo "$as_val"'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11821 HAVE_GTK_FILE_SELECTION=yes
11823 HAVE_GTK_FILE_SELECTION=no
11829 HAVE_GTK_FILE_CHOOSER=no
11830 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
11831 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
11832 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11833 $as_echo_n "(cached
) " >&6
11835 cat >conftest.$ac_ext <<_ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 $ac_includes_default
11842 #include <gtk/gtk.h>
11847 #ifndef GTK_TYPE_FILE_CHOOSER
11848 (void) GTK_TYPE_FILE_CHOOSER;
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11865 grep -v '^ *+' conftest.er1 >conftest.err
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11875 $as_echo "$as_me: failed program was
:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11884 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11885 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11886 HAVE_GTK_FILE_CHOOSER=yes
11888 HAVE_GTK_FILE_CHOOSER=no
11891 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11893 for ac_func in gtk_file_chooser_dialog_new
11895 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11897 $as_echo_n "checking
for $ac_func...
" >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11899 $as_echo_n "(cached
) " >&6
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11917 # include <limits.h>
11919 # include <assert.h>
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11941 return $ac_func ();
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11967 eval "$as_ac_var=yes"
11969 $as_echo "$as_me: failed program was
:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 eval "$as_ac_var=no
"
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 if test `eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'` = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11988 HAVE_GTK_FILE_CHOOSER=yes
11990 HAVE_GTK_FILE_CHOOSER=no
11996 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11997 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_GTK_FILE_BOTH 1
12005 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12006 HAVE_GTK_AND_PTHREAD=no
12008 for ac_header in pthread.h
12010 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12012 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12013 $as_echo_n "checking
for $ac_header...
" >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12015 $as_echo_n "(cached
) " >&6
12017 ac_res=`eval 'as_val=${'$as_ac_Header'}
12018 $as_echo "$as_val"'`
12019 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12020 $as_echo "$ac_res" >&6; }
12022 # Is the header compilable?
12023 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12024 $as_echo_n "checking
$ac_header usability...
" >&6; }
12025 cat >conftest.$ac_ext <<_ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 $ac_includes_default
12032 #include <$ac_header>
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12041 $as_echo "$ac_try_echo") >&5
12042 (eval "$ac_compile") 2>conftest.er1
12044 grep -v '^ *+' conftest.er1 >conftest.err
12046 cat conftest.err >&5
12047 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12048 (exit $ac_status); } && {
12049 test -z "$ac_c_werror_flag" ||
12050 test ! -s conftest.err
12051 } && test -s conftest.$ac_objext; then
12052 ac_header_compiler=yes
12054 $as_echo "$as_me: failed program was
:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ac_header_compiler=no
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12062 $as_echo "$ac_header_compiler" >&6; }
12064 # Is the header present?
12065 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12066 $as_echo_n "checking
$ac_header presence...
" >&6; }
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <$ac_header>
12075 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1 >conftest.err
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12088 (exit $ac_status); } >/dev/null && {
12089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12092 ac_header_preproc=yes
12094 $as_echo "$as_me: failed program was
:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_header_preproc=no
12100 rm -f conftest.err conftest.$ac_ext
12101 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12102 $as_echo "$ac_header_preproc" >&6; }
12104 # So? What about this header?
12105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12108 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12111 ac_header_preproc=yes
12114 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12115 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12117 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12118 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12119 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12120 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12121 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12122 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12124 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12125 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12129 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12130 $as_echo_n "checking
for $ac_header...
" >&6; }
12131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12132 $as_echo_n "(cached
) " >&6
12134 eval "$as_ac_Header=\
$ac_header_preproc"
12136 ac_res=`eval 'as_val=${'$as_ac_Header'}
12137 $as_echo "$as_val"'`
12138 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12139 $as_echo "$ac_res" >&6; }
12142 if test `eval 'as_val=${'$as_ac_Header'}
12143 $as_echo "$as_val"'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12152 if test "$ac_cv_header_pthread_h"; then
12153 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12154 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12155 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12156 $as_echo_n "(cached
) " >&6
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lpthread $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12173 char pthread_self ();
12177 return pthread_self ();
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_link") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1 >conftest.err
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest$ac_exeext && {
12200 test "$cross_compiling" = yes ||
12201 $as_test_x conftest$ac_exeext
12203 ac_cv_lib_pthread_pthread_self=yes
12205 $as_echo "$as_me: failed program was
:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_lib_pthread_pthread_self=no
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12217 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12218 if test $ac_cv_lib_pthread_pthread_self = yes; then
12219 HAVE_GTK_AND_PTHREAD=yes
12223 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12224 case "${canonical}" in
12226 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12229 cat >>confdefs.h <<\_ACEOF
12230 #define HAVE_GTK_AND_PTHREAD 1
12238 if test "${with_dbus}" = "yes"; then
12242 # Extract the first word of "pkg-config
", so it can be a program name with args.
12243 set dummy pkg-config; ac_word=$2
12244 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12245 $as_echo_n "checking
for $ac_word...
" >&6; }
12246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12247 $as_echo_n "(cached
) " >&6
12249 case $PKG_CONFIG in
12251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12262 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12274 if test -n "$PKG_CONFIG"; then
12275 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12276 $as_echo "$PKG_CONFIG" >&6; }
12278 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12279 $as_echo "no
" >&6; }
12284 if test "$PKG_CONFIG" = "no
" ; then
12287 PKG_CONFIG_MIN_VERSION=0.9.0
12288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12289 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12290 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12292 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12293 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12294 $as_echo "yes" >&6; }
12297 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12298 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12299 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12300 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12301 $as_echo "$DBUS_CFLAGS" >&6; }
12303 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12304 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12305 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12306 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12307 $as_echo "$DBUS_LIBS" >&6; }
12309 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12310 $as_echo "no
" >&6; }
12313 ## If we have a custom action on failure, don't print errors, but
12314 ## do set a variable so people can do so.
12315 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12322 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12323 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12327 if test $succeeded = yes; then
12333 if test "$HAVE_DBUS" = yes; then
12334 LIBS="$LIBS $DBUS_LIBS"
12336 cat >>confdefs.h <<\_ACEOF
12337 #define HAVE_DBUS 1
12341 for ac_func in dbus_watch_get_unix_fd
12343 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12344 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12345 $as_echo_n "checking
for $ac_func...
" >&6; }
12346 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12347 $as_echo_n "(cached
) " >&6
12349 cat >conftest.$ac_ext <<_ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12357 #define $ac_func innocuous_$ac_func
12359 /* System header to define __stub macros and hopefully few prototypes,
12360 which can conflict with char $ac_func (); below.
12361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12362 <limits.h> exists even on freestanding compilers. */
12365 # include <limits.h>
12367 # include <assert.h>
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12379 /* The GNU C library defines this for functions which it implements
12380 to always fail with ENOSYS. Some functions are actually named
12381 something starting with __ and the normal name is an alias. */
12382 #if defined __stub_$ac_func || defined __stub___$ac_func
12389 return $ac_func ();
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (ac_try="$ac_link"
12396 case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12400 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12401 $as_echo "$ac_try_echo") >&5
12402 (eval "$ac_link") 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12408 (exit $ac_status); } && {
12409 test -z "$ac_c_werror_flag" ||
12410 test ! -s conftest.err
12411 } && test -s conftest$ac_exeext && {
12412 test "$cross_compiling" = yes ||
12413 $as_test_x conftest$ac_exeext
12415 eval "$as_ac_var=yes"
12417 $as_echo "$as_me: failed program was
:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 eval "$as_ac_var=no
"
12423 rm -rf conftest.dSYM
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425 conftest$ac_exeext conftest.$ac_ext
12427 ac_res=`eval 'as_val=${'$as_ac_var'}
12428 $as_echo "$as_val"'`
12429 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12430 $as_echo "$ac_res" >&6; }
12431 if test `eval 'as_val=${'$as_ac_var'}
12432 $as_echo "$as_val"'` = yes; then
12433 cat >>confdefs.h <<_ACEOF
12434 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12444 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12445 if test "$with_xaw3d" != no; then
12446 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12447 $as_echo_n "checking
for xaw3d...
" >&6; }
12448 if test "${emacs_cv_xaw3d+set}" = set; then
12449 $as_echo_n "(cached
) " >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 #include <X11/Intrinsic.h>
12459 #include <X11/Xaw3d/Simple.h>
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (ac_try="$ac_link"
12470 case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12474 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12475 $as_echo "$ac_try_echo") >&5
12476 (eval "$ac_link") 2>conftest.er1
12478 grep -v '^ *+' conftest.er1 >conftest.err
12480 cat conftest.err >&5
12481 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest$ac_exeext && {
12486 test "$cross_compiling" = yes ||
12487 $as_test_x conftest$ac_exeext
12491 $as_echo "$as_me: failed program was
:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12497 rm -rf conftest.dSYM
12498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12499 conftest$ac_exeext conftest.$ac_ext
12505 if test $emacs_cv_xaw3d = yes; then
12506 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12507 $as_echo "yes; using Lucid toolkit
" >&6; }
12508 USE_X_TOOLKIT=LUCID
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_XAW3D 1
12516 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12517 $as_echo "no
" >&6; }
12518 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
12519 $as_echo_n "checking
for libXaw...
" >&6; }
12520 if test "${emacs_cv_xaw+set}" = set; then
12521 $as_echo_n "(cached
) " >&6
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12530 #include <X11/Intrinsic.h>
12531 #include <X11/Xaw/Simple.h>
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_link") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1 >conftest.err
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest$ac_exeext && {
12558 test "$cross_compiling" = yes ||
12559 $as_test_x conftest$ac_exeext
12563 $as_echo "$as_me: failed program was
:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12569 rm -rf conftest.dSYM
12570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12571 conftest$ac_exeext conftest.$ac_ext
12574 if test $emacs_cv_xaw = yes; then
12575 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12576 $as_echo "yes; using Lucid toolkit
" >&6; }
12577 USE_X_TOOLKIT=LUCID
12578 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12579 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12580 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12581 { (exit 1); exit 1; }; }
12583 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12584 $as_echo "no
; do not use toolkit by default
" >&6; }
12590 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12592 if test "${USE_X_TOOLKIT}" != "none
"; then
12593 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12594 $as_echo_n "checking X11 toolkit version...
" >&6; }
12595 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12596 $as_echo_n "(cached
) " >&6
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <X11/Intrinsic.h>
12608 #if XtSpecificationRelease < 6
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12623 $as_echo "$ac_try_echo") >&5
12624 (eval "$ac_link") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest$ac_exeext && {
12634 test "$cross_compiling" = yes ||
12635 $as_test_x conftest$ac_exeext
12637 emacs_cv_x11_toolkit_version_6=yes
12639 $as_echo "$as_me: failed program was
:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 emacs_cv_x11_toolkit_version_6=no
12645 rm -rf conftest.dSYM
12646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12647 conftest$ac_exeext conftest.$ac_ext
12650 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12651 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12652 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12653 $as_echo "6 or newer
" >&6; }
12655 cat >>confdefs.h <<\_ACEOF
12656 #define HAVE_X11XTR6 1
12660 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
12661 $as_echo "before
6" >&6; }
12665 if test x$HAVE_X11XTR6 = xyes; then
12666 LIBS="-lXt -lSM -lICE $LIBS"
12671 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12672 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
12673 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12674 $as_echo_n "(cached
) " >&6
12676 ac_check_lib_save_LIBS=$LIBS
12678 cat >conftest.$ac_ext <<_ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12691 char XmuConvertStandardSelection ();
12695 return XmuConvertStandardSelection ();
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (ac_try="$ac_link"
12702 case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12707 $as_echo "$ac_try_echo") >&5
12708 (eval "$ac_link") 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest$ac_exeext && {
12718 test "$cross_compiling" = yes ||
12719 $as_test_x conftest$ac_exeext
12721 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12723 $as_echo "$as_me: failed program was
:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12729 rm -rf conftest.dSYM
12730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12731 conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS
12734 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12735 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12736 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12737 cat >>confdefs.h <<_ACEOF
12738 #define HAVE_LIBXMU 1
12745 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12748 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12749 if test "${HAVE_X11}" = "yes"; then
12750 if test "${USE_X_TOOLKIT}" != "none
"; then
12752 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12753 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
12754 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12755 $as_echo_n "(cached
) " >&6
12757 ac_check_lib_save_LIBS=$LIBS
12758 LIBS="-lXext $LIBS"
12759 cat >conftest.$ac_ext <<_ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12766 /* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
12772 char XShapeQueryExtension ();
12776 return XShapeQueryExtension ();
12781 rm -f conftest.$ac_objext conftest$ac_exeext
12782 if { (ac_try="$ac_link"
12783 case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_link") 2>conftest.er1
12791 grep -v '^ *+' conftest.er1 >conftest.err
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest$ac_exeext && {
12799 test "$cross_compiling" = yes ||
12800 $as_test_x conftest$ac_exeext
12802 ac_cv_lib_Xext_XShapeQueryExtension=yes
12804 $as_echo "$as_me: failed program was
:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_cv_lib_Xext_XShapeQueryExtension=no
12810 rm -rf conftest.dSYM
12811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12815 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12816 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12817 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12818 cat >>confdefs.h <<_ACEOF
12819 #define HAVE_LIBXEXT 1
12822 LIBS="-lXext $LIBS"
12829 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12830 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12831 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
12832 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12833 $as_echo_n "(cached
) " >&6
12835 cat >conftest.$ac_ext <<_ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12845 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12848 Motif version prior to 2.1.
12854 rm -f conftest.$ac_objext
12855 if { (ac_try="$ac_compile"
12856 case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12861 $as_echo "$ac_try_echo") >&5
12862 (eval "$ac_compile") 2>conftest.er1
12864 grep -v '^ *+' conftest.er1 >conftest.err
12866 cat conftest.err >&5
12867 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12868 (exit $ac_status); } && {
12869 test -z "$ac_c_werror_flag" ||
12870 test ! -s conftest.err
12871 } && test -s conftest.$ac_objext; then
12872 emacs_cv_motif_version_2_1=yes
12874 $as_echo "$as_me: failed program was
:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12877 emacs_cv_motif_version_2_1=no
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12883 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12884 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12885 if test $emacs_cv_motif_version_2_1 = yes; then
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_MOTIF_2_1 1
12892 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12893 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
12894 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12895 $as_echo_n "(cached
) " >&6
12897 ac_check_lib_save_LIBS=$LIBS
12899 cat >conftest.$ac_ext <<_ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12912 char XpCreateContext ();
12916 return XpCreateContext ();
12921 rm -f conftest.$ac_objext conftest$ac_exeext
12922 if { (ac_try="$ac_link"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12928 $as_echo "$ac_try_echo") >&5
12929 (eval "$ac_link") 2>conftest.er1
12931 grep -v '^ *+' conftest.er1 >conftest.err
12933 cat conftest.err >&5
12934 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12935 (exit $ac_status); } && {
12936 test -z "$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 } && test -s conftest$ac_exeext && {
12939 test "$cross_compiling" = yes ||
12940 $as_test_x conftest$ac_exeext
12942 ac_cv_lib_Xp_XpCreateContext=yes
12944 $as_echo "$as_me: failed program was
:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ac_cv_lib_Xp_XpCreateContext=no
12950 rm -rf conftest.dSYM
12951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12955 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12956 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12957 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12961 if test ${HAVE_LIBXP} = yes; then
12963 cat >>confdefs.h <<\_ACEOF
12964 #define HAVE_LIBXP 1
12969 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12970 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
12971 if test "${emacs_cv_lesstif+set}" = set; then
12972 $as_echo_n "(cached
) " >&6
12974 # We put this in CFLAGS temporarily to precede other -I options
12975 # that might be in CFLAGS temporarily.
12976 # We put this in CPPFLAGS where it precedes the other -I options.
12977 OLD_CPPFLAGS=$CPPFLAGS
12979 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12980 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12981 cat >conftest.$ac_ext <<_ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12996 rm -f conftest.$ac_objext
12997 if { (ac_try="$ac_compile"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13003 $as_echo "$ac_try_echo") >&5
13004 (eval "$ac_compile") 2>conftest.er1
13006 grep -v '^ *+' conftest.er1 >conftest.err
13008 cat conftest.err >&5
13009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13010 (exit $ac_status); } && {
13011 test -z "$ac_c_werror_flag" ||
13012 test ! -s conftest.err
13013 } && test -s conftest.$ac_objext; then
13014 emacs_cv_lesstif=yes
13016 $as_echo "$as_me: failed program was
:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13019 emacs_cv_lesstif=no
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
13025 $as_echo "$emacs_cv_lesstif" >&6; }
13026 if test $emacs_cv_lesstif = yes; then
13027 # Make sure this -I option remains in CPPFLAGS after it is set
13028 # back to REAL_CPPFLAGS.
13029 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13030 # have those other -I options anyway. Ultimately, having this
13031 # directory ultimately in CPPFLAGS will be enough.
13032 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
13033 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
13036 CPPFLAGS=$OLD_CPPFLAGS
13043 USE_TOOLKIT_SCROLL_BARS=no
13044 if test "${with_toolkit_scroll_bars}" != "no
"; then
13045 if test "${USE_X_TOOLKIT}" != "none
"; then
13046 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13047 cat >>confdefs.h <<\_ACEOF
13048 #define USE_TOOLKIT_SCROLL_BARS 1
13052 USE_TOOLKIT_SCROLL_BARS=yes
13053 elif test "${HAVE_XAW3D}" = "yes"; then
13054 cat >>confdefs.h <<\_ACEOF
13055 #define USE_TOOLKIT_SCROLL_BARS 1
13058 USE_TOOLKIT_SCROLL_BARS=yes
13060 elif test "${HAVE_GTK}" = "yes"; then
13061 cat >>confdefs.h <<\_ACEOF
13062 #define USE_TOOLKIT_SCROLL_BARS 1
13065 USE_TOOLKIT_SCROLL_BARS=yes
13066 elif test "${HAVE_NS}" = "yes"; then
13067 cat >>confdefs.h <<\_ACEOF
13068 #define USE_TOOLKIT_SCROLL_BARS 1
13071 USE_TOOLKIT_SCROLL_BARS=yes
13075 cat >conftest.$ac_ext <<_ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 #include <X11/Xlib.h>
13083 #include <X11/Xresource.h>
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_compile") 2>conftest.er1
13102 grep -v '^ *+' conftest.er1 >conftest.err
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest.$ac_objext; then
13112 cat >>confdefs.h <<\_ACEOF
13117 $as_echo "$as_me: failed program was
:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 if test "${with_xim}" != "no
"; then
13128 cat >>confdefs.h <<\_ACEOF
13135 if test "${HAVE_XIM}" != "no
"; then
13136 late_CFLAGS=$CFLAGS
13137 if test "$GCC" = yes; then
13138 CFLAGS="$CFLAGS --pedantic-errors"
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13147 #include <X11/Xlib.h>
13148 #include <X11/Xresource.h>
13157 XPointer *client_data;
13159 /* If we're not using GCC, it's probably not XFree86, and this is
13160 probably right, but we can't use something like --pedantic-errors. */
13161 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13162 char*, XIMProc, XPointer*);
13164 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13177 $as_echo "$ac_try_echo") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
13188 emacs_cv_arg6_star=yes
13190 $as_echo "$as_me: failed program was
:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 if test "$emacs_cv_arg6_star" = yes; then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13204 cat >>confdefs.h <<\_ACEOF
13205 #define XRegisterIMInstantiateCallback_arg6 XPointer
13209 CFLAGS=$late_CFLAGS
13212 ### Start of font-backend (under any platform) section.
13213 # (nothing here yet -- this is a placeholder)
13214 ### End of font-backend (under any platform) section.
13216 ### Start of font-backend (under X11) section.
13217 if test "${HAVE_X11}" = "yes"; then
13221 # Extract the first word of "pkg-config
", so it can be a program name with args.
13222 set dummy pkg-config; ac_word=$2
13223 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13224 $as_echo_n "checking
for $ac_word...
" >&6; }
13225 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13226 $as_echo_n "(cached
) " >&6
13228 case $PKG_CONFIG in
13230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13253 if test -n "$PKG_CONFIG"; then
13254 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13255 $as_echo "$PKG_CONFIG" >&6; }
13257 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13258 $as_echo "no
" >&6; }
13263 if test "$PKG_CONFIG" = "no
" ; then
13266 PKG_CONFIG_MIN_VERSION=0.9.0
13267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13268 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13269 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13271 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13272 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13273 $as_echo "yes" >&6; }
13276 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13277 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13278 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13279 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13280 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13282 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13283 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13284 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13285 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13286 $as_echo "$FONTCONFIG_LIBS" >&6; }
13288 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13289 $as_echo "no
" >&6; }
13290 FONTCONFIG_CFLAGS=""
13292 ## If we have a custom action on failure, don't print errors, but
13293 ## do set a variable so people can do so.
13294 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13301 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13302 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13306 if test $succeeded = yes; then
13313 ## Use -lXft if available, unless `--with-xft=no'.
13315 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13318 if test "x
${with_xft}" != "xno
"; then
13323 # Extract the first word of "pkg-config
", so it can be a program name with args.
13324 set dummy pkg-config; ac_word=$2
13325 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13326 $as_echo_n "checking
for $ac_word...
" >&6; }
13327 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13328 $as_echo_n "(cached
) " >&6
13330 case $PKG_CONFIG in
13332 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13342 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13343 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13350 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13354 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13355 if test -n "$PKG_CONFIG"; then
13356 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13357 $as_echo "$PKG_CONFIG" >&6; }
13359 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13360 $as_echo "no
" >&6; }
13365 if test "$PKG_CONFIG" = "no
" ; then
13368 PKG_CONFIG_MIN_VERSION=0.9.0
13369 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13370 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13371 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13373 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13374 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13375 $as_echo "yes" >&6; }
13378 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13379 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13380 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13381 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13382 $as_echo "$XFT_CFLAGS" >&6; }
13384 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13385 $as_echo_n "checking XFT_LIBS...
" >&6; }
13386 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13387 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13388 $as_echo "$XFT_LIBS" >&6; }
13390 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13391 $as_echo "no
" >&6; }
13394 ## If we have a custom action on failure, don't print errors, but
13395 ## do set a variable so people can do so.
13396 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13403 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13404 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13408 if test $succeeded = yes; then
13414 if test "$HAVE_XFT" != no; then
13415 OLD_CPPFLAGS="$CPPFLAGS"
13416 OLD_CFLAGS="$CFLAGS"
13418 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13419 CFLAGS="$CFLAGS $XFT_CFLAGS"
13420 LIBS="$XFT_LIBS $LIBS"
13421 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13422 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13423 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13424 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13425 $as_echo_n "(cached
) " >&6
13427 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13428 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13430 # Is the header compilable?
13431 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
13432 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <X11/Xft/Xft.h>
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13449 $as_echo "$ac_try_echo") >&5
13450 (eval "$ac_compile") 2>conftest.er1
13452 grep -v '^ *+' conftest.er1 >conftest.err
13454 cat conftest.err >&5
13455 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13456 (exit $ac_status); } && {
13457 test -z "$ac_c_werror_flag" ||
13458 test ! -s conftest.err
13459 } && test -s conftest.$ac_objext; then
13460 ac_header_compiler=yes
13462 $as_echo "$as_me: failed program was
:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 ac_header_compiler=no
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13470 $as_echo "$ac_header_compiler" >&6; }
13472 # Is the header present?
13473 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13474 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
13475 cat >conftest.$ac_ext <<_ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13481 #include <X11/Xft/Xft.h>
13483 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13489 $as_echo "$ac_try_echo") >&5
13490 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13492 grep -v '^ *+' conftest.er1 >conftest.err
13494 cat conftest.err >&5
13495 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13496 (exit $ac_status); } >/dev/null && {
13497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13500 ac_header_preproc=yes
13502 $as_echo "$as_me: failed program was
:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13505 ac_header_preproc=no
13508 rm -f conftest.err conftest.$ac_ext
13509 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13510 $as_echo "$ac_header_preproc" >&6; }
13512 # So? What about this header?
13513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13515 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13516 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13517 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13518 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13519 ac_header_preproc=yes
13522 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13523 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13524 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13525 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13526 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13527 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13528 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13529 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13530 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13531 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13532 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13533 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13537 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13538 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13539 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13540 $as_echo_n "(cached
) " >&6
13542 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13544 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13545 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13548 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13549 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13550 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
13551 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13552 $as_echo_n "(cached
) " >&6
13554 ac_check_lib_save_LIBS=$LIBS
13555 LIBS="-lXft $XFT_LIBS $LIBS"
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13563 /* Override any GCC internal prototype to avoid an error.
13564 Use char because int might match the return type of a GCC
13565 builtin and then its argument prototype would still apply. */
13569 char XftFontOpen ();
13573 return XftFontOpen ();
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (ac_try="$ac_link"
13580 case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13585 $as_echo "$ac_try_echo") >&5
13586 (eval "$ac_link") 2>conftest.er1
13588 grep -v '^ *+' conftest.er1 >conftest.err
13590 cat conftest.err >&5
13591 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13592 (exit $ac_status); } && {
13593 test -z "$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13595 } && test -s conftest$ac_exeext && {
13596 test "$cross_compiling" = yes ||
13597 $as_test_x conftest$ac_exeext
13599 ac_cv_lib_Xft_XftFontOpen=yes
13601 $as_echo "$as_me: failed program was
:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13604 ac_cv_lib_Xft_XftFontOpen=no
13607 rm -rf conftest.dSYM
13608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13609 conftest$ac_exeext conftest.$ac_ext
13610 LIBS=$ac_check_lib_save_LIBS
13612 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13613 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13614 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13622 if test "${HAVE_XFT}" = "yes"; then
13624 cat >>confdefs.h <<\_ACEOF
13629 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13631 CPPFLAGS="$OLD_CPPFLAGS"
13632 CFLAGS="$OLD_CFLAGS"
13634 fi # "${HAVE_XFT}" = "yes"
13635 fi # "$HAVE_XFT" != no
13636 fi # "x
${with_xft}" != "xno
"
13638 if test "$HAVE_XFT" != "yes"; then
13644 ## We used to allow building with FreeType and without Xft.
13645 ## However, the ftx font backend driver is not in good shape.
13646 if test "${HAVE_XFT}" = "yes"; then
13653 if test "${HAVE_FREETYPE}" = "yes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_FREETYPE 1
13659 if test "${with_libotf}" != "no
"; then
13663 # Extract the first word of "pkg-config
", so it can be a program name with args.
13664 set dummy pkg-config; ac_word=$2
13665 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13666 $as_echo_n "checking
for $ac_word...
" >&6; }
13667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13668 $as_echo_n "(cached
) " >&6
13670 case $PKG_CONFIG in
13672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13683 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13695 if test -n "$PKG_CONFIG"; then
13696 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13697 $as_echo "$PKG_CONFIG" >&6; }
13699 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13700 $as_echo "no
" >&6; }
13705 if test "$PKG_CONFIG" = "no
" ; then
13708 PKG_CONFIG_MIN_VERSION=0.9.0
13709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13710 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
13711 $as_echo_n "checking
for libotf...
" >&6; }
13713 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13714 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13715 $as_echo "yes" >&6; }
13718 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13719 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
13720 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13721 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13722 $as_echo "$LIBOTF_CFLAGS" >&6; }
13724 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13725 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
13726 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13727 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13728 $as_echo "$LIBOTF_LIBS" >&6; }
13730 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13731 $as_echo "no
" >&6; }
13734 ## If we have a custom action on failure, don't print errors, but
13735 ## do set a variable so people can do so.
13736 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13743 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13744 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13748 if test $succeeded = yes; then
13754 if test "$HAVE_LIBOTF" = "yes"; then
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_LIBOTF 1
13760 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13761 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
13762 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13763 $as_echo_n "(cached
) " >&6
13765 ac_check_lib_save_LIBS=$LIBS
13767 cat >conftest.$ac_ext <<_ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13780 char OTF_get_variation_glyphs ();
13784 return OTF_get_variation_glyphs ();
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (ac_try="$ac_link"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13796 $as_echo "$ac_try_echo") >&5
13797 (eval "$ac_link") 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest$ac_exeext && {
13807 test "$cross_compiling" = yes ||
13808 $as_test_x conftest$ac_exeext
13810 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13812 $as_echo "$as_me: failed program was
:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13818 rm -rf conftest.dSYM
13819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13820 conftest$ac_exeext conftest.$ac_ext
13821 LIBS=$ac_check_lib_save_LIBS
13823 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13824 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13825 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13826 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13828 HAVE_OTF_GET_VARIATION_GLYPHS=no
13831 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13833 cat >>confdefs.h <<\_ACEOF
13834 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13843 if test "${HAVE_LIBOTF}" = yes; then
13844 if test "${with_m17n_flt}" != "no
"; then
13848 # Extract the first word of "pkg-config
", so it can be a program name with args.
13849 set dummy pkg-config; ac_word=$2
13850 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13851 $as_echo_n "checking
for $ac_word...
" >&6; }
13852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13853 $as_echo_n "(cached
) " >&6
13855 case $PKG_CONFIG in
13857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13868 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13880 if test -n "$PKG_CONFIG"; then
13881 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13882 $as_echo "$PKG_CONFIG" >&6; }
13884 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13885 $as_echo "no
" >&6; }
13890 if test "$PKG_CONFIG" = "no
" ; then
13893 PKG_CONFIG_MIN_VERSION=0.9.0
13894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13895 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13896 $as_echo_n "checking
for m17n-flt...
" >&6; }
13898 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13899 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13900 $as_echo "yes" >&6; }
13903 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13904 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
13905 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13906 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13907 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13909 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13910 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
13911 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13912 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13913 $as_echo "$M17N_FLT_LIBS" >&6; }
13915 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13916 $as_echo "no
" >&6; }
13919 ## If we have a custom action on failure, don't print errors, but
13920 ## do set a variable so people can do so.
13921 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13928 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13929 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13933 if test $succeeded = yes; then
13939 if test "$HAVE_M17N_FLT" = "yes"; then
13941 cat >>confdefs.h <<\_ACEOF
13942 #define HAVE_M17N_FLT 1
13954 ### End of font-backend (under X11) section.
13965 ### Use -lXpm if available, unless `--with-xpm=no'.
13967 if test "${HAVE_X11}" = "yes"; then
13968 if test "${with_xpm}" != "no
"; then
13969 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13970 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13971 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13972 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13973 $as_echo_n "(cached
) " >&6
13975 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13976 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13978 # Is the header compilable?
13979 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13980 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 $ac_includes_default
13988 #include <X11/xpm.h>
13990 rm -f conftest.$ac_objext
13991 if { (ac_try="$ac_compile"
13992 case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13996 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13997 $as_echo "$ac_try_echo") >&5
13998 (eval "$ac_compile") 2>conftest.er1
14000 grep -v '^ *+' conftest.er1 >conftest.err
14002 cat conftest.err >&5
14003 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14004 (exit $ac_status); } && {
14005 test -z "$ac_c_werror_flag" ||
14006 test ! -s conftest.err
14007 } && test -s conftest.$ac_objext; then
14008 ac_header_compiler=yes
14010 $as_echo "$as_me: failed program was
:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_compiler=no
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14018 $as_echo "$ac_header_compiler" >&6; }
14020 # Is the header present?
14021 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
14022 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 #include <X11/xpm.h>
14031 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14037 $as_echo "$ac_try_echo") >&5
14038 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14040 grep -v '^ *+' conftest.er1 >conftest.err
14042 cat conftest.err >&5
14043 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14044 (exit $ac_status); } >/dev/null && {
14045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14048 ac_header_preproc=yes
14050 $as_echo "$as_me: failed program was
:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_header_preproc=no
14056 rm -f conftest.err conftest.$ac_ext
14057 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14058 $as_echo "$ac_header_preproc" >&6; }
14060 # So? What about this header?
14061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14063 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14064 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14065 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
14066 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
14067 ac_header_preproc=yes
14070 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
14071 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
14072 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
14073 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
14074 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
14075 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
14076 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14077 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14078 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
14079 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
14080 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
14081 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
14085 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14086 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14087 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14088 $as_echo_n "(cached
) " >&6
14090 ac_cv_header_X11_xpm_h=$ac_header_preproc
14092 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14093 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14096 if test $ac_cv_header_X11_xpm_h = yes; then
14097 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
14098 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
14099 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14100 $as_echo_n "(cached
) " >&6
14102 ac_check_lib_save_LIBS=$LIBS
14103 LIBS="-lXpm -lX11 $LIBS"
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14111 /* Override any GCC internal prototype to avoid an error.
14112 Use char because int might match the return type of a GCC
14113 builtin and then its argument prototype would still apply. */
14117 char XpmReadFileToPixmap ();
14121 return XpmReadFileToPixmap ();
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14132 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14133 $as_echo "$ac_try_echo") >&5
14134 (eval "$ac_link") 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14140 (exit $ac_status); } && {
14141 test -z "$ac_c_werror_flag" ||
14142 test ! -s conftest.err
14143 } && test -s conftest$ac_exeext && {
14144 test "$cross_compiling" = yes ||
14145 $as_test_x conftest$ac_exeext
14147 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14149 $as_echo "$as_me: failed program was
:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14155 rm -rf conftest.dSYM
14156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14157 conftest$ac_exeext conftest.$ac_ext
14158 LIBS=$ac_check_lib_save_LIBS
14160 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14161 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14162 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14169 if test "${HAVE_XPM}" = "yes"; then
14170 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14171 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include "X11
/xpm.h
"
14179 #ifndef XpmReturnAllocPixels
14180 no_return_alloc_pixels
14184 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14185 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14193 if test "${HAVE_XPM}" = "yes"; then
14194 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14195 $as_echo "yes" >&6; }
14197 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14198 $as_echo "no
" >&6; }
14203 if test "${HAVE_XPM}" = "yes"; then
14205 cat >>confdefs.h <<\_ACEOF
14212 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14214 if test "${HAVE_X11}" = "yes"; then
14215 if test "${with_jpeg}" != "no
"; then
14216 if test "${ac_cv_header_jerror_h+set}" = set; then
14217 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14218 $as_echo_n "checking
for jerror.h...
" >&6; }
14219 if test "${ac_cv_header_jerror_h+set}" = set; then
14220 $as_echo_n "(cached
) " >&6
14222 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14223 $as_echo "$ac_cv_header_jerror_h" >&6; }
14225 # Is the header compilable?
14226 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14227 $as_echo_n "checking jerror.h usability...
" >&6; }
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 $ac_includes_default
14235 #include <jerror.h>
14237 rm -f conftest.$ac_objext
14238 if { (ac_try="$ac_compile"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245 (eval "$ac_compile") 2>conftest.er1
14247 grep -v '^ *+' conftest.er1 >conftest.err
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest.$ac_objext; then
14255 ac_header_compiler=yes
14257 $as_echo "$as_me: failed program was
:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_header_compiler=no
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14265 $as_echo "$ac_header_compiler" >&6; }
14267 # Is the header present?
14268 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14269 $as_echo_n "checking jerror.h presence...
" >&6; }
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #include <jerror.h>
14278 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14283 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14284 $as_echo "$ac_try_echo") >&5
14285 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14291 (exit $ac_status); } >/dev/null && {
14292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14293 test ! -s conftest.err
14295 ac_header_preproc=yes
14297 $as_echo "$as_me: failed program was
:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_header_preproc=no
14303 rm -f conftest.err conftest.$ac_ext
14304 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14305 $as_echo "$ac_header_preproc" >&6; }
14307 # So? What about this header?
14308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14310 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14311 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14312 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14313 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14314 ac_header_preproc=yes
14317 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14318 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14319 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14320 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14321 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14322 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14323 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14324 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14325 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14326 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14327 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14328 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14332 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14333 $as_echo_n "checking
for jerror.h...
" >&6; }
14334 if test "${ac_cv_header_jerror_h+set}" = set; then
14335 $as_echo_n "(cached
) " >&6
14337 ac_cv_header_jerror_h=$ac_header_preproc
14339 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14340 $as_echo "$ac_cv_header_jerror_h" >&6; }
14343 if test $ac_cv_header_jerror_h = yes; then
14344 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14345 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14346 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14347 $as_echo_n "(cached
) " >&6
14349 ac_check_lib_save_LIBS=$LIBS
14350 LIBS="-ljpeg $LIBS"
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14364 char jpeg_destroy_compress ();
14368 return jpeg_destroy_compress ();
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (ac_try="$ac_link"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14379 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14380 $as_echo "$ac_try_echo") >&5
14381 (eval "$ac_link") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest$ac_exeext && {
14391 test "$cross_compiling" = yes ||
14392 $as_test_x conftest$ac_exeext
14394 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14396 $as_echo "$as_me: failed program was
:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14402 rm -rf conftest.dSYM
14403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LIBS=$ac_check_lib_save_LIBS
14407 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14408 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14409 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14419 if test "${HAVE_JPEG}" = "yes"; then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define HAVE_JPEG 1
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 #include <jpeglib.h>
14431 version=JPEG_LIB_VERSION
14434 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14435 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
14436 cat >>confdefs.h <<\_ACEOF
14437 #define HAVE_JPEG 1
14441 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
14442 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
14450 ### Use -lpng if available, unless `--with-png=no'.
14452 if test "${HAVE_X11}" = "yes"; then
14453 if test "${with_png}" != "no
"; then
14454 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14455 # in /usr/include/libpng.
14458 for ac_header in png.h libpng/png.h
14460 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14462 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14463 $as_echo_n "checking
for $ac_header...
" >&6; }
14464 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14465 $as_echo_n "(cached
) " >&6
14467 ac_res=`eval 'as_val=${'$as_ac_Header'}
14468 $as_echo "$as_val"'`
14469 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14470 $as_echo "$ac_res" >&6; }
14472 # Is the header compilable?
14473 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14474 $as_echo_n "checking
$ac_header usability...
" >&6; }
14475 cat >conftest.$ac_ext <<_ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14482 #include <$ac_header>
14484 rm -f conftest.$ac_objext
14485 if { (ac_try="$ac_compile"
14486 case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14490 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14491 $as_echo "$ac_try_echo") >&5
14492 (eval "$ac_compile") 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14498 (exit $ac_status); } && {
14499 test -z "$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 } && test -s conftest.$ac_objext; then
14502 ac_header_compiler=yes
14504 $as_echo "$as_me: failed program was
:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_header_compiler=no
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14512 $as_echo "$ac_header_compiler" >&6; }
14514 # Is the header present?
14515 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14516 $as_echo_n "checking
$ac_header presence...
" >&6; }
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <$ac_header>
14525 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14530 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14531 $as_echo "$ac_try_echo") >&5
14532 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14538 (exit $ac_status); } >/dev/null && {
14539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14542 ac_header_preproc=yes
14544 $as_echo "$as_me: failed program was
:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_header_preproc=no
14550 rm -f conftest.err conftest.$ac_ext
14551 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14552 $as_echo "$ac_header_preproc" >&6; }
14554 # So? What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14557 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14558 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14561 ac_header_preproc=yes
14564 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14565 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14567 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14569 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14571 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14572 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14574 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14575 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14579 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14580 $as_echo_n "checking
for $ac_header...
" >&6; }
14581 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14582 $as_echo_n "(cached
) " >&6
14584 eval "$as_ac_Header=\
$ac_header_preproc"
14586 ac_res=`eval 'as_val=${'$as_ac_Header'}
14587 $as_echo "$as_val"'`
14588 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14589 $as_echo "$ac_res" >&6; }
14592 if test `eval 'as_val=${'$as_ac_Header'}
14593 $as_echo "$as_val"'` = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14602 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14603 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14604 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
14605 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14606 $as_echo_n "(cached
) " >&6
14608 ac_check_lib_save_LIBS=$LIBS
14609 LIBS="-lpng -lz -lm $LIBS"
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14617 /* Override any GCC internal prototype to avoid an error.
14618 Use char because int might match the return type of a GCC
14619 builtin and then its argument prototype would still apply. */
14623 char png_get_channels ();
14627 return png_get_channels ();
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (ac_try="$ac_link"
14634 case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14639 $as_echo "$ac_try_echo") >&5
14640 (eval "$ac_link") 2>conftest.er1
14642 grep -v '^ *+' conftest.er1 >conftest.err
14644 cat conftest.err >&5
14645 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14646 (exit $ac_status); } && {
14647 test -z "$ac_c_werror_flag" ||
14648 test ! -s conftest.err
14649 } && test -s conftest$ac_exeext && {
14650 test "$cross_compiling" = yes ||
14651 $as_test_x conftest$ac_exeext
14653 ac_cv_lib_png_png_get_channels=yes
14655 $as_echo "$as_me: failed program was
:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_cv_lib_png_png_get_channels=no
14661 rm -rf conftest.dSYM
14662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14663 conftest$ac_exeext conftest.$ac_ext
14664 LIBS=$ac_check_lib_save_LIBS
14666 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14667 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14668 if test $ac_cv_lib_png_png_get_channels = yes; then
14675 if test "${HAVE_PNG}" = "yes"; then
14677 cat >>confdefs.h <<\_ACEOF
14684 ### Use -ltiff if available, unless `--with-tiff=no'.
14686 if test "${HAVE_X11}" = "yes"; then
14687 if test "${with_tiff}" != "no
"; then
14688 if test "${ac_cv_header_tiffio_h+set}" = set; then
14689 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14690 $as_echo_n "checking
for tiffio.h...
" >&6; }
14691 if test "${ac_cv_header_tiffio_h+set}" = set; then
14692 $as_echo_n "(cached
) " >&6
14694 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14695 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14697 # Is the header compilable?
14698 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14699 $as_echo_n "checking tiffio.h usability...
" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14707 #include <tiffio.h>
14709 rm -f conftest.$ac_objext
14710 if { (ac_try="$ac_compile"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14716 $as_echo "$ac_try_echo") >&5
14717 (eval "$ac_compile") 2>conftest.er1
14719 grep -v '^ *+' conftest.er1 >conftest.err
14721 cat conftest.err >&5
14722 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14723 (exit $ac_status); } && {
14724 test -z "$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 } && test -s conftest.$ac_objext; then
14727 ac_header_compiler=yes
14729 $as_echo "$as_me: failed program was
:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_header_compiler=no
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14737 $as_echo "$ac_header_compiler" >&6; }
14739 # Is the header present?
14740 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14741 $as_echo_n "checking tiffio.h presence...
" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <tiffio.h>
14750 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14763 (exit $ac_status); } >/dev/null && {
14764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14767 ac_header_preproc=yes
14769 $as_echo "$as_me: failed program was
:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_header_preproc=no
14775 rm -f conftest.err conftest.$ac_ext
14776 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14777 $as_echo "$ac_header_preproc" >&6; }
14779 # So? What about this header?
14780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14782 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14783 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14784 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14785 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14786 ac_header_preproc=yes
14789 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14790 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14792 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14793 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14794 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14795 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14796 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14798 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14800 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14804 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14805 $as_echo_n "checking
for tiffio.h...
" >&6; }
14806 if test "${ac_cv_header_tiffio_h+set}" = set; then
14807 $as_echo_n "(cached
) " >&6
14809 ac_cv_header_tiffio_h=$ac_header_preproc
14811 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14812 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14815 if test $ac_cv_header_tiffio_h = yes; then
14817 # At least one tiff package requires the jpeg library.
14818 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14819 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14820 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
14821 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14822 $as_echo_n "(cached
) " >&6
14824 ac_check_lib_save_LIBS=$LIBS
14825 LIBS="-ltiff $tifflibs $LIBS"
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14833 /* Override any GCC internal prototype to avoid an error.
14834 Use char because int might match the return type of a GCC
14835 builtin and then its argument prototype would still apply. */
14839 char TIFFGetVersion ();
14843 return TIFFGetVersion ();
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (ac_try="$ac_link"
14850 case "(($ac_try" in
14851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14854 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14855 $as_echo "$ac_try_echo") >&5
14856 (eval "$ac_link") 2>conftest.er1
14858 grep -v '^ *+' conftest.er1 >conftest.err
14860 cat conftest.err >&5
14861 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14862 (exit $ac_status); } && {
14863 test -z "$ac_c_werror_flag" ||
14864 test ! -s conftest.err
14865 } && test -s conftest$ac_exeext && {
14866 test "$cross_compiling" = yes ||
14867 $as_test_x conftest$ac_exeext
14869 ac_cv_lib_tiff_TIFFGetVersion=yes
14871 $as_echo "$as_me: failed program was
:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_cv_lib_tiff_TIFFGetVersion=no
14877 rm -rf conftest.dSYM
14878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14879 conftest$ac_exeext conftest.$ac_ext
14880 LIBS=$ac_check_lib_save_LIBS
14882 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14883 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14884 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14893 if test "${HAVE_TIFF}" = "yes"; then
14895 cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_TIFF 1
14902 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14904 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14905 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14906 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14907 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14908 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14909 $as_echo_n "(cached
) " >&6
14911 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14912 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14914 # Is the header compilable?
14915 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14916 $as_echo_n "checking gif_lib.h usability...
" >&6; }
14917 cat >conftest.$ac_ext <<_ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 $ac_includes_default
14924 #include <gif_lib.h>
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14933 $as_echo "$ac_try_echo") >&5
14934 (eval "$ac_compile") 2>conftest.er1
14936 grep -v '^ *+' conftest.er1 >conftest.err
14938 cat conftest.err >&5
14939 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest.$ac_objext; then
14944 ac_header_compiler=yes
14946 $as_echo "$as_me: failed program was
:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_header_compiler=no
14952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14954 $as_echo "$ac_header_compiler" >&6; }
14956 # Is the header present?
14957 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14958 $as_echo_n "checking gif_lib.h presence...
" >&6; }
14959 cat >conftest.$ac_ext <<_ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14965 #include <gif_lib.h>
14967 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14980 (exit $ac_status); } >/dev/null && {
14981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14984 ac_header_preproc=yes
14986 $as_echo "$as_me: failed program was
:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_header_preproc=no
14992 rm -f conftest.err conftest.$ac_ext
14993 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14994 $as_echo "$ac_header_preproc" >&6; }
14996 # So? What about this header?
14997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14999 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15000 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15001 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
15002 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
15003 ac_header_preproc=yes
15006 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
15007 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
15008 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
15009 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
15010 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
15011 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
15012 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15013 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15014 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
15015 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
15017 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
15021 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15022 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15023 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15024 $as_echo_n "(cached
) " >&6
15026 ac_cv_header_gif_lib_h=$ac_header_preproc
15028 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15029 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15032 if test $ac_cv_header_gif_lib_h = yes; then
15033 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15034 # Earlier versions can crash Emacs.
15035 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
15036 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
15037 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15038 $as_echo_n "(cached
) " >&6
15040 ac_check_lib_save_LIBS=$LIBS
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15055 char EGifPutExtensionLast ();
15059 return EGifPutExtensionLast ();
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15071 $as_echo "$ac_try_echo") >&5
15072 (eval "$ac_link") 2>conftest.er1
15074 grep -v '^ *+' conftest.er1 >conftest.err
15076 cat conftest.err >&5
15077 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest$ac_exeext && {
15082 test "$cross_compiling" = yes ||
15083 $as_test_x conftest$ac_exeext
15085 ac_cv_lib_gif_EGifPutExtensionLast=yes
15087 $as_echo "$as_me: failed program was
:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_cv_lib_gif_EGifPutExtensionLast=no
15093 rm -rf conftest.dSYM
15094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15095 conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15098 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15099 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15100 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15110 if test "$HAVE_GIF" = yes; then
15111 ac_gif_lib_name="-lgif"
15114 # If gif_lib.h but no libgif, try libungif.
15115 if test x"$try_libungif" = xyes; then
15116 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15117 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15118 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15119 $as_echo_n "(cached
) " >&6
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-lungif $LIBS"
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15136 char EGifPutExtensionLast ();
15140 return EGifPutExtensionLast ();
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext && {
15163 test "$cross_compiling" = yes ||
15164 $as_test_x conftest$ac_exeext
15166 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15168 $as_echo "$as_me: failed program was
:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_ungif_EGifPutExtensionLast=no
15174 rm -rf conftest.dSYM
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15180 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15181 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15186 if test "$HAVE_GIF" = yes; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define LIBGIF -lungif
15192 ac_gif_lib_name="-lungif"
15196 if test "${HAVE_GIF}" = "yes"; then
15198 cat >>confdefs.h <<\_ACEOF
15205 if test "${HAVE_X11}" = "yes"; then
15208 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15209 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15210 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15211 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15212 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15213 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15214 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15215 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15216 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15217 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15219 if test "X
${MISSING}" != X; then
15220 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15222 Maybe some development libraries
/packages are missing?
15223 If you don
't want to link with them give
15225 as options to configure" >&5
15226 $as_echo "$as_me: error: The following required libraries were not found:
15228 Maybe some development libraries/packages are missing?
15229 If you don't want to link with them give
15231 as options to configure
" >&2;}
15232 { (exit 1); exit 1; }; }
15236 ### Use -lgpm if available, unless `--with-gpm=no'.
15238 if test "${with_gpm}" != "no
"; then
15239 if test "${ac_cv_header_gpm_h+set}" = set; then
15240 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15241 $as_echo_n "checking
for gpm.h...
" >&6; }
15242 if test "${ac_cv_header_gpm_h+set}" = set; then
15243 $as_echo_n "(cached
) " >&6
15245 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15246 $as_echo "$ac_cv_header_gpm_h" >&6; }
15248 # Is the header compilable?
15249 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15250 $as_echo_n "checking gpm.h usability...
" >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 $ac_includes_default
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 ac_header_compiler=yes
15280 $as_echo "$as_me: failed program was
:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 ac_header_compiler=no
15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15288 $as_echo "$ac_header_compiler" >&6; }
15290 # Is the header present?
15291 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15292 $as_echo_n "checking gpm.h presence...
" >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15301 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15307 $as_echo "$ac_try_echo") >&5
15308 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15310 grep -v '^ *+' conftest.er1 >conftest.err
15312 cat conftest.err >&5
15313 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15314 (exit $ac_status); } >/dev/null && {
15315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15316 test ! -s conftest.err
15318 ac_header_preproc=yes
15320 $as_echo "$as_me: failed program was
:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_header_preproc=no
15326 rm -f conftest.err conftest.$ac_ext
15327 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15328 $as_echo "$ac_header_preproc" >&6; }
15330 # So? What about this header?
15331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15333 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15334 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15336 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15337 ac_header_preproc=yes
15340 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15341 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15342 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15343 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15344 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15345 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15346 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15347 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15348 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15349 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15350 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15351 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15355 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15356 $as_echo_n "checking
for gpm.h...
" >&6; }
15357 if test "${ac_cv_header_gpm_h+set}" = set; then
15358 $as_echo_n "(cached
) " >&6
15360 ac_cv_header_gpm_h=$ac_header_preproc
15362 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15363 $as_echo "$ac_cv_header_gpm_h" >&6; }
15366 if test $ac_cv_header_gpm_h = yes; then
15367 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15368 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15369 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15370 $as_echo_n "(cached
) " >&6
15372 ac_check_lib_save_LIBS=$LIBS
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15391 return Gpm_Open ();
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15403 $as_echo "$ac_try_echo") >&5
15404 (eval "$ac_link") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1 >conftest.err
15408 cat conftest.err >&5
15409 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext && {
15414 test "$cross_compiling" = yes ||
15415 $as_test_x conftest$ac_exeext
15417 ac_cv_lib_gpm_Gpm_Open=yes
15419 $as_echo "$as_me: failed program was
:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15422 ac_cv_lib_gpm_Gpm_Open=no
15425 rm -rf conftest.dSYM
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15430 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
15431 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15432 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15441 if test "${HAVE_GPM}" = "yes"; then
15443 cat >>confdefs.h <<\_ACEOF
15449 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15450 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15451 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15452 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15453 $as_echo_n "(cached
) " >&6
15455 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15456 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15458 # Is the header compilable?
15459 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
15460 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
15461 cat >conftest.$ac_ext <<_ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467 $ac_includes_default
15468 #include <malloc/malloc.h>
15470 rm -f conftest.$ac_objext
15471 if { (ac_try="$ac_compile"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15477 $as_echo "$ac_try_echo") >&5
15478 (eval "$ac_compile") 2>conftest.er1
15480 grep -v '^ *+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15484 (exit $ac_status); } && {
15485 test -z "$ac_c_werror_flag" ||
15486 test ! -s conftest.err
15487 } && test -s conftest.$ac_objext; then
15488 ac_header_compiler=yes
15490 $as_echo "$as_me: failed program was
:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_header_compiler=no
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15498 $as_echo "$ac_header_compiler" >&6; }
15500 # Is the header present?
15501 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15502 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <malloc/malloc.h>
15511 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15517 $as_echo "$ac_try_echo") >&5
15518 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15520 grep -v '^ *+' conftest.er1 >conftest.err
15522 cat conftest.err >&5
15523 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15524 (exit $ac_status); } >/dev/null && {
15525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15526 test ! -s conftest.err
15528 ac_header_preproc=yes
15530 $as_echo "$as_me: failed program was
:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_header_preproc=no
15536 rm -f conftest.err conftest.$ac_ext
15537 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15538 $as_echo "$ac_header_preproc" >&6; }
15540 # So? What about this header?
15541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15543 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15544 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15545 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15546 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15547 ac_header_preproc=yes
15550 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15551 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15552 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15553 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15555 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15556 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15557 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15558 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15559 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15560 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15561 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15565 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15566 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15567 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15568 $as_echo_n "(cached
) " >&6
15570 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15572 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15573 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15576 if test $ac_cv_header_malloc_malloc_h = yes; then
15578 cat >>confdefs.h <<\_ACEOF
15579 #define HAVE_MALLOC_MALLOC_H 1
15586 ### Use NeXTstep API to implement GUI.
15587 if test "${HAVE_NS}" = "yes"; then
15589 cat >>confdefs.h <<\_ACEOF
15593 if test "${NS_IMPL_COCOA}" = "yes"; then
15595 cat >>confdefs.h <<\_ACEOF
15596 #define NS_IMPL_COCOA 1
15601 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define NS_IMPL_GNUSTEP 1
15607 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15609 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15611 cat >>confdefs.h <<\_ACEOF
15612 #define NS_HAVE_NSINTEGER 1
15616 # We also have mouse menus.
15621 ### Use session management (-lSM -lICE) if available
15623 if test "${HAVE_X11}" = "yes"; then
15624 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15625 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15626 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15627 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15628 $as_echo_n "(cached
) " >&6
15630 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15631 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15633 # Is the header compilable?
15634 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15635 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 $ac_includes_default
15643 #include <X11/SM/SMlib.h>
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15651 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15652 $as_echo "$ac_try_echo") >&5
15653 (eval "$ac_compile") 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15659 (exit $ac_status); } && {
15660 test -z "$ac_c_werror_flag" ||
15661 test ! -s conftest.err
15662 } && test -s conftest.$ac_objext; then
15663 ac_header_compiler=yes
15665 $as_echo "$as_me: failed program was
:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_header_compiler=no
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15673 $as_echo "$ac_header_compiler" >&6; }
15675 # Is the header present?
15676 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15677 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
15678 cat >conftest.$ac_ext <<_ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 #include <X11/SM/SMlib.h>
15686 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15692 $as_echo "$ac_try_echo") >&5
15693 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15695 grep -v '^ *+' conftest.er1 >conftest.err
15697 cat conftest.err >&5
15698 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15699 (exit $ac_status); } >/dev/null && {
15700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15701 test ! -s conftest.err
15703 ac_header_preproc=yes
15705 $as_echo "$as_me: failed program was
:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_preproc=no
15711 rm -f conftest.err conftest.$ac_ext
15712 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15713 $as_echo "$ac_header_preproc" >&6; }
15715 # So? What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15718 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15719 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15720 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15721 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15722 ac_header_preproc=yes
15725 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15726 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15727 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15728 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15729 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15730 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15731 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15732 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15734 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15735 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15736 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15740 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15741 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15742 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15743 $as_echo_n "(cached
) " >&6
15745 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15747 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15748 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15751 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15752 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15753 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
15754 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15755 $as_echo_n "(cached
) " >&6
15757 ac_check_lib_save_LIBS=$LIBS
15758 LIBS="-lSM -lICE $LIBS"
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15766 /* Override any GCC internal prototype to avoid an error.
15767 Use char because int might match the return type of a GCC
15768 builtin and then its argument prototype would still apply. */
15772 char SmcOpenConnection ();
15776 return SmcOpenConnection ();
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15788 $as_echo "$ac_try_echo") >&5
15789 (eval "$ac_link") 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15795 (exit $ac_status); } && {
15796 test -z "$ac_c_werror_flag" ||
15797 test ! -s conftest.err
15798 } && test -s conftest$ac_exeext && {
15799 test "$cross_compiling" = yes ||
15800 $as_test_x conftest$ac_exeext
15802 ac_cv_lib_SM_SmcOpenConnection=yes
15804 $as_echo "$as_me: failed program was
:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_cv_lib_SM_SmcOpenConnection=no
15810 rm -rf conftest.dSYM
15811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15812 conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15815 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15816 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15817 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15825 if test "${HAVE_X_SM}" = "yes"; then
15827 cat >>confdefs.h <<\_ACEOF
15828 #define HAVE_X_SM 1
15833 *) LIBS="-lSM -lICE $LIBS" ;;
15838 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15839 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15840 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
15841 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15842 $as_echo_n "(cached
) " >&6
15844 cat >conftest.$ac_ext <<_ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15859 rm -f conftest.$ac_objext conftest$ac_exeext
15860 if { (ac_try="$ac_link"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15865 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15866 $as_echo "$ac_try_echo") >&5
15867 (eval "$ac_link") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest$ac_exeext && {
15877 test "$cross_compiling" = yes ||
15878 $as_test_x conftest$ac_exeext
15880 emacs_cv_netdb_declares_h_errno=yes
15882 $as_echo "$as_me: failed program was
:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 emacs_cv_netdb_declares_h_errno=no
15888 rm -rf conftest.dSYM
15889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15890 conftest$ac_exeext conftest.$ac_ext
15892 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15893 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15894 if test $emacs_cv_netdb_declares_h_errno = yes; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define HAVE_H_ERRNO 1
15902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15903 # for constant arguments. Useless!
15904 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15905 $as_echo_n "checking
for working alloca.h...
" >&6; }
15906 if test "${ac_cv_working_alloca_h+set}" = set; then
15907 $as_echo_n "(cached
) " >&6
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <alloca.h>
15919 char *p = (char *) alloca (2 * sizeof (int));
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (ac_try="$ac_link"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15932 $as_echo "$ac_try_echo") >&5
15933 (eval "$ac_link") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest$ac_exeext && {
15943 test "$cross_compiling" = yes ||
15944 $as_test_x conftest$ac_exeext
15946 ac_cv_working_alloca_h=yes
15948 $as_echo "$as_me: failed program was
:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 ac_cv_working_alloca_h=no
15954 rm -rf conftest.dSYM
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 conftest$ac_exeext conftest.$ac_ext
15958 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15959 $as_echo "$ac_cv_working_alloca_h" >&6; }
15960 if test $ac_cv_working_alloca_h = yes; then
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE_ALLOCA_H 1
15968 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
15969 $as_echo_n "checking
for alloca...
" >&6; }
15970 if test "${ac_cv_func_alloca_works+set}" = set; then
15971 $as_echo_n "(cached
) " >&6
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15980 # define alloca __builtin_alloca
15983 # include <malloc.h>
15984 # define alloca _alloca
15986 # ifdef HAVE_ALLOCA_H
15987 # include <alloca.h>
15992 # ifndef alloca /* predefined by HP cc +Olibcalls */
16003 char *p = (char *) alloca (1);
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (ac_try="$ac_link"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16016 $as_echo "$ac_try_echo") >&5
16017 (eval "$ac_link") 2>conftest.er1
16019 grep -v '^ *+' conftest.er1 >conftest.err
16021 cat conftest.err >&5
16022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16023 (exit $ac_status); } && {
16024 test -z "$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16026 } && test -s conftest$ac_exeext && {
16027 test "$cross_compiling" = yes ||
16028 $as_test_x conftest$ac_exeext
16030 ac_cv_func_alloca_works=yes
16032 $as_echo "$as_me: failed program was
:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_cv_func_alloca_works=no
16038 rm -rf conftest.dSYM
16039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16040 conftest$ac_exeext conftest.$ac_ext
16042 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
16043 $as_echo "$ac_cv_func_alloca_works" >&6; }
16045 if test $ac_cv_func_alloca_works = yes; then
16047 cat >>confdefs.h <<\_ACEOF
16048 #define HAVE_ALLOCA 1
16052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16053 # that cause trouble. Some versions do not even contain alloca or
16054 # contain a buggy version. If you still want to use their alloca,
16055 # use ar to extract alloca.o from them instead of compiling alloca.c.
16057 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16059 cat >>confdefs.h <<\_ACEOF
16064 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
16065 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
16066 if test "${ac_cv_os_cray+set}" = set; then
16067 $as_echo_n "(cached) " >&6
16069 cat >conftest.$ac_ext <<_ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #if defined CRAY && ! defined CRAY2
16082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16083 $EGREP "webecray" >/dev/null 2>&1; then
16091 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16092 $as_echo "$ac_cv_os_cray" >&6; }
16093 if test $ac_cv_os_cray = yes; then
16094 for ac_func in _getb67 GETB67 getb67; do
16095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16097 $as_echo_n "checking for $ac_func... " >&6; }
16098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16099 $as_echo_n "(cached) " >&6
16101 cat >conftest.$ac_ext <<_ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16109 #define $ac_func innocuous_$ac_func
16111 /* System header to define __stub macros and hopefully few prototypes,
16112 which can conflict with char $ac_func (); below.
16113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16114 <limits.h> exists even on freestanding compilers. */
16117 # include <limits.h>
16119 # include <assert.h>
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16131 /* The GNU C library defines this for functions which it implements
16132 to always fail with ENOSYS. Some functions are actually named
16133 something starting with __ and the normal name is an alias. */
16134 #if defined __stub_$ac_func || defined __stub___$ac_func
16141 return $ac_func ();
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (ac_try="$ac_link"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153 $as_echo "$ac_try_echo") >&5
16154 (eval "$ac_link") 2>conftest.er1
16156 grep -v '^
*+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && {
16161 test -z "$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 } && test -s conftest$ac_exeext && {
16164 test "$cross_compiling" = yes ||
16165 $as_test_x conftest$ac_exeext
16167 eval "$as_ac_var=yes"
16169 $as_echo "$as_me: failed program was:" >&5
16170 sed 's
/^
/|
/' conftest.$ac_ext >&5
16172 eval "$as_ac_var=no"
16175 rm -rf conftest.dSYM
16176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16177 conftest$ac_exeext conftest.$ac_ext
16179 ac_res=`eval 'as_val
=${'$as_ac_var'}
16180 $as_echo "$as_val"'`
16181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16182 $as_echo "$ac_res" >&6; }
16183 if test `eval 'as_val
=${'$as_ac_var'}
16184 $as_echo "$as_val"'` = yes; then
16186 cat >>confdefs.h <<_ACEOF
16187 #define CRAY_STACKSEG_END $ac_func
16196 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16197 $as_echo_n "checking stack direction for C alloca... " >&6; }
16198 if test "${ac_cv_c_stack_direction+set}" = set; then
16199 $as_echo_n "(cached) " >&6
16201 if test "$cross_compiling" = yes; then
16202 ac_cv_c_stack_direction=0
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 $ac_includes_default
16212 find_stack_direction ()
16214 static char *addr = 0;
16219 return find_stack_direction ();
16222 return (&dummy > addr) ? 1 : -1;
16228 return find_stack_direction () < 0;
16231 rm -f conftest$ac_exeext
16232 if { (ac_try="$ac_link"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16238 $as_echo "$ac_try_echo") >&5
16239 (eval "$ac_link") 2>&5
16241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16248 $as_echo "$ac_try_echo") >&5
16249 (eval "$ac_try") 2>&5
16251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_cv_c_stack_direction=1
16255 $as_echo "$as_me: program exited with status $ac_status" >&5
16256 $as_echo "$as_me: failed program was:" >&5
16257 sed 's
/^
/|
/' conftest.$ac_ext >&5
16259 ( exit $ac_status )
16260 ac_cv_c_stack_direction=-1
16262 rm -rf conftest.dSYM
16263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16268 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16269 $as_echo "$ac_cv_c_stack_direction" >&6; }
16271 cat >>confdefs.h <<_ACEOF
16272 #define STACK_DIRECTION $ac_cv_c_stack_direction
16279 if test x"$ac_cv_func_alloca_works" != xyes; then
16280 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16281 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16282 { (exit 1); exit 1; }; }
16285 # fmod, logb, and frexp are found in -lm on most systems.
16286 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16288 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16289 $as_echo_n "checking for sqrt in -lm... " >&6; }
16290 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16291 $as_echo_n "(cached) " >&6
16293 ac_check_lib_save_LIBS=$LIBS
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16302 /* Override any GCC internal prototype to avoid an error.
16303 Use char because int might match the return type of a GCC
16304 builtin and then its argument prototype would still apply. */
16317 rm -f conftest.$ac_objext conftest$ac_exeext
16318 if { (ac_try="$ac_link"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16324 $as_echo "$ac_try_echo") >&5
16325 (eval "$ac_link") 2>conftest.er1
16327 grep -v '^
*+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } && {
16332 test -z "$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 } && test -s conftest$ac_exeext && {
16335 test "$cross_compiling" = yes ||
16336 $as_test_x conftest$ac_exeext
16338 ac_cv_lib_m_sqrt=yes
16340 $as_echo "$as_me: failed program was:" >&5
16341 sed 's
/^
/|
/' conftest.$ac_ext >&5
16343 ac_cv_lib_m_sqrt=no
16346 rm -rf conftest.dSYM
16347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348 conftest$ac_exeext conftest.$ac_ext
16349 LIBS=$ac_check_lib_save_LIBS
16351 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16352 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16353 if test $ac_cv_lib_m_sqrt = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_LIBM 1
16363 # Check for mail-locking functions in a "mail" library. Probably this should
16364 # have the same check as for liblockfile below.
16366 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16367 $as_echo_n "checking for maillock in -lmail... " >&6; }
16368 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16369 $as_echo_n "(cached) " >&6
16371 ac_check_lib_save_LIBS=$LIBS
16372 LIBS="-lmail $LIBS"
16373 cat >conftest.$ac_ext <<_ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16380 /* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
16390 return maillock ();
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16402 $as_echo "$ac_try_echo") >&5
16403 (eval "$ac_link") 2>conftest.er1
16405 grep -v '^
*+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest$ac_exeext && {
16413 test "$cross_compiling" = yes ||
16414 $as_test_x conftest$ac_exeext
16416 ac_cv_lib_mail_maillock=yes
16418 $as_echo "$as_me: failed program was:" >&5
16419 sed 's
/^
/|
/' conftest.$ac_ext >&5
16421 ac_cv_lib_mail_maillock=no
16424 rm -rf conftest.dSYM
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS
16429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16430 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16431 if test $ac_cv_lib_mail_maillock = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define HAVE_LIBMAIL 1
16436 LIBS="-lmail $LIBS"
16441 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16442 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16443 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16444 $as_echo_n "(cached) " >&6
16446 ac_check_lib_save_LIBS=$LIBS
16447 LIBS="-llockfile $LIBS"
16448 cat >conftest.$ac_ext <<_ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16465 return maillock ();
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_link") 2>conftest.er1
16480 grep -v '^
*+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest$ac_exeext && {
16488 test "$cross_compiling" = yes ||
16489 $as_test_x conftest$ac_exeext
16491 ac_cv_lib_lockfile_maillock=yes
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's
/^
/|
/' conftest.$ac_ext >&5
16496 ac_cv_lib_lockfile_maillock=no
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16502 LIBS=$ac_check_lib_save_LIBS
16504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16505 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16506 if test $ac_cv_lib_lockfile_maillock = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_LIBLOCKFILE 1
16511 LIBS="-llockfile $LIBS"
16515 # If we have the shared liblockfile, assume we must use it for mail
16516 # locking (e.g. Debian). If we couldn't link against liblockfile
16517 # (no liblockfile.a installed), ensure that we don't need to.
16518 if test "$ac_cv_lib_lockfile_maillock" = no
; then
16519 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16520 set dummy liblockfile.so
; ac_word
=$2
16521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16522 $as_echo_n "checking for $ac_word... " >&6; }
16523 if test "${ac_cv_prog_liblockfile+set}" = set; then
16524 $as_echo_n "(cached) " >&6
16526 if test -n "$liblockfile"; then
16527 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
16529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16530 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16531 for as_dir
in $as_dummy
16534 test -z "$as_dir" && as_dir
=.
16535 for ac_exec_ext
in '' $ac_executable_extensions; do
16536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16537 ac_cv_prog_liblockfile
="yes"
16538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16545 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16548 liblockfile
=$ac_cv_prog_liblockfile
16549 if test -n "$liblockfile"; then
16550 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16551 $as_echo "$liblockfile" >&6; }
16553 { $as_echo "$as_me:$LINENO: result: no" >&5
16554 $as_echo "no" >&6; }
16558 if test $ac_cv_prog_liblockfile = yes; then
16559 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16560 This probably means that movemail could lose mail.
16561 There may be a \`development' package to install containing liblockfile." >&5
16562 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16563 This probably means that movemail could lose mail.
16564 There may be a \`development' package to install containing liblockfile." >&2;}
16565 { (exit 1); exit 1; }; }
16570 for ac_func
in touchlock
16572 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16573 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16574 $as_echo_n "checking for $ac_func... " >&6; }
16575 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16576 $as_echo_n "(cached) " >&6
16578 cat >conftest.
$ac_ext <<_ACEOF
16581 cat confdefs.h
>>conftest.
$ac_ext
16582 cat >>conftest.
$ac_ext <<_ACEOF
16583 /* end confdefs.h. */
16584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16586 #define $ac_func innocuous_$ac_func
16588 /* System header to define __stub macros and hopefully few prototypes,
16589 which can conflict with char $ac_func (); below.
16590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16591 <limits.h> exists even on freestanding compilers. */
16594 # include <limits.h>
16596 # include <assert.h>
16601 /* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
16608 /* The GNU C library defines this for functions which it implements
16609 to always fail with ENOSYS. Some functions are actually named
16610 something starting with __ and the normal name is an alias. */
16611 #if defined __stub_$ac_func || defined __stub___$ac_func
16618 return $ac_func ();
16623 rm -f conftest.
$ac_objext conftest
$ac_exeext
16624 if { (ac_try
="$ac_link"
16625 case "(($ac_try" in
16626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16630 $as_echo "$ac_try_echo") >&5
16631 (eval "$ac_link") 2>conftest.er1
16633 grep -v '^ *+' conftest.er1 >conftest.err
16635 cat conftest.err >&5
16636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } && {
16638 test -z "$ac_c_werror_flag" ||
16639 test ! -s conftest.err
16640 } && test -s conftest$ac_exeext && {
16641 test "$cross_compiling" = yes ||
16642 $as_test_x conftest$ac_exeext
16644 eval "$as_ac_var=yes"
16646 $as_echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 eval "$as_ac_var=no"
16652 rm -rf conftest.dSYM
16653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16654 conftest$ac_exeext conftest.$ac_ext
16656 ac_res=`eval 'as_val=${'$as_ac_var'}
16657 $as_echo "$as_val"'`
16658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16659 $as_echo "$ac_res" >&6; }
16660 if test `eval 'as_val=${'$as_ac_var'}
16661 $as_echo "$as_val"'` = yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16670 for ac_header in maillock.h
16672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16675 $as_echo_n "checking for $ac_header... " >&6; }
16676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677 $as_echo_n "(cached) " >&6
16679 ac_res=`eval 'as_val=${'$as_ac_Header'}
16680 $as_echo "$as_val"'`
16681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16682 $as_echo "$ac_res" >&6; }
16684 # Is the header compilable?
16685 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16686 $as_echo_n "checking $ac_header usability... " >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 $ac_includes_default
16694 #include <$ac_header>
16696 rm -f conftest.$ac_objext
16697 if { (ac_try="$ac_compile"
16698 case "(($ac_try" in
16699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16700 *) ac_try_echo
=$ac_try;;
16702 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16703 $as_echo "$ac_try_echo") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16706 grep -v '^ *+' conftest.er1
>conftest.err
16708 cat conftest.err
>&5
16709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.
$ac_objext; then
16714 ac_header_compiler
=yes
16716 $as_echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.
$ac_ext >&5
16719 ac_header_compiler
=no
16722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16723 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16724 $as_echo "$ac_header_compiler" >&6; }
16726 # Is the header present?
16727 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16728 $as_echo_n "checking $ac_header presence... " >&6; }
16729 cat >conftest.
$ac_ext <<_ACEOF
16732 cat confdefs.h
>>conftest.
$ac_ext
16733 cat >>conftest.
$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 #include <$ac_header>
16737 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16738 case "(($ac_try" in
16739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16743 $as_echo "$ac_try_echo") >&5
16744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } >/dev/null && {
16751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16754 ac_header_preproc=yes
16756 $as_echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_header_preproc=no
16762 rm -f conftest.err conftest.$ac_ext
16763 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16764 $as_echo "$ac_header_preproc" >&6; }
16766 # So? What about this header?
16767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16770 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16773 ac_header_preproc=yes
16776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16777 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16779 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16781 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16783 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16785 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16787 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16792 $as_echo_n "checking for $ac_header... " >&6; }
16793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16794 $as_echo_n "(cached) " >&6
16796 eval "$as_ac_Header=\$ac_header_preproc"
16798 ac_res=`eval 'as_val=${'$as_ac_Header'}
16799 $as_echo "$as_val"'`
16800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16801 $as_echo "$ac_res" >&6; }
16804 if test `eval 'as_val=${'$as_ac_Header'}
16805 $as_echo "$as_val"'` = yes; then
16806 cat >>confdefs.h <<_ACEOF
16807 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16886 for ac_func in gethostname getdomainname dup2 \
16887 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16888 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16889 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16890 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16891 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16892 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16893 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16894 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16895 cfmakeraw cfsetspeed
16897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 $as_echo_n "checking for $ac_func... " >&6; }
16900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16901 $as_echo_n "(cached) " >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16919 # include <limits.h>
16921 # include <assert.h>
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16933 /* The GNU C library defines this for functions which it implements
16934 to always fail with ENOSYS. Some functions are actually named
16935 something starting with __ and the normal name is an alias. */
16936 #if defined __stub_$ac_func || defined __stub___$ac_func
16943 return $ac_func ();
16948 rm -f conftest.$ac_objext conftest$ac_exeext
16949 if { (ac_try="$ac_link"
16950 case "(($ac_try" in
16951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16952 *) ac_try_echo
=$ac_try;;
16954 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16955 $as_echo "$ac_try_echo") >&5
16956 (eval "$ac_link") 2>conftest.er1
16958 grep -v '^ *+' conftest.er1
>conftest.err
16960 cat conftest.err
>&5
16961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && {
16963 test -z "$ac_c_werror_flag" ||
16964 test ! -s conftest.err
16965 } && test -s conftest
$ac_exeext && {
16966 test "$cross_compiling" = yes ||
16967 $as_test_x conftest
$ac_exeext
16969 eval "$as_ac_var=yes"
16971 $as_echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.
$ac_ext >&5
16974 eval "$as_ac_var=no"
16977 rm -rf conftest.dSYM
16978 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16979 conftest
$ac_exeext conftest.
$ac_ext
16981 ac_res
=`eval 'as_val=${'$as_ac_var'}
16982 $as_echo "$as_val"'`
16983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16984 $as_echo "$ac_res" >&6; }
16985 if test `eval 'as_val=${'$as_ac_var'}
16986 $as_echo "$as_val"'` = yes; then
16987 cat >>confdefs.h
<<_ACEOF
16988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16996 for ac_header
in sys
/un.h
16998 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16999 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17001 $as_echo_n "checking for $ac_header... " >&6; }
17002 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 $as_echo_n "(cached) " >&6
17005 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17006 $as_echo "$as_val"'`
17007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17008 $as_echo "$ac_res" >&6; }
17010 # Is the header compilable?
17011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17012 $as_echo_n "checking $ac_header usability... " >&6; }
17013 cat >conftest.
$ac_ext <<_ACEOF
17016 cat confdefs.h
>>conftest.
$ac_ext
17017 cat >>conftest.
$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <$ac_header>
17022 rm -f conftest.
$ac_objext
17023 if { (ac_try
="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17029 $as_echo "$ac_try_echo") >&5
17030 (eval "$ac_compile") 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } && {
17037 test -z "$ac_c_werror_flag" ||
17038 test ! -s conftest.err
17039 } && test -s conftest.$ac_objext; then
17040 ac_header_compiler=yes
17042 $as_echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_header_compiler=no
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050 $as_echo "$ac_header_compiler" >&6; }
17052 # Is the header present?
17053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054 $as_echo_n "checking $ac_header presence... " >&6; }
17055 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <$ac_header>
17063 if { (ac_try="$ac_cpp conftest.$ac_ext"
17064 case "(($ac_try" in
17065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17066 *) ac_try_echo
=$ac_try;;
17068 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17069 $as_echo "$ac_try_echo") >&5
17070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1
>conftest.err
17074 cat conftest.err
>&5
17075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } >/dev
/null
&& {
17077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17080 ac_header_preproc
=yes
17082 $as_echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.
$ac_ext >&5
17085 ac_header_preproc
=no
17088 rm -f conftest.err conftest.
$ac_ext
17089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 $as_echo "$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc
=yes
17102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17118 $as_echo_n "checking for $ac_header... " >&6; }
17119 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17120 $as_echo_n "(cached) " >&6
17122 eval "$as_ac_Header=\$ac_header_preproc"
17124 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17125 $as_echo "$as_val"'`
17126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17127 $as_echo "$ac_res" >&6; }
17130 if test `eval 'as_val=${'$as_ac_Header'}
17131 $as_echo "$as_val"'` = yes; then
17132 cat >>confdefs.h
<<_ACEOF
17133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17145 for ac_header
in $ac_header_list
17147 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17148 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17150 $as_echo_n "checking for $ac_header... " >&6; }
17151 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17152 $as_echo_n "(cached) " >&6
17154 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17155 $as_echo "$as_val"'`
17156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17157 $as_echo "$ac_res" >&6; }
17159 # Is the header compilable?
17160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17161 $as_echo_n "checking $ac_header usability... " >&6; }
17162 cat >conftest.
$ac_ext <<_ACEOF
17165 cat confdefs.h
>>conftest.
$ac_ext
17166 cat >>conftest.
$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 $ac_includes_default
17169 #include <$ac_header>
17171 rm -f conftest.
$ac_objext
17172 if { (ac_try
="$ac_compile"
17173 case "(($ac_try" in
17174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17178 $as_echo "$ac_try_echo") >&5
17179 (eval "$ac_compile") 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && {
17186 test -z "$ac_c_werror_flag" ||
17187 test ! -s conftest.err
17188 } && test -s conftest.$ac_objext; then
17189 ac_header_compiler=yes
17191 $as_echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 ac_header_compiler=no
17197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17199 $as_echo "$ac_header_compiler" >&6; }
17201 # Is the header present?
17202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17203 $as_echo_n "checking $ac_header presence... " >&6; }
17204 cat >conftest.$ac_ext <<_ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 #include <$ac_header>
17212 if { (ac_try="$ac_cpp conftest.$ac_ext"
17213 case "(($ac_try" in
17214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17215 *) ac_try_echo
=$ac_try;;
17217 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17218 $as_echo "$ac_try_echo") >&5
17219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17221 grep -v '^ *+' conftest.er1
>conftest.err
17223 cat conftest.err
>&5
17224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } >/dev
/null
&& {
17226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17227 test ! -s conftest.err
17229 ac_header_preproc
=yes
17231 $as_echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.
$ac_ext >&5
17234 ac_header_preproc
=no
17237 rm -f conftest.err conftest.
$ac_ext
17238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17239 $as_echo "$ac_header_preproc" >&6; }
17241 # So? What about this header?
17242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17248 ac_header_preproc
=yes
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17267 $as_echo_n "checking for $ac_header... " >&6; }
17268 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17269 $as_echo_n "(cached) " >&6
17271 eval "$as_ac_Header=\$ac_header_preproc"
17273 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17274 $as_echo "$as_val"'`
17275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17276 $as_echo "$ac_res" >&6; }
17279 if test `eval 'as_val=${'$as_ac_Header'}
17280 $as_echo "$as_val"'` = yes; then
17281 cat >>confdefs.h
<<_ACEOF
17282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17297 for ac_func
in $ac_func_list
17299 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 $as_echo_n "checking for $ac_func... " >&6; }
17302 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303 $as_echo_n "(cached) " >&6
17305 cat >conftest.
$ac_ext <<_ACEOF
17308 cat confdefs.h
>>conftest.
$ac_ext
17309 cat >>conftest.
$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17313 #define $ac_func innocuous_$ac_func
17315 /* System header to define __stub macros and hopefully few prototypes,
17316 which can conflict with char $ac_func (); below.
17317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318 <limits.h> exists even on freestanding compilers. */
17321 # include <limits.h>
17323 # include <assert.h>
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17335 /* The GNU C library defines this for functions which it implements
17336 to always fail with ENOSYS. Some functions are actually named
17337 something starting with __ and the normal name is an alias. */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17345 return $ac_func ();
17350 rm -f conftest.
$ac_objext conftest
$ac_exeext
17351 if { (ac_try
="$ac_link"
17352 case "(($ac_try" in
17353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17357 $as_echo "$ac_try_echo") >&5
17358 (eval "$ac_link") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest$ac_exeext && {
17368 test "$cross_compiling" = yes ||
17369 $as_test_x conftest$ac_exeext
17371 eval "$as_ac_var=yes"
17373 $as_echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 eval "$as_ac_var=no"
17379 rm -rf conftest.dSYM
17380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17381 conftest$ac_exeext conftest.$ac_ext
17383 ac_res=`eval 'as_val=${'$as_ac_var'}
17384 $as_echo "$as_val"'`
17385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17386 $as_echo "$ac_res" >&6; }
17387 if test `eval 'as_val=${'$as_ac_var'}
17388 $as_echo "$as_val"'` = yes; then
17389 cat >>confdefs.h <<_ACEOF
17390 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17412 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17413 $as_echo_n "checking for working mktime... " >&6; }
17414 if test "${ac_cv_func_working_mktime+set}" = set; then
17415 $as_echo_n "(cached) " >&6
17417 if test "$cross_compiling" = yes; then
17418 ac_cv_func_working_mktime=no
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Test program from Paul Eggert and Tony Leneis. */
17427 #ifdef TIME_WITH_SYS_TIME
17428 # include <sys/time.h>
17431 # ifdef HAVE_SYS_TIME_H
17432 # include <sys/time.h>
17438 #include <limits.h>
17439 #include <stdlib.h>
17441 #ifdef HAVE_UNISTD_H
17442 # include <unistd.h>
17446 # define alarm(X) /* empty */
17449 /* Work around redefinition to rpl_putenv by other config tests. */
17452 static time_t time_t_max;
17453 static time_t time_t_min;
17455 /* Values we'll use to set the TZ environment variable. */
17456 static char *tz_strings[] = {
17457 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17458 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17460 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17462 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17463 Based on a problem report from Andreas Jaeger. */
17465 spring_forward_gap ()
17467 /* glibc (up to about 1998-10-07) failed this test. */
17470 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17471 instead of "TZ=America/Vancouver" in order to detect the bug even
17472 on systems that don't support the Olson extension, or don't have the
17473 full zoneinfo tables installed. */
17474 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17483 return mktime (&tm) != (time_t) -1;
17491 return ! (lt = localtime (&now)) || mktime (lt) == now;
17498 return (mktime_test1 (now)
17499 && mktime_test1 ((time_t) (time_t_max - now))
17500 && mktime_test1 ((time_t) (time_t_min + now)));
17506 /* Based on code from Ariel Faigon. */
17516 return tm.tm_mon == 2 && tm.tm_mday == 31;
17525 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17526 now = mktime (&tm);
17527 if (now != (time_t) -1)
17529 struct tm *lt = localtime (&now);
17531 && lt->tm_year == tm.tm_year
17532 && lt->tm_mon == tm.tm_mon
17533 && lt->tm_mday == tm.tm_mday
17534 && lt->tm_hour == tm.tm_hour
17535 && lt->tm_min == tm.tm_min
17536 && lt->tm_sec == tm.tm_sec
17537 && lt->tm_yday == tm.tm_yday
17538 && lt->tm_wday == tm.tm_wday
17539 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17540 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17549 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17550 ignoring leap seconds. */
17551 unsigned long int answer = 2527315200UL;
17555 tm.tm_year = 2050 - 1900;
17558 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17561 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17562 instead of "TZ=America/Vancouver" in order to detect the bug even
17563 on systems that don't support the Olson extension, or don't have the
17564 full zoneinfo tables installed. */
17565 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17569 /* Check that the result is either a failure, or close enough
17570 to the correct answer that we can assume the discrepancy is
17571 due to leap seconds. */
17572 return (t == (time_t) -1
17573 || (0 < t && answer - 120 <= t && t <= answer + 120));
17582 /* This test makes some buggy mktime implementations loop.
17583 Give up after 60 seconds; a mktime slower than that
17584 isn't worth using anyway. */
17589 t = (time_t_max << 1) + 1;
17590 if (t <= time_t_max)
17594 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17596 delta = time_t_max / 997; /* a suitable prime number */
17597 for (i = 0; i < N_STRINGS; i++)
17600 putenv (tz_strings[i]);
17602 for (t = 0; t <= time_t_max - delta; t += delta)
17603 if (! mktime_test (t))
17605 if (! (mktime_test ((time_t) 1)
17606 && mktime_test ((time_t) (60 * 60))
17607 && mktime_test ((time_t) (60 * 60 * 24))))
17610 for (j = 1; ; j <<= 1)
17611 if (! bigtime_test (j))
17613 else if (INT_MAX / 2 < j)
17615 if (! bigtime_test (INT_MAX))
17618 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17621 rm -f conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17625 *) ac_try_echo
=$ac_try;;
17627 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17628 $as_echo "$ac_try_echo") >&5
17629 (eval "$ac_link") 2>&5
17631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17633 { (case "(($ac_try" in
17634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17638 $as_echo "$ac_try_echo") >&5
17639 (eval "$ac_try") 2>&5
17641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 ac_cv_func_working_mktime=yes
17645 $as_echo "$as_me: program exited with status $ac_status" >&5
17646 $as_echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ( exit $ac_status )
17650 ac_cv_func_working_mktime=no
17652 rm -rf conftest.dSYM
17653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17658 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17659 $as_echo "$ac_cv_func_working_mktime" >&6; }
17660 if test $ac_cv_func_working_mktime = no; then
17661 case " $LIBOBJS " in
17662 *" mktime.$ac_objext "* ) ;;
17663 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17669 if test "$ac_cv_func_working_mktime" = no; then
17671 cat >>confdefs.h <<\_ACEOF
17672 #define BROKEN_MKTIME 1
17677 ac_have_func=no # yes means we've found a way to get the load average.
17679 # Make sure getloadavg.c is where it belongs, at configure-time.
17680 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17681 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17682 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17683 { (exit 1); exit 1; }; }
17687 # Check for getloadavg, but be sure not to touch the cache variable.
17688 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17689 $as_echo_n "checking for getloadavg... " >&6; }
17690 if test "${ac_cv_func_getloadavg+set}" = set; then
17691 $as_echo_n "(cached) " >&6
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17699 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17701 #define getloadavg innocuous_getloadavg
17703 /* System header to define __stub macros and hopefully few prototypes,
17704 which can conflict with char getloadavg (); below.
17705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706 <limits.h> exists even on freestanding compilers. */
17709 # include <limits.h>
17711 # include <assert.h>
17716 /* Override any GCC internal prototype to avoid an error.
17717 Use char because int might match the return type of a GCC
17718 builtin and then its argument prototype would still apply. */
17722 char getloadavg ();
17723 /* The GNU C library defines this for functions which it implements
17724 to always fail with ENOSYS. Some functions are actually named
17725 something starting with __ and the normal name is an alias. */
17726 #if defined __stub_getloadavg || defined __stub___getloadavg
17733 return getloadavg ();
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17742 *) ac_try_echo
=$ac_try;;
17744 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746 (eval "$ac_link") 2>conftest.er1
17748 grep -v '^ *+' conftest.er1
>conftest.err
17750 cat conftest.err
>&5
17751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest
$ac_exeext && {
17756 test "$cross_compiling" = yes ||
17757 $as_test_x conftest
$ac_exeext
17759 ac_cv_func_getloadavg
=yes
17761 $as_echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.
$ac_ext >&5
17764 ac_cv_func_getloadavg
=no
17767 rm -rf conftest.dSYM
17768 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17769 conftest
$ac_exeext conftest.
$ac_ext
17771 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17772 $as_echo "$ac_cv_func_getloadavg" >&6; }
17773 if test $ac_cv_func_getloadavg = yes; then
17778 ) && ac_have_func
=yes
17780 # On HPUX9, an unprivileged user can get load averages through this function.
17782 for ac_func
in pstat_getdynamic
17784 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17786 $as_echo_n "checking for $ac_func... " >&6; }
17787 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17788 $as_echo_n "(cached) " >&6
17790 cat >conftest.
$ac_ext <<_ACEOF
17793 cat confdefs.h
>>conftest.
$ac_ext
17794 cat >>conftest.
$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798 #define $ac_func innocuous_$ac_func
17800 /* System header to define __stub macros and hopefully few prototypes,
17801 which can conflict with char $ac_func (); below.
17802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803 <limits.h> exists even on freestanding compilers. */
17806 # include <limits.h>
17808 # include <assert.h>
17813 /* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
17820 /* The GNU C library defines this for functions which it implements
17821 to always fail with ENOSYS. Some functions are actually named
17822 something starting with __ and the normal name is an alias. */
17823 #if defined __stub_$ac_func || defined __stub___$ac_func
17830 return $ac_func ();
17835 rm -f conftest.
$ac_objext conftest
$ac_exeext
17836 if { (ac_try
="$ac_link"
17837 case "(($ac_try" in
17838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842 $as_echo "$ac_try_echo") >&5
17843 (eval "$ac_link") 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest$ac_exeext && {
17853 test "$cross_compiling" = yes ||
17854 $as_test_x conftest$ac_exeext
17856 eval "$as_ac_var=yes"
17858 $as_echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 eval "$as_ac_var=no"
17864 rm -rf conftest.dSYM
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17868 ac_res=`eval 'as_val=${'$as_ac_var'}
17869 $as_echo "$as_val"'`
17870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17871 $as_echo "$ac_res" >&6; }
17872 if test `eval 'as_val=${'$as_ac_var'}
17873 $as_echo "$as_val"'` = yes; then
17874 cat >>confdefs.h <<_ACEOF
17875 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17882 # Solaris has libkstat which does not require root.
17884 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17885 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17886 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17887 $as_echo_n "(cached) " >&6
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-lkstat $LIBS"
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17904 char kstat_open ();
17908 return kstat_open ();
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17917 *) ac_try_echo
=$ac_try;;
17919 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17920 $as_echo "$ac_try_echo") >&5
17921 (eval "$ac_link") 2>conftest.er1
17923 grep -v '^ *+' conftest.er1
>conftest.err
17925 cat conftest.err
>&5
17926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } && {
17928 test -z "$ac_c_werror_flag" ||
17929 test ! -s conftest.err
17930 } && test -s conftest
$ac_exeext && {
17931 test "$cross_compiling" = yes ||
17932 $as_test_x conftest
$ac_exeext
17934 ac_cv_lib_kstat_kstat_open
=yes
17936 $as_echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.
$ac_ext >&5
17939 ac_cv_lib_kstat_kstat_open
=no
17942 rm -rf conftest.dSYM
17943 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17944 conftest
$ac_exeext conftest.
$ac_ext
17945 LIBS
=$ac_check_lib_save_LIBS
17947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17948 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17949 if test $ac_cv_lib_kstat_kstat_open = yes; then
17950 cat >>confdefs.h
<<_ACEOF
17951 #define HAVE_LIBKSTAT 1
17954 LIBS
="-lkstat $LIBS"
17958 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17960 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17961 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17962 # to get the right answer into the cache.
17963 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17964 if test $ac_have_func = no
; then
17965 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17966 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17967 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17968 $as_echo_n "(cached) " >&6
17970 ac_check_lib_save_LIBS
=$LIBS
17972 cat >conftest.
$ac_ext <<_ACEOF
17975 cat confdefs.h
>>conftest.
$ac_ext
17976 cat >>conftest.
$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17979 /* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17989 return elf_begin ();
17994 rm -f conftest.
$ac_objext conftest
$ac_exeext
17995 if { (ac_try
="$ac_link"
17996 case "(($ac_try" in
17997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18001 $as_echo "$ac_try_echo") >&5
18002 (eval "$ac_link") 2>conftest.er1
18004 grep -v '^ *+' conftest.er1 >conftest.err
18006 cat conftest.err >&5
18007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest$ac_exeext && {
18012 test "$cross_compiling" = yes ||
18013 $as_test_x conftest$ac_exeext
18015 ac_cv_lib_elf_elf_begin=yes
18017 $as_echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 ac_cv_lib_elf_elf_begin=no
18023 rm -rf conftest.dSYM
18024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18025 conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18028 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18029 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18030 if test $ac_cv_lib_elf_elf_begin = yes; then
18035 if test $ac_have_func = no; then
18036 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18037 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18038 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18039 $as_echo_n "(cached) " >&6
18041 ac_check_lib_save_LIBS=$LIBS
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18050 /* Override any GCC internal prototype to avoid an error.
18051 Use char because int might match the return type of a GCC
18052 builtin and then its argument prototype would still apply. */
18060 return kvm_open ();
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18069 *) ac_try_echo
=$ac_try;;
18071 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18072 $as_echo "$ac_try_echo") >&5
18073 (eval "$ac_link") 2>conftest.er1
18075 grep -v '^ *+' conftest.er1
>conftest.err
18077 cat conftest.err
>&5
18078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } && {
18080 test -z "$ac_c_werror_flag" ||
18081 test ! -s conftest.err
18082 } && test -s conftest
$ac_exeext && {
18083 test "$cross_compiling" = yes ||
18084 $as_test_x conftest
$ac_exeext
18086 ac_cv_lib_kvm_kvm_open
=yes
18088 $as_echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.
$ac_ext >&5
18091 ac_cv_lib_kvm_kvm_open
=no
18094 rm -rf conftest.dSYM
18095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18096 conftest
$ac_exeext conftest.
$ac_ext
18097 LIBS
=$ac_check_lib_save_LIBS
18099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18100 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18101 if test $ac_cv_lib_kvm_kvm_open = yes; then
18105 # Check for the 4.4BSD definition of getloadavg.
18106 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18107 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18108 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18109 $as_echo_n "(cached) " >&6
18111 ac_check_lib_save_LIBS
=$LIBS
18112 LIBS
="-lutil $LIBS"
18113 cat >conftest.
$ac_ext <<_ACEOF
18116 cat confdefs.h
>>conftest.
$ac_ext
18117 cat >>conftest.
$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18120 /* Override any GCC internal prototype to avoid an error.
18121 Use char because int might match the return type of a GCC
18122 builtin and then its argument prototype would still apply. */
18126 char getloadavg ();
18130 return getloadavg ();
18135 rm -f conftest.
$ac_objext conftest
$ac_exeext
18136 if { (ac_try
="$ac_link"
18137 case "(($ac_try" in
18138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18142 $as_echo "$ac_try_echo") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext && {
18153 test "$cross_compiling" = yes ||
18154 $as_test_x conftest$ac_exeext
18156 ac_cv_lib_util_getloadavg=yes
18158 $as_echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_cv_lib_util_getloadavg=no
18164 rm -rf conftest.dSYM
18165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18166 conftest$ac_exeext conftest.$ac_ext
18167 LIBS=$ac_check_lib_save_LIBS
18169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18170 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18171 if test $ac_cv_lib_util_getloadavg = yes; then
18172 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18177 if test $ac_have_func = no; then
18178 # There is a commonly available library for RS/6000 AIX.
18179 # Since it is not a standard part of AIX, it might be installed locally.
18180 ac_getloadavg_LIBS=$LIBS
18181 LIBS="-L/usr/local/lib $LIBS"
18182 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18183 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18184 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18185 $as_echo_n "(cached) " >&6
18187 ac_check_lib_save_LIBS=$LIBS
18188 LIBS="-lgetloadavg $LIBS"
18189 cat >conftest.$ac_ext <<_ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18202 char getloadavg ();
18206 return getloadavg ();
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
18213 case "(($ac_try" in
18214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18215 *) ac_try_echo
=$ac_try;;
18217 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18218 $as_echo "$ac_try_echo") >&5
18219 (eval "$ac_link") 2>conftest.er1
18221 grep -v '^ *+' conftest.er1
>conftest.err
18223 cat conftest.err
>&5
18224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } && {
18226 test -z "$ac_c_werror_flag" ||
18227 test ! -s conftest.err
18228 } && test -s conftest
$ac_exeext && {
18229 test "$cross_compiling" = yes ||
18230 $as_test_x conftest
$ac_exeext
18232 ac_cv_lib_getloadavg_getloadavg
=yes
18234 $as_echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.
$ac_ext >&5
18237 ac_cv_lib_getloadavg_getloadavg
=no
18240 rm -rf conftest.dSYM
18241 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18242 conftest
$ac_exeext conftest.
$ac_ext
18243 LIBS
=$ac_check_lib_save_LIBS
18245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18246 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18247 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18248 LIBS
="-lgetloadavg $LIBS"
18250 LIBS
=$ac_getloadavg_LIBS
18255 # Make sure it is really in the library, if we think we found it,
18256 # otherwise set up the replacement function.
18258 for ac_func
in getloadavg
18260 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18262 $as_echo_n "checking for $ac_func... " >&6; }
18263 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 $as_echo_n "(cached) " >&6
18266 cat >conftest.
$ac_ext <<_ACEOF
18269 cat confdefs.h
>>conftest.
$ac_ext
18270 cat >>conftest.
$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define $ac_func innocuous_$ac_func
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18282 # include <limits.h>
18284 # include <assert.h>
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18296 /* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299 #if defined __stub_$ac_func || defined __stub___$ac_func
18306 return $ac_func ();
18311 rm -f conftest.
$ac_objext conftest
$ac_exeext
18312 if { (ac_try
="$ac_link"
18313 case "(($ac_try" in
18314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18318 $as_echo "$ac_try_echo") >&5
18319 (eval "$ac_link") 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } && {
18326 test -z "$ac_c_werror_flag" ||
18327 test ! -s conftest.err
18328 } && test -s conftest$ac_exeext && {
18329 test "$cross_compiling" = yes ||
18330 $as_test_x conftest$ac_exeext
18332 eval "$as_ac_var=yes"
18334 $as_echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 eval "$as_ac_var=no"
18340 rm -rf conftest.dSYM
18341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18342 conftest$ac_exeext conftest.$ac_ext
18344 ac_res=`eval 'as_val=${'$as_ac_var'}
18345 $as_echo "$as_val"'`
18346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18347 $as_echo "$ac_res" >&6; }
18348 if test `eval 'as_val=${'$as_ac_var'}
18349 $as_echo "$as_val"'` = yes; then
18350 cat >>confdefs.h <<_ACEOF
18351 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18355 case " $LIBOBJS " in
18356 *" getloadavg.$ac_objext "* ) ;;
18357 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18362 cat >>confdefs.h <<\_ACEOF
18363 #define C_GETLOADAVG 1
18366 # Figure out what our getloadavg.c needs.
18368 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18369 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18370 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18371 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18372 $as_echo_n "(cached) " >&6
18374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18375 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18377 # Is the header compilable?
18378 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18379 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18380 cat >conftest.$ac_ext <<_ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 $ac_includes_default
18387 #include <sys/dg_sys_info.h>
18389 rm -f conftest.$ac_objext
18390 if { (ac_try="$ac_compile"
18391 case "(($ac_try" in
18392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18393 *) ac_try_echo
=$ac_try;;
18395 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18396 $as_echo "$ac_try_echo") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18399 grep -v '^ *+' conftest.er1
>conftest.err
18401 cat conftest.err
>&5
18402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } && {
18404 test -z "$ac_c_werror_flag" ||
18405 test ! -s conftest.err
18406 } && test -s conftest.
$ac_objext; then
18407 ac_header_compiler
=yes
18409 $as_echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.
$ac_ext >&5
18412 ac_header_compiler
=no
18415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 $as_echo "$ac_header_compiler" >&6; }
18419 # Is the header present?
18420 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18421 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18422 cat >conftest.
$ac_ext <<_ACEOF
18425 cat confdefs.h
>>conftest.
$ac_ext
18426 cat >>conftest.
$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <sys/dg_sys_info.h>
18430 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18431 case "(($ac_try" in
18432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18436 $as_echo "$ac_try_echo") >&5
18437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18439 grep -v '^ *+' conftest.er1 >conftest.err
18441 cat conftest.err >&5
18442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } >/dev/null && {
18444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18447 ac_header_preproc=yes
18449 $as_echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_header_preproc=no
18455 rm -f conftest.err conftest.$ac_ext
18456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 $as_echo "$ac_header_preproc" >&6; }
18459 # So? What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18462 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18463 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18465 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18466 ac_header_preproc=yes
18469 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18470 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18471 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18472 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18473 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18474 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18475 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18476 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18477 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18478 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18479 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18480 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18484 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18485 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18486 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18487 $as_echo_n "(cached) " >&6
18489 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18491 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18492 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18495 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18498 cat >>confdefs.h <<\_ACEOF
18503 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18504 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18505 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18506 $as_echo_n "(cached) " >&6
18508 ac_check_lib_save_LIBS=$LIBS
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18523 char dg_sys_info ();
18527 return dg_sys_info ();
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (ac_try="$ac_link"
18534 case "(($ac_try" in
18535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18536 *) ac_try_echo
=$ac_try;;
18538 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18539 $as_echo "$ac_try_echo") >&5
18540 (eval "$ac_link") 2>conftest.er1
18542 grep -v '^ *+' conftest.er1
>conftest.err
18544 cat conftest.err
>&5
18545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } && {
18547 test -z "$ac_c_werror_flag" ||
18548 test ! -s conftest.err
18549 } && test -s conftest
$ac_exeext && {
18550 test "$cross_compiling" = yes ||
18551 $as_test_x conftest
$ac_exeext
18553 ac_cv_lib_dgc_dg_sys_info
=yes
18555 $as_echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.
$ac_ext >&5
18558 ac_cv_lib_dgc_dg_sys_info
=no
18561 rm -rf conftest.dSYM
18562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18563 conftest
$ac_exeext conftest.
$ac_ext
18564 LIBS
=$ac_check_lib_save_LIBS
18566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18567 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18568 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18569 cat >>confdefs.h
<<_ACEOF
18570 #define HAVE_LIBDGC 1
18581 if test "${ac_cv_header_locale_h+set}" = set; then
18582 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18583 $as_echo_n "checking for locale.h... " >&6; }
18584 if test "${ac_cv_header_locale_h+set}" = set; then
18585 $as_echo_n "(cached) " >&6
18587 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18588 $as_echo "$ac_cv_header_locale_h" >&6; }
18590 # Is the header compilable?
18591 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18592 $as_echo_n "checking locale.h usability... " >&6; }
18593 cat >conftest.
$ac_ext <<_ACEOF
18596 cat confdefs.h
>>conftest.
$ac_ext
18597 cat >>conftest.
$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 $ac_includes_default
18600 #include <locale.h>
18602 rm -f conftest.
$ac_objext
18603 if { (ac_try
="$ac_compile"
18604 case "(($ac_try" in
18605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18609 $as_echo "$ac_try_echo") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.$ac_objext; then
18620 ac_header_compiler=yes
18622 $as_echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18625 ac_header_compiler=no
18628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18630 $as_echo "$ac_header_compiler" >&6; }
18632 # Is the header present?
18633 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18634 $as_echo_n "checking locale.h presence... " >&6; }
18635 cat >conftest.$ac_ext <<_ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 #include <locale.h>
18643 if { (ac_try="$ac_cpp conftest.$ac_ext"
18644 case "(($ac_try" in
18645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18646 *) ac_try_echo
=$ac_try;;
18648 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18649 $as_echo "$ac_try_echo") >&5
18650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1
>conftest.err
18654 cat conftest.err
>&5
18655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } >/dev
/null
&& {
18657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18660 ac_header_preproc
=yes
18662 $as_echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.
$ac_ext >&5
18665 ac_header_preproc
=no
18668 rm -f conftest.err conftest.
$ac_ext
18669 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18670 $as_echo "$ac_header_preproc" >&6; }
18672 # So? What about this header?
18673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18675 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18676 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18677 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18678 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18679 ac_header_preproc
=yes
18682 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18683 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18684 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18685 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18686 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18687 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18688 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18689 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18690 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18691 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18692 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18693 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18697 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18698 $as_echo_n "checking for locale.h... " >&6; }
18699 if test "${ac_cv_header_locale_h+set}" = set; then
18700 $as_echo_n "(cached) " >&6
18702 ac_cv_header_locale_h
=$ac_header_preproc
18704 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18705 $as_echo "$ac_cv_header_locale_h" >&6; }
18711 for ac_func
in setlocale
18713 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18715 $as_echo_n "checking for $ac_func... " >&6; }
18716 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18717 $as_echo_n "(cached) " >&6
18719 cat >conftest.
$ac_ext <<_ACEOF
18722 cat confdefs.h
>>conftest.
$ac_ext
18723 cat >>conftest.
$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727 #define $ac_func innocuous_$ac_func
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char $ac_func (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18735 # include <limits.h>
18737 # include <assert.h>
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18749 /* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752 #if defined __stub_$ac_func || defined __stub___$ac_func
18759 return $ac_func ();
18764 rm -f conftest.
$ac_objext conftest
$ac_exeext
18765 if { (ac_try
="$ac_link"
18766 case "(($ac_try" in
18767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18771 $as_echo "$ac_try_echo") >&5
18772 (eval "$ac_link") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1 >conftest.err
18776 cat conftest.err >&5
18777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext && {
18782 test "$cross_compiling" = yes ||
18783 $as_test_x conftest$ac_exeext
18785 eval "$as_ac_var=yes"
18787 $as_echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 eval "$as_ac_var=no"
18793 rm -rf conftest.dSYM
18794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18795 conftest$ac_exeext conftest.$ac_ext
18797 ac_res=`eval 'as_val=${'$as_ac_var'}
18798 $as_echo "$as_val"'`
18799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18800 $as_echo "$ac_res" >&6; }
18801 if test `eval 'as_val=${'$as_ac_var'}
18802 $as_echo "$as_val"'` = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18811 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18812 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18813 # Irix 4.0.5F has the header but not the library.
18814 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18817 cat >>confdefs.h <<\_ACEOF
18823 if test $ac_have_func = no; then
18824 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18825 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18826 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18827 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18828 $as_echo_n "(cached) " >&6
18830 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18831 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18833 # Is the header compilable?
18834 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18835 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18842 $ac_includes_default
18843 #include <inq_stats/cpustats.h>
18845 rm -f conftest.$ac_objext
18846 if { (ac_try="$ac_compile"
18847 case "(($ac_try" in
18848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18849 *) ac_try_echo
=$ac_try;;
18851 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18852 $as_echo "$ac_try_echo") >&5
18853 (eval "$ac_compile") 2>conftest.er1
18855 grep -v '^ *+' conftest.er1
>conftest.err
18857 cat conftest.err
>&5
18858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest.
$ac_objext; then
18863 ac_header_compiler
=yes
18865 $as_echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.
$ac_ext >&5
18868 ac_header_compiler
=no
18871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18873 $as_echo "$ac_header_compiler" >&6; }
18875 # Is the header present?
18876 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18877 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18878 cat >conftest.
$ac_ext <<_ACEOF
18881 cat confdefs.h
>>conftest.
$ac_ext
18882 cat >>conftest.
$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 #include <inq_stats/cpustats.h>
18886 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18887 case "(($ac_try" in
18888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18892 $as_echo "$ac_try_echo") >&5
18893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } >/dev/null && {
18900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18903 ac_header_preproc=yes
18905 $as_echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_header_preproc=no
18911 rm -f conftest.err conftest.$ac_ext
18912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18913 $as_echo "$ac_header_preproc" >&6; }
18915 # So? What about this header?
18916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18918 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18919 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18922 ac_header_preproc=yes
18925 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18926 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18927 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18928 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18929 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18930 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18931 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18932 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18933 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18934 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18935 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18936 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18940 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18941 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18942 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18943 $as_echo_n "(cached) " >&6
18945 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18948 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18951 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18954 cat >>confdefs.h <<\_ACEOF
18959 cat >>confdefs.h <<\_ACEOF
18968 if test $ac_have_func = no; then
18969 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18970 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18971 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18972 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18973 $as_echo_n "(cached) " >&6
18975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18976 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18978 # Is the header compilable?
18979 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18980 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18981 cat >conftest.$ac_ext <<_ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 $ac_includes_default
18988 #include <sys/cpustats.h>
18990 rm -f conftest.$ac_objext
18991 if { (ac_try="$ac_compile"
18992 case "(($ac_try" in
18993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18994 *) ac_try_echo
=$ac_try;;
18996 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18997 $as_echo "$ac_try_echo") >&5
18998 (eval "$ac_compile") 2>conftest.er1
19000 grep -v '^ *+' conftest.er1
>conftest.err
19002 cat conftest.err
>&5
19003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } && {
19005 test -z "$ac_c_werror_flag" ||
19006 test ! -s conftest.err
19007 } && test -s conftest.
$ac_objext; then
19008 ac_header_compiler
=yes
19010 $as_echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.
$ac_ext >&5
19013 ac_header_compiler
=no
19016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19018 $as_echo "$ac_header_compiler" >&6; }
19020 # Is the header present?
19021 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19022 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19023 cat >conftest.
$ac_ext <<_ACEOF
19026 cat confdefs.h
>>conftest.
$ac_ext
19027 cat >>conftest.
$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #include <sys/cpustats.h>
19031 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19032 case "(($ac_try" in
19033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19037 $as_echo "$ac_try_echo") >&5
19038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } >/dev/null && {
19045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19048 ac_header_preproc=yes
19050 $as_echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19053 ac_header_preproc=no
19056 rm -f conftest.err conftest.$ac_ext
19057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19058 $as_echo "$ac_header_preproc" >&6; }
19060 # So? What about this header?
19061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19063 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19064 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19066 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19067 ac_header_preproc=yes
19070 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19071 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19072 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19073 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19074 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19075 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19076 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19077 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19078 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19079 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19080 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19081 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19085 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19086 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19087 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19088 $as_echo_n "(cached) " >&6
19090 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19093 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19096 if test $ac_cv_header_sys_cpustats_h = yes; then
19097 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19106 if test $ac_have_func = no; then
19108 for ac_header in mach/mach.h
19110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19113 $as_echo_n "checking for $ac_header... " >&6; }
19114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19115 $as_echo_n "(cached) " >&6
19117 ac_res=`eval 'as_val=${'$as_ac_Header'}
19118 $as_echo "$as_val"'`
19119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19120 $as_echo "$ac_res" >&6; }
19122 # Is the header compilable?
19123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19124 $as_echo_n "checking $ac_header usability... " >&6; }
19125 cat >conftest.$ac_ext <<_ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 $ac_includes_default
19132 #include <$ac_header>
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19138 *) ac_try_echo
=$ac_try;;
19140 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19141 $as_echo "$ac_try_echo") >&5
19142 (eval "$ac_compile") 2>conftest.er1
19144 grep -v '^ *+' conftest.er1
>conftest.err
19146 cat conftest.err
>&5
19147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } && {
19149 test -z "$ac_c_werror_flag" ||
19150 test ! -s conftest.err
19151 } && test -s conftest.
$ac_objext; then
19152 ac_header_compiler
=yes
19154 $as_echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.
$ac_ext >&5
19157 ac_header_compiler
=no
19160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19162 $as_echo "$ac_header_compiler" >&6; }
19164 # Is the header present?
19165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19166 $as_echo_n "checking $ac_header presence... " >&6; }
19167 cat >conftest.
$ac_ext <<_ACEOF
19170 cat confdefs.h
>>conftest.
$ac_ext
19171 cat >>conftest.
$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 #include <$ac_header>
19175 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19176 case "(($ac_try" in
19177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19181 $as_echo "$ac_try_echo") >&5
19182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19184 grep -v '^ *+' conftest.er1 >conftest.err
19186 cat conftest.err >&5
19187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } >/dev/null && {
19189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19190 test ! -s conftest.err
19192 ac_header_preproc=yes
19194 $as_echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_header_preproc=no
19200 rm -f conftest.err conftest.$ac_ext
19201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19202 $as_echo "$ac_header_preproc" >&6; }
19204 # So? What about this header?
19205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19211 ac_header_preproc=yes
19214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19230 $as_echo_n "checking for $ac_header... " >&6; }
19231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19232 $as_echo_n "(cached) " >&6
19234 eval "$as_ac_Header=\$ac_header_preproc"
19236 ac_res=`eval 'as_val=${'$as_ac_Header'}
19237 $as_echo "$as_val"'`
19238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19239 $as_echo "$ac_res" >&6; }
19242 if test `eval 'as_val=${'$as_ac_Header'}
19243 $as_echo "$as_val"'` = yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19255 for ac_header in nlist.h
19257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19260 $as_echo_n "checking for $ac_header... " >&6; }
19261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19262 $as_echo_n "(cached) " >&6
19264 ac_res=`eval 'as_val=${'$as_ac_Header'}
19265 $as_echo "$as_val"'`
19266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19267 $as_echo "$ac_res" >&6; }
19269 # Is the header compilable?
19270 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19271 $as_echo_n "checking $ac_header usability... " >&6; }
19272 cat >conftest.$ac_ext <<_ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19278 $ac_includes_default
19279 #include <$ac_header>
19281 rm -f conftest.$ac_objext
19282 if { (ac_try="$ac_compile"
19283 case "(($ac_try" in
19284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19285 *) ac_try_echo
=$ac_try;;
19287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19288 $as_echo "$ac_try_echo") >&5
19289 (eval "$ac_compile") 2>conftest.er1
19291 grep -v '^ *+' conftest.er1
>conftest.err
19293 cat conftest.err
>&5
19294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest.
$ac_objext; then
19299 ac_header_compiler
=yes
19301 $as_echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.
$ac_ext >&5
19304 ac_header_compiler
=no
19307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19308 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19309 $as_echo "$ac_header_compiler" >&6; }
19311 # Is the header present?
19312 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19313 $as_echo_n "checking $ac_header presence... " >&6; }
19314 cat >conftest.
$ac_ext <<_ACEOF
19317 cat confdefs.h
>>conftest.
$ac_ext
19318 cat >>conftest.
$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19320 #include <$ac_header>
19322 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19323 case "(($ac_try" in
19324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19328 $as_echo "$ac_try_echo") >&5
19329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } >/dev/null && {
19336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19339 ac_header_preproc=yes
19341 $as_echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ac_header_preproc=no
19347 rm -f conftest.err conftest.$ac_ext
19348 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19349 $as_echo "$ac_header_preproc" >&6; }
19351 # So? What about this header?
19352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19355 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19358 ac_header_preproc=yes
19361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19362 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19364 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19366 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19368 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19372 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19376 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19377 $as_echo_n "checking for $ac_header... " >&6; }
19378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19379 $as_echo_n "(cached) " >&6
19381 eval "$as_ac_Header=\$ac_header_preproc"
19383 ac_res=`eval 'as_val=${'$as_ac_Header'}
19384 $as_echo "$as_val"'`
19385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19386 $as_echo "$ac_res" >&6; }
19389 if test `eval 'as_val=${'$as_ac_Header'}
19390 $as_echo "$as_val"'` = yes; then
19391 cat >>confdefs.h <<_ACEOF
19392 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19394 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19395 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19396 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19397 $as_echo_n "(cached) " >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19410 static struct nlist ac_aggr;
19411 if (ac_aggr.n_un.n_name)
19417 rm -f conftest.$ac_objext
19418 if { (ac_try="$ac_compile"
19419 case "(($ac_try" in
19420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19421 *) ac_try_echo
=$ac_try;;
19423 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19424 $as_echo "$ac_try_echo") >&5
19425 (eval "$ac_compile") 2>conftest.er1
19427 grep -v '^ *+' conftest.er1
>conftest.err
19429 cat conftest.err
>&5
19430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } && {
19432 test -z "$ac_c_werror_flag" ||
19433 test ! -s conftest.err
19434 } && test -s conftest.
$ac_objext; then
19435 ac_cv_member_struct_nlist_n_un_n_name
=yes
19437 $as_echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.
$ac_ext >&5
19440 cat >conftest.
$ac_ext <<_ACEOF
19443 cat confdefs.h
>>conftest.
$ac_ext
19444 cat >>conftest.
$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19451 static struct nlist ac_aggr;
19452 if (sizeof ac_aggr.n_un.n_name)
19458 rm -f conftest.
$ac_objext
19459 if { (ac_try
="$ac_compile"
19460 case "(($ac_try" in
19461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19465 $as_echo "$ac_try_echo") >&5
19466 (eval "$ac_compile") 2>conftest.er1
19468 grep -v '^ *+' conftest.er1 >conftest.err
19470 cat conftest.err >&5
19471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && {
19473 test -z "$ac_c_werror_flag" ||
19474 test ! -s conftest.err
19475 } && test -s conftest.$ac_objext; then
19476 ac_cv_member_struct_nlist_n_un_n_name=yes
19478 $as_echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_cv_member_struct_nlist_n_un_n_name=no
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19490 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19491 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19493 cat >>confdefs.h <<_ACEOF
19494 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19498 cat >>confdefs.h <<\_ACEOF
19499 #define NLIST_NAME_UNION 1
19513 # Some definitions of getloadavg require that the program be installed setgid.
19514 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19515 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19516 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19517 $as_echo_n "(cached) " >&6
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19526 #ifdef LDAV_PRIVILEGED
19527 Yowza Am I SETGID yet
19530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19531 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19532 ac_cv_func_getloadavg_setgid=yes
19534 ac_cv_func_getloadavg_setgid=no
19539 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19540 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19541 if test $ac_cv_func_getloadavg_setgid = yes; then
19544 cat >>confdefs.h <<\_ACEOF
19545 #define GETLOADAVG_PRIVILEGED 1
19552 if test $ac_cv_func_getloadavg_setgid = yes; then
19553 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19554 $as_echo_n "checking group of /dev/kmem... " >&6; }
19555 if test "${ac_cv_group_kmem+set}" = set; then
19556 $as_echo_n "(cached) " >&6
19558 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19559 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
19560 # If we got an error (system does not support symlinks), try without -L.
19561 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
19562 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19563 |
sed -ne 's/[ ][ ]*/ /g;
19564 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19568 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19569 $as_echo "$ac_cv_group_kmem" >&6; }
19570 KMEM_GROUP=$ac_cv_group_kmem
19572 if test "x$ac_save_LIBS" = x; then
19573 GETLOADAVG_LIBS=$LIBS
19575 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
19581 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19582 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19583 if test "${ac_cv_sys_largefile_source+set}" = set; then
19584 $as_echo_n "(cached) " >&6
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 #include <sys/types.h> /* for off_t */
19598 int (*fp) (FILE *, off_t, int) = fseeko;
19599 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19604 rm -f conftest.$ac_objext conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19608 *) ac_try_echo
=$ac_try;;
19610 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19611 $as_echo "$ac_try_echo") >&5
19612 (eval "$ac_link") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1
>conftest.err
19616 cat conftest.err
>&5
19617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest
$ac_exeext && {
19622 test "$cross_compiling" = yes ||
19623 $as_test_x conftest
$ac_exeext
19625 ac_cv_sys_largefile_source
=no
; break
19627 $as_echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.
$ac_ext >&5
19633 rm -rf conftest.dSYM
19634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19635 conftest
$ac_exeext conftest.
$ac_ext
19636 cat >conftest.
$ac_ext <<_ACEOF
19639 cat confdefs.h
>>conftest.
$ac_ext
19640 cat >>conftest.
$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 #define _LARGEFILE_SOURCE 1
19643 #include <sys/types.h> /* for off_t */
19648 int (*fp) (FILE *, off_t, int) = fseeko;
19649 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19654 rm -f conftest.
$ac_objext conftest
$ac_exeext
19655 if { (ac_try
="$ac_link"
19656 case "(($ac_try" in
19657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19661 $as_echo "$ac_try_echo") >&5
19662 (eval "$ac_link") 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest$ac_exeext && {
19672 test "$cross_compiling" = yes ||
19673 $as_test_x conftest$ac_exeext
19675 ac_cv_sys_largefile_source=1; break
19677 $as_echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19683 rm -rf conftest.dSYM
19684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19685 conftest$ac_exeext conftest.$ac_ext
19686 ac_cv_sys_largefile_source=unknown
19690 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19691 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19692 case $ac_cv_sys_largefile_source in #(
19695 cat >>confdefs.h <<_ACEOF
19696 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19702 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19703 # in glibc 2.1.3, but that breaks too many other things.
19704 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19705 if test $ac_cv_sys_largefile_source != unknown; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_FSEEKO 1
19714 # Configure getopt.
19715 # getopt.m4 serial 10
19717 # The getopt module assume you want GNU getopt, with getopt_long etc,
19718 # rather than vanilla POSIX getopt. This means your your code should
19719 # always include <getopt.h> for the getopt prototypes.
19731 # Prerequisites of lib/getopt*.
19738 for ac_header in getopt.h
19740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19743 $as_echo_n "checking for $ac_header... " >&6; }
19744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19745 $as_echo_n "(cached) " >&6
19747 ac_res=`eval 'as_val=${'$as_ac_Header'}
19748 $as_echo "$as_val"'`
19749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19750 $as_echo "$ac_res" >&6; }
19752 # Is the header compilable?
19753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19754 $as_echo_n "checking $ac_header usability... " >&6; }
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 $ac_includes_default
19762 #include <$ac_header>
19764 rm -f conftest.$ac_objext
19765 if { (ac_try="$ac_compile"
19766 case "(($ac_try" in
19767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19768 *) ac_try_echo
=$ac_try;;
19770 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19771 $as_echo "$ac_try_echo") >&5
19772 (eval "$ac_compile") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1
>conftest.err
19776 cat conftest.err
>&5
19777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest.
$ac_objext; then
19782 ac_header_compiler
=yes
19784 $as_echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.
$ac_ext >&5
19787 ac_header_compiler
=no
19790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19792 $as_echo "$ac_header_compiler" >&6; }
19794 # Is the header present?
19795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19796 $as_echo_n "checking $ac_header presence... " >&6; }
19797 cat >conftest.
$ac_ext <<_ACEOF
19800 cat confdefs.h
>>conftest.
$ac_ext
19801 cat >>conftest.
$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 #include <$ac_header>
19805 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19806 case "(($ac_try" in
19807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19811 $as_echo "$ac_try_echo") >&5
19812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19814 grep -v '^ *+' conftest.er1 >conftest.err
19816 cat conftest.err >&5
19817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } >/dev/null && {
19819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19822 ac_header_preproc=yes
19824 $as_echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_header_preproc=no
19830 rm -f conftest.err conftest.$ac_ext
19831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19832 $as_echo "$ac_header_preproc" >&6; }
19834 # So? What about this header?
19835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19841 ac_header_preproc=yes
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19851 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 $as_echo_n "checking for $ac_header... " >&6; }
19861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862 $as_echo_n "(cached) " >&6
19864 eval "$as_ac_Header=\$ac_header_preproc"
19866 ac_res=`eval 'as_val=${'$as_ac_Header'}
19867 $as_echo "$as_val"'`
19868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19869 $as_echo "$ac_res" >&6; }
19872 if test `eval 'as_val=${'$as_ac_Header'}
19873 $as_echo "$as_val"'` = yes; then
19874 cat >>confdefs.h <<_ACEOF
19875 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19884 if test -z "$GETOPT_H"; then
19886 for ac_func in getopt_long_only
19888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19890 $as_echo_n "checking for $ac_func... " >&6; }
19891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19892 $as_echo_n "(cached) " >&6
19894 cat >conftest.$ac_ext <<_ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19902 #define $ac_func innocuous_$ac_func
19904 /* System header to define __stub macros and hopefully few prototypes,
19905 which can conflict with char $ac_func (); below.
19906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19907 <limits.h> exists even on freestanding compilers. */
19910 # include <limits.h>
19912 # include <assert.h>
19917 /* Override any GCC internal prototype to avoid an error.
19918 Use char because int might match the return type of a GCC
19919 builtin and then its argument prototype would still apply. */
19924 /* The GNU C library defines this for functions which it implements
19925 to always fail with ENOSYS. Some functions are actually named
19926 something starting with __ and the normal name is an alias. */
19927 #if defined __stub_$ac_func || defined __stub___$ac_func
19934 return $ac_func ();
19939 rm -f conftest.$ac_objext conftest$ac_exeext
19940 if { (ac_try="$ac_link"
19941 case "(($ac_try" in
19942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19943 *) ac_try_echo
=$ac_try;;
19945 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19946 $as_echo "$ac_try_echo") >&5
19947 (eval "$ac_link") 2>conftest.er1
19949 grep -v '^ *+' conftest.er1
>conftest.err
19951 cat conftest.err
>&5
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest
$ac_exeext && {
19957 test "$cross_compiling" = yes ||
19958 $as_test_x conftest
$ac_exeext
19960 eval "$as_ac_var=yes"
19962 $as_echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.
$ac_ext >&5
19965 eval "$as_ac_var=no"
19968 rm -rf conftest.dSYM
19969 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19970 conftest
$ac_exeext conftest.
$ac_ext
19972 ac_res
=`eval 'as_val=${'$as_ac_var'}
19973 $as_echo "$as_val"'`
19974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19975 $as_echo "$ac_res" >&6; }
19976 if test `eval 'as_val=${'$as_ac_var'}
19977 $as_echo "$as_val"'` = yes; then
19978 cat >>confdefs.h
<<_ACEOF
19979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19989 if test -z "$GETOPT_H"; then
19990 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19991 $as_echo_n "checking whether optreset is declared... " >&6; }
19992 if test "${ac_cv_have_decl_optreset+set}" = set; then
19993 $as_echo_n "(cached) " >&6
19995 cat >conftest.
$ac_ext <<_ACEOF
19998 cat confdefs.h
>>conftest.
$ac_ext
19999 cat >>conftest.
$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 #include <getopt.h>
20014 rm -f conftest.
$ac_objext
20015 if { (ac_try
="$ac_compile"
20016 case "(($ac_try" in
20017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20021 $as_echo "$ac_try_echo") >&5
20022 (eval "$ac_compile") 2>conftest.er1
20024 grep -v '^ *+' conftest.er1 >conftest.err
20026 cat conftest.err >&5
20027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } && {
20029 test -z "$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20031 } && test -s conftest.$ac_objext; then
20032 ac_cv_have_decl_optreset=yes
20034 $as_echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_have_decl_optreset=no
20040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20042 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20043 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20044 if test $ac_cv_have_decl_optreset = yes; then
20050 if test -z "$GETOPT_H"; then
20051 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20052 $as_echo_n "checking for working GNU getopt function... " >&6; }
20053 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20054 $as_echo_n "(cached) " >&6
20056 if test "$cross_compiling" = yes; then
20057 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20058 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20059 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20060 $as_echo_n "(cached) " >&6
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <getopt.h>
20073 #ifndef getopt_clip
20074 (void) getopt_clip;
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20085 *) ac_try_echo
=$ac_try;;
20087 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20088 $as_echo "$ac_try_echo") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1
>conftest.err
20093 cat conftest.err
>&5
20094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.
$ac_objext; then
20099 ac_cv_have_decl_getopt_clip
=yes
20101 $as_echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.
$ac_ext >&5
20104 ac_cv_have_decl_getopt_clip
=no
20107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20109 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20110 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20111 if test $ac_cv_have_decl_getopt_clip = yes; then
20112 gl_cv_func_gnu_getopt
=no
20114 gl_cv_func_gnu_getopt
=yes
20118 cat >conftest.
$ac_ext <<_ACEOF
20121 cat confdefs.h
>>conftest.
$ac_ext
20122 cat >>conftest.
$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #include <getopt.h>
20130 myargv[0] = "conftest";
20133 return getopt (2, myargv, "+a") != '?';
20139 rm -f conftest
$ac_exeext
20140 if { (ac_try
="$ac_link"
20141 case "(($ac_try" in
20142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20146 $as_echo "$ac_try_echo") >&5
20147 (eval "$ac_link") 2>&5
20149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20151 { (case "(($ac_try" in
20152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20153 *) ac_try_echo
=$ac_try;;
20155 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20156 $as_echo "$ac_try_echo") >&5
20157 (eval "$ac_try") 2>&5
20159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 gl_cv_func_gnu_getopt
=yes
20163 $as_echo "$as_me: program exited with status $ac_status" >&5
20164 $as_echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.
$ac_ext >&5
20167 ( exit $ac_status )
20168 gl_cv_func_gnu_getopt
=no
20170 rm -rf conftest.dSYM
20171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20176 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20177 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20178 if test "$gl_cv_func_gnu_getopt" = "no"; then
20185 if test -n "$GETOPT_H"; then
20190 cat >>confdefs.h
<<\_ACEOF
20191 #define __GETOPT_PREFIX rpl_
20197 GETOPTOBJS
='getopt.o getopt1.o'
20204 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20205 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20206 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20209 # Use it with a single arg.
20210 cat >conftest.
$ac_ext <<_ACEOF
20213 cat confdefs.h
>>conftest.
$ac_ext
20214 cat >>conftest.
$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 $ac_includes_default
20225 rm -f conftest.
$ac_objext
20226 if { (ac_try
="$ac_compile"
20227 case "(($ac_try" in
20228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20232 $as_echo "$ac_try_echo") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_cv_func_getpgrp_void=no
20245 $as_echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_cv_func_getpgrp_void=yes
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20254 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20255 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20256 if test $ac_cv_func_getpgrp_void = yes; then
20258 cat >>confdefs.h <<\_ACEOF
20259 #define GETPGRP_VOID 1
20266 for ac_func in strftime
20268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20270 $as_echo_n "checking for $ac_func... " >&6; }
20271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20272 $as_echo_n "(cached) " >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20282 #define $ac_func innocuous_$ac_func
20284 /* System header to define __stub macros and hopefully few prototypes,
20285 which can conflict with char $ac_func (); below.
20286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20287 <limits.h> exists even on freestanding compilers. */
20290 # include <limits.h>
20292 # include <assert.h>
20297 /* Override any GCC internal prototype to avoid an error.
20298 Use char because int might match the return type of a GCC
20299 builtin and then its argument prototype would still apply. */
20304 /* The GNU C library defines this for functions which it implements
20305 to always fail with ENOSYS. Some functions are actually named
20306 something starting with __ and the normal name is an alias. */
20307 #if defined __stub_$ac_func || defined __stub___$ac_func
20314 return $ac_func ();
20319 rm -f conftest.$ac_objext conftest$ac_exeext
20320 if { (ac_try="$ac_link"
20321 case "(($ac_try" in
20322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20323 *) ac_try_echo
=$ac_try;;
20325 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327 (eval "$ac_link") 2>conftest.er1
20329 grep -v '^ *+' conftest.er1
>conftest.err
20331 cat conftest.err
>&5
20332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest
$ac_exeext && {
20337 test "$cross_compiling" = yes ||
20338 $as_test_x conftest
$ac_exeext
20340 eval "$as_ac_var=yes"
20342 $as_echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.
$ac_ext >&5
20345 eval "$as_ac_var=no"
20348 rm -rf conftest.dSYM
20349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20350 conftest
$ac_exeext conftest.
$ac_ext
20352 ac_res
=`eval 'as_val=${'$as_ac_var'}
20353 $as_echo "$as_val"'`
20354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20355 $as_echo "$ac_res" >&6; }
20356 if test `eval 'as_val=${'$as_ac_var'}
20357 $as_echo "$as_val"'` = yes; then
20358 cat >>confdefs.h
<<_ACEOF
20359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20363 # strftime is in -lintl on SCO UNIX.
20364 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20365 $as_echo_n "checking for strftime in -lintl... " >&6; }
20366 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20367 $as_echo_n "(cached) " >&6
20369 ac_check_lib_save_LIBS
=$LIBS
20370 LIBS
="-lintl $LIBS"
20371 cat >conftest.
$ac_ext <<_ACEOF
20374 cat confdefs.h
>>conftest.
$ac_ext
20375 cat >>conftest.
$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20388 return strftime ();
20393 rm -f conftest.
$ac_objext conftest
$ac_exeext
20394 if { (ac_try
="$ac_link"
20395 case "(($ac_try" in
20396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20400 $as_echo "$ac_try_echo") >&5
20401 (eval "$ac_link") 2>conftest.er1
20403 grep -v '^ *+' conftest.er1 >conftest.err
20405 cat conftest.err >&5
20406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } && {
20408 test -z "$ac_c_werror_flag" ||
20409 test ! -s conftest.err
20410 } && test -s conftest$ac_exeext && {
20411 test "$cross_compiling" = yes ||
20412 $as_test_x conftest$ac_exeext
20414 ac_cv_lib_intl_strftime=yes
20416 $as_echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_intl_strftime=no
20422 rm -rf conftest.dSYM
20423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20424 conftest$ac_exeext conftest.$ac_ext
20425 LIBS=$ac_check_lib_save_LIBS
20427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20428 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20429 if test $ac_cv_lib_intl_strftime = yes; then
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE_STRFTIME 1
20434 LIBS="-lintl $LIBS"
20443 for ac_func in grantpt
20445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20447 $as_echo_n "checking for $ac_func... " >&6; }
20448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20449 $as_echo_n "(cached) " >&6
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20459 #define $ac_func innocuous_$ac_func
20461 /* System header to define __stub macros and hopefully few prototypes,
20462 which can conflict with char $ac_func (); below.
20463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20464 <limits.h> exists even on freestanding compilers. */
20467 # include <limits.h>
20469 # include <assert.h>
20474 /* Override any GCC internal prototype to avoid an error.
20475 Use char because int might match the return type of a GCC
20476 builtin and then its argument prototype would still apply. */
20481 /* The GNU C library defines this for functions which it implements
20482 to always fail with ENOSYS. Some functions are actually named
20483 something starting with __ and the normal name is an alias. */
20484 #if defined __stub_$ac_func || defined __stub___$ac_func
20491 return $ac_func ();
20496 rm -f conftest.$ac_objext conftest$ac_exeext
20497 if { (ac_try="$ac_link"
20498 case "(($ac_try" in
20499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20500 *) ac_try_echo
=$ac_try;;
20502 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20503 $as_echo "$ac_try_echo") >&5
20504 (eval "$ac_link") 2>conftest.er1
20506 grep -v '^ *+' conftest.er1
>conftest.err
20508 cat conftest.err
>&5
20509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && {
20511 test -z "$ac_c_werror_flag" ||
20512 test ! -s conftest.err
20513 } && test -s conftest
$ac_exeext && {
20514 test "$cross_compiling" = yes ||
20515 $as_test_x conftest
$ac_exeext
20517 eval "$as_ac_var=yes"
20519 $as_echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.
$ac_ext >&5
20522 eval "$as_ac_var=no"
20525 rm -rf conftest.dSYM
20526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20527 conftest
$ac_exeext conftest.
$ac_ext
20529 ac_res
=`eval 'as_val=${'$as_ac_var'}
20530 $as_echo "$as_val"'`
20531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20532 $as_echo "$ac_res" >&6; }
20533 if test `eval 'as_val=${'$as_ac_var'}
20534 $as_echo "$as_val"'` = yes; then
20535 cat >>confdefs.h
<<_ACEOF
20536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20543 # PTY-related GNU extensions.
20545 for ac_func
in getpt
20547 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20548 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20549 $as_echo_n "checking for $ac_func... " >&6; }
20550 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20551 $as_echo_n "(cached) " >&6
20553 cat >conftest.
$ac_ext <<_ACEOF
20556 cat confdefs.h
>>conftest.
$ac_ext
20557 cat >>conftest.
$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20561 #define $ac_func innocuous_$ac_func
20563 /* System header to define __stub macros and hopefully few prototypes,
20564 which can conflict with char $ac_func (); below.
20565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20566 <limits.h> exists even on freestanding compilers. */
20569 # include <limits.h>
20571 # include <assert.h>
20576 /* Override any GCC internal prototype to avoid an error.
20577 Use char because int might match the return type of a GCC
20578 builtin and then its argument prototype would still apply. */
20583 /* The GNU C library defines this for functions which it implements
20584 to always fail with ENOSYS. Some functions are actually named
20585 something starting with __ and the normal name is an alias. */
20586 #if defined __stub_$ac_func || defined __stub___$ac_func
20593 return $ac_func ();
20598 rm -f conftest.
$ac_objext conftest
$ac_exeext
20599 if { (ac_try
="$ac_link"
20600 case "(($ac_try" in
20601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20605 $as_echo "$ac_try_echo") >&5
20606 (eval "$ac_link") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest$ac_exeext && {
20616 test "$cross_compiling" = yes ||
20617 $as_test_x conftest$ac_exeext
20619 eval "$as_ac_var=yes"
20621 $as_echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 eval "$as_ac_var=no"
20627 rm -rf conftest.dSYM
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629 conftest$ac_exeext conftest.$ac_ext
20631 ac_res=`eval 'as_val=${'$as_ac_var'}
20632 $as_echo "$as_val"'`
20633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20634 $as_echo "$ac_res" >&6; }
20635 if test `eval 'as_val=${'$as_ac_var'}
20636 $as_echo "$as_val"'` = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20645 # Check this now, so that we will NOT find the above functions in ncurses.
20646 # That is because we have not set up to link ncurses in lib-src.
20647 # It's better to believe a function is not available
20648 # than to expect to find it in ncurses.
20650 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20651 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20652 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20653 $as_echo_n "(cached) " >&6
20655 ac_check_lib_save_LIBS=$LIBS
20656 LIBS="-lncurses $LIBS"
20657 cat >conftest.$ac_ext <<_ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20664 /* Override any GCC internal prototype to avoid an error.
20665 Use char because int might match the return type of a GCC
20666 builtin and then its argument prototype would still apply. */
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20683 *) ac_try_echo
=$ac_try;;
20685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20686 $as_echo "$ac_try_echo") >&5
20687 (eval "$ac_link") 2>conftest.er1
20689 grep -v '^ *+' conftest.er1
>conftest.err
20691 cat conftest.err
>&5
20692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest
$ac_exeext && {
20697 test "$cross_compiling" = yes ||
20698 $as_test_x conftest
$ac_exeext
20700 ac_cv_lib_ncurses_tparm
=yes
20702 $as_echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.
$ac_ext >&5
20705 ac_cv_lib_ncurses_tparm
=no
20708 rm -rf conftest.dSYM
20709 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20710 conftest
$ac_exeext conftest.
$ac_ext
20711 LIBS
=$ac_check_lib_save_LIBS
20713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20714 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20715 if test $ac_cv_lib_ncurses_tparm = yes; then
20716 cat >>confdefs.h
<<_ACEOF
20717 #define HAVE_LIBNCURSES 1
20720 LIBS
="-lncurses $LIBS"
20725 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20728 cat >conftest.
$ac_ext <<_ACEOF
20731 cat confdefs.h
>>conftest.
$ac_ext
20732 cat >>conftest.
$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 #include <netinet/in.h>
20735 #include <arpa/nameser.h>
20736 #include <resolv.h>
20745 rm -f conftest.
$ac_objext conftest
$ac_exeext
20746 if { (ac_try
="$ac_link"
20747 case "(($ac_try" in
20748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20752 $as_echo "$ac_try_echo") >&5
20753 (eval "$ac_link") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest$ac_exeext && {
20763 test "$cross_compiling" = yes ||
20764 $as_test_x conftest$ac_exeext
20768 $as_echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20774 rm -rf conftest.dSYM
20775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20776 conftest$ac_exeext conftest.$ac_ext
20777 if test "$have_res_init" = no; then
20779 LIBS="$LIBS -lresolv"
20780 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20781 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <netinet/in.h>
20789 #include <arpa/nameser.h>
20790 #include <resolv.h>
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20803 *) ac_try_echo
=$ac_try;;
20805 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20806 $as_echo "$ac_try_echo") >&5
20807 (eval "$ac_link") 2>conftest.er1
20809 grep -v '^ *+' conftest.er1
>conftest.err
20811 cat conftest.err
>&5
20812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && {
20814 test -z "$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest
$ac_exeext && {
20817 test "$cross_compiling" = yes ||
20818 $as_test_x conftest
$ac_exeext
20822 $as_echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.
$ac_ext >&5
20828 rm -rf conftest.dSYM
20829 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20830 conftest
$ac_exeext conftest.
$ac_ext
20831 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20832 $as_echo "$have_res_init" >&6; }
20833 if test "$have_res_init" = yes ; then
20839 if test "$have_res_init" = yes; then
20841 cat >>confdefs.h
<<\_ACEOF
20842 #define HAVE_RES_INIT 1
20847 # Do we need the Hesiod library to provide the support routines?
20848 if test "$with_hesiod" != no
; then
20849 # Don't set $LIBS here -- see comments above.
20850 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20851 $as_echo_n "checking for res_send... " >&6; }
20852 if test "${ac_cv_func_res_send+set}" = set; then
20853 $as_echo_n "(cached) " >&6
20855 cat >conftest.
$ac_ext <<_ACEOF
20858 cat confdefs.h
>>conftest.
$ac_ext
20859 cat >>conftest.
$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20863 #define res_send innocuous_res_send
20865 /* System header to define __stub macros and hopefully few prototypes,
20866 which can conflict with char res_send (); below.
20867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20868 <limits.h> exists even on freestanding compilers. */
20871 # include <limits.h>
20873 # include <assert.h>
20878 /* Override any GCC internal prototype to avoid an error.
20879 Use char because int might match the return type of a GCC
20880 builtin and then its argument prototype would still apply. */
20885 /* The GNU C library defines this for functions which it implements
20886 to always fail with ENOSYS. Some functions are actually named
20887 something starting with __ and the normal name is an alias. */
20888 #if defined __stub_res_send || defined __stub___res_send
20895 return res_send ();
20900 rm -f conftest.
$ac_objext conftest
$ac_exeext
20901 if { (ac_try
="$ac_link"
20902 case "(($ac_try" in
20903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20907 $as_echo "$ac_try_echo") >&5
20908 (eval "$ac_link") 2>conftest.er1
20910 grep -v '^ *+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } && {
20915 test -z "$ac_c_werror_flag" ||
20916 test ! -s conftest.err
20917 } && test -s conftest$ac_exeext && {
20918 test "$cross_compiling" = yes ||
20919 $as_test_x conftest$ac_exeext
20921 ac_cv_func_res_send=yes
20923 $as_echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 ac_cv_func_res_send=no
20929 rm -rf conftest.dSYM
20930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20931 conftest$ac_exeext conftest.$ac_ext
20933 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20934 $as_echo "$ac_cv_func_res_send" >&6; }
20935 if test $ac_cv_func_res_send = yes; then
20938 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20939 $as_echo_n "checking for __res_send... " >&6; }
20940 if test "${ac_cv_func___res_send+set}" = set; then
20941 $as_echo_n "(cached) " >&6
20943 cat >conftest.$ac_ext <<_ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20951 #define __res_send innocuous___res_send
20953 /* System header to define __stub macros and hopefully few prototypes,
20954 which can conflict with char __res_send (); below.
20955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20956 <limits.h> exists even on freestanding compilers. */
20959 # include <limits.h>
20961 # include <assert.h>
20966 /* Override any GCC internal prototype to avoid an error.
20967 Use char because int might match the return type of a GCC
20968 builtin and then its argument prototype would still apply. */
20972 char __res_send ();
20973 /* The GNU C library defines this for functions which it implements
20974 to always fail with ENOSYS. Some functions are actually named
20975 something starting with __ and the normal name is an alias. */
20976 #if defined __stub___res_send || defined __stub_____res_send
20983 return __res_send ();
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20992 *) ac_try_echo
=$ac_try;;
20994 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996 (eval "$ac_link") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1
>conftest.err
21000 cat conftest.err
>&5
21001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest
$ac_exeext && {
21006 test "$cross_compiling" = yes ||
21007 $as_test_x conftest
$ac_exeext
21009 ac_cv_func___res_send
=yes
21011 $as_echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.
$ac_ext >&5
21014 ac_cv_func___res_send
=no
21017 rm -rf conftest.dSYM
21018 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21019 conftest
$ac_exeext conftest.
$ac_ext
21021 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21022 $as_echo "$ac_cv_func___res_send" >&6; }
21023 if test $ac_cv_func___res_send = yes; then
21026 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21027 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21028 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21029 $as_echo_n "(cached) " >&6
21031 ac_check_lib_save_LIBS
=$LIBS
21032 LIBS
="-lresolv $LIBS"
21033 cat >conftest.
$ac_ext <<_ACEOF
21036 cat confdefs.h
>>conftest.
$ac_ext
21037 cat >>conftest.
$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21040 /* Override any GCC internal prototype to avoid an error.
21041 Use char because int might match the return type of a GCC
21042 builtin and then its argument prototype would still apply. */
21050 return res_send ();
21055 rm -f conftest.
$ac_objext conftest
$ac_exeext
21056 if { (ac_try
="$ac_link"
21057 case "(($ac_try" in
21058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21062 $as_echo "$ac_try_echo") >&5
21063 (eval "$ac_link") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest$ac_exeext && {
21073 test "$cross_compiling" = yes ||
21074 $as_test_x conftest$ac_exeext
21076 ac_cv_lib_resolv_res_send=yes
21078 $as_echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_cv_lib_resolv_res_send=no
21084 rm -rf conftest.dSYM
21085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21086 conftest$ac_exeext conftest.$ac_ext
21087 LIBS=$ac_check_lib_save_LIBS
21089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21090 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21091 if test $ac_cv_lib_resolv_res_send = yes; then
21094 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21095 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21096 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21097 $as_echo_n "(cached) " >&6
21099 ac_check_lib_save_LIBS=$LIBS
21100 LIBS="-lresolv $LIBS"
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21108 /* Override any GCC internal prototype to avoid an error.
21109 Use char because int might match the return type of a GCC
21110 builtin and then its argument prototype would still apply. */
21114 char __res_send ();
21118 return __res_send ();
21123 rm -f conftest.$ac_objext conftest$ac_exeext
21124 if { (ac_try="$ac_link"
21125 case "(($ac_try" in
21126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21127 *) ac_try_echo
=$ac_try;;
21129 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21130 $as_echo "$ac_try_echo") >&5
21131 (eval "$ac_link") 2>conftest.er1
21133 grep -v '^ *+' conftest.er1
>conftest.err
21135 cat conftest.err
>&5
21136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest
$ac_exeext && {
21141 test "$cross_compiling" = yes ||
21142 $as_test_x conftest
$ac_exeext
21144 ac_cv_lib_resolv___res_send
=yes
21146 $as_echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.
$ac_ext >&5
21149 ac_cv_lib_resolv___res_send
=no
21152 rm -rf conftest.dSYM
21153 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21154 conftest
$ac_exeext conftest.
$ac_ext
21155 LIBS
=$ac_check_lib_save_LIBS
21157 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21158 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21159 if test $ac_cv_lib_resolv___res_send = yes; then
21169 if test "$resolv" = yes ; then
21174 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21175 $as_echo_n "checking for hes_getmailhost... " >&6; }
21176 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21177 $as_echo_n "(cached) " >&6
21179 cat >conftest.
$ac_ext <<_ACEOF
21182 cat confdefs.h
>>conftest.
$ac_ext
21183 cat >>conftest.
$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21187 #define hes_getmailhost innocuous_hes_getmailhost
21189 /* System header to define __stub macros and hopefully few prototypes,
21190 which can conflict with char hes_getmailhost (); below.
21191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21192 <limits.h> exists even on freestanding compilers. */
21195 # include <limits.h>
21197 # include <assert.h>
21200 #undef hes_getmailhost
21202 /* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
21208 char hes_getmailhost ();
21209 /* The GNU C library defines this for functions which it implements
21210 to always fail with ENOSYS. Some functions are actually named
21211 something starting with __ and the normal name is an alias. */
21212 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21219 return hes_getmailhost ();
21224 rm -f conftest.
$ac_objext conftest
$ac_exeext
21225 if { (ac_try
="$ac_link"
21226 case "(($ac_try" in
21227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21231 $as_echo "$ac_try_echo") >&5
21232 (eval "$ac_link") 2>conftest.er1
21234 grep -v '^ *+' conftest.er1 >conftest.err
21236 cat conftest.err >&5
21237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest$ac_exeext && {
21242 test "$cross_compiling" = yes ||
21243 $as_test_x conftest$ac_exeext
21245 ac_cv_func_hes_getmailhost=yes
21247 $as_echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_func_hes_getmailhost=no
21253 rm -rf conftest.dSYM
21254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21255 conftest$ac_exeext conftest.$ac_ext
21257 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21258 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21259 if test $ac_cv_func_hes_getmailhost = yes; then
21262 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21263 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21264 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21265 $as_echo_n "(cached) " >&6
21267 ac_check_lib_save_LIBS=$LIBS
21268 LIBS="-lhesiod $RESOLVLIB $LIBS"
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21276 /* Override any GCC internal prototype to avoid an error.
21277 Use char because int might match the return type of a GCC
21278 builtin and then its argument prototype would still apply. */
21282 char hes_getmailhost ();
21286 return hes_getmailhost ();
21291 rm -f conftest.$ac_objext conftest$ac_exeext
21292 if { (ac_try="$ac_link"
21293 case "(($ac_try" in
21294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21295 *) ac_try_echo
=$ac_try;;
21297 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21298 $as_echo "$ac_try_echo") >&5
21299 (eval "$ac_link") 2>conftest.er1
21301 grep -v '^ *+' conftest.er1
>conftest.err
21303 cat conftest.err
>&5
21304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest
$ac_exeext && {
21309 test "$cross_compiling" = yes ||
21310 $as_test_x conftest
$ac_exeext
21312 ac_cv_lib_hesiod_hes_getmailhost
=yes
21314 $as_echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.
$ac_ext >&5
21317 ac_cv_lib_hesiod_hes_getmailhost
=no
21320 rm -rf conftest.dSYM
21321 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21322 conftest
$ac_exeext conftest.
$ac_ext
21323 LIBS
=$ac_check_lib_save_LIBS
21325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21326 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21327 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21329 cat >>confdefs.h
<<\_ACEOF
21330 #define HAVE_LIBHESIOD 1
21341 # Do we need libresolv (due to res_init or Hesiod)?
21342 if test "$resolv" = yes ; then
21344 cat >>confdefs.h
<<\_ACEOF
21345 #define HAVE_LIBRESOLV 1
21350 # These tell us which Kerberos-related libraries to use.
21351 if test "${with_kerberos}" != no
; then
21353 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21354 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21355 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21356 $as_echo_n "(cached) " >&6
21358 ac_check_lib_save_LIBS
=$LIBS
21359 LIBS
="-lcom_err $LIBS"
21360 cat >conftest.
$ac_ext <<_ACEOF
21363 cat confdefs.h
>>conftest.
$ac_ext
21364 cat >>conftest.
$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21382 rm -f conftest.
$ac_objext conftest
$ac_exeext
21383 if { (ac_try
="$ac_link"
21384 case "(($ac_try" in
21385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21389 $as_echo "$ac_try_echo") >&5
21390 (eval "$ac_link") 2>conftest.er1
21392 grep -v '^ *+' conftest.er1 >conftest.err
21394 cat conftest.err >&5
21395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest$ac_exeext && {
21400 test "$cross_compiling" = yes ||
21401 $as_test_x conftest$ac_exeext
21403 ac_cv_lib_com_err_com_err=yes
21405 $as_echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_cv_lib_com_err_com_err=no
21411 rm -rf conftest.dSYM
21412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21413 conftest$ac_exeext conftest.$ac_ext
21414 LIBS=$ac_check_lib_save_LIBS
21416 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21417 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21418 if test $ac_cv_lib_com_err_com_err = yes; then
21419 cat >>confdefs.h <<_ACEOF
21420 #define HAVE_LIBCOM_ERR 1
21423 LIBS="-lcom_err $LIBS"
21428 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21429 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21430 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21431 $as_echo_n "(cached) " >&6
21433 ac_check_lib_save_LIBS=$LIBS
21434 LIBS="-lk5crypto $LIBS"
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21442 /* Override any GCC internal prototype to avoid an error.
21443 Use char because int might match the return type of a GCC
21444 builtin and then its argument prototype would still apply. */
21448 char mit_des_cbc_encrypt ();
21452 return mit_des_cbc_encrypt ();
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (ac_try="$ac_link"
21459 case "(($ac_try" in
21460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21461 *) ac_try_echo
=$ac_try;;
21463 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21464 $as_echo "$ac_try_echo") >&5
21465 (eval "$ac_link") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1
>conftest.err
21469 cat conftest.err
>&5
21470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } && {
21472 test -z "$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 } && test -s conftest
$ac_exeext && {
21475 test "$cross_compiling" = yes ||
21476 $as_test_x conftest
$ac_exeext
21478 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21480 $as_echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.
$ac_ext >&5
21483 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21486 rm -rf conftest.dSYM
21487 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21488 conftest
$ac_exeext conftest.
$ac_ext
21489 LIBS
=$ac_check_lib_save_LIBS
21491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21492 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21493 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21494 cat >>confdefs.h
<<_ACEOF
21495 #define HAVE_LIBK5CRYPTO 1
21498 LIBS
="-lk5crypto $LIBS"
21503 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21504 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21505 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21506 $as_echo_n "(cached) " >&6
21508 ac_check_lib_save_LIBS
=$LIBS
21509 LIBS
="-lcrypto $LIBS"
21510 cat >conftest.
$ac_ext <<_ACEOF
21513 cat confdefs.h
>>conftest.
$ac_ext
21514 cat >>conftest.
$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21523 char mit_des_cbc_encrypt ();
21527 return mit_des_cbc_encrypt ();
21532 rm -f conftest.
$ac_objext conftest
$ac_exeext
21533 if { (ac_try
="$ac_link"
21534 case "(($ac_try" in
21535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21539 $as_echo "$ac_try_echo") >&5
21540 (eval "$ac_link") 2>conftest.er1
21542 grep -v '^ *+' conftest.er1 >conftest.err
21544 cat conftest.err >&5
21545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest$ac_exeext && {
21550 test "$cross_compiling" = yes ||
21551 $as_test_x conftest$ac_exeext
21553 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21555 $as_echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21561 rm -rf conftest.dSYM
21562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21563 conftest$ac_exeext conftest.$ac_ext
21564 LIBS=$ac_check_lib_save_LIBS
21566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21567 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21568 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21569 cat >>confdefs.h <<_ACEOF
21570 #define HAVE_LIBCRYPTO 1
21573 LIBS="-lcrypto $LIBS"
21578 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21579 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21580 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21581 $as_echo_n "(cached) " >&6
21583 ac_check_lib_save_LIBS=$LIBS
21584 LIBS="-lkrb5 $LIBS"
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21598 char krb5_init_context ();
21602 return krb5_init_context ();
21607 rm -f conftest.$ac_objext conftest$ac_exeext
21608 if { (ac_try="$ac_link"
21609 case "(($ac_try" in
21610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21611 *) ac_try_echo
=$ac_try;;
21613 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21614 $as_echo "$ac_try_echo") >&5
21615 (eval "$ac_link") 2>conftest.er1
21617 grep -v '^ *+' conftest.er1
>conftest.err
21619 cat conftest.err
>&5
21620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest
$ac_exeext && {
21625 test "$cross_compiling" = yes ||
21626 $as_test_x conftest
$ac_exeext
21628 ac_cv_lib_krb5_krb5_init_context
=yes
21630 $as_echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.
$ac_ext >&5
21633 ac_cv_lib_krb5_krb5_init_context
=no
21636 rm -rf conftest.dSYM
21637 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21638 conftest
$ac_exeext conftest.
$ac_ext
21639 LIBS
=$ac_check_lib_save_LIBS
21641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21642 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21643 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21644 cat >>confdefs.h
<<_ACEOF
21645 #define HAVE_LIBKRB5 1
21648 LIBS
="-lkrb5 $LIBS"
21652 if test "${with_kerberos5}" = no
; then
21654 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21655 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21656 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21657 $as_echo_n "(cached) " >&6
21659 ac_check_lib_save_LIBS
=$LIBS
21660 LIBS
="-ldes425 $LIBS"
21661 cat >conftest.
$ac_ext <<_ACEOF
21664 cat confdefs.h
>>conftest.
$ac_ext
21665 cat >>conftest.
$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* Override any GCC internal prototype to avoid an error.
21669 Use char because int might match the return type of a GCC
21670 builtin and then its argument prototype would still apply. */
21674 char des_cbc_encrypt ();
21678 return des_cbc_encrypt ();
21683 rm -f conftest.
$ac_objext conftest
$ac_exeext
21684 if { (ac_try
="$ac_link"
21685 case "(($ac_try" in
21686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690 $as_echo "$ac_try_echo") >&5
21691 (eval "$ac_link") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest$ac_exeext && {
21701 test "$cross_compiling" = yes ||
21702 $as_test_x conftest$ac_exeext
21704 ac_cv_lib_des425_des_cbc_encrypt=yes
21706 $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_cv_lib_des425_des_cbc_encrypt=no
21712 rm -rf conftest.dSYM
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21718 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21719 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21720 cat >>confdefs.h <<_ACEOF
21721 #define HAVE_LIBDES425 1
21724 LIBS="-ldes425 $LIBS"
21728 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21729 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21730 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21731 $as_echo_n "(cached) " >&6
21733 ac_check_lib_save_LIBS=$LIBS
21735 cat >conftest.$ac_ext <<_ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21742 /* Override any GCC internal prototype to avoid an error.
21743 Use char because int might match the return type of a GCC
21744 builtin and then its argument prototype would still apply. */
21748 char des_cbc_encrypt ();
21752 return des_cbc_encrypt ();
21757 rm -f conftest.$ac_objext conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21761 *) ac_try_echo
=$ac_try;;
21763 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21764 $as_echo "$ac_try_echo") >&5
21765 (eval "$ac_link") 2>conftest.er1
21767 grep -v '^ *+' conftest.er1
>conftest.err
21769 cat conftest.err
>&5
21770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } && {
21772 test -z "$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 } && test -s conftest
$ac_exeext && {
21775 test "$cross_compiling" = yes ||
21776 $as_test_x conftest
$ac_exeext
21778 ac_cv_lib_des_des_cbc_encrypt
=yes
21780 $as_echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.
$ac_ext >&5
21783 ac_cv_lib_des_des_cbc_encrypt
=no
21786 rm -rf conftest.dSYM
21787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21788 conftest
$ac_exeext conftest.
$ac_ext
21789 LIBS
=$ac_check_lib_save_LIBS
21791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21792 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21793 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21794 cat >>confdefs.h
<<_ACEOF
21795 #define HAVE_LIBDES 1
21805 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21806 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21807 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21808 $as_echo_n "(cached) " >&6
21810 ac_check_lib_save_LIBS
=$LIBS
21811 LIBS
="-lkrb4 $LIBS"
21812 cat >conftest.
$ac_ext <<_ACEOF
21815 cat confdefs.h
>>conftest.
$ac_ext
21816 cat >>conftest.
$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21819 /* Override any GCC internal prototype to avoid an error.
21820 Use char because int might match the return type of a GCC
21821 builtin and then its argument prototype would still apply. */
21825 char krb_get_cred ();
21829 return krb_get_cred ();
21834 rm -f conftest.
$ac_objext conftest
$ac_exeext
21835 if { (ac_try
="$ac_link"
21836 case "(($ac_try" in
21837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21841 $as_echo "$ac_try_echo") >&5
21842 (eval "$ac_link") 2>conftest.er1
21844 grep -v '^ *+' conftest.er1 >conftest.err
21846 cat conftest.err >&5
21847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest$ac_exeext && {
21852 test "$cross_compiling" = yes ||
21853 $as_test_x conftest$ac_exeext
21855 ac_cv_lib_krb4_krb_get_cred=yes
21857 $as_echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_cv_lib_krb4_krb_get_cred=no
21863 rm -rf conftest.dSYM
21864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21865 conftest$ac_exeext conftest.$ac_ext
21866 LIBS=$ac_check_lib_save_LIBS
21868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21869 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21870 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_LIBKRB4 1
21875 LIBS="-lkrb4 $LIBS"
21879 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21880 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21881 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21882 $as_echo_n "(cached) " >&6
21884 ac_check_lib_save_LIBS=$LIBS
21886 cat >conftest.$ac_ext <<_ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21893 /* Override any GCC internal prototype to avoid an error.
21894 Use char because int might match the return type of a GCC
21895 builtin and then its argument prototype would still apply. */
21899 char krb_get_cred ();
21903 return krb_get_cred ();
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21912 *) ac_try_echo
=$ac_try;;
21914 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21915 $as_echo "$ac_try_echo") >&5
21916 (eval "$ac_link") 2>conftest.er1
21918 grep -v '^ *+' conftest.er1
>conftest.err
21920 cat conftest.err
>&5
21921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } && {
21923 test -z "$ac_c_werror_flag" ||
21924 test ! -s conftest.err
21925 } && test -s conftest
$ac_exeext && {
21926 test "$cross_compiling" = yes ||
21927 $as_test_x conftest
$ac_exeext
21929 ac_cv_lib_krb_krb_get_cred
=yes
21931 $as_echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.
$ac_ext >&5
21934 ac_cv_lib_krb_krb_get_cred
=no
21937 rm -rf conftest.dSYM
21938 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21939 conftest
$ac_exeext conftest.
$ac_ext
21940 LIBS
=$ac_check_lib_save_LIBS
21942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21943 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21944 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21945 cat >>confdefs.h
<<_ACEOF
21946 #define HAVE_LIBKRB 1
21957 if test "${with_kerberos5}" != no
; then
21959 for ac_header
in krb5.h
21961 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21962 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21964 $as_echo_n "checking for $ac_header... " >&6; }
21965 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966 $as_echo_n "(cached) " >&6
21968 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21969 $as_echo "$as_val"'`
21970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21971 $as_echo "$ac_res" >&6; }
21973 # Is the header compilable?
21974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21975 $as_echo_n "checking $ac_header usability... " >&6; }
21976 cat >conftest.
$ac_ext <<_ACEOF
21979 cat confdefs.h
>>conftest.
$ac_ext
21980 cat >>conftest.
$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 $ac_includes_default
21983 #include <$ac_header>
21985 rm -f conftest.
$ac_objext
21986 if { (ac_try
="$ac_compile"
21987 case "(($ac_try" in
21988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21992 $as_echo "$ac_try_echo") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } && {
22000 test -z "$ac_c_werror_flag" ||
22001 test ! -s conftest.err
22002 } && test -s conftest.$ac_objext; then
22003 ac_header_compiler=yes
22005 $as_echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22008 ac_header_compiler=no
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22013 $as_echo "$ac_header_compiler" >&6; }
22015 # Is the header present?
22016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22017 $as_echo_n "checking $ac_header presence... " >&6; }
22018 cat >conftest.$ac_ext <<_ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 #include <$ac_header>
22026 if { (ac_try="$ac_cpp conftest.$ac_ext"
22027 case "(($ac_try" in
22028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22029 *) ac_try_echo
=$ac_try;;
22031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1
>conftest.err
22037 cat conftest.err
>&5
22038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } >/dev
/null
&& {
22040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22043 ac_header_preproc
=yes
22045 $as_echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.
$ac_ext >&5
22048 ac_header_preproc
=no
22051 rm -f conftest.err conftest.
$ac_ext
22052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22053 $as_echo "$ac_header_preproc" >&6; }
22055 # So? What about this header?
22056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22062 ac_header_preproc
=yes
22065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22081 $as_echo_n "checking for $ac_header... " >&6; }
22082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083 $as_echo_n "(cached) " >&6
22085 eval "$as_ac_Header=\$ac_header_preproc"
22087 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22088 $as_echo "$as_val"'`
22089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22090 $as_echo "$ac_res" >&6; }
22093 if test `eval 'as_val=${'$as_ac_Header'}
22094 $as_echo "$as_val"'` = yes; then
22095 cat >>confdefs.h
<<_ACEOF
22096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22098 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22099 $as_echo_n "checking for krb5_error.text... " >&6; }
22100 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22101 $as_echo_n "(cached) " >&6
22103 cat >conftest.
$ac_ext <<_ACEOF
22106 cat confdefs.h
>>conftest.
$ac_ext
22107 cat >>conftest.
$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22114 static krb5_error ac_aggr;
22121 rm -f conftest.
$ac_objext
22122 if { (ac_try
="$ac_compile"
22123 case "(($ac_try" in
22124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22128 $as_echo "$ac_try_echo") >&5
22129 (eval "$ac_compile") 2>conftest.er1
22131 grep -v '^ *+' conftest.er1 >conftest.err
22133 cat conftest.err >&5
22134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && {
22136 test -z "$ac_c_werror_flag" ||
22137 test ! -s conftest.err
22138 } && test -s conftest.$ac_objext; then
22139 ac_cv_member_krb5_error_text=yes
22141 $as_echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22155 static krb5_error ac_aggr;
22156 if (sizeof ac_aggr.text)
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22166 *) ac_try_echo
=$ac_try;;
22168 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22169 $as_echo "$ac_try_echo") >&5
22170 (eval "$ac_compile") 2>conftest.er1
22172 grep -v '^ *+' conftest.er1
>conftest.err
22174 cat conftest.err
>&5
22175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } && {
22177 test -z "$ac_c_werror_flag" ||
22178 test ! -s conftest.err
22179 } && test -s conftest.
$ac_objext; then
22180 ac_cv_member_krb5_error_text
=yes
22182 $as_echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.
$ac_ext >&5
22185 ac_cv_member_krb5_error_text
=no
22188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22193 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22194 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22195 if test $ac_cv_member_krb5_error_text = yes; then
22197 cat >>confdefs.h
<<_ACEOF
22198 #define HAVE_KRB5_ERROR_TEXT 1
22203 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22204 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22205 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22206 $as_echo_n "(cached) " >&6
22208 cat >conftest.
$ac_ext <<_ACEOF
22211 cat confdefs.h
>>conftest.
$ac_ext
22212 cat >>conftest.
$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22219 static krb5_error ac_aggr;
22220 if (ac_aggr.e_text)
22226 rm -f conftest.
$ac_objext
22227 if { (ac_try
="$ac_compile"
22228 case "(($ac_try" in
22229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22233 $as_echo "$ac_try_echo") >&5
22234 (eval "$ac_compile") 2>conftest.er1
22236 grep -v '^ *+' conftest.er1 >conftest.err
22238 cat conftest.err >&5
22239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
22244 ac_cv_member_krb5_error_e_text=yes
22246 $as_echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22260 static krb5_error ac_aggr;
22261 if (sizeof ac_aggr.e_text)
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22271 *) ac_try_echo
=$ac_try;;
22273 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22274 $as_echo "$ac_try_echo") >&5
22275 (eval "$ac_compile") 2>conftest.er1
22277 grep -v '^ *+' conftest.er1
>conftest.err
22279 cat conftest.err
>&5
22280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest.
$ac_objext; then
22285 ac_cv_member_krb5_error_e_text
=yes
22287 $as_echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.
$ac_ext >&5
22290 ac_cv_member_krb5_error_e_text
=no
22293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22298 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22299 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22300 if test $ac_cv_member_krb5_error_e_text = yes; then
22302 cat >>confdefs.h
<<_ACEOF
22303 #define HAVE_KRB5_ERROR_E_TEXT 1
22315 for ac_header
in des.h
22317 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22320 $as_echo_n "checking for $ac_header... " >&6; }
22321 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22322 $as_echo_n "(cached) " >&6
22324 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22325 $as_echo "$as_val"'`
22326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22327 $as_echo "$ac_res" >&6; }
22329 # Is the header compilable?
22330 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22331 $as_echo_n "checking $ac_header usability... " >&6; }
22332 cat >conftest.
$ac_ext <<_ACEOF
22335 cat confdefs.h
>>conftest.
$ac_ext
22336 cat >>conftest.
$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 $ac_includes_default
22339 #include <$ac_header>
22341 rm -f conftest.
$ac_objext
22342 if { (ac_try
="$ac_compile"
22343 case "(($ac_try" in
22344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22348 $as_echo "$ac_try_echo") >&5
22349 (eval "$ac_compile") 2>conftest.er1
22351 grep -v '^ *+' conftest.er1 >conftest.err
22353 cat conftest.err >&5
22354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } && {
22356 test -z "$ac_c_werror_flag" ||
22357 test ! -s conftest.err
22358 } && test -s conftest.$ac_objext; then
22359 ac_header_compiler=yes
22361 $as_echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 ac_header_compiler=no
22367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22369 $as_echo "$ac_header_compiler" >&6; }
22371 # Is the header present?
22372 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22373 $as_echo_n "checking $ac_header presence... " >&6; }
22374 cat >conftest.$ac_ext <<_ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 #include <$ac_header>
22382 if { (ac_try="$ac_cpp conftest.$ac_ext"
22383 case "(($ac_try" in
22384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22385 *) ac_try_echo
=$ac_try;;
22387 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22388 $as_echo "$ac_try_echo") >&5
22389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22391 grep -v '^ *+' conftest.er1
>conftest.err
22393 cat conftest.err
>&5
22394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } >/dev
/null
&& {
22396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22399 ac_header_preproc
=yes
22401 $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.
$ac_ext >&5
22404 ac_header_preproc
=no
22407 rm -f conftest.err conftest.
$ac_ext
22408 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22409 $as_echo "$ac_header_preproc" >&6; }
22411 # So? What about this header?
22412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22415 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22418 ac_header_preproc
=yes
22421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22422 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22424 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22426 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22428 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22432 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22437 $as_echo_n "checking for $ac_header... " >&6; }
22438 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22439 $as_echo_n "(cached) " >&6
22441 eval "$as_ac_Header=\$ac_header_preproc"
22443 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22444 $as_echo "$as_val"'`
22445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22446 $as_echo "$ac_res" >&6; }
22449 if test `eval 'as_val=${'$as_ac_Header'}
22450 $as_echo "$as_val"'` = yes; then
22451 cat >>confdefs.h
<<_ACEOF
22452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22457 for ac_header
in kerberosIV
/des.h
22459 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22460 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22462 $as_echo_n "checking for $ac_header... " >&6; }
22463 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22464 $as_echo_n "(cached) " >&6
22466 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22467 $as_echo "$as_val"'`
22468 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22469 $as_echo "$ac_res" >&6; }
22471 # Is the header compilable?
22472 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22473 $as_echo_n "checking $ac_header usability... " >&6; }
22474 cat >conftest.
$ac_ext <<_ACEOF
22477 cat confdefs.h
>>conftest.
$ac_ext
22478 cat >>conftest.
$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 $ac_includes_default
22481 #include <$ac_header>
22483 rm -f conftest.
$ac_objext
22484 if { (ac_try
="$ac_compile"
22485 case "(($ac_try" in
22486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22490 $as_echo "$ac_try_echo") >&5
22491 (eval "$ac_compile") 2>conftest.er1
22493 grep -v '^ *+' conftest.er1 >conftest.err
22495 cat conftest.err >&5
22496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } && {
22498 test -z "$ac_c_werror_flag" ||
22499 test ! -s conftest.err
22500 } && test -s conftest.$ac_objext; then
22501 ac_header_compiler=yes
22503 $as_echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22506 ac_header_compiler=no
22509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22511 $as_echo "$ac_header_compiler" >&6; }
22513 # Is the header present?
22514 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22515 $as_echo_n "checking $ac_header presence... " >&6; }
22516 cat >conftest.$ac_ext <<_ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 #include <$ac_header>
22524 if { (ac_try="$ac_cpp conftest.$ac_ext"
22525 case "(($ac_try" in
22526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22527 *) ac_try_echo
=$ac_try;;
22529 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22530 $as_echo "$ac_try_echo") >&5
22531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22533 grep -v '^ *+' conftest.er1
>conftest.err
22535 cat conftest.err
>&5
22536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } >/dev
/null
&& {
22538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22541 ac_header_preproc
=yes
22543 $as_echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.
$ac_ext >&5
22546 ac_header_preproc
=no
22549 rm -f conftest.err conftest.
$ac_ext
22550 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22551 $as_echo "$ac_header_preproc" >&6; }
22553 # So? What about this header?
22554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22557 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22559 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22560 ac_header_preproc
=yes
22563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22564 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22568 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22570 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22574 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22579 $as_echo_n "checking for $ac_header... " >&6; }
22580 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22581 $as_echo_n "(cached) " >&6
22583 eval "$as_ac_Header=\$ac_header_preproc"
22585 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22586 $as_echo "$as_val"'`
22587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22588 $as_echo "$ac_res" >&6; }
22591 if test `eval 'as_val=${'$as_ac_Header'}
22592 $as_echo "$as_val"'` = yes; then
22593 cat >>confdefs.h
<<_ACEOF
22594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22599 for ac_header
in kerberos
/des.h
22601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22602 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22604 $as_echo_n "checking for $ac_header... " >&6; }
22605 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22606 $as_echo_n "(cached) " >&6
22608 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22609 $as_echo "$as_val"'`
22610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22611 $as_echo "$ac_res" >&6; }
22613 # Is the header compilable?
22614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22615 $as_echo_n "checking $ac_header usability... " >&6; }
22616 cat >conftest.
$ac_ext <<_ACEOF
22619 cat confdefs.h
>>conftest.
$ac_ext
22620 cat >>conftest.
$ac_ext <<_ACEOF
22621 /* end confdefs.h. */
22622 $ac_includes_default
22623 #include <$ac_header>
22625 rm -f conftest.
$ac_objext
22626 if { (ac_try
="$ac_compile"
22627 case "(($ac_try" in
22628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22632 $as_echo "$ac_try_echo") >&5
22633 (eval "$ac_compile") 2>conftest.er1
22635 grep -v '^ *+' conftest.er1 >conftest.err
22637 cat conftest.err >&5
22638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && {
22640 test -z "$ac_c_werror_flag" ||
22641 test ! -s conftest.err
22642 } && test -s conftest.$ac_objext; then
22643 ac_header_compiler=yes
22645 $as_echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 ac_header_compiler=no
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22653 $as_echo "$ac_header_compiler" >&6; }
22655 # Is the header present?
22656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22657 $as_echo_n "checking $ac_header presence... " >&6; }
22658 cat >conftest.$ac_ext <<_ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 #include <$ac_header>
22666 if { (ac_try="$ac_cpp conftest.$ac_ext"
22667 case "(($ac_try" in
22668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22669 *) ac_try_echo
=$ac_try;;
22671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22672 $as_echo "$ac_try_echo") >&5
22673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22675 grep -v '^ *+' conftest.er1
>conftest.err
22677 cat conftest.err
>&5
22678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } >/dev
/null
&& {
22680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22681 test ! -s conftest.err
22683 ac_header_preproc
=yes
22685 $as_echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.
$ac_ext >&5
22688 ac_header_preproc
=no
22691 rm -f conftest.err conftest.
$ac_ext
22692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22693 $as_echo "$ac_header_preproc" >&6; }
22695 # So? What about this header?
22696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22702 ac_header_preproc
=yes
22705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22721 $as_echo_n "checking for $ac_header... " >&6; }
22722 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22723 $as_echo_n "(cached) " >&6
22725 eval "$as_ac_Header=\$ac_header_preproc"
22727 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22728 $as_echo "$as_val"'`
22729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22730 $as_echo "$ac_res" >&6; }
22733 if test `eval 'as_val=${'$as_ac_Header'}
22734 $as_echo "$as_val"'` = yes; then
22735 cat >>confdefs.h
<<_ACEOF
22736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22752 for ac_header
in krb.h
22754 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22755 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22757 $as_echo_n "checking for $ac_header... " >&6; }
22758 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22759 $as_echo_n "(cached) " >&6
22761 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22762 $as_echo "$as_val"'`
22763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22764 $as_echo "$ac_res" >&6; }
22766 # Is the header compilable?
22767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22768 $as_echo_n "checking $ac_header usability... " >&6; }
22769 cat >conftest.
$ac_ext <<_ACEOF
22772 cat confdefs.h
>>conftest.
$ac_ext
22773 cat >>conftest.
$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22775 $ac_includes_default
22776 #include <$ac_header>
22778 rm -f conftest.
$ac_objext
22779 if { (ac_try
="$ac_compile"
22780 case "(($ac_try" in
22781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22785 $as_echo "$ac_try_echo") >&5
22786 (eval "$ac_compile") 2>conftest.er1
22788 grep -v '^ *+' conftest.er1 >conftest.err
22790 cat conftest.err >&5
22791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest.$ac_objext; then
22796 ac_header_compiler=yes
22798 $as_echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801 ac_header_compiler=no
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22806 $as_echo "$ac_header_compiler" >&6; }
22808 # Is the header present?
22809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22810 $as_echo_n "checking $ac_header presence... " >&6; }
22811 cat >conftest.$ac_ext <<_ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 #include <$ac_header>
22819 if { (ac_try="$ac_cpp conftest.$ac_ext"
22820 case "(($ac_try" in
22821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22822 *) ac_try_echo
=$ac_try;;
22824 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22825 $as_echo "$ac_try_echo") >&5
22826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1
>conftest.err
22830 cat conftest.err
>&5
22831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } >/dev
/null
&& {
22833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22836 ac_header_preproc
=yes
22838 $as_echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.
$ac_ext >&5
22841 ac_header_preproc
=no
22844 rm -f conftest.err conftest.
$ac_ext
22845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22846 $as_echo "$ac_header_preproc" >&6; }
22848 # So? What about this header?
22849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22855 ac_header_preproc
=yes
22858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22874 $as_echo_n "checking for $ac_header... " >&6; }
22875 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22876 $as_echo_n "(cached) " >&6
22878 eval "$as_ac_Header=\$ac_header_preproc"
22880 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22881 $as_echo "$as_val"'`
22882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22883 $as_echo "$ac_res" >&6; }
22886 if test `eval 'as_val=${'$as_ac_Header'}
22887 $as_echo "$as_val"'` = yes; then
22888 cat >>confdefs.h
<<_ACEOF
22889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22894 for ac_header
in kerberosIV
/krb.h
22896 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22897 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22899 $as_echo_n "checking for $ac_header... " >&6; }
22900 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22901 $as_echo_n "(cached) " >&6
22903 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22904 $as_echo "$as_val"'`
22905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22906 $as_echo "$ac_res" >&6; }
22908 # Is the header compilable?
22909 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22910 $as_echo_n "checking $ac_header usability... " >&6; }
22911 cat >conftest.
$ac_ext <<_ACEOF
22914 cat confdefs.h
>>conftest.
$ac_ext
22915 cat >>conftest.
$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 $ac_includes_default
22918 #include <$ac_header>
22920 rm -f conftest.
$ac_objext
22921 if { (ac_try
="$ac_compile"
22922 case "(($ac_try" in
22923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22927 $as_echo "$ac_try_echo") >&5
22928 (eval "$ac_compile") 2>conftest.er1
22930 grep -v '^ *+' conftest.er1 >conftest.err
22932 cat conftest.err >&5
22933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && {
22935 test -z "$ac_c_werror_flag" ||
22936 test ! -s conftest.err
22937 } && test -s conftest.$ac_objext; then
22938 ac_header_compiler=yes
22940 $as_echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22943 ac_header_compiler=no
22946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22947 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22948 $as_echo "$ac_header_compiler" >&6; }
22950 # Is the header present?
22951 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22952 $as_echo_n "checking $ac_header presence... " >&6; }
22953 cat >conftest.$ac_ext <<_ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 #include <$ac_header>
22961 if { (ac_try="$ac_cpp conftest.$ac_ext"
22962 case "(($ac_try" in
22963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22964 *) ac_try_echo
=$ac_try;;
22966 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22967 $as_echo "$ac_try_echo") >&5
22968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22970 grep -v '^ *+' conftest.er1
>conftest.err
22972 cat conftest.err
>&5
22973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } >/dev
/null
&& {
22975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22978 ac_header_preproc
=yes
22980 $as_echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.
$ac_ext >&5
22983 ac_header_preproc
=no
22986 rm -f conftest.err conftest.
$ac_ext
22987 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22988 $as_echo "$ac_header_preproc" >&6; }
22990 # So? What about this header?
22991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22994 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22996 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22997 ac_header_preproc
=yes
23000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23001 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23003 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23007 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23009 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23011 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23015 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23016 $as_echo_n "checking for $ac_header... " >&6; }
23017 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23018 $as_echo_n "(cached) " >&6
23020 eval "$as_ac_Header=\$ac_header_preproc"
23022 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23023 $as_echo "$as_val"'`
23024 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23025 $as_echo "$ac_res" >&6; }
23028 if test `eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'` = yes; then
23030 cat >>confdefs.h
<<_ACEOF
23031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23036 for ac_header
in kerberos
/krb.h
23038 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23039 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23041 $as_echo_n "checking for $ac_header... " >&6; }
23042 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23043 $as_echo_n "(cached) " >&6
23045 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23046 $as_echo "$as_val"'`
23047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23048 $as_echo "$ac_res" >&6; }
23050 # Is the header compilable?
23051 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23052 $as_echo_n "checking $ac_header usability... " >&6; }
23053 cat >conftest.
$ac_ext <<_ACEOF
23056 cat confdefs.h
>>conftest.
$ac_ext
23057 cat >>conftest.
$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 $ac_includes_default
23060 #include <$ac_header>
23062 rm -f conftest.
$ac_objext
23063 if { (ac_try
="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23069 $as_echo "$ac_try_echo") >&5
23070 (eval "$ac_compile") 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest.$ac_objext; then
23080 ac_header_compiler=yes
23082 $as_echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 ac_header_compiler=no
23088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23090 $as_echo "$ac_header_compiler" >&6; }
23092 # Is the header present?
23093 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23094 $as_echo_n "checking $ac_header presence... " >&6; }
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 #include <$ac_header>
23103 if { (ac_try="$ac_cpp conftest.$ac_ext"
23104 case "(($ac_try" in
23105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23106 *) ac_try_echo
=$ac_try;;
23108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23109 $as_echo "$ac_try_echo") >&5
23110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23112 grep -v '^ *+' conftest.er1
>conftest.err
23114 cat conftest.err
>&5
23115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } >/dev
/null
&& {
23117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23120 ac_header_preproc
=yes
23122 $as_echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.
$ac_ext >&5
23125 ac_header_preproc
=no
23128 rm -f conftest.err conftest.
$ac_ext
23129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 $as_echo "$ac_header_preproc" >&6; }
23132 # So? What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23139 ac_header_preproc
=yes
23142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23143 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23145 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23149 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23153 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23158 $as_echo_n "checking for $ac_header... " >&6; }
23159 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23160 $as_echo_n "(cached) " >&6
23162 eval "$as_ac_Header=\$ac_header_preproc"
23164 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23165 $as_echo "$as_val"'`
23166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23167 $as_echo "$ac_res" >&6; }
23170 if test `eval 'as_val=${'$as_ac_Header'}
23171 $as_echo "$as_val"'` = yes; then
23172 cat >>confdefs.h
<<_ACEOF
23173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23190 for ac_header
in com_err.h
23192 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23193 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23195 $as_echo_n "checking for $ac_header... " >&6; }
23196 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23197 $as_echo_n "(cached) " >&6
23199 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23200 $as_echo "$as_val"'`
23201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23202 $as_echo "$ac_res" >&6; }
23204 # Is the header compilable?
23205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23206 $as_echo_n "checking $ac_header usability... " >&6; }
23207 cat >conftest.
$ac_ext <<_ACEOF
23210 cat confdefs.h
>>conftest.
$ac_ext
23211 cat >>conftest.
$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 $ac_includes_default
23214 #include <$ac_header>
23216 rm -f conftest.
$ac_objext
23217 if { (ac_try
="$ac_compile"
23218 case "(($ac_try" in
23219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23223 $as_echo "$ac_try_echo") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 ac_header_compiler=yes
23236 $as_echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_header_compiler=no
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23244 $as_echo "$ac_header_compiler" >&6; }
23246 # Is the header present?
23247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23248 $as_echo_n "checking $ac_header presence... " >&6; }
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255 #include <$ac_header>
23257 if { (ac_try="$ac_cpp conftest.$ac_ext"
23258 case "(($ac_try" in
23259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23260 *) ac_try_echo
=$ac_try;;
23262 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23263 $as_echo "$ac_try_echo") >&5
23264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23266 grep -v '^ *+' conftest.er1
>conftest.err
23268 cat conftest.err
>&5
23269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } >/dev
/null
&& {
23271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23274 ac_header_preproc
=yes
23276 $as_echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.
$ac_ext >&5
23279 ac_header_preproc
=no
23282 rm -f conftest.err conftest.
$ac_ext
23283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23284 $as_echo "$ac_header_preproc" >&6; }
23286 # So? What about this header?
23287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23293 ac_header_preproc
=yes
23296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23312 $as_echo_n "checking for $ac_header... " >&6; }
23313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23314 $as_echo_n "(cached) " >&6
23316 eval "$as_ac_Header=\$ac_header_preproc"
23318 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'`
23320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23321 $as_echo "$ac_res" >&6; }
23324 if test `eval 'as_val=${'$as_ac_Header'}
23325 $as_echo "$as_val"'` = yes; then
23326 cat >>confdefs.h
<<_ACEOF
23327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23336 # Solaris requires -lintl if you want strerror (which calls dgettext)
23337 # to return localized messages.
23339 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23340 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23341 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23342 $as_echo_n "(cached) " >&6
23344 ac_check_lib_save_LIBS
=$LIBS
23345 LIBS
="-lintl $LIBS"
23346 cat >conftest.
$ac_ext <<_ACEOF
23349 cat confdefs.h
>>conftest.
$ac_ext
23350 cat >>conftest.
$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23353 /* Override any GCC internal prototype to avoid an error.
23354 Use char because int might match the return type of a GCC
23355 builtin and then its argument prototype would still apply. */
23363 return dgettext ();
23368 rm -f conftest.
$ac_objext conftest
$ac_exeext
23369 if { (ac_try
="$ac_link"
23370 case "(($ac_try" in
23371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23375 $as_echo "$ac_try_echo") >&5
23376 (eval "$ac_link") 2>conftest.er1
23378 grep -v '^ *+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && {
23383 test -z "$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23385 } && test -s conftest$ac_exeext && {
23386 test "$cross_compiling" = yes ||
23387 $as_test_x conftest$ac_exeext
23389 ac_cv_lib_intl_dgettext=yes
23391 $as_echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_cv_lib_intl_dgettext=no
23397 rm -rf conftest.dSYM
23398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23399 conftest$ac_exeext conftest.$ac_ext
23400 LIBS=$ac_check_lib_save_LIBS
23402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23403 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23404 if test $ac_cv_lib_intl_dgettext = yes; then
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_LIBINTL 1
23409 LIBS="-lintl $LIBS"
23414 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23415 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23416 if test "${emacs_cv_localtime_cache+set}" = set; then
23417 $as_echo_n "(cached) " >&6
23419 if test x$ac_cv_func_tzset = xyes; then
23420 if test "$cross_compiling" = yes; then
23421 # If we have tzset, assume the worst when cross-compiling.
23422 emacs_cv_localtime_cache=yes
23424 cat >conftest.$ac_ext <<_ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23431 extern char **environ;
23435 for (to = from = environ; (*to = *from); from++)
23436 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23439 char TZ_GMT0[] = "TZ=GMT0";
23440 char TZ_PST8[] = "TZ=PST8";
23443 time_t now = time ((time_t *) 0);
23444 int hour_GMT0, hour_unset;
23445 if (putenv (TZ_GMT0) != 0)
23447 hour_GMT0 = localtime (&now)->tm_hour;
23449 hour_unset = localtime (&now)->tm_hour;
23450 if (putenv (TZ_PST8) != 0)
23452 if (localtime (&now)->tm_hour == hour_GMT0)
23455 if (localtime (&now)->tm_hour != hour_unset)
23460 rm -f conftest$ac_exeext
23461 if { (ac_try="$ac_link"
23462 case "(($ac_try" in
23463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23464 *) ac_try_echo
=$ac_try;;
23466 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23467 $as_echo "$ac_try_echo") >&5
23468 (eval "$ac_link") 2>&5
23470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23472 { (case "(($ac_try" in
23473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478 (eval "$ac_try") 2>&5
23480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 emacs_cv_localtime_cache=no
23484 $as_echo "$as_me: program exited with status $ac_status" >&5
23485 $as_echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ( exit $ac_status )
23489 emacs_cv_localtime_cache=yes
23491 rm -rf conftest.dSYM
23492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23497 # If we lack tzset, report that localtime does not cache TZ,
23498 # since we can't invalidate the cache if we don't have tzset.
23499 emacs_cv_localtime_cache=no
23502 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23503 $as_echo "$emacs_cv_localtime_cache" >&6; }
23504 if test $emacs_cv_localtime_cache = yes; then
23506 cat >>confdefs.h <<\_ACEOF
23507 #define LOCALTIME_CACHE 1
23512 if test "x$HAVE_TIMEVAL" = xyes; then
23514 for ac_func in gettimeofday
23516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23518 $as_echo_n "checking for $ac_func... " >&6; }
23519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23520 $as_echo_n "(cached) " >&6
23522 cat >conftest.$ac_ext <<_ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23530 #define $ac_func innocuous_$ac_func
23532 /* System header to define __stub macros and hopefully few prototypes,
23533 which can conflict with char $ac_func (); below.
23534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23535 <limits.h> exists even on freestanding compilers. */
23538 # include <limits.h>
23540 # include <assert.h>
23545 /* Override any GCC internal prototype to avoid an error.
23546 Use char because int might match the return type of a GCC
23547 builtin and then its argument prototype would still apply. */
23552 /* The GNU C library defines this for functions which it implements
23553 to always fail with ENOSYS. Some functions are actually named
23554 something starting with __ and the normal name is an alias. */
23555 #if defined __stub_$ac_func || defined __stub___$ac_func
23562 return $ac_func ();
23567 rm -f conftest.$ac_objext conftest$ac_exeext
23568 if { (ac_try="$ac_link"
23569 case "(($ac_try" in
23570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23571 *) ac_try_echo
=$ac_try;;
23573 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23574 $as_echo "$ac_try_echo") >&5
23575 (eval "$ac_link") 2>conftest.er1
23577 grep -v '^ *+' conftest.er1
>conftest.err
23579 cat conftest.err
>&5
23580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } && {
23582 test -z "$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 } && test -s conftest
$ac_exeext && {
23585 test "$cross_compiling" = yes ||
23586 $as_test_x conftest
$ac_exeext
23588 eval "$as_ac_var=yes"
23590 $as_echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.
$ac_ext >&5
23593 eval "$as_ac_var=no"
23596 rm -rf conftest.dSYM
23597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23598 conftest
$ac_exeext conftest.
$ac_ext
23600 ac_res
=`eval 'as_val=${'$as_ac_var'}
23601 $as_echo "$as_val"'`
23602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23603 $as_echo "$ac_res" >&6; }
23604 if test `eval 'as_val=${'$as_ac_var'}
23605 $as_echo "$as_val"'` = yes; then
23606 cat >>confdefs.h
<<_ACEOF
23607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23613 if test $ac_cv_func_gettimeofday = yes; then
23614 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23615 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23616 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23617 $as_echo_n "(cached) " >&6
23619 cat >conftest.
$ac_ext <<_ACEOF
23622 cat confdefs.h
>>conftest.
$ac_ext
23623 cat >>conftest.
$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23626 #ifdef TIME_WITH_SYS_TIME
23627 #include <sys/time.h>
23630 #ifdef HAVE_SYS_TIME_H
23631 #include <sys/time.h>
23639 struct timeval time;
23640 gettimeofday (&time, 0);
23645 rm -f conftest.
$ac_objext
23646 if { (ac_try
="$ac_compile"
23647 case "(($ac_try" in
23648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23649 *) ac_try_echo=$ac_try;;
23651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23652 $as_echo "$ac_try_echo") >&5
23653 (eval "$ac_compile") 2>conftest.er1
23655 grep -v '^ *+' conftest.er1 >conftest.err
23657 cat conftest.err >&5
23658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && {
23660 test -z "$ac_c_werror_flag" ||
23661 test ! -s conftest.err
23662 } && test -s conftest.$ac_objext; then
23663 emacs_cv_gettimeofday_two_arguments=yes
23665 $as_echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23668 emacs_cv_gettimeofday_two_arguments=no
23671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23673 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23674 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23675 if test $emacs_cv_gettimeofday_two_arguments = no; then
23677 cat >>confdefs.h <<\_ACEOF
23678 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23686 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23687 $as_echo_n "checking for socket... " >&6; }
23688 if test "${ac_cv_func_socket+set}" = set; then
23689 $as_echo_n "(cached) " >&6
23691 cat >conftest.$ac_ext <<_ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23697 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23699 #define socket innocuous_socket
23701 /* System header to define __stub macros and hopefully few prototypes,
23702 which can conflict with char socket (); below.
23703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23704 <limits.h> exists even on freestanding compilers. */
23707 # include <limits.h>
23709 # include <assert.h>
23714 /* Override any GCC internal prototype to avoid an error.
23715 Use char because int might match the return type of a GCC
23716 builtin and then its argument prototype would still apply. */
23721 /* The GNU C library defines this for functions which it implements
23722 to always fail with ENOSYS. Some functions are actually named
23723 something starting with __ and the normal name is an alias. */
23724 #if defined __stub_socket || defined __stub___socket
23736 rm -f conftest.$ac_objext conftest$ac_exeext
23737 if { (ac_try="$ac_link"
23738 case "(($ac_try" in
23739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23740 *) ac_try_echo
=$ac_try;;
23742 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23743 $as_echo "$ac_try_echo") >&5
23744 (eval "$ac_link") 2>conftest.er1
23746 grep -v '^ *+' conftest.er1
>conftest.err
23748 cat conftest.err
>&5
23749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } && {
23751 test -z "$ac_c_werror_flag" ||
23752 test ! -s conftest.err
23753 } && test -s conftest
$ac_exeext && {
23754 test "$cross_compiling" = yes ||
23755 $as_test_x conftest
$ac_exeext
23757 ac_cv_func_socket
=yes
23759 $as_echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.
$ac_ext >&5
23762 ac_cv_func_socket
=no
23765 rm -rf conftest.dSYM
23766 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23767 conftest
$ac_exeext conftest.
$ac_ext
23769 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23770 $as_echo "$ac_cv_func_socket" >&6; }
23771 if test $ac_cv_func_socket = yes; then
23777 if test $ok_so_far = yes; then
23778 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23779 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23780 $as_echo_n "checking for netinet/in.h... " >&6; }
23781 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23782 $as_echo_n "(cached) " >&6
23784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23785 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23787 # Is the header compilable?
23788 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23789 $as_echo_n "checking netinet/in.h usability... " >&6; }
23790 cat >conftest.
$ac_ext <<_ACEOF
23793 cat confdefs.h
>>conftest.
$ac_ext
23794 cat >>conftest.
$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 $ac_includes_default
23797 #include <netinet/in.h>
23799 rm -f conftest.
$ac_objext
23800 if { (ac_try
="$ac_compile"
23801 case "(($ac_try" in
23802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23806 $as_echo "$ac_try_echo") >&5
23807 (eval "$ac_compile") 2>conftest.er1
23809 grep -v '^ *+' conftest.er1 >conftest.err
23811 cat conftest.err >&5
23812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest.$ac_objext; then
23817 ac_header_compiler=yes
23819 $as_echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 ac_header_compiler=no
23825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23826 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23827 $as_echo "$ac_header_compiler" >&6; }
23829 # Is the header present?
23830 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23831 $as_echo_n "checking netinet/in.h presence... " >&6; }
23832 cat >conftest.$ac_ext <<_ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h. */
23838 #include <netinet/in.h>
23840 if { (ac_try="$ac_cpp conftest.$ac_ext"
23841 case "(($ac_try" in
23842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23843 *) ac_try_echo
=$ac_try;;
23845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23846 $as_echo "$ac_try_echo") >&5
23847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23849 grep -v '^ *+' conftest.er1
>conftest.err
23851 cat conftest.err
>&5
23852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } >/dev
/null
&& {
23854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23855 test ! -s conftest.err
23857 ac_header_preproc
=yes
23859 $as_echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.
$ac_ext >&5
23862 ac_header_preproc
=no
23865 rm -f conftest.err conftest.
$ac_ext
23866 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23867 $as_echo "$ac_header_preproc" >&6; }
23869 # So? What about this header?
23870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23872 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23873 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23874 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23875 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23876 ac_header_preproc
=yes
23879 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23880 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23881 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23882 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23883 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23884 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23885 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23886 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23887 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23888 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23889 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23890 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23894 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23895 $as_echo_n "checking for netinet/in.h... " >&6; }
23896 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23897 $as_echo_n "(cached) " >&6
23899 ac_cv_header_netinet_in_h
=$ac_header_preproc
23901 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23902 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23905 if test $ac_cv_header_netinet_in_h = yes; then
23913 if test $ok_so_far = yes; then
23914 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23915 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23916 $as_echo_n "checking for arpa/inet.h... " >&6; }
23917 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23918 $as_echo_n "(cached) " >&6
23920 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23921 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23923 # Is the header compilable?
23924 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23925 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23926 cat >conftest.
$ac_ext <<_ACEOF
23929 cat confdefs.h
>>conftest.
$ac_ext
23930 cat >>conftest.
$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 $ac_includes_default
23933 #include <arpa/inet.h>
23935 rm -f conftest.
$ac_objext
23936 if { (ac_try
="$ac_compile"
23937 case "(($ac_try" in
23938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23942 $as_echo "$ac_try_echo") >&5
23943 (eval "$ac_compile") 2>conftest.er1
23945 grep -v '^ *+' conftest.er1 >conftest.err
23947 cat conftest.err >&5
23948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } && {
23950 test -z "$ac_c_werror_flag" ||
23951 test ! -s conftest.err
23952 } && test -s conftest.$ac_objext; then
23953 ac_header_compiler=yes
23955 $as_echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23958 ac_header_compiler=no
23961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23963 $as_echo "$ac_header_compiler" >&6; }
23965 # Is the header present?
23966 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23967 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23968 cat >conftest.$ac_ext <<_ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h. */
23974 #include <arpa/inet.h>
23976 if { (ac_try="$ac_cpp conftest.$ac_ext"
23977 case "(($ac_try" in
23978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23979 *) ac_try_echo
=$ac_try;;
23981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23982 $as_echo "$ac_try_echo") >&5
23983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23985 grep -v '^ *+' conftest.er1
>conftest.err
23987 cat conftest.err
>&5
23988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } >/dev
/null
&& {
23990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23991 test ! -s conftest.err
23993 ac_header_preproc
=yes
23995 $as_echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.
$ac_ext >&5
23998 ac_header_preproc
=no
24001 rm -f conftest.err conftest.
$ac_ext
24002 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24003 $as_echo "$ac_header_preproc" >&6; }
24005 # So? What about this header?
24006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24008 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24009 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24010 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24011 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24012 ac_header_preproc
=yes
24015 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24016 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24017 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24018 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24019 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24020 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24021 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24022 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24023 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24024 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24025 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24026 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24030 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24031 $as_echo_n "checking for arpa/inet.h... " >&6; }
24032 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24033 $as_echo_n "(cached) " >&6
24035 ac_cv_header_arpa_inet_h
=$ac_header_preproc
24037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24038 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24041 if test $ac_cv_header_arpa_inet_h = yes; then
24049 if test $ok_so_far = yes; then
24051 cat >>confdefs.h
<<\_ACEOF
24052 #define HAVE_INET_SOCKETS 1
24058 for ac_header
in sys
/ioctl.h
24060 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24061 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24063 $as_echo_n "checking for $ac_header... " >&6; }
24064 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24065 $as_echo_n "(cached) " >&6
24067 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24068 $as_echo "$as_val"'`
24069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24070 $as_echo "$ac_res" >&6; }
24072 # Is the header compilable?
24073 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24074 $as_echo_n "checking $ac_header usability... " >&6; }
24075 cat >conftest.
$ac_ext <<_ACEOF
24078 cat confdefs.h
>>conftest.
$ac_ext
24079 cat >>conftest.
$ac_ext <<_ACEOF
24080 /* end confdefs.h. */
24081 $ac_includes_default
24082 #include <$ac_header>
24084 rm -f conftest.
$ac_objext
24085 if { (ac_try
="$ac_compile"
24086 case "(($ac_try" in
24087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24091 $as_echo "$ac_try_echo") >&5
24092 (eval "$ac_compile") 2>conftest.er1
24094 grep -v '^ *+' conftest.er1 >conftest.err
24096 cat conftest.err >&5
24097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest.$ac_objext; then
24102 ac_header_compiler=yes
24104 $as_echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24107 ac_header_compiler=no
24110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24111 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24112 $as_echo "$ac_header_compiler" >&6; }
24114 # Is the header present?
24115 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24116 $as_echo_n "checking $ac_header presence... " >&6; }
24117 cat >conftest.$ac_ext <<_ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24123 #include <$ac_header>
24125 if { (ac_try="$ac_cpp conftest.$ac_ext"
24126 case "(($ac_try" in
24127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24128 *) ac_try_echo
=$ac_try;;
24130 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24131 $as_echo "$ac_try_echo") >&5
24132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24134 grep -v '^ *+' conftest.er1
>conftest.err
24136 cat conftest.err
>&5
24137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } >/dev
/null
&& {
24139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24140 test ! -s conftest.err
24142 ac_header_preproc
=yes
24144 $as_echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.
$ac_ext >&5
24147 ac_header_preproc
=no
24150 rm -f conftest.err conftest.
$ac_ext
24151 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24152 $as_echo "$ac_header_preproc" >&6; }
24154 # So? What about this header?
24155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24158 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24161 ac_header_preproc
=yes
24164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24165 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24167 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24169 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24171 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24175 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24180 $as_echo_n "checking for $ac_header... " >&6; }
24181 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24182 $as_echo_n "(cached) " >&6
24184 eval "$as_ac_Header=\$ac_header_preproc"
24186 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24187 $as_echo "$as_val"'`
24188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24189 $as_echo "$ac_res" >&6; }
24192 if test `eval 'as_val=${'$as_ac_Header'}
24193 $as_echo "$as_val"'` = yes; then
24194 cat >>confdefs.h
<<_ACEOF
24195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24203 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24205 cat >>confdefs.h
<<\_ACEOF
24206 #define HAVE_AIX_SMT_EXP 1
24211 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24212 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24213 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24214 { $as_echo "$as_me:$LINENO: result: yes" >&5
24215 $as_echo "yes" >&6; }
24217 cat >>confdefs.h
<<\_ACEOF
24218 #define HAVE_DEV_PTMX 1
24222 { $as_echo "$as_me:$LINENO: result: no" >&5
24223 $as_echo "no" >&6; }
24226 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24227 $as_echo_n "checking for pid_t... " >&6; }
24228 if test "${ac_cv_type_pid_t+set}" = set; then
24229 $as_echo_n "(cached) " >&6
24231 ac_cv_type_pid_t
=no
24232 cat >conftest.
$ac_ext <<_ACEOF
24235 cat confdefs.h
>>conftest.
$ac_ext
24236 cat >>conftest.
$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24238 $ac_includes_default
24242 if (sizeof (pid_t))
24248 rm -f conftest.
$ac_objext
24249 if { (ac_try
="$ac_compile"
24250 case "(($ac_try" in
24251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24252 *) ac_try_echo=$ac_try;;
24254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24255 $as_echo "$ac_try_echo") >&5
24256 (eval "$ac_compile") 2>conftest.er1
24258 grep -v '^ *+' conftest.er1 >conftest.err
24260 cat conftest.err >&5
24261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && {
24263 test -z "$ac_c_werror_flag" ||
24264 test ! -s conftest.err
24265 } && test -s conftest.$ac_objext; then
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24276 if (sizeof ((pid_t)))
24282 rm -f conftest.$ac_objext
24283 if { (ac_try="$ac_compile"
24284 case "(($ac_try" in
24285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24286 *) ac_try_echo
=$ac_try;;
24288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24289 $as_echo "$ac_try_echo") >&5
24290 (eval "$ac_compile") 2>conftest.er1
24292 grep -v '^ *+' conftest.er1
>conftest.err
24294 cat conftest.err
>&5
24295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); } && {
24297 test -z "$ac_c_werror_flag" ||
24298 test ! -s conftest.err
24299 } && test -s conftest.
$ac_objext; then
24302 $as_echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.
$ac_ext >&5
24305 ac_cv_type_pid_t
=yes
24308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24310 $as_echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.
$ac_ext >&5
24316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24318 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24319 $as_echo "$ac_cv_type_pid_t" >&6; }
24320 if test $ac_cv_type_pid_t = yes; then
24324 cat >>confdefs.h
<<_ACEOF
24331 for ac_header
in vfork.h
24333 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24334 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24336 $as_echo_n "checking for $ac_header... " >&6; }
24337 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24338 $as_echo_n "(cached) " >&6
24340 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24341 $as_echo "$as_val"'`
24342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24343 $as_echo "$ac_res" >&6; }
24345 # Is the header compilable?
24346 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24347 $as_echo_n "checking $ac_header usability... " >&6; }
24348 cat >conftest.
$ac_ext <<_ACEOF
24351 cat confdefs.h
>>conftest.
$ac_ext
24352 cat >>conftest.
$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 $ac_includes_default
24355 #include <$ac_header>
24357 rm -f conftest.
$ac_objext
24358 if { (ac_try
="$ac_compile"
24359 case "(($ac_try" in
24360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364 $as_echo "$ac_try_echo") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24367 grep -v '^ *+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } && {
24372 test -z "$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24374 } && test -s conftest.$ac_objext; then
24375 ac_header_compiler=yes
24377 $as_echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_header_compiler=no
24383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24385 $as_echo "$ac_header_compiler" >&6; }
24387 # Is the header present?
24388 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24389 $as_echo_n "checking $ac_header presence... " >&6; }
24390 cat >conftest.$ac_ext <<_ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24396 #include <$ac_header>
24398 if { (ac_try="$ac_cpp conftest.$ac_ext"
24399 case "(($ac_try" in
24400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24401 *) ac_try_echo
=$ac_try;;
24403 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24404 $as_echo "$ac_try_echo") >&5
24405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24407 grep -v '^ *+' conftest.er1
>conftest.err
24409 cat conftest.err
>&5
24410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } >/dev
/null
&& {
24412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24413 test ! -s conftest.err
24415 ac_header_preproc
=yes
24417 $as_echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.
$ac_ext >&5
24420 ac_header_preproc
=no
24423 rm -f conftest.err conftest.
$ac_ext
24424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24425 $as_echo "$ac_header_preproc" >&6; }
24427 # So? What about this header?
24428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24431 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24434 ac_header_preproc
=yes
24437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24438 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24440 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24442 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24444 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24448 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24452 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24453 $as_echo_n "checking for $ac_header... " >&6; }
24454 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24455 $as_echo_n "(cached) " >&6
24457 eval "$as_ac_Header=\$ac_header_preproc"
24459 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24460 $as_echo "$as_val"'`
24461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24462 $as_echo "$ac_res" >&6; }
24465 if test `eval 'as_val=${'$as_ac_Header'}
24466 $as_echo "$as_val"'` = yes; then
24467 cat >>confdefs.h
<<_ACEOF
24468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24477 for ac_func
in fork vfork
24479 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24480 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24481 $as_echo_n "checking for $ac_func... " >&6; }
24482 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24483 $as_echo_n "(cached) " >&6
24485 cat >conftest.
$ac_ext <<_ACEOF
24488 cat confdefs.h
>>conftest.
$ac_ext
24489 cat >>conftest.
$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24493 #define $ac_func innocuous_$ac_func
24495 /* System header to define __stub macros and hopefully few prototypes,
24496 which can conflict with char $ac_func (); below.
24497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24498 <limits.h> exists even on freestanding compilers. */
24501 # include <limits.h>
24503 # include <assert.h>
24508 /* Override any GCC internal prototype to avoid an error.
24509 Use char because int might match the return type of a GCC
24510 builtin and then its argument prototype would still apply. */
24515 /* The GNU C library defines this for functions which it implements
24516 to always fail with ENOSYS. Some functions are actually named
24517 something starting with __ and the normal name is an alias. */
24518 #if defined __stub_$ac_func || defined __stub___$ac_func
24525 return $ac_func ();
24530 rm -f conftest.
$ac_objext conftest
$ac_exeext
24531 if { (ac_try
="$ac_link"
24532 case "(($ac_try" in
24533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24537 $as_echo "$ac_try_echo") >&5
24538 (eval "$ac_link") 2>conftest.er1
24540 grep -v '^ *+' conftest.er1 >conftest.err
24542 cat conftest.err >&5
24543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } && {
24545 test -z "$ac_c_werror_flag" ||
24546 test ! -s conftest.err
24547 } && test -s conftest$ac_exeext && {
24548 test "$cross_compiling" = yes ||
24549 $as_test_x conftest$ac_exeext
24551 eval "$as_ac_var=yes"
24553 $as_echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24556 eval "$as_ac_var=no"
24559 rm -rf conftest.dSYM
24560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24561 conftest$ac_exeext conftest.$ac_ext
24563 ac_res=`eval 'as_val=${'$as_ac_var'}
24564 $as_echo "$as_val"'`
24565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24566 $as_echo "$ac_res" >&6; }
24567 if test `eval 'as_val=${'$as_ac_var'}
24568 $as_echo "$as_val"'` = yes; then
24569 cat >>confdefs.h <<_ACEOF
24570 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24576 if test "x$ac_cv_func_fork" = xyes; then
24577 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24578 $as_echo_n "checking for working fork... " >&6; }
24579 if test "${ac_cv_func_fork_works+set}" = set; then
24580 $as_echo_n "(cached) " >&6
24582 if test "$cross_compiling" = yes; then
24583 ac_cv_func_fork_works=cross
24585 cat >conftest.$ac_ext <<_ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 $ac_includes_default
24596 /* By Ruediger Kuhlmann. */
24597 return fork () < 0;
24603 rm -f conftest$ac_exeext
24604 if { (ac_try="$ac_link"
24605 case "(($ac_try" in
24606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24607 *) ac_try_echo
=$ac_try;;
24609 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24610 $as_echo "$ac_try_echo") >&5
24611 (eval "$ac_link") 2>&5
24613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24615 { (case "(($ac_try" in
24616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24617 *) ac_try_echo=$ac_try;;
24619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24620 $as_echo "$ac_try_echo") >&5
24621 (eval "$ac_try") 2>&5
24623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; }; then
24625 ac_cv_func_fork_works=yes
24627 $as_echo "$as_me: program exited with status $ac_status" >&5
24628 $as_echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 ( exit $ac_status )
24632 ac_cv_func_fork_works=no
24634 rm -rf conftest.dSYM
24635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24641 $as_echo "$ac_cv_func_fork_works" >&6; }
24644 ac_cv_func_fork_works=$ac_cv_func_fork
24646 if test "x$ac_cv_func_fork_works" = xcross; then
24648 *-*-amigaos* | *-*-msdosdjgpp*)
24649 # Override, as these systems have only a dummy fork() stub
24650 ac_cv_func_fork_works=no
24653 ac_cv_func_fork_works=yes
24656 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24657 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24659 ac_cv_func_vfork_works=$ac_cv_func_vfork
24660 if test "x$ac_cv_func_vfork" = xyes; then
24661 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24662 $as_echo_n "checking for working vfork... " >&6; }
24663 if test "${ac_cv_func_vfork_works+set}" = set; then
24664 $as_echo_n "(cached) " >&6
24666 if test "$cross_compiling" = yes; then
24667 ac_cv_func_vfork_works=cross
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 /* Thanks to Paul Eggert for this test. */
24676 $ac_includes_default
24677 #include <sys/wait.h>
24678 #ifdef HAVE_VFORK_H
24679 # include <vfork.h>
24681 /* On some sparc systems, changes by the child to local and incoming
24682 argument registers are propagated back to the parent. The compiler
24683 is told about this with #include <vfork.h>, but some compilers
24684 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24685 static variable whose address is put into a register that is
24686 clobbered by the vfork. */
24689 sparc_address_test (int arg)
24691 sparc_address_test (arg) int arg;
24694 static pid_t child;
24712 pid_t parent = getpid ();
24715 sparc_address_test (0);
24720 /* Here is another test for sparc vfork register problems. This
24721 test uses lots of local variables, at least as many local
24722 variables as main has allocated so far including compiler
24723 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24724 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24725 reuse the register of parent for one of the local variables,
24726 since it will think that parent can't possibly be used any more
24727 in this routine. Assigning to the local variable will thus
24728 munge parent in the parent process. */
24730 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24731 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24732 /* Convince the compiler that p..p7 are live; otherwise, it might
24733 use the same hardware register for all 8 local variables. */
24734 if (p != p1 || p != p2 || p != p3 || p != p4
24735 || p != p5 || p != p6 || p != p7)
24738 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24739 from child file descriptors. If the child closes a descriptor
24740 before it execs or exits, this munges the parent's descriptor
24741 as well. Test for this by closing stdout in the child. */
24742 _exit(close(fileno(stdout)) != 0);
24747 while (wait(&status) != child)
24750 /* Was there some problem with vforking? */
24753 /* Did the child fail? (This shouldn't happen.) */
24756 /* Did the vfork/compiler bug occur? */
24757 || parent != getpid()
24759 /* Did the file descriptor bug occur? */
24760 || fstat(fileno(stdout), &st) != 0
24765 rm -f conftest$ac_exeext
24766 if { (ac_try="$ac_link"
24767 case "(($ac_try" in
24768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24769 *) ac_try_echo
=$ac_try;;
24771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24772 $as_echo "$ac_try_echo") >&5
24773 (eval "$ac_link") 2>&5
24775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24777 { (case "(($ac_try" in
24778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24782 $as_echo "$ac_try_echo") >&5
24783 (eval "$ac_try") 2>&5
24785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); }; }; then
24787 ac_cv_func_vfork_works=yes
24789 $as_echo "$as_me: program exited with status $ac_status" >&5
24790 $as_echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24793 ( exit $ac_status )
24794 ac_cv_func_vfork_works=no
24796 rm -rf conftest.dSYM
24797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24802 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24803 $as_echo "$ac_cv_func_vfork_works" >&6; }
24806 if test "x$ac_cv_func_fork_works" = xcross; then
24807 ac_cv_func_vfork_works=$ac_cv_func_vfork
24808 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24809 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24812 if test "x$ac_cv_func_vfork_works" = xyes; then
24814 cat >>confdefs.h <<\_ACEOF
24815 #define HAVE_WORKING_VFORK 1
24820 cat >>confdefs.h <<\_ACEOF
24825 if test "x$ac_cv_func_fork_works" = xyes; then
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_WORKING_FORK 1
24834 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24835 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24836 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24837 $as_echo_n "(cached) " >&6
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 #include <langinfo.h>
24849 char* cs = nl_langinfo(CODESET);
24854 rm -f conftest.$ac_objext conftest$ac_exeext
24855 if { (ac_try="$ac_link"
24856 case "(($ac_try" in
24857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24858 *) ac_try_echo
=$ac_try;;
24860 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24861 $as_echo "$ac_try_echo") >&5
24862 (eval "$ac_link") 2>conftest.er1
24864 grep -v '^ *+' conftest.er1
>conftest.err
24866 cat conftest.err
>&5
24867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); } && {
24869 test -z "$ac_c_werror_flag" ||
24870 test ! -s conftest.err
24871 } && test -s conftest
$ac_exeext && {
24872 test "$cross_compiling" = yes ||
24873 $as_test_x conftest
$ac_exeext
24875 emacs_cv_langinfo_codeset
=yes
24877 $as_echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.
$ac_ext >&5
24880 emacs_cv_langinfo_codeset
=no
24883 rm -rf conftest.dSYM
24884 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24885 conftest
$ac_exeext conftest.
$ac_ext
24888 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24889 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24890 if test $emacs_cv_langinfo_codeset = yes; then
24892 cat >>confdefs.h
<<\_ACEOF
24893 #define HAVE_LANGINFO_CODESET 1
24898 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24899 $as_echo_n "checking for size_t... " >&6; }
24900 if test "${ac_cv_type_size_t+set}" = set; then
24901 $as_echo_n "(cached) " >&6
24903 ac_cv_type_size_t
=no
24904 cat >conftest.
$ac_ext <<_ACEOF
24907 cat confdefs.h
>>conftest.
$ac_ext
24908 cat >>conftest.
$ac_ext <<_ACEOF
24909 /* end confdefs.h. */
24910 $ac_includes_default
24914 if (sizeof (size_t))
24920 rm -f conftest.
$ac_objext
24921 if { (ac_try
="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24927 $as_echo "$ac_try_echo") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest.$ac_objext; then
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 $ac_includes_default
24948 if (sizeof ((size_t)))
24954 rm -f conftest.$ac_objext
24955 if { (ac_try="$ac_compile"
24956 case "(($ac_try" in
24957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24958 *) ac_try_echo
=$ac_try;;
24960 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24961 $as_echo "$ac_try_echo") >&5
24962 (eval "$ac_compile") 2>conftest.er1
24964 grep -v '^ *+' conftest.er1
>conftest.err
24966 cat conftest.err
>&5
24967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); } && {
24969 test -z "$ac_c_werror_flag" ||
24970 test ! -s conftest.err
24971 } && test -s conftest.
$ac_objext; then
24974 $as_echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.
$ac_ext >&5
24977 ac_cv_type_size_t
=yes
24980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24982 $as_echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.
$ac_ext >&5
24988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24990 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24991 $as_echo "$ac_cv_type_size_t" >&6; }
24992 if test $ac_cv_type_size_t = yes; then
24994 cat >>confdefs.h
<<_ACEOF
24995 #define HAVE_SIZE_T 1
25002 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25003 $as_echo_n "checking for mbstate_t... " >&6; }
25004 if test "${ac_cv_type_mbstate_t+set}" = set; then
25005 $as_echo_n "(cached) " >&6
25007 cat >conftest.
$ac_ext <<_ACEOF
25010 cat confdefs.h
>>conftest.
$ac_ext
25011 cat >>conftest.
$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25013 $ac_includes_default
25014 # include <wchar.h>
25018 mbstate_t x; return sizeof x;
25023 rm -f conftest.
$ac_objext
25024 if { (ac_try
="$ac_compile"
25025 case "(($ac_try" in
25026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25027 *) ac_try_echo=$ac_try;;
25029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25030 $as_echo "$ac_try_echo") >&5
25031 (eval "$ac_compile") 2>conftest.er1
25033 grep -v '^ *+' conftest.er1 >conftest.err
25035 cat conftest.err >&5
25036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } && {
25038 test -z "$ac_c_werror_flag" ||
25039 test ! -s conftest.err
25040 } && test -s conftest.$ac_objext; then
25041 ac_cv_type_mbstate_t=yes
25043 $as_echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 ac_cv_type_mbstate_t=no
25049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25052 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25053 if test $ac_cv_type_mbstate_t = yes; then
25055 cat >>confdefs.h <<\_ACEOF
25056 #define HAVE_MBSTATE_T 1
25061 cat >>confdefs.h <<\_ACEOF
25062 #define mbstate_t int
25067 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25068 $as_echo_n "checking for C restrict keyword... " >&6; }
25069 if test "${emacs_cv_c_restrict+set}" = set; then
25070 $as_echo_n "(cached) " >&6
25072 cat >conftest.$ac_ext <<_ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h. */
25078 void fred (int *restrict x);
25087 rm -f conftest.$ac_objext
25088 if { (ac_try="$ac_compile"
25089 case "(($ac_try" in
25090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25091 *) ac_try_echo
=$ac_try;;
25093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25094 $as_echo "$ac_try_echo") >&5
25095 (eval "$ac_compile") 2>conftest.er1
25097 grep -v '^ *+' conftest.er1
>conftest.err
25099 cat conftest.err
>&5
25100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } && {
25102 test -z "$ac_c_werror_flag" ||
25103 test ! -s conftest.err
25104 } && test -s conftest.
$ac_objext; then
25105 emacs_cv_c_restrict
=yes
25107 $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.
$ac_ext >&5
25110 cat >conftest.
$ac_ext <<_ACEOF
25113 cat confdefs.h
>>conftest.
$ac_ext
25114 cat >>conftest.
$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 void fred (int *__restrict x);
25125 rm -f conftest.
$ac_objext
25126 if { (ac_try
="$ac_compile"
25127 case "(($ac_try" in
25128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25129 *) ac_try_echo=$ac_try;;
25131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25132 $as_echo "$ac_try_echo") >&5
25133 (eval "$ac_compile") 2>conftest.er1
25135 grep -v '^ *+' conftest.er1 >conftest.err
25137 cat conftest.err >&5
25138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } && {
25140 test -z "$ac_c_werror_flag" ||
25141 test ! -s conftest.err
25142 } && test -s conftest.$ac_objext; then
25143 emacs_cv_c_restrict=__restrict
25145 $as_echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25148 emacs_cv_c_restrict=no
25151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25156 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25157 $as_echo "$emacs_cv_c_restrict" >&6; }
25158 case "$emacs_cv_c_restrict" in
25159 yes) emacs_restrict=restrict;;
25160 no) emacs_restrict="";;
25161 *) emacs_restrict="$emacs_cv_c_restrict";;
25163 if test "$emacs_restrict" != __restrict; then
25165 cat >>confdefs.h <<_ACEOF
25166 #define __restrict $emacs_restrict
25171 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25172 $as_echo_n "checking for C restricted array declarations... " >&6; }
25173 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25174 $as_echo_n "(cached) " >&6
25176 cat >conftest.$ac_ext <<_ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h. */
25182 void fred (int x[__restrict]);
25191 rm -f conftest.$ac_objext
25192 if { (ac_try="$ac_compile"
25193 case "(($ac_try" in
25194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25195 *) ac_try_echo
=$ac_try;;
25197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25198 $as_echo "$ac_try_echo") >&5
25199 (eval "$ac_compile") 2>conftest.er1
25201 grep -v '^ *+' conftest.er1
>conftest.err
25203 cat conftest.err
>&5
25204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); } && {
25206 test -z "$ac_c_werror_flag" ||
25207 test ! -s conftest.err
25208 } && test -s conftest.
$ac_objext; then
25209 emacs_cv_c_restrict_arr
=yes
25211 $as_echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.
$ac_ext >&5
25214 emacs_cv_c_restrict_arr
=no
25217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25220 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25221 if test "$emacs_cv_c_restrict_arr" = yes; then
25223 cat >>confdefs.h
<<\_ACEOF
25224 #define __restrict_arr __restrict
25231 # Set up the CFLAGS for real compilation, so we can substitute it.
25232 CFLAGS
="$REAL_CFLAGS"
25233 CPPFLAGS
="$REAL_CPPFLAGS"
25235 #### Find out which version of Emacs this is.
25236 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25237 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25238 if test x
"${version}" = x
; then
25239 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25240 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25241 { (exit 1); exit 1; }; }
25243 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
25244 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25245 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25248 ### Specify what sort of things we'll be editing into Makefile and config.h.
25249 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25293 cat >>confdefs.h <<_ACEOF
25294 #define EMACS_CONFIGURATION "${canonical}"
25298 cat >>confdefs.h <<_ACEOF
25299 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25303 cat >>confdefs.h <<_ACEOF
25304 #define config_machfile "${machfile}"
25308 cat >>confdefs.h <<_ACEOF
25309 #define config_opsysfile "${opsysfile}"
25313 cat >>confdefs.h <<_ACEOF
25314 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25318 cat >>confdefs.h <<_ACEOF
25319 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25323 cat >>confdefs.h <<_ACEOF
25324 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25328 cat >>confdefs.h <<_ACEOF
25329 #define UNEXEC_SRC ${UNEXEC_SRC}
25333 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_X_WINDOWS 1
25340 if test "${USE_X_TOOLKIT}" != "none
" ; then
25342 cat >>confdefs.h <<\_ACEOF
25343 #define USE_X_TOOLKIT 1
25346 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
25348 cat >>confdefs.h <<\_ACEOF
25349 #define USE_LUCID 1
25352 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
25354 cat >>confdefs.h <<\_ACEOF
25355 #define USE_MOTIF 1
25360 if test "${HAVE_X11}" = "yes" ; then
25362 cat >>confdefs.h <<\_ACEOF
25367 if test "${HAVE_MENUS}" = "yes" ; then
25369 cat >>confdefs.h <<\_ACEOF
25370 #define HAVE_MENUS 1
25374 if test "${GNU_MALLOC}" = "yes" ; then
25376 cat >>confdefs.h <<\_ACEOF
25377 #define GNU_MALLOC 1
25381 if test "${REL_ALLOC}" = "yes" ; then
25383 cat >>confdefs.h <<\_ACEOF
25384 #define REL_ALLOC 1
25394 #### Report on what we decided to do.
25395 #### Report GTK as a toolkit, even if it doesn't use Xt.
25396 #### It makes printing result more understandable as using GTK sets
25397 #### toolkit_scroll_bars to yes by default.
25398 if test "${HAVE_GTK}" = "yes"; then
25403 Configured
for \
`${canonical}'.
25405 Where should the build process find the source code? ${srcdir}
25406 What operating system and machine description files should Emacs use?
25407 \`${opsysfile}' and \`${machfile}'
25408 What compiler should emacs be built with?
${CC} ${CFLAGS}
25409 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
25410 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
25411 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
25412 What window system should Emacs use?
${window_system}
25413 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
25415 if test -n "${x_includes}"; then
25416 echo " Where
do we
find X Windows header files?
${x_includes}"
25418 echo " Where
do we
find X Windows header files? Standard
dirs"
25420 if test -n "${x_libraries}"; then
25421 echo " Where
do we
find X Windows libraries?
${x_libraries}"
25423 echo " Where
do we
find X Windows libraries? Standard
dirs"
25426 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
25427 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
25428 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
25429 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
25430 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
25431 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
25432 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
25433 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
25434 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
25436 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
25437 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
25438 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
25439 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
25441 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
25444 if test $USE_XASSERTS = yes; then
25445 echo " Compiling with asserts turned on.
"
25446 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25451 if test "$USE_X_TOOLKIT" = GTK; then
25452 case "$canonical" in
25454 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
25455 will probably get a crash on startup. If this happens
, please use another
25456 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
25461 if test "$HAVE_NS" = "yes"; then
25463 echo "You must run
\"make install\" in order to
test the built application.
25464 The installed application will go to nextstep
/Emacs.app and can be
25465 run or moved from there.
"
25466 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25467 echo "The application will be fully self-contained.
"
25469 echo "The lisp resources
for the application will be installed under
${prefix}.
25470 You may need to run
\"make install\" with sudo. The application will fail
25471 to run
if these resources are not installed.
"
25476 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
25477 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
25482 # Remove any trailing slashes in these variables.
25483 test "${prefix}" != NONE &&
25484 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25485 test "${exec_prefix}" != NONE &&
25486 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25488 # Now get this: Some word that is part of the ${srcdir} directory name
25489 # or the ${configuration} value might, just might, happen to be an
25490 # identifier like `sun4' or `i386' or something, and be predefined by
25491 # the C preprocessor to some helpful value like 1, or maybe the empty
25492 # string. Needless to say consequent macro substitutions are less
25493 # than conducive to the makefile finding the correct directory.
25494 cpp_undefs="`echo $srcdir $configuration $canonical |
25495 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25496 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25498 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25499 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25500 ## from Makefile.c can correctly provide the arg `-traditional' to the
25503 cat >conftest.$ac_ext <<_ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h. */
25511 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25512 $EGREP "yes..
yes" >/dev/null 2>&1; then
25513 CPP_NEED_TRADITIONAL=no
25515 CPP_NEED_TRADITIONAL=yes
25520 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
25522 ac_config_commands="$ac_config_commands default
"
25524 cat >confcache <<\_ACEOF
25525 # This file is a shell script that caches the results of configure
25526 # tests run on this system so they can be shared between configure
25527 # scripts and configure runs, see configure's option --config-cache.
25528 # It is not useful on other systems. If it contains results you don't
25529 # want to keep, you may remove or edit it.
25531 # config.status only pays attention to the cache file if you give it
25532 # the --recheck option to rerun configure.
25534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25536 # following values.
25540 # The following way of writing the cache mishandles newlines in values,
25541 # but we know of no workaround that is simple, portable, and efficient.
25542 # So, we kill variables containing newlines.
25543 # Ultrix sh set writes to stderr and can't be redirected directly,
25544 # and sets the high bit in the cache file unless we assign to the vars.
25546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25547 eval ac_val=\$$ac_var
25551 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
25552 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
25555 _ | IFS | as_nl) ;; #(
25556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25557 *) $as_unset $ac_var ;;
25563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25564 *${as_nl}ac_space=\ *)
25565 # `set' does not quote correctly, so add quotes (double-quote
25566 # substitution turns \\\\ into \\, and sed turns \\ into \).
25569 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
25572 # `set' quotes correctly as required by POSIX, so do not add quotes.
25573 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
25582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25587 if test -w "$cache_file"; then
25588 test "x
$cache_file" != "x
/dev
/null
" &&
25589 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
25590 $as_echo "$as_me: updating cache
$cache_file" >&6;}
25591 cat confcache >$cache_file
25593 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
25594 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
25599 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
25600 # Let make expand exec_prefix.
25601 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
25603 DEFS=-DHAVE_CONFIG_H
25607 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
25608 # 1. Remove the extension, and $U if already installed.
25609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25612 # will be set to the directory where LIBOBJS objects are built.
25613 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
25614 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
25616 LIBOBJS=$ac_libobjs
25618 LTLIBOBJS=$ac_ltlibobjs
25622 : ${CONFIG_STATUS=./config.status}
25624 ac_clean_files_save=$ac_clean_files
25625 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25626 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
25627 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
25628 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25630 # Generated by $as_me.
25631 # Run this file to recreate the current configuration.
25632 # Compiler output produced by configure, useful for debugging
25633 # configure, is in config.log if it exists.
25636 ac_cs_recheck=false
25638 SHELL=\${CONFIG_SHELL-$SHELL}
25641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25642 ## --------------------- ##
25643 ## M4sh Initialization. ##
25644 ## --------------------- ##
25646 # Be more Bourne compatible
25647 DUALCASE=1; export DUALCASE # for MKS sh
25648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25651 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25652 # is contrary to our usage. Disable this feature.
25653 alias -g '${1+"$@"}'='"$@
"'
25654 setopt NO_GLOB_SUBST
25656 case `(set -o) 2>/dev/null` in
25657 *posix*) set -o posix ;;
25666 # Avoid depending upon Character Ranges.
25667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25670 as_cr_digits='0123456789'
25671 as_cr_alnum=$as_cr_Letters$as_cr_digits
25676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25680 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
25681 as_echo='printf %s\n'
25682 as_echo_n='printf %s'
25684 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
25685 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25686 as_echo_n='/usr/ucb/echo -n'
25688 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
25689 as_echo_n_body='eval
25693 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
25694 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
25696 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
25698 export as_echo_n_body
25699 as_echo_n='sh -c $as_echo_n_body as_echo'
25701 export as_echo_body
25702 as_echo='sh -c $as_echo_body as_echo'
25705 # The user is always right.
25706 if test "${PATH_SEPARATOR+set}" != set; then
25708 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25709 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25714 # Support unset when possible.
25715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25723 # We need space, tab and new line, in precisely that order. Quoting is
25724 # there to prevent editors from complaining about space-tab.
25725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25726 # splitting by setting IFS to empty value.)
25729 # Find who we are. Look in the path if we contain no directory separator.
25731 *[\\/]* ) as_myself=$0 ;;
25732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25733 for as_dir in $PATH
25736 test -z "$as_dir" && as_dir=.
25737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25743 # We did not find ourselves, most probably we were run as `sh COMMAND'
25744 # in which case we are not to be found in the path.
25745 if test "x
$as_myself" = x; then
25748 if test ! -f "$as_myself"; then
25749 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
25750 { (exit 1); exit 1; }
25753 # Work around bugs in pre-3.0 UWIN ksh.
25754 for as_var in ENV MAIL MAILPATH
25755 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25767 # Required to use basename.
25768 if expr a : '\(a\)' >/dev/null 2>&1 &&
25769 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25775 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
25776 as_basename=basename
25782 # Name of the executable.
25783 as_me=`$as_basename -- "$0" ||
25784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25785 X"$0" : 'X\(//\)$' \| \
25786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25788 sed '/^.*\/\([^/][^/]*\)\/*$/{
25807 as_lineno_1=$LINENO
25808 as_lineno_2=$LINENO
25809 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
25810 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
25812 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25813 # uniformly replaced by the line number. The first 'sed' inserts a
25814 # line-number line after each line using $LINENO; the second 'sed'
25815 # does the real work. The second script uses 'N' to pair each
25816 # line-number line with the line containing $LINENO, and appends
25817 # trailing '-' during substitution so that $LINENO is not a special
25818 # case at line end.
25819 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25820 # scripts with optimization help from Paolo Bonzini. Blame Lee
25821 # E. McMahon (1931-1989) for sed's syntax. :-)
25833 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25836 ' >$as_me.lineno &&
25837 chmod +x "$as_me.lineno
" ||
25838 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
25839 { (exit 1); exit 1; }; }
25841 # Don't try to exec as it changes $[0], causing all sort of problems
25842 # (the dirname of $[0] is not the place where we might find the
25843 # original and so on. Autoconf is especially sensitive to this).
25844 . ".
/$as_me.lineno
"
25845 # Exit status is that of the last command.
25850 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
25856 ECHO_C= ECHO_N= ECHO_T=
25857 case `echo -n x` in
25859 case `echo 'x\c'` in
25860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25866 if expr a : '\(a\)' >/dev/null 2>&1 &&
25867 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25873 rm -f conf$$ conf$$.exe conf$$.file
25874 if test -d conf$$.dir; then
25875 rm -f conf$$.dir/conf$$.file
25878 mkdir conf$$.dir 2>/dev/null
25880 if (echo >conf$$.file) 2>/dev/null; then
25881 if ln -s conf$$.file conf$$ 2>/dev/null; then
25883 # ... but there are two gotchas:
25884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25886 # In both cases, we have to default to `cp -p'.
25887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25889 elif ln conf$$.file conf$$ 2>/dev/null; then
25897 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25898 rmdir conf$$.dir 2>/dev/null
25900 if mkdir -p . 2>/dev/null; then
25903 test -d ./-p && rmdir ./-p
25907 if test -x / >/dev/null 2>&1; then
25908 as_test_x='test -x'
25910 if ls -dL / >/dev/null 2>&1; then
25917 if test -d "$1"; then
25923 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25924 ???[sx]*):;;*)false;;esac;fi
25928 as_executable_p=$as_test_x
25930 # Sed expression to map a string onto a valid CPP name.
25931 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25933 # Sed expression to map a string onto a valid variable name.
25934 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25939 # Save the log message, to keep $[0] and so on meaningful, and to
25940 # report actual input values of CONFIG_FILES etc. instead of their
25941 # values after options handling.
25943 This
file was extended by emacs
$as_me 23.1.50, which was
25944 generated by GNU Autoconf
2.62. Invocation
command line was
25946 CONFIG_FILES
= $CONFIG_FILES
25947 CONFIG_HEADERS
= $CONFIG_HEADERS
25948 CONFIG_LINKS
= $CONFIG_LINKS
25949 CONFIG_COMMANDS
= $CONFIG_COMMANDS
25952 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
25957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25958 # Files that config.status was made for.
25959 config_files="$ac_config_files"
25960 config_headers="$ac_config_headers"
25961 config_commands="$ac_config_commands"
25965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25967 \
`$as_me' instantiates files from templates according to the
25968 current configuration.
25970 Usage: $0 [OPTIONS] [FILE]...
25972 -h, --help print this help, then exit
25973 -V, --version print version number and configuration settings, then exit
25974 -q, --quiet do not print progress messages
25975 -d, --debug don't remove temporary files
25976 --recheck update $as_me by reconfiguring in the same conditions
25977 --file=FILE[:TEMPLATE]
25978 instantiate the configuration file FILE
25979 --header=FILE[:TEMPLATE]
25980 instantiate the configuration header FILE
25982 Configuration files:
25985 Configuration headers:
25988 Configuration commands:
25991 Report bugs to <bug-autoconf@gnu.org>."
25994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25996 emacs config.status 23.1.50
25997 configured by $0, generated by GNU Autoconf 2.62,
25998 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26000 Copyright (C) 2008 Free Software Foundation, Inc.
26001 This config.status script is free software; the Free Software Foundation
26002 gives unlimited permission to copy, distribute and modify it."
26007 test -n "\$AWK" || AWK=awk
26010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26011 # The default lists apply if the user does not specify any file.
26017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26029 # Handling of the options.
26030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26032 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26033 $as_echo "$ac_cs_version"; exit ;;
26034 --debug | --debu | --deb | --de | --d | -d )
26036 --file | --fil | --fi | --f )
26039 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26041 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26042 ac_need_defaults=false;;
26043 --header | --heade | --head | --hea )
26046 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26048 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26049 ac_need_defaults=false;;
26051 # Conflict between --help and --header
26052 { $as_echo "$as_me: error: ambiguous option: $1
26053 Try \`$0 --help' for more information." >&2
26054 { (exit 1); exit 1; }; };;
26055 --help | --hel | -h )
26056 $as_echo "$ac_cs_usage"; exit ;;
26057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26058 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26061 # This is an error.
26062 -*) { $as_echo "$as_me: error: unrecognized option: $1
26063 Try \`$0 --help' for more information.
" >&2
26064 { (exit 1); exit 1; }; } ;;
26066 *) ac_config_targets="$ac_config_targets $1"
26067 ac_need_defaults=false ;;
26073 ac_configure_extra_args=
26075 if $ac_cs_silent; then
26077 ac_configure_extra_args="$ac_configure_extra_args --silent"
26081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26082 if \$ac_cs_recheck; then
26083 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26085 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
26086 CONFIG_SHELL='$SHELL'
26087 export CONFIG_SHELL
26092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26097 ## Running $as_me. ##
26103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26107 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26113 # Handling of arguments.
26114 for ac_config_target in $ac_config_targets
26116 case $ac_config_target in
26117 "src
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/config.h
:src
/config.
in" ;;
26118 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
26119 "lib-src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES lib-src
/Makefile.c
:lib-src
/Makefile.
in" ;;
26120 "oldXMenu
/Makefile
") CONFIG_FILES="$CONFIG_FILES oldXMenu
/Makefile
" ;;
26121 "doc
/emacs
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/emacs
/Makefile
" ;;
26122 "doc
/misc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/misc
/Makefile
" ;;
26123 "doc
/lispintro
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispintro
/Makefile
" ;;
26124 "doc
/lispref
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispref
/Makefile
" ;;
26125 "src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES src
/Makefile.c
:src
/Makefile.
in" ;;
26126 "lwlib
/Makefile
") CONFIG_FILES="$CONFIG_FILES lwlib
/Makefile
" ;;
26127 "lisp
/Makefile
") CONFIG_FILES="$CONFIG_FILES lisp
/Makefile
" ;;
26128 "leim
/Makefile
") CONFIG_FILES="$CONFIG_FILES leim
/Makefile
" ;;
26129 "default
") CONFIG_COMMANDS="$CONFIG_COMMANDS default
" ;;
26131 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
26132 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
26133 { (exit 1); exit 1; }; };;
26138 # If the user did not use the arguments to specify the items to instantiate,
26139 # then the envvar interface is used. Set only those that are not.
26140 # We use the long form for the default assignment because of an extremely
26141 # bizarre bug on SunOS 4.1.3.
26142 if $ac_need_defaults; then
26143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26148 # Have a temporary directory for convenience. Make it in the build tree
26149 # simply because there is no reason against having it here, and in addition,
26150 # creating and moving files from /tmp can sometimes cause problems.
26151 # Hook for its removal unless debugging.
26152 # Note that there is a small window in which the directory will not be cleaned:
26153 # after its creation but before its name has been assigned to `$tmp'.
26157 trap 'exit_status=$?
26158 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26160 trap '{ (exit 1); exit 1; }' 1 2 13 15
26162 # Create a (secure) tmp directory for tmp files.
26165 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
26166 test -n "$tmp" && test -d "$tmp"
26169 tmp=./conf$$-$RANDOM
26170 (umask 077 && mkdir "$tmp")
26173 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
26174 { (exit 1); exit 1; }
26177 # Set up the scripts for CONFIG_FILES section.
26178 # No need to generate them if there are no CONFIG_FILES.
26179 # This happens for instance with `./config.status config.h'.
26180 if test -n "$CONFIG_FILES"; then
26184 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
26185 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
26188 ac_cs_awk_cr=$ac_cr
26191 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
26196 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
26197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26199 } >conf$$subs.sh ||
26200 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26201 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26202 { (exit 1); exit 1; }; }
26203 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26205 for ac_last_try in false false false false false :; do
26206 . ./conf$$subs.sh ||
26207 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26208 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26209 { (exit 1); exit 1; }; }
26211 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26213 elif $ac_last_try; then
26214 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26215 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26216 { (exit 1); exit 1; }; }
26218 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26221 rm -f conf$$subs.sh
26223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26224 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26228 s/^/S["/; s
/!.
*/"]=/
26238 s/\(.\{148\}\).*/\1/
26240 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26245 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26252 s/\(.\{148\}\).*/\1/
26254 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26258 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26263 ' <conf$$subs.awk | sed '
26268 ' >>$CONFIG_STATUS || ac_write_fail=1
26269 rm -f conf$$subs.awk
26270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26272 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26273 for (key in S) S_is_set[key] = 1
26279 nfields = split(line, field, "@
")
26281 len = length(field[1])
26282 for (i = 2; i < nfields; i++) {
26284 keylen = length(key)
26285 if (S_is_set[key]) {
26287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26288 len += length(value) + length(field[++i])
26299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26300 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26301 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26304 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26305 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26306 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26307 { (exit 1); exit 1; }; }
26310 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26311 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26312 # trailing colons and then remove the whole line if VPATH becomes empty
26313 # (actually we leave an empty line to preserve line numbers).
26314 if test "x
$srcdir" = x.; then
26315 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26316 s/:*\$(srcdir):*/:/
26317 s/:*\${srcdir}:*/:/
26319 s/^\([^=]*=[ ]*\):*/\1/
26325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26326 fi # test -n "$CONFIG_FILES"
26328 # Set up the scripts for CONFIG_HEADERS section.
26329 # No need to generate them if there are no CONFIG_HEADERS.
26330 # This happens for instance with `./config.status Makefile'.
26331 if test -n "$CONFIG_HEADERS"; then
26332 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26336 # Transform confdefs.h into an awk script `defines.awk', embedded as
26337 # here-document in config.status, that substitutes the proper values into
26338 # config.h.in to produce config.h.
26340 # Create a delimiter string that does not exist in confdefs.h, to ease
26341 # handling of long lines.
26343 for ac_last_try in false false :; do
26344 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26345 if test -z "$ac_t"; then
26347 elif $ac_last_try; then
26348 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26349 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26350 { (exit 1); exit 1; }; }
26352 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26356 # For the awk script, D is an array of macro values keyed by name,
26357 # likewise P contains macro parameters if any. Preserve backslash
26358 # newline sequences.
26360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26362 s/.\{148\}/&'"$ac_delim"'/g
26365 s/^[ ]*#[ ]*define[ ][ ]*/ /
26372 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26374 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26379 D["\
1"]=" \
3\\\\\\n
"\\/p
26381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26386 s/.\{148\}/&'"$ac_delim"'/g
26391 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26394 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26396 ' <confdefs.h | sed '
26397 s/'"$ac_delim"'/"\\\
26398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26401 for (key in D) D_is_set[key] = 1
26404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26406 split(line, arg, " ")
26407 if (arg[1] == "#") {
26411 defundef
= substr
(arg
[1], 2)
26414 split(mac1
, mac2
, "(") #)
26416 if (D_is_set
[macro
]) {
26417 # Preserve the white space surrounding the "#".
26418 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26419 print prefix
"define", macro P
[macro
] D
[macro
]
26422 # Replace #undef with comments. This is necessary, for example,
26423 # in the case of _POSIX_SOURCE, which is predefined and required
26424 # on some systems where configure will not decide to define it.
26425 if (defundef
== "undef") {
26426 print
"/*", line
, "*/"
26434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26435 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26436 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26437 { (exit 1); exit 1; }; }
26438 fi # test -n "$CONFIG_HEADERS"
26441 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26446 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26448 case $ac_mode$ac_tag in
26450 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26451 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26452 { (exit 1); exit 1; }; };;
26453 :[FH
]-) ac_tag
=-:-;;
26454 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26471 -) ac_f
="$tmp/stdin";;
26472 *) # Look for the file first in the build tree, then in the source tree
26473 # (if the path is not absolute). The absolute path cannot be DOS-style,
26474 # because $ac_f cannot contain `:'.
26478 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26480 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26481 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26482 { (exit 1); exit 1; }; };;
26484 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26485 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26488 # Let's still pretend it is `configure' which instantiates (i.e., don't
26489 # use $as_me), people would be surprised to read:
26490 # /* config.h. Generated by config.status. */
26491 configure_input
='Generated from '`
26492 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26494 if test x
"$ac_file" != x-
; then
26495 configure_input
="$ac_file. $configure_input"
26496 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26497 $as_echo "$as_me: creating $ac_file" >&6;}
26499 # Neutralize special characters interpreted by sed in replacement strings.
26500 case $configure_input in #(
26501 *\
&* |
*\|
* |
*\\* )
26502 ac_sed_conf_input
=`$as_echo "$configure_input" |
26503 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26504 *) ac_sed_conf_input
=$configure_input;;
26508 *:-:* |
*:-) cat >"$tmp/stdin" \
26509 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26510 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26511 { (exit 1); exit 1; }; } ;;
26516 ac_dir
=`$as_dirname -- "$ac_file" ||
26517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26518 X"$ac_file" : 'X\(//\)[^/]' \| \
26519 X"$ac_file" : 'X\(//\)$' \| \
26520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26521 $as_echo X"$ac_file" |
26522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26526 /^X\(\/\/\)[^/].*/{
26541 -*) as_dir
=.
/$as_dir;;
26543 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26547 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26548 *) as_qdir
=$as_dir;;
26550 as_dirs
="'$as_qdir' $as_dirs"
26551 as_dir
=`$as_dirname -- "$as_dir" ||
26552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26553 X"$as_dir" : 'X\(//\)[^/]' \| \
26554 X"$as_dir" : 'X\(//\)$' \| \
26555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26556 $as_echo X"$as_dir" |
26557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26561 /^X\(\/\/\)[^/].*/{
26574 test -d "$as_dir" && break
26576 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26577 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26578 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26579 { (exit 1); exit 1; }; }; }
26583 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26585 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26586 # A ".." for each directory in $ac_dir_suffix.
26587 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26588 case $ac_top_builddir_sub in
26589 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26590 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26593 ac_abs_top_builddir
=$ac_pwd
26594 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26595 # for backward compatibility:
26596 ac_top_builddir
=$ac_top_build_prefix
26599 .
) # We are building in place.
26601 ac_top_srcdir
=$ac_top_builddir_sub
26602 ac_abs_top_srcdir
=$ac_pwd ;;
26603 [\\/]* | ?
:[\\/]* ) # Absolute name.
26604 ac_srcdir
=$srcdir$ac_dir_suffix;
26605 ac_top_srcdir
=$srcdir
26606 ac_abs_top_srcdir
=$srcdir ;;
26607 *) # Relative name.
26608 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26609 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26610 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26612 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26622 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26623 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26628 # If the template does not know about datarootdir, expand it.
26629 # FIXME: This hack should be removed a few years after 2.60.
26630 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26644 *datarootdir
*) ac_datarootdir_seen
=yes;;
26645 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26646 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 ac_datarootdir_hack='
26651 s&@datadir@&$datadir&g
26652 s&@docdir@&$docdir&g
26653 s&@infodir@&$infodir&g
26654 s&@localedir@&$localedir&g
26655 s&@mandir@&$mandir&g
26656 s&\\\${datarootdir}&$datarootdir&g' ;;
26660 # Neutralize VPATH when `$srcdir' = `.'.
26661 # Shell code in configure.ac might set extrasub.
26662 # FIXME: do we really want to maintain this feature?
26663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26664 ac_sed_extra="$ac_vpsub
26667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26669 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26670 s|@configure_input@|
$ac_sed_conf_input|
;t t
26671 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26672 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26673 s
&@srcdir@
&$ac_srcdir&;t t
26674 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26675 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26676 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26677 s
&@builddir@
&$ac_builddir&;t t
26678 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26679 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26680 s
&@INSTALL@
&$ac_INSTALL&;t t
26681 $ac_datarootdir_hack
26683 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26684 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26685 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26686 { (exit 1); exit 1; }; }
26688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26689 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26690 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26691 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26692 which seems to be undefined. Please make sure it is defined." >&5
26693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26694 which seems to be undefined. Please make sure it is defined." >&2;}
26698 -) cat "$tmp/out" && rm -f "$tmp/out";;
26699 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26701 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26702 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26703 { (exit 1); exit 1; }; }
26709 if test x"$ac_file" != x-; then
26711 $as_echo "/* $configure_input */" \
26712 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26713 } >"$tmp/config.h" \
26714 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26715 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26716 { (exit 1); exit 1; }; }
26717 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26718 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26722 mv "$tmp/config.h" "$ac_file" \
26723 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26724 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26725 { (exit 1); exit 1; }; }
26728 $as_echo "/* $configure_input */" \
26729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26730 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26731 $as_echo "$as_me: error: could not create -" >&2;}
26732 { (exit 1); exit 1; }; }
26736 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26737 $as_echo "$as_me: executing $ac_file commands" >&6;}
26742 case $ac_file$ac_mode in
26745 ### Make the necessary directories, if they don't exist.
26746 for dir
in etc lisp
; do
26747 test -d ${dir} || mkdir
${dir}
26750 # Build src/Makefile from ${srcdir}/src/Makefile.c
26751 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26752 # This must be done after src/config.h is built, since we rely on that file.
26754 echo creating src
/epaths.h
26755 ${MAKE-make} epaths-force
26757 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26758 # `..' to `. .' unless invoked with -traditional
26760 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26761 CPPFLAGS
="$CPPFLAGS -traditional"
26764 echo creating lib-src
/Makefile
26766 rm -f junk.c junk1.c junk2.c
26767 sed -e '/start of cpp stuff/q' \
26768 < Makefile.c
> junk1.c
26769 sed -e '1,/start of cpp stuff/d'\
26770 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26771 < Makefile.c
> junk.c
26772 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26773 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26774 cat junk1.c junk2.c
> Makefile.new
26775 rm -f junk.c junk1.c junk2.c
26776 chmod 444 Makefile.new
26777 mv -f Makefile.new Makefile
26780 echo creating src
/Makefile
26782 rm -f junk.c junk1.c junk2.c
26783 sed -e '/start of cpp stuff/q' \
26784 < Makefile.c
> junk1.c
26785 sed -e '1,/start of cpp stuff/d'\
26786 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26787 < Makefile.c
> junk.c
26788 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26789 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26790 cat junk1.c junk2.c
> Makefile.new
26791 rm -f junk.c junk1.c junk2.c
26792 chmod 444 Makefile.new
26793 mv -f Makefile.new Makefile
26796 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26797 echo creating src
/.gdbinit
26798 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26807 { (exit 0); exit 0; }
26809 chmod +x
$CONFIG_STATUS
26810 ac_clean_files
=$ac_clean_files_save
26812 test $ac_write_fail = 0 ||
26813 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26814 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26815 { (exit 1); exit 1; }; }
26818 # configure is writing to config.log, and then calls config.status.
26819 # config.status does its own redirection, appending to config.log.
26820 # Unfortunately, on DOS this fails, as config.log is still kept open
26821 # by configure, so config.status won't be able to write to it; its
26822 # output is simply discarded. So we exec the FD to /dev/null,
26823 # effectively closing config.log, so it can be properly (re)opened and
26824 # appended to by config.status. When coming back to configure, we
26825 # need to make the FD available again.
26826 if test "$no_create" != yes; then
26828 ac_config_status_args
=
26829 test "$silent" = yes &&
26830 ac_config_status_args
="$ac_config_status_args --quiet"
26832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26835 # would make configure fail if this is the last instruction.
26836 $ac_cs_success ||
{ (exit 1); exit 1; }
26838 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26839 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26840 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}