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
771 enable_option_checking
788 with_toolkit_scroll_bars
799 enable_ns_self_contained
801 enable_maintainer_mode
808 ac_precious_vars
='build_alias
820 # Initialize some variables set by options.
822 ac_init_version
=false
823 ac_unrecognized_opts
=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name
=s
,x
,x
,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir
='${exec_prefix}/bin'
849 sbindir
='${exec_prefix}/sbin'
850 libexecdir
='${exec_prefix}/libexec'
851 datarootdir
='${prefix}/share'
852 datadir
='${datarootdir}'
853 sysconfdir
='${prefix}/etc'
854 sharedstatedir
='${prefix}/com'
855 localstatedir
='${prefix}/var'
856 includedir
='${prefix}/include'
857 oldincludedir
='/usr/include'
858 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir
='${datarootdir}/info'
864 libdir
='${exec_prefix}/lib'
865 localedir
='${datarootdir}/locale'
866 mandir
='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\
$ac_option
880 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
892 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
895 -build |
--build |
--buil |
--bui |
--bu)
896 ac_prev
=build_alias
;;
897 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
898 build_alias
=$ac_optarg ;;
900 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
901 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
902 ac_prev
=cache_file
;;
903 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
904 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
905 cache_file
=$ac_optarg ;;
908 cache_file
=config.cache
;;
910 -datadir |
--datadir |
--datadi |
--datad)
912 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
913 datadir
=$ac_optarg ;;
915 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
916 |
--dataroo |
--dataro |
--datar)
917 ac_prev
=datarootdir
;;
918 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
919 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
920 datarootdir
=$ac_optarg ;;
922 -disable-* |
--disable-*)
923 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
926 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
927 { (exit 1); exit 1; }; }
928 ac_useropt_orig
=$ac_useropt
929 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep
=', ';;
937 eval enable_
$ac_useropt=no
;;
939 -docdir |
--docdir |
--docdi |
--doc |
--do)
941 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
944 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
946 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
949 -enable-* |
--enable-*)
950 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
953 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
954 { (exit 1); exit 1; }; }
955 ac_useropt_orig
=$ac_useropt
956 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep
=', ';;
964 eval enable_
$ac_useropt=\
$ac_optarg ;;
966 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
967 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
968 |
--exec |
--exe |
--ex)
969 ac_prev
=exec_prefix
;;
970 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
971 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
972 |
--exec=* |
--exe=* |
--ex=*)
973 exec_prefix
=$ac_optarg ;;
975 -gas |
--gas |
--ga |
--g)
976 # Obsolete; use --with-gas.
979 -help |
--help |
--hel |
--he |
-h)
981 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
982 ac_init_help
=recursive
;;
983 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
984 ac_init_help
=short
;;
986 -host |
--host |
--hos |
--ho)
987 ac_prev
=host_alias
;;
988 -host=* |
--host=* |
--hos=* |
--ho=*)
989 host_alias
=$ac_optarg ;;
991 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
993 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
995 htmldir
=$ac_optarg ;;
997 -includedir |
--includedir |
--includedi |
--included |
--include \
998 |
--includ |
--inclu |
--incl |
--inc)
999 ac_prev
=includedir
;;
1000 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1001 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1002 includedir
=$ac_optarg ;;
1004 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1006 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1007 infodir
=$ac_optarg ;;
1009 -libdir |
--libdir |
--libdi |
--libd)
1011 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1012 libdir
=$ac_optarg ;;
1014 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1015 |
--libexe |
--libex |
--libe)
1016 ac_prev
=libexecdir
;;
1017 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1018 |
--libexe=* |
--libex=* |
--libe=*)
1019 libexecdir
=$ac_optarg ;;
1021 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1022 ac_prev
=localedir
;;
1023 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1024 localedir
=$ac_optarg ;;
1026 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1027 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1028 ac_prev
=localstatedir
;;
1029 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1030 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1031 localstatedir
=$ac_optarg ;;
1033 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1035 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1036 mandir
=$ac_optarg ;;
1038 -nfp |
--nfp |
--nf)
1039 # Obsolete; use --without-fp.
1042 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1043 |
--no-cr |
--no-c |
-n)
1046 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1047 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1050 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1051 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1052 |
--oldin |
--oldi |
--old |
--ol |
--o)
1053 ac_prev
=oldincludedir
;;
1054 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1055 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1056 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1057 oldincludedir
=$ac_optarg ;;
1059 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1061 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1062 prefix
=$ac_optarg ;;
1064 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1065 |
--program-pre |
--program-pr |
--program-p)
1066 ac_prev
=program_prefix
;;
1067 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1068 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1069 program_prefix
=$ac_optarg ;;
1071 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1072 |
--program-suf |
--program-su |
--program-s)
1073 ac_prev
=program_suffix
;;
1074 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1075 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1076 program_suffix
=$ac_optarg ;;
1078 -program-transform-name |
--program-transform-name \
1079 |
--program-transform-nam |
--program-transform-na \
1080 |
--program-transform-n |
--program-transform- \
1081 |
--program-transform |
--program-transfor \
1082 |
--program-transfo |
--program-transf \
1083 |
--program-trans |
--program-tran \
1084 |
--progr-tra |
--program-tr |
--program-t)
1085 ac_prev
=program_transform_name
;;
1086 -program-transform-name=* |
--program-transform-name=* \
1087 |
--program-transform-nam=* |
--program-transform-na=* \
1088 |
--program-transform-n=* |
--program-transform-=* \
1089 |
--program-transform=* |
--program-transfor=* \
1090 |
--program-transfo=* |
--program-transf=* \
1091 |
--program-trans=* |
--program-tran=* \
1092 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1093 program_transform_name
=$ac_optarg ;;
1095 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1097 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1098 pdfdir
=$ac_optarg ;;
1100 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1102 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1105 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1106 |
-silent |
--silent |
--silen |
--sile |
--sil)
1109 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1111 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1113 sbindir
=$ac_optarg ;;
1115 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1116 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1117 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1119 ac_prev
=sharedstatedir
;;
1120 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1121 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1122 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1124 sharedstatedir
=$ac_optarg ;;
1126 -site |
--site |
--sit)
1128 -site=* |
--site=* |
--sit=*)
1131 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1133 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1134 srcdir
=$ac_optarg ;;
1136 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1137 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1138 ac_prev
=sysconfdir
;;
1139 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1140 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1141 sysconfdir
=$ac_optarg ;;
1143 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1144 ac_prev
=target_alias
;;
1145 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1146 target_alias
=$ac_optarg ;;
1148 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1151 -version |
--version |
--versio |
--versi |
--vers |
-V)
1152 ac_init_version
=: ;;
1155 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1158 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_useropt_orig
=$ac_useropt
1161 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep
=', ';;
1169 eval with_
$ac_useropt=\
$ac_optarg ;;
1171 -without-* |
--without-*)
1172 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1175 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_useropt_orig
=$ac_useropt
1178 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep
=', ';;
1186 eval with_
$ac_useropt=no
;;
1189 # Obsolete; use --with-x.
1192 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1193 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1194 ac_prev
=x_includes
;;
1195 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1196 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1197 x_includes
=$ac_optarg ;;
1199 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1200 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1201 ac_prev
=x_libraries
;;
1202 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1203 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1204 x_libraries
=$ac_optarg ;;
1206 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1212 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1215 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\
$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 if test -n "$ac_prev"; then
1232 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1233 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1240 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1241 { (exit 1); exit 1; }; } ;;
1242 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 # Check all directory arguments for consistency.
1247 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val
=\$
$ac_var
1253 # Remove trailing slashes.
1256 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\
$ac_val;;
1259 # Be sure to have absolute directory names.
1261 [\\/$
]* | ?
:[\\/]* ) continue;;
1262 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1264 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1265 { (exit 1); exit 1; }; }
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1273 target
=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x
; then
1277 if test "x$build_alias" = x
; then
1278 cross_compiling
=maybe
1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1287 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1289 test "$silent" = yes && exec 6>/dev
/null
1292 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di
=`ls -di .` &&
1294 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1295 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1296 { (exit 1); exit 1; }; }
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1299 { (exit 1); exit 1; }; }
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted
=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir
=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1334 ac_srcdir_defaulted
=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1338 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1339 { (exit 1); exit 1; }; }
1341 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1344 { (exit 1); exit 1; }; }
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1354 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 for ac_var
in $ac_precious_vars; do
1357 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1359 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1370 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1433 --x-includes=DIR X include files are
in DIR
1434 --x-libraries=DIR X library files are
in DIR
1437 --build=BUILD configure
for building on BUILD
[guessed
]
1438 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1449 --disable-option-checking ignore unrecognized
--enable/--with options
1450 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1451 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1452 --disable-ns-self-contained
1453 disable self contained build under NeXTstep
1454 --enable-asserts compile code with asserts enabled
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful
(and
1457 sometimes confusing
) to the casual installer
1458 --enable-locallisppath=PATH
1459 directories Emacs should search
for lisp files
1460 specific to this site
1461 --enable-checking[=LIST
]
1462 enable expensive run-time checks. With LIST
, enable
1463 only specific categories of checks. Categories are
:
1464 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1465 stringfreelist
, xmallocoverrun
, conslist
1466 --enable-profiling build emacs with profiling support. This might not
1467 work on all platforms
1468 --disable-largefile omit support
for large files
1471 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1472 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1473 --without-pop don
't support POP mail retrieval with movemail
1474 --with-kerberos support Kerberos-authenticated POP
1475 --with-kerberos5 support Kerberos version 5 authenticated POP
1476 --with-hesiod support Hesiod to get the POP server host
1477 --without-sound don't compile with sound support
1478 --without-sync-input process async input synchronously
1479 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1481 --without-xpm don
't compile with XPM image support
1482 --without-jpeg don't compile with JPEG image support
1483 --without-tiff don
't compile with TIFF image support
1484 --without-gif don't compile with GIF image support
1485 --without-png don
't compile with PNG image support
1486 --without-rsvg don't compile with SVG image support
1487 --without-xft don
't use XFT for anti aliased fonts
1488 --without-libotf don't use libotf
for OpenType font support
1489 --without-m17n-flt don
't use m17n-flt for text shaping
1490 --without-toolkit-scroll-bars
1491 don't use Motif or Xaw3d scroll bars
1492 --without-xaw3d don
't use Xaw3d
1493 --without-xim don't use X11 XIM
1494 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1495 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1497 --without-dbus don't compile with D-Bus support
1498 --without-makeinfo don
't require makeinfo for building manuals
1500 --with-pkg-config-prog=PATH
1501 path to pkg-config for finding GTK and librsvg
1502 --with-gnustep-conf=PATH
1503 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1504 or /etc/GNUstep/GNUstep.conf
1505 --with-x use the X Window System
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1516 XMKMF Path to xmkmf, Makefile generator for X Window System
1518 Use these variables to override the choices made by `configure' or to
help
1519 it to
find libraries and programs with nonstandard names
/locations.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1534 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1536 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1541 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir
=$ac_pwd
1545 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir
=$ac_top_build_prefix
1550 .
) # We are building in place.
1552 ac_top_srcdir
=$ac_top_builddir_sub
1553 ac_abs_top_srcdir
=$ac_pwd ;;
1554 [\\/]* | ?
:[\\/]* ) # Absolute name.
1555 ac_srcdir
=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir
=$srcdir
1557 ac_abs_top_srcdir
=$srcdir ;;
1559 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1583 emacs configure
23.1.50
1584 generated by GNU Autoconf
2.62
1586 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1588 This configure
script is free software
; the Free Software Foundation
1589 gives unlimited permission to copy
, distribute and modify it.
1593 cat >config.log
<<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by emacs $as_me 23.1.50, which was
1598 generated by GNU Autoconf 2.62. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir
=.
1634 $as_echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next
=false
1664 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1665 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1666 |
-silent |
--silent |
--silen |
--sile |
--sil)
1669 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true
; then
1676 ac_must_keep_next
=false
# Got value, back to normal.
1679 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1680 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1681 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1682 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next
=true
;;
1690 ac_configure_args
="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1696 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1727 *) $as_unset $ac_var ;;
1732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1733 *${as_nl}ac_space=\ *)
1735 "s/'\''/'\''\\\\'\'''\''/g;
1736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 ## ----------------- ##
1748 ## Output variables. ##
1749 ## ----------------- ##
1752 for ac_var in $ac_subst_vars
1754 eval ac_val=\$$ac_var
1756 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 $as_echo "$ac_var='\''$ac_val'\''"
1762 if test -n "$ac_subst_files"; then
1764 ## ------------------- ##
1765 ## File substitutions. ##
1766 ## ------------------- ##
1769 for ac_var
in $ac_subst_files
1771 eval ac_val
=\$
$ac_var
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 $as_echo "$ac_var='\''$ac_val'\''"
1780 if test -s confdefs.h; then
1790 test "$ac_signal" != 0 &&
1791 $as_echo "$as_me: caught signal $ac_signal"
1792 $as_echo "$as_me: exit $exit_status"
1794 rm -f core *.core core.conftest.* &&
1795 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798 for ac_signal
in 1 2 13 15; do
1799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1804 rm -f -r conftest
* confdefs.h
1806 # Predefined preprocessor variables.
1808 cat >>confdefs.h
<<_ACEOF
1809 #define PACKAGE_NAME "$PACKAGE_NAME"
1813 cat >>confdefs.h
<<_ACEOF
1814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1818 cat >>confdefs.h
<<_ACEOF
1819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1823 cat >>confdefs.h
<<_ACEOF
1824 #define PACKAGE_STRING "$PACKAGE_STRING"
1828 cat >>confdefs.h
<<_ACEOF
1829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1833 # Let the site file select an alternate cache file if it wants to.
1834 # Prefer an explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 ac_site_file1
=$CONFIG_SITE
1839 elif test "x$prefix" != xNONE
; then
1840 ac_site_file1
=$prefix/share
/config.site
1841 ac_site_file2
=$prefix/etc
/config.site
1843 ac_site_file1
=$ac_default_prefix/share
/config.site
1844 ac_site_file2
=$ac_default_prefix/etc
/config.site
1846 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1848 test "x$ac_site_file" = xNONE
&& continue
1849 if test -r "$ac_site_file"; then
1850 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1851 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1852 sed 's/^/| /' "$ac_site_file" >&5
1857 if test -r "$cache_file"; then
1858 # Some versions of bash will fail to source /dev/null (special
1859 # files actually), so we avoid doing that.
1860 if test -f "$cache_file"; then
1861 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1862 $as_echo "$as_me: loading cache $cache_file" >&6;}
1864 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1865 *) .
"./$cache_file";;
1869 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1870 $as_echo "$as_me: creating cache $cache_file" >&6;}
1874 ac_header_list
="$ac_header_list sys/time.h"
1875 ac_header_list
="$ac_header_list unistd.h"
1876 ac_func_list
="$ac_func_list alarm"
1877 # Check that the precious variables saved in the cache have kept the same
1879 ac_cache_corrupted
=false
1880 for ac_var
in $ac_precious_vars; do
1881 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1882 eval ac_new_set
=\
$ac_env_${ac_var}_set
1883 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1884 eval ac_new_val
=\
$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1887 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted
=: ;;
1891 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted
=: ;;
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 # differences in whitespace do not lead to failure.
1898 ac_old_val_w
=`echo x $ac_old_val`
1899 ac_new_val_w
=`echo x $ac_new_val`
1900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 ac_cache_corrupted
=:
1905 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1907 eval $ac_var=\
$ac_old_val
1909 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1911 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1918 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg
=$ac_var=$ac_new_val ;;
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1927 if $ac_cache_corrupted; then
1928 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1960 ac_cpp
='$CPP $CPPFLAGS'
1961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1966 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1970 test "$program_prefix" != NONE
&&
1971 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1972 # Use a double $ so make ignores it.
1973 test "$program_suffix" != NONE
&&
1974 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1975 # Double any \ or $.
1976 # By default was `s,x,x', remove it if useless.
1977 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
1978 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
1981 lispdir
='${datadir}/emacs/${version}/lisp'
1982 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1983 '${datadir}/emacs/site-lisp'
1984 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1985 etcdir
='${datadir}/emacs/${version}/etc'
1986 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1987 docdir
='${datadir}/emacs/${version}/etc'
1988 gamedir
='${localstatedir}/games/emacs'
1995 # Check whether --with-pop was given.
1996 if test "${with_pop+set}" = set; then
2002 if test "$with_pop" = yes; then
2003 cat >>confdefs.h
<<\_ACEOF
2004 #define MAIL_USE_POP 1
2011 # Check whether --with-kerberos was given.
2012 if test "${with_kerberos+set}" = set; then
2013 withval
=$with_kerberos;
2018 if test "$with_kerberos" != no
; then
2019 cat >>confdefs.h
<<\_ACEOF
2027 # Check whether --with-kerberos5 was given.
2028 if test "${with_kerberos5+set}" = set; then
2029 withval
=$with_kerberos5;
2034 if test "${with_kerberos5}" != no
; then
2035 if test "${with_kerberos}" = no
; then
2037 cat >>confdefs.h
<<\_ACEOF
2043 cat >>confdefs.h
<<\_ACEOF
2050 # Check whether --with-hesiod was given.
2051 if test "${with_hesiod+set}" = set; then
2052 withval
=$with_hesiod;
2057 if test "$with_hesiod" != no
; then
2059 cat >>confdefs.h
<<\_ACEOF
2066 # Check whether --with-sound was given.
2067 if test "${with_sound+set}" = set; then
2068 withval
=$with_sound;
2075 # Check whether --with-sync-input was given.
2076 if test "${with_sync_input+set}" = set; then
2077 withval
=$with_sync_input;
2082 if test "$with_sync_input" = yes; then
2084 cat >>confdefs.h
<<\_ACEOF
2085 #define SYNC_INPUT 1
2091 # Check whether --with-x-toolkit was given.
2092 if test "${with_x_toolkit+set}" = set; then
2093 withval
=$with_x_toolkit; case "${withval}" in
2094 y | ye |
yes ) val
=gtk
;;
2096 l | lu | luc | luci | lucid
) val
=lucid
;;
2097 a |
at | ath | athe | athen | athena
) val
=athena
;;
2098 m | mo | mot | moti | motif
) val
=motif
;;
2099 g | gt | gtk
) val
=gtk
;;
2101 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2102 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2103 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2104 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2105 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2106 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2107 { (exit 1); exit 1; }; }
2116 # Check whether --with-xpm was given.
2117 if test "${with_xpm+set}" = set; then
2124 # Check whether --with-jpeg was given.
2125 if test "${with_jpeg+set}" = set; then
2132 # Check whether --with-tiff was given.
2133 if test "${with_tiff+set}" = set; then
2140 # Check whether --with-gif was given.
2141 if test "${with_gif+set}" = set; then
2148 # Check whether --with-png was given.
2149 if test "${with_png+set}" = set; then
2156 # Check whether --with-rsvg was given.
2157 if test "${with_rsvg+set}" = set; then
2165 # Check whether --with-xft was given.
2166 if test "${with_xft+set}" = set; then
2173 # Check whether --with-libotf was given.
2174 if test "${with_libotf+set}" = set; then
2175 withval
=$with_libotf;
2181 # Check whether --with-m17n-flt was given.
2182 if test "${with_m17n_flt+set}" = set; then
2183 withval
=$with_m17n_flt;
2190 # Check whether --with-toolkit-scroll-bars was given.
2191 if test "${with_toolkit_scroll_bars+set}" = set; then
2192 withval
=$with_toolkit_scroll_bars;
2194 with_toolkit_scroll_bars
=yes
2198 # Check whether --with-xaw3d was given.
2199 if test "${with_xaw3d+set}" = set; then
2200 withval
=$with_xaw3d;
2206 # Check whether --with-xim was given.
2207 if test "${with_xim+set}" = set; then
2214 # Check whether --with-ns was given.
2215 if test "${with_ns+set}" = set; then
2223 # Check whether --with-gpm was given.
2224 if test "${with_gpm+set}" = set; then
2231 # Check whether --with-dbus was given.
2232 if test "${with_dbus+set}" = set; then
2239 ## For the times when you want to build Emacs but don't have
2240 ## a suitable makeinfo, and can live without the manuals.
2242 # Check whether --with-makeinfo was given.
2243 if test "${with_makeinfo+set}" = set; then
2244 withval
=$with_makeinfo;
2251 # Check whether --with-gtk was given.
2252 if test "${with_gtk+set}" = set; then
2253 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2254 specify a toolkit." >&5
2255 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2256 specify a toolkit." >&2;}
2257 { (exit 1); exit 1; }; }
2262 # Check whether --with-gcc was given.
2263 if test "${with_gcc+set}" = set; then
2264 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2265 variable to specify a compiler." >&5
2266 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2267 variable to specify a compiler." >&2;}
2268 { (exit 1); exit 1; }; }
2273 # Check whether --with-pkg-config-prog was given.
2274 if test "${with_pkg_config_prog+set}" = set; then
2275 withval
=$with_pkg_config_prog;
2278 if test "X${with_pkg_config_prog}" != X
; then
2279 if test "${with_pkg_config_prog}" != yes; then
2280 PKG_CONFIG
="${with_pkg_config_prog}"
2285 # Check whether --with-gnustep-conf was given.
2286 if test "${with_gnustep_conf+set}" = set; then
2287 withval
=$with_gnustep_conf;
2290 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2291 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2292 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2293 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2295 # Check whether --enable-ns-self-contained was given.
2296 if test "${enable_ns_self_contained+set}" = set; then
2297 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2299 EN_NS_SELF_CONTAINED
=yes
2303 # Check whether --enable-asserts was given.
2304 if test "${enable_asserts+set}" = set; then
2305 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2311 # Check whether --enable-maintainer-mode was given.
2312 if test "${enable_maintainer_mode+set}" = set; then
2313 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2315 USE_MAINTAINER_MODE
=no
2318 if test $USE_MAINTAINER_MODE = yes; then
2325 # Check whether --enable-locallisppath was given.
2326 if test "${enable_locallisppath+set}" = set; then
2327 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2329 elif test "${enableval}" != "yes"; then
2330 locallisppath
=${enableval}
2335 # Check whether --enable-checking was given.
2336 if test "${enable_checking+set}" = set; then
2337 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2340 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2341 for check
in $ac_checking_flags
2344 # these set all the flags to specific states
2345 yes) ac_enable_checking
=1 ;;
2346 no
) ac_enable_checking
= ;
2347 ac_gc_check_stringbytes
= ;
2348 ac_gc_check_string_overrun
= ;
2349 ac_gc_check_string_free_list
= ;
2350 ac_xmalloc_overrun
= ;
2351 ac_gc_check_cons_list
= ;;
2352 all
) ac_enable_checking
=1 ;
2353 ac_gc_check_stringbytes
=1 ;
2354 ac_gc_check_string_overrun
=1 ;
2355 ac_gc_check_string_free_list
=1 ;
2356 ac_xmalloc_overrun
=1 ;
2357 ac_gc_check_cons_list
=1 ;;
2358 # these enable particular checks
2359 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2360 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2361 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2362 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2363 conslist
) ac_gc_check_cons_list
=1 ;;
2364 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2365 $as_echo "$as_me: error: unknown check category $check" >&2;}
2366 { (exit 1); exit 1; }; } ;;
2371 if test x
$ac_enable_checking != x
; then
2373 cat >>confdefs.h
<<\_ACEOF
2374 #define ENABLE_CHECKING 1
2378 if test x
$ac_gc_check_stringbytes != x
; then
2380 cat >>confdefs.h
<<\_ACEOF
2381 #define GC_CHECK_STRING_BYTES 1
2385 if test x
$ac_gc_check_stringoverrun != x
; then
2387 cat >>confdefs.h
<<\_ACEOF
2388 #define GC_CHECK_STRING_OVERRUN 1
2392 if test x
$ac_gc_check_string_free_list != x
; then
2394 cat >>confdefs.h
<<\_ACEOF
2395 #define GC_CHECK_STRING_FREE_LIST 1
2399 if test x
$ac_xmalloc_overrun != x
; then
2401 cat >>confdefs.h
<<\_ACEOF
2402 #define XMALLOC_OVERRUN_CHECK 1
2406 if test x
$ac_gc_check_cons_list != x
; then
2408 cat >>confdefs.h
<<\_ACEOF
2409 #define GC_CHECK_CONS_LIST 1
2414 # Check whether --enable-profiling was given.
2415 if test "${enable_profiling+set}" = set; then
2416 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2419 if test x
$ac_enable_profiling != x
; then
2420 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2421 PROFILING_LDFLAGS
="-pg"
2427 #### Make srcdir absolute, if it isn't already. It's important to
2428 #### avoid running the path through pwd unnecessarily, since pwd can
2429 #### give you automounter prefixes, which can go away. We do all this
2430 #### so Emacs can find its files when run uninstalled.
2431 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2436 ## We may be able to use the $PWD environment variable to make this
2437 ## absolute. But sometimes PWD is inaccurate.
2438 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2439 ## but that tested only for a well-formed and valid PWD,
2440 ## it did not object when PWD was well-formed and valid but just wrong.
2441 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2445 srcdir
="`(cd ${srcdir}; pwd)`"
2448 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2451 #### Check if the source directory already has a configured system in it.
2452 if test `pwd` != `(cd ${srcdir} && pwd)` \
2453 && test -f "${srcdir}/src/config.h" ; then
2454 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2455 as a build directory right now; it has been configured in its own
2456 right. To configure in another directory as well, you MUST
2457 use GNU make. If you do not have GNU make, then you must
2458 now do \`make distclean' in ${srcdir},
2459 and then run $0 again." >&5
2460 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2461 as a build directory right now; it has been configured in its own
2462 right. To configure in another directory as well, you MUST
2463 use GNU make. If you do not have GNU make, then you must
2464 now do \`make distclean' in ${srcdir},
2465 and then run $0 again." >&2;}
2468 #### Given the configuration name, set machfile and opsysfile to the
2469 #### names of the m/*.h and s/*.h files we should use.
2471 ### Canonicalize the configuration name.
2474 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2475 if test -f "$ac_dir/install-sh"; then
2477 ac_install_sh
="$ac_aux_dir/install-sh -c"
2479 elif test -f "$ac_dir/install.sh"; then
2481 ac_install_sh
="$ac_aux_dir/install.sh -c"
2483 elif test -f "$ac_dir/shtool"; then
2485 ac_install_sh
="$ac_aux_dir/shtool install -c"
2489 if test -z "$ac_aux_dir"; then
2490 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2491 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2492 { (exit 1); exit 1; }; }
2495 # These three variables are undocumented and unsupported,
2496 # and are intended to be withdrawn in a future Autoconf release.
2497 # They can cause serious problems if a builder's source tree is in a directory
2498 # whose full name contains unusual characters.
2499 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2500 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2501 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2504 # Make sure we can run config.sub.
2505 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2506 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2507 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2508 { (exit 1); exit 1; }; }
2510 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2511 $as_echo_n "checking build system type... " >&6; }
2512 if test "${ac_cv_build+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2515 ac_build_alias
=$build_alias
2516 test "x$ac_build_alias" = x
&&
2517 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2518 test "x$ac_build_alias" = x
&&
2519 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2520 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2521 { (exit 1); exit 1; }; }
2522 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2523 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2524 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2525 { (exit 1); exit 1; }; }
2528 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2529 $as_echo "$ac_cv_build" >&6; }
2530 case $ac_cv_build in
2532 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2533 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2534 { (exit 1); exit 1; }; };;
2537 ac_save_IFS
=$IFS; IFS
='-'
2543 # Remember, the first character of IFS is used to create $*,
2544 # except with old shells:
2547 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2550 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2551 $as_echo_n "checking host system type... " >&6; }
2552 if test "${ac_cv_host+set}" = set; then
2553 $as_echo_n "(cached) " >&6
2555 if test "x$host_alias" = x
; then
2556 ac_cv_host
=$ac_cv_build
2558 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2559 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2560 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2561 { (exit 1); exit 1; }; }
2565 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2566 $as_echo "$ac_cv_host" >&6; }
2569 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2570 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2571 { (exit 1); exit 1; }; };;
2574 ac_save_IFS
=$IFS; IFS
='-'
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2584 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2588 configuration
=${host_alias-${build_alias-$host}}
2592 ### If you add support for a new configuration, add code to this
2593 ### switch statement to recognize your configuration name and select
2594 ### the appropriate operating system and machine description files.
2596 ### You would hope that you could choose an m/*.h file pretty much
2597 ### based on the machine portion of the configuration name, and an s-
2598 ### file based on the operating system portion. However, it turns out
2599 ### that each m/*.h file is pretty manufacturer-specific - for
2600 ### example mips.h is MIPS
2601 ### So we basically have to have a special case for each
2602 ### configuration name.
2604 ### As far as handling version numbers on operating systems is
2605 ### concerned, make sure things will fail in a fixable way. If
2606 ### /etc/MACHINES doesn't say anything about version numbers, be
2607 ### prepared to handle anything reasonably. If version numbers
2608 ### matter, be sure /etc/MACHINES says something about it.
2610 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2611 ### "System V Release 4"; he writes, "The old convention encouraged
2612 ### confusion between `system' and `release' levels'."
2614 machine
='' opsys
='' unported
=no
2615 case "${canonical}" in
2620 case "${canonical}" in
2621 alpha
*-*-freebsd*) machine
=alpha
;;
2622 arm
*-*-freebsd*) machine
=arm
;;
2623 ia64-
*-freebsd*) machine
=ia64
;;
2624 sparc-
*-freebsd*) machine
=sparc
;;
2625 sparc64-
*-freebsd*) machine
=sparc
;;
2626 powerpc-
*-freebsd*) machine
=macppc
;;
2627 i
[3456]86-*-freebsd*) machine
=intel386
;;
2628 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2632 ## FreeBSD kernel + glibc based userland
2635 case "${canonical}" in
2636 alpha
*-*-kfreebsd*) machine
=alpha
;;
2637 ia64-
*-kfreebsd*) machine
=ia64
;;
2638 sparc-
*-kfreebsd*) machine
=sparc
;;
2639 sparc64-
*-kfreebsd*) machine
=sparc
;;
2640 powerpc-
*-kfreebsd*) machine
=macppc
;;
2641 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2642 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2649 if test -f /usr
/lib
/crti.o
; then
2651 cat >>confdefs.h
<<\_ACEOF
2652 #define HAVE_CRTIN /**/
2657 case "${canonical}" in
2658 alpha
*-*-netbsd*) machine
=alpha
;;
2659 i
[3456]86-*-netbsd*) machine
=intel386
;;
2660 mips-
*-netbsd*) machine
=mips
;;
2661 mipsel-
*-netbsd*) machine
=mips
;;
2662 mipseb-
*-netbsd*) machine
=mips
;;
2663 powerpc-
*-netbsd*) machine
=macppc
;;
2664 sparc
*-*-netbsd*) machine
=sparc
;;
2665 vax-
*-netbsd*) machine
=vax
;;
2666 arm-
*-netbsd*) machine
=arm
;;
2667 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2668 hppa-
*-netbsd*) machine
=hp800
;;
2669 m68k-
*-netbsd*) machine
=m68k
;;
2676 case "${canonical}" in
2677 alpha
*-*-openbsd*) machine
=alpha
;;
2678 arm-
*-openbsd*) machine
=arm
;;
2679 i386-
*-openbsd*) machine
=intel386
;;
2680 powerpc-
*-openbsd*) machine
=macppc
;;
2681 sparc
*-*-openbsd*) machine
=sparc
;;
2682 vax-
*-openbsd*) machine
=vax
;;
2683 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2684 hppa-
*-openbsd*) machine
=hp800
;;
2691 case "${canonical}" in
2692 i
[3456]86-*-lynxos*) machine
=intel386
;;
2693 powerpc-
*-lynxos*) machine
=powerpc
;;
2697 alpha
*-*-linux-gnu* )
2698 machine
=alpha opsys
=gnu-linux
2702 machine
=arm opsys
=gnu-linux
2705 ## Apple Darwin / Mac OS X
2707 case "${canonical}" in
2708 i
[3456]86-* ) machine
=intel386
;;
2709 powerpc-
* ) machine
=macppc
;;
2713 # Define CPP as follows to make autoconf work correctly.
2714 CPP
="${CC-cc} -E -no-cpp-precomp"
2715 # Use fink packages if available.
2716 if test -d /sw
/include
&& test -d /sw
/lib
; then
2717 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2718 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2719 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2723 ## HP 9000 series 700 and 800, running HP/UX
2724 hppa
*-hp-hpux10.2
* )
2725 machine
=hp800 opsys
=hpux10-20
2727 hppa
*-hp-hpux1[1-9]* )
2728 machine
=hp800 opsys
=hpux11
2729 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2732 hppa
*-*-linux-gnu* )
2733 machine
=hp800 opsys
=gnu-linux
2738 machine
=ibms390 opsys
=gnu-linux
2740 s390x-
*-linux-gnu* )
2741 machine
=ibms390x opsys
=gnu-linux
2743 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2744 machine
=ibmrs6000 opsys
=aix4-2
2746 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2747 machine
=ibmrs6000 opsys
=aix4-2
2749 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2750 machine
=ibmrs6000 opsys
=aix4-2
2752 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2753 machine
=ibmrs6000 opsys
=aix4-2
2756 ## Macintosh PowerPC
2757 powerpc
*-*-linux-gnu* )
2758 machine
=macppc opsys
=gnu-linux
2761 ## Silicon Graphics machines
2764 machine
=iris4d opsys
=irix6-5
2765 # Without defining _LANGUAGE_C, things get masked out in the headers
2766 # so that, for instance, grepping for `free' in stdlib.h fails and
2767 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2768 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2769 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2773 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2774 machine
=sparc opsys
=gnu-linux
2778 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2779 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2780 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2781 case "${canonical}" in
2782 i
[3456]86-*-* ) machine
=intel386
;;
2783 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2784 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2785 sparc
* ) machine
=sparc
;;
2788 case "${canonical}" in
2789 *-sunos5.3
* |
*-solaris2.3
* )
2791 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2793 *-sunos5.4
* |
*-solaris2.4
* )
2795 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2798 *-sunos5.5
* |
*-solaris2.5
* )
2800 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2803 *-sunos5.6
* |
*-solaris2.6
* )
2805 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2808 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2810 emacs_check_sunpro_c
=yes
2811 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2813 *-sunos5* |
*-solaris* )
2815 emacs_check_sunpro_c
=yes
2816 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2819 ## Watch out for a compiler that we know will not work.
2820 case "${canonical}" in
2821 *-solaris* |
*-sunos5* )
2822 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2823 ## /usr/ucb/cc doesn't work;
2824 ## we should find some other compiler that does work.
2834 machine
=ia64 opsys
=gnu-linux
2837 ## Intel 386 machines where we don't care about the manufacturer
2840 case "${canonical}" in
2841 *-cygwin ) opsys
=cygwin
;;
2842 *-darwin* ) opsys
=darwin
2843 CPP
="${CC-cc} -E -no-cpp-precomp"
2845 *-linux-gnu* ) opsys
=gnu-linux
;;
2846 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2847 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2848 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2849 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2853 ## m68k Linux-based GNU system
2855 machine
=m68k opsys
=gnu-linux
2858 ## Mips Linux-based GNU system
2859 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2860 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2861 machine
=mips opsys
=gnu-linux
2864 ## AMD x86-64 Linux-based GNU system
2865 x86_64-
*-linux-gnu* )
2866 machine
=amdx86-64 opsys
=gnu-linux
2869 ## Tensilica Xtensa Linux-based GNU system
2870 xtensa
*-*-linux-gnu* )
2871 machine
=xtensa opsys
=gnu-linux
2874 ## SuperH Linux-based GNU system
2875 sh
[34]*-*-linux-gnu* )
2876 machine
=sh3 opsys
=gnu-linux
2884 ### If the code above didn't choose an operating system, just choose
2885 ### an operating system based on the configuration name. You really
2886 ### only want to use this when you have no idea what the right
2887 ### operating system is; if you know what operating systems a machine
2888 ### runs, it's cleaner to make it explicit in the case statement
2890 if test x
"${opsys}" = x
; then
2891 case "${canonical}" in
2892 *-gnu* ) opsys
=gnu
;;
2893 *-sysv4.2uw
* ) opsys
=unixware
;;
2894 *-sysv5uw* ) opsys
=unixware
;;
2895 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2896 *-sysv4.1
* |
*-sysvr4.1
* )
2897 NON_GNU_CPP
=/usr
/lib
/cpp
2899 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2900 if [ x
$NON_GNU_CPP = x
]; then
2901 if [ -f /usr
/ccs
/lib
/cpp
]; then
2902 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2904 NON_GNU_CPP
=/lib
/cpp
2908 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2917 if test $unported = yes; then
2918 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2919 Check \`etc/MACHINES' for recognized configuration names." >&5
2920 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2921 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2922 { (exit 1); exit 1; }; }
2925 machfile
="m/${machine}.h"
2926 opsysfile
="s/${opsys}.h"
2929 #### Choose a compiler.
2930 test -n "$CC" && cc_specified
=yes
2932 # Save the value of CFLAGS that the user specified.
2933 SPECIFIED_CFLAGS
="$CFLAGS"
2936 ac_cpp
='$CPP $CPPFLAGS'
2937 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC
="$CC" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:$LINENO: result: no" >&5
2974 $as_echo "no" >&6; }
2979 if test -z "$ac_cv_prog_CC"; then
2981 # Extract the first word of "gcc", so it can be a program name with args.
2982 set dummy gcc
; ac_word
=$2
2983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir
=.
2996 for ac_exec_ext
in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_ac_ct_CC
="gcc"
2999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 $as_echo "$ac_ct_CC" >&6; }
3013 { $as_echo "$as_me:$LINENO: result: no" >&5
3014 $as_echo "no" >&6; }
3017 if test "x$ac_ct_CC" = x
; then
3020 case $cross_compiling:$ac_tool_warned in
3022 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3023 whose name does not start with the host triplet. If you think this
3024 configuration is useful to you, please write to autoconf@gnu.org." >&5
3025 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet. If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3028 ac_tool_warned
=yes ;;
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if test "${ac_cv_prog_CC+set}" = set; then
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC
="$CC" # Let the user override the test.
3048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir
=.
3053 for ac_exec_ext
in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3070 { $as_echo "$as_me:$LINENO: result: no" >&5
3071 $as_echo "no" >&6; }
3077 if test -z "$CC"; then
3078 # Extract the first word of "cc", so it can be a program name with args.
3079 set dummy cc
; ac_word
=$2
3080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC
="$CC" # Let the user override the test.
3089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir
=.
3094 for ac_exec_ext
in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097 ac_prog_rejected
=yes
3101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 if test $ac_prog_rejected = yes; then
3109 # We found a bogon in the path, so make sure we never use it.
3110 set dummy
$ac_cv_prog_CC
3112 if test $# != 0; then
3113 # We chose a different compiler from the bogus one.
3114 # However, it has the same basename, so the bogon will be chosen
3115 # first if we set CC to just the basename; use the full file name.
3117 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3127 { $as_echo "$as_me:$LINENO: result: no" >&5
3128 $as_echo "no" >&6; }
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog
in cl.exe
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC
="$CC" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$CC" && break
3177 if test -z "$CC"; then
3179 for ac_prog
in cl.exe
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy
$ac_prog; ac_word
=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir
=.
3196 for ac_exec_ext
in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CC
="$ac_prog"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CC" && break
3221 if test "x$ac_ct_CC" = x
; then
3224 case $cross_compiling:$ac_tool_warned in
3226 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3227 whose name does not start with the host triplet. If you think this
3228 configuration is useful to you, please write to autoconf@gnu.org." >&5
3229 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3230 whose name does not start with the host triplet. If you think this
3231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3232 ac_tool_warned
=yes ;;
3241 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3242 See \`config.log' for more details." >&5
3243 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3247 # Provide some information about the compiler.
3248 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3251 { (ac_try
="$ac_compiler --version >&5"
3253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compiler --version >&5") 2>&5
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (ac_try="$ac_compiler -v >&5"
3264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3265 *) ac_try_echo
=$ac_try;;
3267 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269 (eval "$ac_compiler -v >&5") 2>&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3273 { (ac_try
="$ac_compiler -V >&5"
3275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3279 $as_echo "$ac_try_echo") >&5
3280 (eval "$ac_compiler -V >&5") 2>&5
3282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3305 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3313 for ac_file in $ac_files
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322 if { (ac_try="$ac_link_default"
3324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3325 *) ac_try_echo
=$ac_try;;
3327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3328 $as_echo "$ac_try_echo") >&5
3329 (eval "$ac_link_default") 2>&5
3331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; then
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3338 for ac_file
in $ac_files ''
3340 test -f "$ac_file" ||
continue
3342 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3345 # We found the default executable, but exeext='' is most
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3351 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3363 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3369 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3370 $as_echo "$ac_file" >&6; }
3371 if test -z "$ac_file"; then
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.
$ac_ext >&5
3375 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&5
3377 $as_echo "$as_me: error: C compiler cannot create executables
3378 See \`config.log' for more details." >&2;}
3379 { (exit 77); exit 77; }; }
3382 ac_exeext
=$ac_cv_exeext
3384 # Check that the compiler produces executables we can run. If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3387 $as_echo_n "checking whether the C compiler works... " >&6; }
3388 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3389 # If not cross compiling, check that we can run a simple program.
3390 if test "$cross_compiling" != yes; then
3391 if { ac_try
='./$ac_file'
3392 { (case "(($ac_try" in
3393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397 $as_echo "$ac_try_echo") >&5
3398 (eval "$ac_try") 2>&5
3400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3404 if test "$cross_compiling" = maybe; then
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details.
" >&5
3410 $as_echo "$as_me: error
: cannot run C compiled programs.
3411 If you meant to cross compile
, use \
`--host'.
3412 See \`config.log
' for more details." >&2;}
3413 { (exit 1); exit 1; }; }
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run. If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438 (eval "$ac_link") 2>&5
3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3443 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3446 for ac_file
in conftest.exe conftest conftest.
*; do
3447 test -f "$ac_file" ||
continue
3449 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3450 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&5
3458 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&2;}
3460 { (exit 1); exit 1; }; }
3463 rm -f conftest
$ac_cv_exeext
3464 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3465 $as_echo "$ac_cv_exeext" >&6; }
3467 rm -f conftest.
$ac_ext
3468 EXEEXT
=$ac_cv_exeext
3470 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3471 $as_echo_n "checking for suffix of object files... " >&6; }
3472 if test "${ac_cv_objext+set}" = set; then
3473 $as_echo_n "(cached) " >&6
3475 cat >conftest.
$ac_ext <<_ACEOF
3478 cat confdefs.h
>>conftest.
$ac_ext
3479 cat >>conftest.
$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3490 rm -f conftest.o conftest.obj
3491 if { (ac_try
="$ac_compile"
3493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_compile") 2>&5
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; then
3502 for ac_file in conftest.o conftest.obj conftest.*; do
3503 test -f "$ac_file" || continue;
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3506 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log
' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details.
" >&2;}
3518 { (exit 1); exit 1; }; }
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530 $as_echo_n "(cached
) " >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3570 $as_echo "$as_me: failed program was
:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3590 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592 $as_echo_n "(cached
) " >&6
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3633 $as_echo "$as_me: failed program was
:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 $as_echo "$as_me: failed program was
:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3712 $as_echo "$as_me: failed program was
:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3738 if test "$GCC" = yes; then
3744 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3745 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 $as_echo_n "(cached
) " >&6
3749 ac_cv_prog_cc_c89=no
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3775 s = g (p, va_arg (v,int));
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3832 $as_echo "$as_me: failed program was
:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3841 rm -f conftest.$ac_ext
3846 case "x
$ac_cv_prog_cc_c89" in
3848 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3849 $as_echo "none needed
" >&6; } ;;
3851 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3852 $as_echo "unsupported
" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 # On Suns, sometimes $CPP names a directory.
3868 if test -n "$CPP" && test -d "$CPP"; then
3872 ## If not using gcc, and on Solaris, and no CPP specified, see if
3873 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3874 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3875 test x"$CPP" = x; then
3876 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3877 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3879 if test "${emacs_cv_sunpro_c+set}" = set; then
3880 $as_echo_n "(cached
) " >&6
3882 cat >conftest.$ac_ext <<_ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (ac_try="$ac_link"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_link") 2>conftest.er1
3910 grep -v '^ *+' conftest.er1 >conftest.err
3912 cat conftest.err >&5
3913 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3914 (exit $ac_status); } && {
3915 test -z "$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 } && test -s conftest$ac_exeext && {
3918 test "$cross_compiling" = yes ||
3919 $as_test_x conftest$ac_exeext
3921 emacs_cv_sunpro_c=yes
3923 $as_echo "$as_me: failed program was
:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 emacs_cv_sunpro_c=no
3929 rm -rf conftest.dSYM
3930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3931 conftest$ac_exeext conftest.$ac_ext
3934 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3935 $as_echo "$emacs_cv_sunpro_c" >&6; }
3937 if test x"$emacs_cv_sunpro_c" = xyes; then
3938 NON_GNU_CPP="$CC -E -Xs"
3942 #### Some systems specify a CPP to use unless we are using GCC.
3943 #### Now that we know whether we are using GCC, we can decide whether
3944 #### to use that one.
3945 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3950 #### Some systems specify a CC 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_CC" != x && test x$GCC != xyes &&
3954 test x$cc_specified != xyes
3959 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3961 CC="$CC $GCC_TEST_OPTIONS"
3964 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3966 CC="$CC $NON_GCC_TEST_OPTIONS"
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3975 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3976 # On Suns, sometimes $CPP names a directory.
3977 if test -n "$CPP" && test -d "$CPP"; then
3980 if test -z "$CPP"; then
3981 if test "${ac_cv_prog_CPP+set}" = set; then
3982 $as_echo_n "(cached
) " >&6
3984 # Double quotes because CPP needs to be expanded
3985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3988 for ac_c_preproc_warn_flag in '' yes
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error
" is here to catch this case.
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4003 # include <limits.h>
4005 # include <assert.h>
4009 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4015 $as_echo "$ac_try_echo") >&5
4016 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4022 (exit $ac_status); } >/dev/null && {
4023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4028 $as_echo "$as_me: failed program was
:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Broken: fails on valid input.
4035 rm -f conftest.err conftest.$ac_ext
4037 # OK, works on sane cases. Now check whether nonexistent headers
4038 # can be detected and how.
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 #include <ac_nonexistent.h>
4047 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4053 $as_echo "$ac_try_echo") >&5
4054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4060 (exit $ac_status); } >/dev/null && {
4061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4064 # Broken: success on invalid input.
4067 $as_echo "$as_me: failed program was
:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Passes both tests.
4075 rm -f conftest.err conftest.$ac_ext
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then
4092 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4093 $as_echo "$CPP" >&6; }
4095 for ac_c_preproc_warn_flag in '' yes
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error
" is here to catch this case.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4110 # include <limits.h>
4112 # include <assert.h>
4116 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4129 (exit $ac_status); } >/dev/null && {
4130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4135 $as_echo "$as_me: failed program was
:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 # Broken: fails on valid input.
4142 rm -f conftest.err conftest.$ac_ext
4144 # OK, works on sane cases. Now check whether nonexistent headers
4145 # can be detected and how.
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <ac_nonexistent.h>
4154 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4160 $as_echo "$ac_try_echo") >&5
4161 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4167 (exit $ac_status); } >/dev/null && {
4168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4171 # Broken: success on invalid input.
4174 $as_echo "$as_me: failed program was
:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 # Passes both tests.
4182 rm -f conftest.err conftest.$ac_ext
4185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186 rm -f conftest.err conftest.$ac_ext
4187 if $ac_preproc_ok; then
4190 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4191 See \
`config.log' for more details." >&5
4192 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log
' for more details." >&2;}
4194 { (exit 1); exit 1; }; }
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4200 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if test "${ac_cv_path_GREP+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and
test for each of PROGNAME-LIST
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4213 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_prog
in grep ggrep
; do
4218 for ac_exec_ext
in '' $ac_executable_extensions; do
4219 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4225 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4228 $as_echo_n 0123456789 >"conftest.in"
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4236 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4237 ac_count
=`expr $ac_count + 1`
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP
="$ac_path_GREP"
4241 ac_path_GREP_max
=$ac_count
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4246 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4249 $ac_path_GREP_found && break 3
4254 if test -z "$ac_cv_path_GREP"; then
4255 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4256 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4257 { (exit 1); exit 1; }; }
4260 ac_cv_path_GREP
=$GREP
4264 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4265 $as_echo "$ac_cv_path_GREP" >&6; }
4266 GREP
="$ac_cv_path_GREP"
4269 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4270 $as_echo_n "checking for egrep... " >&6; }
4271 if test "${ac_cv_path_EGREP+set}" = set; then
4272 $as_echo_n "(cached) " >&6
4274 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4275 then ac_cv_path_EGREP
="$GREP -E"
4277 if test -z "$EGREP"; then
4278 ac_path_EGREP_found
=false
4279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4281 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4284 test -z "$as_dir" && as_dir
=.
4285 for ac_prog
in egrep; do
4286 for ac_exec_ext
in '' $ac_executable_extensions; do
4287 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4288 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4289 # Check for GNU ac_path_EGREP and select it if it is found.
4290 # Check for GNU $ac_path_EGREP
4291 case `"$ac_path_EGREP" --version 2>&1` in
4293 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4296 $as_echo_n 0123456789 >"conftest.in"
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 $as_echo 'EGREP' >> "conftest.nl"
4303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4304 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4305 ac_count
=`expr $ac_count + 1`
4306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_EGREP
="$ac_path_EGREP"
4309 ac_path_EGREP_max
=$ac_count
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4314 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4317 $ac_path_EGREP_found && break 3
4322 if test -z "$ac_cv_path_EGREP"; then
4323 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4324 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4325 { (exit 1); exit 1; }; }
4328 ac_cv_path_EGREP
=$EGREP
4333 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4334 $as_echo "$ac_cv_path_EGREP" >&6; }
4335 EGREP
="$ac_cv_path_EGREP"
4338 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4339 $as_echo_n "checking for ANSI C header files... " >&6; }
4340 if test "${ac_cv_header_stdc+set}" = set; then
4341 $as_echo_n "(cached) " >&6
4343 cat >conftest.
$ac_ext <<_ACEOF
4346 cat confdefs.h
>>conftest.
$ac_ext
4347 cat >>conftest.
$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4362 rm -f conftest.
$ac_objext
4363 if { (ac_try
="$ac_compile"
4365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4369 $as_echo "$ac_try_echo") >&5
4370 (eval "$ac_compile") 2>conftest.er1
4372 grep -v '^ *+' conftest.er1 >conftest.err
4374 cat conftest.err >&5
4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && {
4377 test -z "$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 } && test -s conftest.$ac_objext; then
4380 ac_cv_header_stdc=yes
4382 $as_echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_cv_header_stdc=no
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 if test $ac_cv_header_stdc = yes; then
4391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4402 $EGREP "memchr" >/dev/null 2>&1; then
4405 ac_cv_header_stdc=no
4411 if test $ac_cv_header_stdc = yes; then
4412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "free" >/dev/null 2>&1; then
4426 ac_cv_header_stdc=no
4432 if test $ac_cv_header_stdc = yes; then
4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434 if test "$cross_compiling" = yes; then
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4468 rm -f conftest$ac_exeext
4469 if { (ac_try="$ac_link"
4471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4472 *) ac_try_echo
=$ac_try;;
4474 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4475 $as_echo "$ac_try_echo") >&5
4476 (eval "$ac_link") 2>&5
4478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4480 { (case "(($ac_try" in
4481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4485 $as_echo "$ac_try_echo") >&5
4486 (eval "$ac_try") 2>&5
4488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4492 $as_echo "$as_me: program exited with status $ac_status" >&5
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4497 ac_cv_header_stdc=no
4499 rm -rf conftest.dSYM
4500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4506 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4507 $as_echo "$ac_cv_header_stdc" >&6; }
4508 if test $ac_cv_header_stdc = yes; then
4510 cat >>confdefs.h <<\_ACEOF
4511 #define STDC_HEADERS 1
4516 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4527 inttypes.h stdint.h unistd.h
4529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4531 $as_echo_n "checking for $ac_header... " >&6; }
4532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4533 $as_echo_n "(cached) " >&6
4535 cat >conftest.$ac_ext <<_ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 $ac_includes_default
4543 #include <$ac_header>
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4549 *) ac_try_echo
=$ac_try;;
4551 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_compile") 2>conftest.er1
4555 grep -v '^ *+' conftest.er1
>conftest.err
4557 cat conftest.err
>&5
4558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && {
4560 test -z "$ac_c_werror_flag" ||
4561 test ! -s conftest.err
4562 } && test -s conftest.
$ac_objext; then
4563 eval "$as_ac_Header=yes"
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.
$ac_ext >&5
4568 eval "$as_ac_Header=no"
4571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4573 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4574 $as_echo "$as_val"'`
4575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4576 $as_echo "$ac_res" >&6; }
4577 if test `eval 'as_val=${'$as_ac_Header'}
4578 $as_echo "$as_val"'` = yes; then
4579 cat >>confdefs.h
<<_ACEOF
4580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589 if test "${ac_cv_header_minix_config_h+set}" = set; then
4590 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4591 $as_echo_n "checking for minix/config.h... " >&6; }
4592 if test "${ac_cv_header_minix_config_h+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4596 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4598 # Is the header compilable?
4599 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4600 $as_echo_n "checking minix/config.h usability... " >&6; }
4601 cat >conftest.
$ac_ext <<_ACEOF
4604 cat confdefs.h
>>conftest.
$ac_ext
4605 cat >>conftest.
$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4608 #include <minix/config.h>
4610 rm -f conftest.
$ac_objext
4611 if { (ac_try
="$ac_compile"
4613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617 $as_echo "$ac_try_echo") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4628 ac_header_compiler=yes
4630 $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 ac_header_compiler=no
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4638 $as_echo "$ac_header_compiler" >&6; }
4640 # Is the header present?
4641 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4642 $as_echo_n "checking minix/config.h presence... " >&6; }
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 #include <minix/config.h>
4651 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4654 *) ac_try_echo
=$ac_try;;
4656 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1
>conftest.err
4662 cat conftest.err
>&5
4663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev
/null
&& {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4668 ac_header_preproc
=yes
4670 $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.
$ac_ext >&5
4673 ac_header_preproc
=no
4676 rm -f conftest.err conftest.
$ac_ext
4677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4678 $as_echo "$ac_header_preproc" >&6; }
4680 # So? What about this header?
4681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4683 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4684 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4685 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4686 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4687 ac_header_preproc
=yes
4690 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4691 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4692 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4693 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4694 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4695 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4696 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4697 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4700 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4701 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4705 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4706 $as_echo_n "checking for minix/config.h... " >&6; }
4707 if test "${ac_cv_header_minix_config_h+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4710 ac_cv_header_minix_config_h
=$ac_header_preproc
4712 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4713 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4716 if test $ac_cv_header_minix_config_h = yes; then
4723 if test "$MINIX" = yes; then
4725 cat >>confdefs.h
<<\_ACEOF
4726 #define _POSIX_SOURCE 1
4730 cat >>confdefs.h
<<\_ACEOF
4731 #define _POSIX_1_SOURCE 2
4735 cat >>confdefs.h
<<\_ACEOF
4743 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4744 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4746 $as_echo_n "(cached) " >&6
4748 cat >conftest.
$ac_ext <<_ACEOF
4751 cat confdefs.h
>>conftest.
$ac_ext
4752 cat >>conftest.
$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4755 # define __EXTENSIONS__ 1
4756 $ac_includes_default
4765 rm -f conftest.
$ac_objext
4766 if { (ac_try
="$ac_compile"
4768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772 $as_echo "$ac_try_echo") >&5
4773 (eval "$ac_compile") 2>conftest.er1
4775 grep -v '^ *+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } && {
4780 test -z "$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 } && test -s conftest.$ac_objext; then
4783 ac_cv_safe_to_define___extensions__=yes
4785 $as_echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 ac_cv_safe_to_define___extensions__=no
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4794 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4795 test $ac_cv_safe_to_define___extensions__ = yes &&
4796 cat >>confdefs.h <<\_ACEOF
4797 #define __EXTENSIONS__ 1
4800 cat >>confdefs.h <<\_ACEOF
4801 #define _ALL_SOURCE 1
4804 cat >>confdefs.h <<\_ACEOF
4805 #define _GNU_SOURCE 1
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _POSIX_PTHREAD_SEMANTICS 1
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _TANDEM_SOURCE 1
4818 ### Use -Wno-pointer-sign if the compiler supports it
4819 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4820 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4821 SAVE_CFLAGS="$CFLAGS"
4822 CFLAGS="$CFLAGS -Wno-pointer-sign"
4823 cat >conftest.$ac_ext <<_ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4842 *) ac_try_echo
=$ac_try;;
4844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4845 $as_echo "$ac_try_echo") >&5
4846 (eval "$ac_compile") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1
>conftest.err
4850 cat conftest.err
>&5
4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && {
4853 test -z "$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 } && test -s conftest.
$ac_objext; then
4858 $as_echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.
$ac_ext >&5
4864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4865 if test $has_option = yes; then
4866 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4868 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4869 $as_echo "$has_option" >&6; }
4870 CFLAGS
="$SAVE_CFLAGS"
4874 #### Some other nice autoconf tests.
4876 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4877 $as_echo_n "checking whether ln -s works... " >&6; }
4879 if test "$LN_S" = "ln -s"; then
4880 { $as_echo "$as_me:$LINENO: result: yes" >&5
4881 $as_echo "yes" >&6; }
4883 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4884 $as_echo "no, using $LN_S" >&6; }
4888 ac_cpp
='$CPP $CPPFLAGS'
4889 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4892 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4894 # On Suns, sometimes $CPP names a directory.
4895 if test -n "$CPP" && test -d "$CPP"; then
4898 if test -z "$CPP"; then
4899 if test "${ac_cv_prog_CPP+set}" = set; then
4900 $as_echo_n "(cached) " >&6
4902 # Double quotes because CPP needs to be expanded
4903 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4906 for ac_c_preproc_warn_flag
in '' yes
4908 # Use a header file that comes with gcc, so configuring glibc
4909 # with a fresh cross-compiler works.
4910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4911 # <limits.h> exists even on freestanding compilers.
4912 # On the NeXT, cc -E runs the code through the compiler's parser,
4913 # not just through cpp. "Syntax error" is here to catch this case.
4914 cat >conftest.
$ac_ext <<_ACEOF
4917 cat confdefs.h
>>conftest.
$ac_ext
4918 cat >>conftest.
$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 # include <limits.h>
4923 # include <assert.h>
4927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4933 $as_echo "$ac_try_echo") >&5
4934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } >/dev/null && {
4941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4946 $as_echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 # Broken: fails on valid input.
4953 rm -f conftest.err conftest.$ac_ext
4955 # OK, works on sane cases. Now check whether nonexistent headers
4956 # can be detected and how.
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4965 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4968 *) ac_try_echo
=$ac_try;;
4970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1
>conftest.err
4976 cat conftest.err
>&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev
/null
&& {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4982 # Broken: success on invalid input.
4985 $as_echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 # Passes both tests.
4993 rm -f conftest.err conftest.
$ac_ext
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.
$ac_ext
4998 if $ac_preproc_ok; then
5010 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5011 $as_echo "$CPP" >&6; }
5013 for ac_c_preproc_warn_flag
in '' yes
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 # include <limits.h>
5030 # include <assert.h>
5034 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5040 $as_echo "$ac_try_echo") >&5
5041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } >/dev/null && {
5048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5053 $as_echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 # Broken: fails on valid input.
5060 rm -f conftest.err conftest.$ac_ext
5062 # OK, works on sane cases. Now check whether nonexistent headers
5063 # can be detected and how.
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5075 *) ac_try_echo
=$ac_try;;
5077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 grep -v '^ *+' conftest.er1
>conftest.err
5083 cat conftest.err
>&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev
/null
&& {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5089 # Broken: success on invalid input.
5092 $as_echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.
$ac_ext >&5
5095 # Passes both tests.
5100 rm -f conftest.err conftest.
$ac_ext
5103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5104 rm -f conftest.err conftest.
$ac_ext
5105 if $ac_preproc_ok; then
5108 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&5
5110 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5111 See \`config.log' for more details." >&2;}
5112 { (exit 1); exit 1; }; }
5116 ac_cpp
='$CPP $CPPFLAGS'
5117 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5121 # Find a good install program. We prefer a C program (faster),
5122 # so one script is as good as another. But avoid the broken or
5123 # incompatible versions:
5124 # SysV /etc/install, /usr/sbin/install
5125 # SunOS /usr/etc/install
5126 # IRIX /sbin/install
5128 # AmigaOS /C/install, which installs bootblocks on floppy discs
5129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5132 # OS/2's system install, which has a completely different semantic
5133 # ./install, which can be erroneously created by make from ./install.sh.
5134 # Reject install programs that cannot install multiple files.
5135 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5136 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5137 if test -z "$INSTALL"; then
5138 if test "${ac_cv_path_install+set}" = set; then
5139 $as_echo_n "(cached) " >&6
5141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir
=.
5146 # Account for people who put trailing slashes in PATH elements.
5148 .
/ | .
// |
/cC
/* | \
5149 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5150 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5153 # OSF1 and SCO ODT 3.0 have their own names for install.
5154 # Don't use installbsd from OSF since it installs stuff as root
5156 for ac_prog
in ginstall scoinst
install; do
5157 for ac_exec_ext
in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5159 if test $ac_prog = install &&
5160 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5161 # AIX install. It has an incompatible calling convention.
5163 elif test $ac_prog = install &&
5164 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5165 # program-specific install script used by HP pwplus--don't use.
5168 rm -rf conftest.one conftest.two conftest.dir
5169 echo one
> conftest.one
5170 echo two
> conftest.two
5172 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5173 test -s conftest.one
&& test -s conftest.two
&&
5174 test -s conftest.dir
/conftest.one
&&
5175 test -s conftest.dir
/conftest.two
5177 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5190 rm -rf conftest.one conftest.two conftest.dir
5193 if test "${ac_cv_path_install+set}" = set; then
5194 INSTALL
=$ac_cv_path_install
5196 # As a last resort, use the slow shell script. Don't cache a
5197 # value for INSTALL within a source directory, because that will
5198 # break other packages using the cache if that directory is
5199 # removed, or if the value is a relative name.
5200 INSTALL
=$ac_install_sh
5203 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5204 $as_echo "$INSTALL" >&6; }
5206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5207 # It thinks the first close brace ends the variable substitution.
5208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5212 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5214 if test "x$RANLIB" = x
; then
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5217 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_prog_RANLIB+set}" = set; then
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$RANLIB"; then
5224 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir
=.
5231 for ac_exec_ext
in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 RANLIB
=$ac_cv_prog_RANLIB
5244 if test -n "$RANLIB"; then
5245 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5246 $as_echo "$RANLIB" >&6; }
5248 { $as_echo "$as_me:$LINENO: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_RANLIB"; then
5255 ac_ct_RANLIB
=$RANLIB
5256 # Extract the first word of "ranlib", so it can be a program name with args.
5257 set dummy ranlib
; ac_word
=$2
5258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$ac_ct_RANLIB"; then
5264 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 for ac_exec_ext
in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5284 if test -n "$ac_ct_RANLIB"; then
5285 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5286 $as_echo "$ac_ct_RANLIB" >&6; }
5288 { $as_echo "$as_me:$LINENO: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_RANLIB" = x
; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5298 whose name does not start with the host triplet. If you think this
5299 configuration is useful to you, please write to autoconf@gnu.org." >&5
5300 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5301 whose name does not start with the host triplet. If you think this
5302 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5303 ac_tool_warned
=yes ;;
5305 RANLIB
=$ac_ct_RANLIB
5308 RANLIB
="$ac_cv_prog_RANLIB"
5312 # Extract the first word of "install-info", so it can be a program name with args.
5313 set dummy install-info
; ac_word
=$2
5314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5317 $as_echo_n "(cached) " >&6
5319 case $INSTALL_INFO in
5321 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir
=.
5329 for ac_exec_ext
in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5343 if test -n "$INSTALL_INFO"; then
5344 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5345 $as_echo "$INSTALL_INFO" >&6; }
5347 { $as_echo "$as_me:$LINENO: result: no" >&5
5348 $as_echo "no" >&6; }
5352 # Extract the first word of "install-info", so it can be a program name with args.
5353 set dummy install-info
; ac_word
=$2
5354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5357 $as_echo_n "(cached) " >&6
5359 case $INSTALL_INFO in
5361 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5365 for as_dir
in /usr
/sbin
5368 test -z "$as_dir" && as_dir
=.
5369 for ac_exec_ext
in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5383 if test -n "$INSTALL_INFO"; then
5384 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5385 $as_echo "$INSTALL_INFO" >&6; }
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5392 # Extract the first word of "install-info", so it can be a program name with args.
5393 set dummy install-info
; ac_word
=$2
5394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5399 case $INSTALL_INFO in
5401 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir
=.
5409 for ac_exec_ext
in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5423 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5424 if test -n "$INSTALL_INFO"; then
5425 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5426 $as_echo "$INSTALL_INFO" >&6; }
5428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429 $as_echo "no" >&6; }
5433 # Extract the first word of "gzip", so it can be a program name with args.
5434 set dummy
gzip; ac_word
=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5442 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir
=.
5450 for ac_exec_ext
in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5464 if test -n "$GZIP_PROG"; then
5465 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5466 $as_echo "$GZIP_PROG" >&6; }
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5475 ## Need makeinfo >= 4.6 (?) to build the manuals.
5476 # Extract the first word of "makeinfo", so it can be a program name with args.
5477 set dummy makeinfo
; ac_word
=$2
5478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5485 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir
=.
5493 for ac_exec_ext
in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5507 MAKEINFO
=$ac_cv_path_MAKEINFO
5508 if test -n "$MAKEINFO"; then
5509 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5510 $as_echo "$MAKEINFO" >&6; }
5512 { $as_echo "$as_me:$LINENO: result: no" >&5
5513 $as_echo "no" >&6; }
5517 if test "$MAKEINFO" != "no" && \
5518 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
5522 ## Makeinfo is unusual. For a released Emacs, the manuals are
5523 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5524 ## therefore in the category of "special tools" not normally required, which
5525 ## configure does not have to check for (eg autoconf itself).
5526 ## In a CVS checkout on the other hand, the manuals are not included.
5527 ## So makeinfo is a requirement to build from CVS, and configure
5528 ## should test for it as it does for any other build requirement.
5529 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5530 ## with pre-built manuals, from a CVS checkout.
5531 if test "$MAKEINFO" = "no"; then
5532 if test "x${with_makeinfo}" = "xno"; then
5534 elif ! test -e $srcdir/info
/emacs
; then
5535 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5536 source tree does not seem to have pre-built manuals in the \`info' directory.
5537 Either install a suitable version of makeinfo, or re-run configure
5538 with the \`--without-makeinfo' option to build without the manuals. " >&5
5539 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5540 source tree does not seem to have pre-built manuals in the \`info' directory.
5541 Either install a suitable version of makeinfo, or re-run configure
5542 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5543 { (exit 1); exit 1; }; }
5548 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5550 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5553 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5555 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5559 late_LDFLAGS
=$LDFLAGS
5560 if test "$GCC" = yes; then
5561 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5563 LDFLAGS
="$LDFLAGS -znocombreloc"
5566 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5567 $as_echo_n "checking for -znocombreloc... " >&6; }
5568 cat >conftest.
$ac_ext <<_ACEOF
5571 rm -f conftest.
$ac_objext conftest
$ac_exeext
5572 if { (ac_try
="$ac_link"
5574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5578 $as_echo "$ac_try_echo") >&5
5579 (eval "$ac_link") 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest$ac_exeext && {
5589 test "$cross_compiling" = yes ||
5590 $as_test_x conftest$ac_exeext
5592 { $as_echo "$as_me:$LINENO: result: yes" >&5
5593 $as_echo "yes" >&6; }
5595 $as_echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 LDFLAGS=$late_LDFLAGS
5599 { $as_echo "$as_me:$LINENO: result: no" >&5
5600 $as_echo "no" >&6; }
5603 rm -rf conftest.dSYM
5604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5605 conftest$ac_exeext conftest.$ac_ext
5607 #### Extract some information from the operating system and machine files.
5609 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5610 - which libraries the lib-src programs will want, and
5611 - whether the GNU malloc routines are usable..." >&5
5612 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5613 - which libraries the lib-src programs will want, and
5614 - whether the GNU malloc routines are usable..." >&6;}
5616 ### First figure out CFLAGS (which we use for running the compiler here)
5617 ### and REAL_CFLAGS (which we use for real compilation).
5618 ### The two are the same except on a few systems, where they are made
5619 ### different to work around various lossages. For example,
5620 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5621 ### as implying static linking.
5623 ### If the CFLAGS env var is specified, we use that value
5624 ### instead of the default.
5626 ### It's not important that this name contain the PID; you can't run
5627 ### two configures in the same directory and have anything work
5629 tempcname="conftest.c"
5632 #include "'${srcdir}'/src/'${opsysfile}'"
5633 #include "'${srcdir}'/src/'${machfile}'"
5634 #ifndef LIBS_MACHINE
5635 #define LIBS_MACHINE
5640 #ifndef C_SWITCH_SYSTEM
5641 #define C_SWITCH_SYSTEM
5643 #ifndef C_SWITCH_MACHINE
5644 #define C_SWITCH_MACHINE
5646 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5647 configure___ c_switch_system=C_SWITCH_SYSTEM
5648 configure___ c_switch_machine=C_SWITCH_MACHINE
5651 #define LIB_X11_LIB -lX11
5654 #ifndef LIBX11_SYSTEM
5655 #define LIBX11_SYSTEM
5657 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5660 configure___ unexec=UNEXEC
5662 configure___ unexec=unexec.o
5665 #ifdef SYSTEM_MALLOC
5666 configure___ system_malloc=yes
5668 configure___ system_malloc=no
5671 #ifdef USE_MMAP_FOR_BUFFERS
5672 configure___ use_mmap_for_buffers=yes
5674 configure___ use_mmap_for_buffers=no
5677 #ifndef C_DEBUG_SWITCH
5678 #define C_DEBUG_SWITCH -g
5681 #ifndef C_OPTIMIZE_SWITCH
5683 #define C_OPTIMIZE_SWITCH -O2
5685 #define C_OPTIMIZE_SWITCH -O
5689 #ifndef C_WARNINGS_SWITCH
5690 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5693 #ifndef LD_SWITCH_MACHINE
5694 #define LD_SWITCH_MACHINE
5697 #ifndef LD_SWITCH_SYSTEM
5698 #define LD_SWITCH_SYSTEM
5701 #ifndef LD_SWITCH_X_SITE_AUX
5702 #define LD_SWITCH_X_SITE_AUX
5705 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5706 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5708 #ifdef THIS_IS_CONFIGURE
5710 /* Get the CFLAGS for tests in configure. */
5712 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5714 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5717 #else /* not THIS_IS_CONFIGURE */
5719 /* Get the CFLAGS for real compilation. */
5721 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5723 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5726 #endif /* not THIS_IS_CONFIGURE */
5729 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5731 # The value of CPP is a quoted variable reference, so we need to do this
5732 # to get its actual value...
5733 CPP=`eval "echo $CPP"`
5734 eval `${CPP} -Isrc ${tempcname} \
5735 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5736 if test "x$SPECIFIED_CFLAGS" = x; then
5737 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5738 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5740 REAL_CFLAGS="$CFLAGS"
5744 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5746 ### Make sure subsequent tests use flags consistent with the build flags.
5748 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5749 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5751 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5756 # Check whether --enable-largefile was given.
5757 if test "${enable_largefile+set}" = set; then
5758 enableval=$enable_largefile;
5761 if test "$enable_largefile" != no; then
5763 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5764 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5765 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5766 $as_echo_n "(cached) " >&6
5768 ac_cv_sys_largefile_CC=no
5769 if test "$GCC" != yes; then
5772 # IRIX 6.2 and later do not support large files by default,
5773 # so use the C compiler's -n32 option if that helps.
5774 cat >conftest.$ac_ext <<_ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5781 /* Check that off_t can represent 2**63 - 1 correctly.
5782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5783 since some C++ compilers masquerading as C compilers
5784 incorrectly reject 9223372036854775807. */
5785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5787 && LARGE_OFF_T % 2147483647 == 1)
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5801 *) ac_try_echo
=$ac_try;;
5803 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1
>conftest.err
5809 cat conftest.err
>&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.
$ac_objext; then
5817 $as_echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.
$ac_ext >&5
5823 rm -f core conftest.err conftest.
$ac_objext
5825 rm -f conftest.
$ac_objext
5826 if { (ac_try
="$ac_compile"
5828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1 >conftest.err
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 ac_cv_sys_largefile_CC=' -n32'; break
5845 $as_echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5851 rm -f core conftest.err conftest.$ac_objext
5855 rm -f conftest.$ac_ext
5858 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5859 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5860 if test "$ac_cv_sys_largefile_CC" != no; then
5861 CC=$CC$ac_cv_sys_largefile_CC
5864 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5865 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5866 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5870 cat >conftest.$ac_ext <<_ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <sys/types.h>
5877 /* Check that off_t can represent 2**63 - 1 correctly.
5878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5879 since some C++ compilers masquerading as C compilers
5880 incorrectly reject 9223372036854775807. */
5881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5883 && LARGE_OFF_T % 2147483647 == 1)
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5897 *) ac_try_echo
=$ac_try;;
5899 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5900 $as_echo "$ac_try_echo") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.
$ac_objext; then
5911 ac_cv_sys_file_offset_bits
=no
; break
5913 $as_echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.
$ac_ext >&5
5919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5920 cat >conftest.
$ac_ext <<_ACEOF
5923 cat confdefs.h
>>conftest.
$ac_ext
5924 cat >>conftest.
$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 #define _FILE_OFFSET_BITS 64
5927 #include <sys/types.h>
5928 /* Check that off_t can represent 2**63 - 1 correctly.
5929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5930 since some C++ compilers masquerading as C compilers
5931 incorrectly reject 9223372036854775807. */
5932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5934 && LARGE_OFF_T % 2147483647 == 1)
5944 rm -f conftest.
$ac_objext
5945 if { (ac_try
="$ac_compile"
5947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5951 $as_echo "$ac_try_echo") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.$ac_objext; then
5962 ac_cv_sys_file_offset_bits=64; break
5964 $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 ac_cv_sys_file_offset_bits=unknown
5975 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5976 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5977 case $ac_cv_sys_file_offset_bits in #(
5980 cat >>confdefs.h <<_ACEOF
5981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5986 if test $ac_cv_sys_file_offset_bits = unknown; then
5987 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5988 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5989 if test "${ac_cv_sys_large_files+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 /* Check that off_t can represent 2**63 - 1 correctly.
6001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6002 since some C++ compilers masquerading as C compilers
6003 incorrectly reject 9223372036854775807. */
6004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6006 && LARGE_OFF_T % 2147483647 == 1)
6016 rm -f conftest.$ac_objext
6017 if { (ac_try="$ac_compile"
6019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6020 *) ac_try_echo
=$ac_try;;
6022 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6023 $as_echo "$ac_try_echo") >&5
6024 (eval "$ac_compile") 2>conftest.er1
6026 grep -v '^ *+' conftest.er1
>conftest.err
6028 cat conftest.err
>&5
6029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && {
6031 test -z "$ac_c_werror_flag" ||
6032 test ! -s conftest.err
6033 } && test -s conftest.
$ac_objext; then
6034 ac_cv_sys_large_files
=no
; break
6036 $as_echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.
$ac_ext >&5
6042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6043 cat >conftest.
$ac_ext <<_ACEOF
6046 cat confdefs.h
>>conftest.
$ac_ext
6047 cat >>conftest.
$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #define _LARGE_FILES 1
6050 #include <sys/types.h>
6051 /* Check that off_t can represent 2**63 - 1 correctly.
6052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6053 since some C++ compilers masquerading as C compilers
6054 incorrectly reject 9223372036854775807. */
6055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6057 && LARGE_OFF_T % 2147483647 == 1)
6067 rm -f conftest.
$ac_objext
6068 if { (ac_try
="$ac_compile"
6070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074 $as_echo "$ac_try_echo") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085 ac_cv_sys_large_files=1; break
6087 $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_cv_sys_large_files=unknown
6098 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6099 $as_echo "$ac_cv_sys_large_files" >&6; }
6100 case $ac_cv_sys_large_files in #(
6103 cat >>confdefs.h <<_ACEOF
6104 #define _LARGE_FILES $ac_cv_sys_large_files
6114 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6115 ### be located in either /usr/lib64 or /usr/lib.
6116 ### In some rare cases, /usr/lib64 exists but does not contain the
6117 ### relevant files (bug#1287). Hence test for crtn.o.
6118 case "${canonical}" in
6119 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6120 if test -e /usr/lib64/crtn.o; then
6122 cat >>confdefs.h <<\_ACEOF
6123 #define HAVE_LIB64_DIR 1
6132 if test "${with_sound}" != "no"; then
6133 # Sound support for GNU/Linux and the free BSDs.
6137 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 $as_echo_n "checking for $ac_header... " >&6; }
6143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6144 $as_echo_n "(cached) " >&6
6146 ac_res=`eval 'as_val=${'$as_ac_Header'}
6147 $as_echo "$as_val"'`
6148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6149 $as_echo "$ac_res" >&6; }
6151 # Is the header compilable?
6152 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6153 $as_echo_n "checking $ac_header usability... " >&6; }
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 $ac_includes_default
6161 #include <$ac_header>
6163 rm -f conftest.$ac_objext
6164 if { (ac_try="$ac_compile"
6166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6167 *) ac_try_echo
=$ac_try;;
6169 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6170 $as_echo "$ac_try_echo") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1
>conftest.err
6175 cat conftest.err
>&5
6176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.
$ac_objext; then
6181 ac_header_compiler
=yes
6183 $as_echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.
$ac_ext >&5
6186 ac_header_compiler
=no
6189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6191 $as_echo "$ac_header_compiler" >&6; }
6193 # Is the header present?
6194 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6195 $as_echo_n "checking $ac_header presence... " >&6; }
6196 cat >conftest.
$ac_ext <<_ACEOF
6199 cat confdefs.h
>>conftest.
$ac_ext
6200 cat >>conftest.
$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <$ac_header>
6204 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } >/dev/null && {
6218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6221 ac_header_preproc=yes
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_header_preproc=no
6229 rm -f conftest.err conftest.$ac_ext
6230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6231 $as_echo "$ac_header_preproc" >&6; }
6233 # So? What about this header?
6234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6237 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6240 ac_header_preproc=yes
6243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6244 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6246 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6248 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6250 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6254 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6259 $as_echo_n "checking for $ac_header... " >&6; }
6260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 $as_echo_n "(cached) " >&6
6263 eval "$as_ac_Header=\$ac_header_preproc"
6265 ac_res=`eval 'as_val=${'$as_ac_Header'}
6266 $as_echo "$as_val"'`
6267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6268 $as_echo "$ac_res" >&6; }
6271 if test `eval 'as_val=${'$as_ac_Header'}
6272 $as_echo "$as_val"'` = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6281 # Emulation library used on NetBSD.
6282 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6283 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6284 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6285 $as_echo_n "(cached) " >&6
6287 ac_check_lib_save_LIBS=$LIBS
6288 LIBS="-lossaudio $LIBS"
6289 cat >conftest.$ac_ext <<_ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6296 /* Override any GCC internal prototype to avoid an error.
6297 Use char because int might match the return type of a GCC
6298 builtin and then its argument prototype would still apply. */
6306 return _oss_ioctl ();
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (ac_try="$ac_link"
6314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6315 *) ac_try_echo
=$ac_try;;
6317 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6318 $as_echo "$ac_try_echo") >&5
6319 (eval "$ac_link") 2>conftest.er1
6321 grep -v '^ *+' conftest.er1
>conftest.err
6323 cat conftest.err
>&5
6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 } && test -s conftest
$ac_exeext && {
6329 test "$cross_compiling" = yes ||
6330 $as_test_x conftest
$ac_exeext
6332 ac_cv_lib_ossaudio__oss_ioctl
=yes
6334 $as_echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6337 ac_cv_lib_ossaudio__oss_ioctl
=no
6340 rm -rf conftest.dSYM
6341 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6342 conftest
$ac_exeext conftest.
$ac_ext
6343 LIBS
=$ac_check_lib_save_LIBS
6345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6346 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6347 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6356 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6360 # Extract the first word of "pkg-config", so it can be a program name with args.
6361 set dummy pkg-config
; ac_word
=$2
6362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6365 $as_echo_n "(cached) " >&6
6369 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir
=.
6377 for ac_exec_ext
in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6391 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6392 if test -n "$PKG_CONFIG"; then
6393 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6394 $as_echo "$PKG_CONFIG" >&6; }
6396 { $as_echo "$as_me:$LINENO: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test "$PKG_CONFIG" = "no" ; then
6405 PKG_CONFIG_MIN_VERSION
=0.9.0
6406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6407 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6408 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6410 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6411 { $as_echo "$as_me:$LINENO: result: yes" >&5
6412 $as_echo "yes" >&6; }
6415 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6416 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6417 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6418 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6419 $as_echo "$ALSA_CFLAGS" >&6; }
6421 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6422 $as_echo_n "checking ALSA_LIBS... " >&6; }
6423 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6424 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6425 $as_echo "$ALSA_LIBS" >&6; }
6427 { $as_echo "$as_me:$LINENO: result: no" >&5
6428 $as_echo "no" >&6; }
6431 ## If we have a custom action on failure, don't print errors, but
6432 ## do set a variable so people can do so.
6433 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6445 if test $succeeded = yes; then
6451 if test $HAVE_ALSA = yes; then
6452 SAVE_CFLAGS
="$CFLAGS"
6453 SAVE_LDFLAGS
="$LDFLAGS"
6454 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6455 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6456 cat >conftest.
$ac_ext <<_ACEOF
6459 cat confdefs.h
>>conftest.
$ac_ext
6460 cat >>conftest.
$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 #include <asoundlib.h>
6466 snd_lib_error_set_handler (0);
6471 rm -f conftest.
$ac_objext
6472 if { (ac_try
="$ac_compile"
6474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6478 $as_echo "$ac_try_echo") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6489 emacs_alsa_normal=yes
6491 $as_echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 emacs_alsa_normal=no
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 if test "$emacs_alsa_normal" != yes; then
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 #include <alsa/asoundlib.h>
6509 snd_lib_error_set_handler (0);
6514 rm -f conftest.$ac_objext
6515 if { (ac_try="$ac_compile"
6517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6518 *) ac_try_echo
=$ac_try;;
6520 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6521 $as_echo "$ac_try_echo") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6524 grep -v '^ *+' conftest.er1
>conftest.err
6526 cat conftest.err
>&5
6527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_c_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest.
$ac_objext; then
6532 emacs_alsa_subdir
=yes
6534 $as_echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.
$ac_ext >&5
6537 emacs_alsa_subdir
=no
6540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6541 if test "$emacs_alsa_subdir" != yes; then
6542 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6543 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6544 { (exit 1); exit 1; }; }
6546 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6549 CFLAGS
="$SAVE_CFLAGS"
6550 LDFLAGS
="$SAVE_LDFLAGS"
6551 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6552 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6554 cat >>confdefs.h
<<\_ACEOF
6587 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6588 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6589 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6590 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6593 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6594 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6596 $as_echo_n "checking for $ac_header... " >&6; }
6597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 $as_echo_n "(cached) " >&6
6600 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6601 $as_echo "$as_val"'`
6602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6603 $as_echo "$ac_res" >&6; }
6605 # Is the header compilable?
6606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6607 $as_echo_n "checking $ac_header usability... " >&6; }
6608 cat >conftest.
$ac_ext <<_ACEOF
6611 cat confdefs.h
>>conftest.
$ac_ext
6612 cat >>conftest.
$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6615 #include <$ac_header>
6617 rm -f conftest.
$ac_objext
6618 if { (ac_try
="$ac_compile"
6620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6624 $as_echo "$ac_try_echo") >&5
6625 (eval "$ac_compile") 2>conftest.er1
6627 grep -v '^ *+' conftest.er1 >conftest.err
6629 cat conftest.err >&5
6630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest.$ac_objext; then
6635 ac_header_compiler=yes
6637 $as_echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ac_header_compiler=no
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6645 $as_echo "$ac_header_compiler" >&6; }
6647 # Is the header present?
6648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6649 $as_echo_n "checking $ac_header presence... " >&6; }
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <$ac_header>
6658 if { (ac_try="$ac_cpp conftest.$ac_ext"
6660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6661 *) ac_try_echo
=$ac_try;;
6663 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6664 $as_echo "$ac_try_echo") >&5
6665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6667 grep -v '^ *+' conftest.er1
>conftest.err
6669 cat conftest.err
>&5
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } >/dev
/null
&& {
6672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6675 ac_header_preproc
=yes
6677 $as_echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.
$ac_ext >&5
6680 ac_header_preproc
=no
6683 rm -f conftest.err conftest.
$ac_ext
6684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6685 $as_echo "$ac_header_preproc" >&6; }
6687 # So? What about this header?
6688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6694 ac_header_preproc
=yes
6697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6700 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6704 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 $as_echo_n "checking for $ac_header... " >&6; }
6714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 $as_echo_n "(cached) " >&6
6717 eval "$as_ac_Header=\$ac_header_preproc"
6719 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6720 $as_echo "$as_val"'`
6721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6722 $as_echo "$ac_res" >&6; }
6725 if test `eval 'as_val=${'$as_ac_Header'}
6726 $as_echo "$as_val"'` = yes; then
6727 cat >>confdefs.h
<<_ACEOF
6728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6736 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6737 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6738 cat >conftest.
$ac_ext <<_ACEOF
6741 cat confdefs.h
>>conftest.
$ac_ext
6742 cat >>conftest.
$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #include <sys/personality.h>
6748 personality (PER_LINUX32)
6753 rm -f conftest.
$ac_objext
6754 if { (ac_try
="$ac_compile"
6756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6760 $as_echo "$ac_try_echo") >&5
6761 (eval "$ac_compile") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest.$ac_objext; then
6771 emacs_cv_personality_linux32=yes
6773 $as_echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 emacs_cv_personality_linux32=no
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6781 $as_echo "$emacs_cv_personality_linux32" >&6; }
6783 if test $emacs_cv_personality_linux32 = yes; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define HAVE_PERSONALITY_LINUX32 1
6792 for ac_header in term.h
6794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 $as_echo_n "checking for $ac_header... " >&6; }
6797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6798 $as_echo_n "(cached) " >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <$ac_header>
6808 if { (ac_try="$ac_cpp conftest.$ac_ext"
6810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6811 *) ac_try_echo
=$ac_try;;
6813 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6814 $as_echo "$ac_try_echo") >&5
6815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6817 grep -v '^ *+' conftest.er1
>conftest.err
6819 cat conftest.err
>&5
6820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } >/dev
/null
&& {
6822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6825 eval "$as_ac_Header=yes"
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.
$ac_ext >&5
6830 eval "$as_ac_Header=no"
6833 rm -f conftest.err conftest.
$ac_ext
6835 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6836 $as_echo "$as_val"'`
6837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6838 $as_echo "$ac_res" >&6; }
6839 if test `eval 'as_val=${'$as_ac_Header'}
6840 $as_echo "$as_val"'` = yes; then
6841 cat >>confdefs.h
<<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6849 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6850 $as_echo_n "checking for ANSI C header files... " >&6; }
6851 if test "${ac_cv_header_stdc+set}" = set; then
6852 $as_echo_n "(cached) " >&6
6854 cat >conftest.
$ac_ext <<_ACEOF
6857 cat confdefs.h
>>conftest.
$ac_ext
6858 cat >>conftest.
$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6873 rm -f conftest.
$ac_objext
6874 if { (ac_try
="$ac_compile"
6876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881 (eval "$ac_compile") 2>conftest.er1
6883 grep -v '^ *+' conftest.er1 >conftest.err
6885 cat conftest.err >&5
6886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && {
6888 test -z "$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 } && test -s conftest.$ac_objext; then
6891 ac_cv_header_stdc=yes
6893 $as_echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_header_stdc=no
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 if test $ac_cv_header_stdc = yes; then
6902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6903 cat >conftest.$ac_ext <<_ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6913 $EGREP "memchr" >/dev/null 2>&1; then
6916 ac_cv_header_stdc=no
6922 if test $ac_cv_header_stdc = yes; then
6923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6924 cat >conftest.$ac_ext <<_ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6934 $EGREP "free" >/dev/null 2>&1; then
6937 ac_cv_header_stdc=no
6943 if test $ac_cv_header_stdc = yes; then
6944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6945 if test "$cross_compiling" = yes; then
6948 cat >conftest.$ac_ext <<_ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6956 #if ((' ' & 0x0FF) == 0x020)
6957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6960 # define ISLOWER(c) \
6961 (('a' <= (c) && (c) <= 'i') \
6962 || ('j' <= (c) && (c) <= 'r') \
6963 || ('s' <= (c) && (c) <= 'z'))
6964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6972 for (i = 0; i < 256; i++)
6973 if (XOR (islower (i), ISLOWER (i))
6974 || toupper (i) != TOUPPER (i))
6979 rm -f conftest$ac_exeext
6980 if { (ac_try="$ac_link"
6982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6983 *) ac_try_echo
=$ac_try;;
6985 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6986 $as_echo "$ac_try_echo") >&5
6987 (eval "$ac_link") 2>&5
6989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6991 { (case "(($ac_try" in
6992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_try") 2>&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7003 $as_echo "$as_me: program exited with status $ac_status" >&5
7004 $as_echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_cv_header_stdc=no
7010 rm -rf conftest.dSYM
7011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7017 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7018 $as_echo "$ac_cv_header_stdc" >&6; }
7019 if test $ac_cv_header_stdc = yes; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define STDC_HEADERS 1
7027 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7028 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7029 if test "${ac_cv_header_time+set}" = set; then
7030 $as_echo_n "(cached) " >&6
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <sys/types.h>
7039 #include <sys/time.h>
7045 if ((struct tm *) 0)
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7055 *) ac_try_echo
=$ac_try;;
7057 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7058 $as_echo "$ac_try_echo") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7061 grep -v '^ *+' conftest.er1
>conftest.err
7063 cat conftest.err
>&5
7064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.
$ac_objext; then
7069 ac_cv_header_time
=yes
7071 $as_echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.
$ac_ext >&5
7074 ac_cv_header_time
=no
7077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7080 $as_echo "$ac_cv_header_time" >&6; }
7081 if test $ac_cv_header_time = yes; then
7083 cat >>confdefs.h
<<\_ACEOF
7084 #define TIME_WITH_SYS_TIME 1
7089 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7090 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7091 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7092 $as_echo_n "(cached) " >&6
7094 cat >conftest.
$ac_ext <<_ACEOF
7097 cat confdefs.h
>>conftest.
$ac_ext
7098 cat >>conftest.
$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 $ac_includes_default
7112 rm -f conftest.
$ac_objext
7113 if { (ac_try
="$ac_compile"
7115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7119 $as_echo "$ac_try_echo") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_have_decl_sys_siglist=yes
7132 $as_echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_cv_have_decl_sys_siglist=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7141 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7142 if test $ac_cv_have_decl_sys_siglist = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_DECL_SYS_SIGLIST 1
7150 cat >>confdefs.h <<_ACEOF
7151 #define HAVE_DECL_SYS_SIGLIST 0
7158 if test $ac_cv_have_decl_sys_siglist != yes; then
7159 # For Tru64, at least:
7160 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7161 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7162 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7163 $as_echo_n "(cached) " >&6
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 $ac_includes_default
7175 #ifndef __sys_siglist
7176 (void) __sys_siglist;
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7187 *) ac_try_echo
=$ac_try;;
7189 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7190 $as_echo "$ac_try_echo") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7193 grep -v '^ *+' conftest.er1
>conftest.err
7195 cat conftest.err
>&5
7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.
$ac_objext; then
7201 ac_cv_have_decl___sys_siglist
=yes
7203 $as_echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.
$ac_ext >&5
7206 ac_cv_have_decl___sys_siglist
=no
7209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7212 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7213 if test $ac_cv_have_decl___sys_siglist = yes; then
7215 cat >>confdefs.h
<<_ACEOF
7216 #define HAVE_DECL___SYS_SIGLIST 1
7221 cat >>confdefs.h
<<_ACEOF
7222 #define HAVE_DECL___SYS_SIGLIST 0
7229 if test $ac_cv_have_decl___sys_siglist = yes; then
7231 cat >>confdefs.h
<<\_ACEOF
7232 #define sys_siglist __sys_siglist
7237 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7238 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7239 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7240 $as_echo_n "(cached) " >&6
7242 cat >conftest.
$ac_ext <<_ACEOF
7245 cat confdefs.h
>>conftest.
$ac_ext
7246 cat >>conftest.
$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 #include <sys/types.h>
7249 #include <sys/wait.h>
7251 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7254 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7262 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7267 rm -f conftest.
$ac_objext
7268 if { (ac_try
="$ac_compile"
7270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7274 $as_echo "$ac_try_echo") >&5
7275 (eval "$ac_compile") 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest.$ac_objext; then
7285 ac_cv_header_sys_wait_h=yes
7287 $as_echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_cv_header_sys_wait_h=no
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7296 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7297 if test $ac_cv_header_sys_wait_h = yes; then
7299 cat >>confdefs.h <<\_ACEOF
7300 #define HAVE_SYS_WAIT_H 1
7306 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7307 $as_echo_n "checking for struct utimbuf... " >&6; }
7308 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7309 $as_echo_n "(cached) " >&6
7311 cat >conftest.$ac_ext <<_ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 #ifdef TIME_WITH_SYS_TIME
7318 #include <sys/time.h>
7321 #ifdef HAVE_SYS_TIME_H
7322 #include <sys/time.h>
7333 static struct utimbuf x; x.actime = x.modtime;
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7342 *) ac_try_echo
=$ac_try;;
7344 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7345 $as_echo "$ac_try_echo") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1
>conftest.err
7350 cat conftest.err
>&5
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.
$ac_objext; then
7356 emacs_cv_struct_utimbuf
=yes
7358 $as_echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.
$ac_ext >&5
7361 emacs_cv_struct_utimbuf
=no
7364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7367 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7368 if test $emacs_cv_struct_utimbuf = yes; then
7370 cat >>confdefs.h
<<\_ACEOF
7371 #define HAVE_STRUCT_UTIMBUF 1
7376 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7377 $as_echo_n "checking return type of signal handlers... " >&6; }
7378 if test "${ac_cv_type_signal+set}" = set; then
7379 $as_echo_n "(cached) " >&6
7381 cat >conftest.
$ac_ext <<_ACEOF
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <sys/types.h>
7393 return *(signal (0, 0)) (0) == 1;
7398 rm -f conftest.
$ac_objext
7399 if { (ac_try
="$ac_compile"
7401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7405 $as_echo "$ac_try_echo") >&5
7406 (eval "$ac_compile") 2>conftest.er1
7408 grep -v '^ *+' conftest.er1 >conftest.err
7410 cat conftest.err >&5
7411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest.$ac_objext; then
7416 ac_cv_type_signal=int
7418 $as_echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_cv_type_signal=void
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7427 $as_echo "$ac_cv_type_signal" >&6; }
7429 cat >>confdefs.h <<_ACEOF
7430 #define RETSIGTYPE $ac_cv_type_signal
7435 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7436 $as_echo_n "checking for speed_t... " >&6; }
7437 if test "${emacs_cv_speed_t+set}" = set; then
7438 $as_echo_n "(cached) " >&6
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 #include <termios.h>
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7459 *) ac_try_echo
=$ac_try;;
7461 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463 (eval "$ac_compile") 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.
$ac_objext; then
7473 emacs_cv_speed_t
=yes
7475 $as_echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.
$ac_ext >&5
7481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7483 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7484 $as_echo "$emacs_cv_speed_t" >&6; }
7485 if test $emacs_cv_speed_t = yes; then
7487 cat >>confdefs.h
<<\_ACEOF
7488 #define HAVE_SPEED_T 1
7493 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7494 $as_echo_n "checking for struct timeval... " >&6; }
7495 if test "${emacs_cv_struct_timeval+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7498 cat >conftest.
$ac_ext <<_ACEOF
7501 cat confdefs.h
>>conftest.
$ac_ext
7502 cat >>conftest.
$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 #ifdef TIME_WITH_SYS_TIME
7505 #include <sys/time.h>
7508 #ifdef HAVE_SYS_TIME_H
7509 #include <sys/time.h>
7517 static struct timeval x; x.tv_sec = x.tv_usec;
7522 rm -f conftest.
$ac_objext
7523 if { (ac_try
="$ac_compile"
7525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7529 $as_echo "$ac_try_echo") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7540 emacs_cv_struct_timeval=yes
7542 $as_echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 emacs_cv_struct_timeval=no
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7551 $as_echo "$emacs_cv_struct_timeval" >&6; }
7552 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7553 if test $emacs_cv_struct_timeval = yes; then
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_TIMEVAL 1
7561 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7562 $as_echo_n "checking for struct exception... " >&6; }
7563 if test "${emacs_cv_struct_exception+set}" = set; then
7564 $as_echo_n "(cached) " >&6
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7576 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7585 *) ac_try_echo
=$ac_try;;
7587 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7588 $as_echo "$ac_try_echo") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7591 grep -v '^ *+' conftest.er1
>conftest.err
7593 cat conftest.err
>&5
7594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest.
$ac_objext; then
7599 emacs_cv_struct_exception
=yes
7601 $as_echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.
$ac_ext >&5
7604 emacs_cv_struct_exception
=no
7607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7610 $as_echo "$emacs_cv_struct_exception" >&6; }
7611 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7612 if test $emacs_cv_struct_exception != yes; then
7614 cat >>confdefs.h
<<\_ACEOF
7615 #define NO_MATHERR 1
7621 for ac_header
in sys
/socket.h
7623 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7624 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 $as_echo_n "checking for $ac_header... " >&6; }
7627 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7628 $as_echo_n "(cached) " >&6
7630 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7631 $as_echo "$as_val"'`
7632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7633 $as_echo "$ac_res" >&6; }
7635 # Is the header compilable?
7636 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7637 $as_echo_n "checking $ac_header usability... " >&6; }
7638 cat >conftest.
$ac_ext <<_ACEOF
7641 cat confdefs.h
>>conftest.
$ac_ext
7642 cat >>conftest.
$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 #include <$ac_header>
7647 rm -f conftest.
$ac_objext
7648 if { (ac_try
="$ac_compile"
7650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7654 $as_echo "$ac_try_echo") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_header_compiler=yes
7667 $as_echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_header_compiler=no
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7675 $as_echo "$ac_header_compiler" >&6; }
7677 # Is the header present?
7678 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7679 $as_echo_n "checking $ac_header presence... " >&6; }
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 #include <$ac_header>
7688 if { (ac_try="$ac_cpp conftest.$ac_ext"
7690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7691 *) ac_try_echo
=$ac_try;;
7693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7694 $as_echo "$ac_try_echo") >&5
7695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7697 grep -v '^ *+' conftest.er1
>conftest.err
7699 cat conftest.err
>&5
7700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } >/dev
/null
&& {
7702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7705 ac_header_preproc
=yes
7707 $as_echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.
$ac_ext >&5
7710 ac_header_preproc
=no
7713 rm -f conftest.err conftest.
$ac_ext
7714 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7715 $as_echo "$ac_header_preproc" >&6; }
7717 # So? What about this header?
7718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7721 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7724 ac_header_preproc
=yes
7727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7728 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7730 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7732 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7734 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7738 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7743 $as_echo_n "checking for $ac_header... " >&6; }
7744 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7745 $as_echo_n "(cached) " >&6
7747 eval "$as_ac_Header=\$ac_header_preproc"
7749 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7750 $as_echo "$as_val"'`
7751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7752 $as_echo "$ac_res" >&6; }
7755 if test `eval 'as_val=${'$as_ac_Header'}
7756 $as_echo "$as_val"'` = yes; then
7757 cat >>confdefs.h
<<_ACEOF
7758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 for ac_header
in net
/if.h
7768 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7770 $as_echo_n "checking for $ac_header... " >&6; }
7771 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7772 $as_echo_n "(cached) " >&6
7774 cat >conftest.
$ac_ext <<_ACEOF
7777 cat confdefs.h
>>conftest.
$ac_ext
7778 cat >>conftest.
$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 $ac_includes_default
7781 #if HAVE_SYS_SOCKET_H
7782 #include <sys/socket.h>
7785 #include <$ac_header>
7787 rm -f conftest.
$ac_objext
7788 if { (ac_try
="$ac_compile"
7790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7794 $as_echo "$ac_try_echo") >&5
7795 (eval "$ac_compile") 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest.$ac_objext; then
7805 eval "$as_ac_Header=yes"
7807 $as_echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 eval "$as_ac_Header=no"
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 ac_res=`eval 'as_val=${'$as_ac_Header'}
7816 $as_echo "$as_val"'`
7817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7818 $as_echo "$ac_res" >&6; }
7819 if test `eval 'as_val=${'$as_ac_Header'}
7820 $as_echo "$as_val"'` = yes; then
7821 cat >>confdefs.h <<_ACEOF
7822 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7830 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7831 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7832 if test "${ac_cv_struct_tm+set}" = set; then
7833 $as_echo_n "(cached) " >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 #include <sys/types.h>
7848 int *p = &tm.tm_sec;
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7858 *) ac_try_echo
=$ac_try;;
7860 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7861 $as_echo "$ac_try_echo") >&5
7862 (eval "$ac_compile") 2>conftest.er1
7864 grep -v '^ *+' conftest.er1
>conftest.err
7866 cat conftest.err
>&5
7867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7871 } && test -s conftest.
$ac_objext; then
7872 ac_cv_struct_tm
=time.h
7874 $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.
$ac_ext >&5
7877 ac_cv_struct_tm
=sys
/time.h
7880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7882 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7883 $as_echo "$ac_cv_struct_tm" >&6; }
7884 if test $ac_cv_struct_tm = sys
/time.h
; then
7886 cat >>confdefs.h
<<\_ACEOF
7887 #define TM_IN_SYS_TIME 1
7892 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7893 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7894 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7895 $as_echo_n "(cached) " >&6
7897 cat >conftest.
$ac_ext <<_ACEOF
7900 cat confdefs.h
>>conftest.
$ac_ext
7901 cat >>conftest.
$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <sys/types.h>
7904 #include <$ac_cv_struct_tm>
7910 static struct tm ac_aggr;
7911 if (ac_aggr.tm_zone)
7917 rm -f conftest.
$ac_objext
7918 if { (ac_try
="$ac_compile"
7920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7924 $as_echo "$ac_try_echo") >&5
7925 (eval "$ac_compile") 2>conftest.er1
7927 grep -v '^ *+' conftest.er1 >conftest.err
7929 cat conftest.err >&5
7930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest.$ac_objext; then
7935 ac_cv_member_struct_tm_tm_zone=yes
7937 $as_echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <sys/types.h>
7947 #include <$ac_cv_struct_tm>
7953 static struct tm ac_aggr;
7954 if (sizeof ac_aggr.tm_zone)
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7964 *) ac_try_echo
=$ac_try;;
7966 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7967 $as_echo "$ac_try_echo") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1
>conftest.err
7972 cat conftest.err
>&5
7973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.
$ac_objext; then
7978 ac_cv_member_struct_tm_tm_zone
=yes
7980 $as_echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.
$ac_ext >&5
7983 ac_cv_member_struct_tm_tm_zone
=no
7986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7991 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7992 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7993 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7995 cat >>confdefs.h
<<_ACEOF
7996 #define HAVE_STRUCT_TM_TM_ZONE 1
8002 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8004 cat >>confdefs.h
<<\_ACEOF
8005 #define HAVE_TM_ZONE 1
8009 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8010 $as_echo_n "checking whether tzname is declared... " >&6; }
8011 if test "${ac_cv_have_decl_tzname+set}" = set; then
8012 $as_echo_n "(cached) " >&6
8014 cat >conftest.
$ac_ext <<_ACEOF
8017 cat confdefs.h
>>conftest.
$ac_ext
8018 cat >>conftest.
$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8033 rm -f conftest.
$ac_objext
8034 if { (ac_try
="$ac_compile"
8036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8040 $as_echo "$ac_try_echo") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_have_decl_tzname=yes
8053 $as_echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_cv_have_decl_tzname=no
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8062 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8063 if test $ac_cv_have_decl_tzname = yes; then
8065 cat >>confdefs.h <<_ACEOF
8066 #define HAVE_DECL_TZNAME 1
8071 cat >>confdefs.h <<_ACEOF
8072 #define HAVE_DECL_TZNAME 0
8079 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8080 $as_echo_n "checking for tzname... " >&6; }
8081 if test "${ac_cv_var_tzname+set}" = set; then
8082 $as_echo_n "(cached) " >&6
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 #if !HAVE_DECL_TZNAME
8092 extern char *tzname[];
8098 return tzname[0][0];
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8107 *) ac_try_echo
=$ac_try;;
8109 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111 (eval "$ac_link") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1
>conftest.err
8115 cat conftest.err
>&5
8116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest
$ac_exeext && {
8121 test "$cross_compiling" = yes ||
8122 $as_test_x conftest
$ac_exeext
8124 ac_cv_var_tzname
=yes
8126 $as_echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.
$ac_ext >&5
8132 rm -rf conftest.dSYM
8133 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8134 conftest
$ac_exeext conftest.
$ac_ext
8136 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8137 $as_echo "$ac_cv_var_tzname" >&6; }
8138 if test $ac_cv_var_tzname = yes; then
8140 cat >>confdefs.h
<<\_ACEOF
8141 #define HAVE_TZNAME 1
8147 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8148 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8149 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8150 $as_echo_n "(cached) " >&6
8152 cat >conftest.
$ac_ext <<_ACEOF
8155 cat confdefs.h
>>conftest.
$ac_ext
8156 cat >>conftest.
$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8163 static struct tm ac_aggr;
8164 if (ac_aggr.tm_gmtoff)
8170 rm -f conftest.
$ac_objext
8171 if { (ac_try
="$ac_compile"
8173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177 $as_echo "$ac_try_echo") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8180 grep -v '^ *+' conftest.er1 >conftest.err
8182 cat conftest.err >&5
8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest.$ac_objext; then
8188 ac_cv_member_struct_tm_tm_gmtoff=yes
8190 $as_echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8204 static struct tm ac_aggr;
8205 if (sizeof ac_aggr.tm_gmtoff)
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8215 *) ac_try_echo
=$ac_try;;
8217 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_compile") 2>conftest.er1
8221 grep -v '^ *+' conftest.er1
>conftest.err
8223 cat conftest.err
>&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest.
$ac_objext; then
8229 ac_cv_member_struct_tm_tm_gmtoff
=yes
8231 $as_echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.
$ac_ext >&5
8234 ac_cv_member_struct_tm_tm_gmtoff
=no
8237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8242 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8243 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8244 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8246 cat >>confdefs.h
<<\_ACEOF
8247 #define HAVE_TM_GMTOFF 1
8252 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8253 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8254 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8257 cat >conftest.
$ac_ext <<_ACEOF
8260 cat confdefs.h
>>conftest.
$ac_ext
8261 cat >>conftest.
$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 $ac_includes_default
8264 #if HAVE_SYS_SOCKET_H
8265 #include <sys/socket.h>
8274 static struct ifreq ac_aggr;
8275 if (ac_aggr.ifr_flags)
8281 rm -f conftest.
$ac_objext
8282 if { (ac_try
="$ac_compile"
8284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8288 $as_echo "$ac_try_echo") >&5
8289 (eval "$ac_compile") 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } && {
8296 test -z "$ac_c_werror_flag" ||
8297 test ! -s conftest.err
8298 } && test -s conftest.$ac_objext; then
8299 ac_cv_member_struct_ifreq_ifr_flags=yes
8301 $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 $ac_includes_default
8311 #if HAVE_SYS_SOCKET_H
8312 #include <sys/socket.h>
8321 static struct ifreq ac_aggr;
8322 if (sizeof ac_aggr.ifr_flags)
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8332 *) ac_try_echo
=$ac_try;;
8334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1
>conftest.err
8340 cat conftest.err
>&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.
$ac_objext; then
8346 ac_cv_member_struct_ifreq_ifr_flags
=yes
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.
$ac_ext >&5
8351 ac_cv_member_struct_ifreq_ifr_flags
=no
8354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8359 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8360 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8361 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8363 cat >>confdefs.h
<<_ACEOF
8364 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8369 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8370 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8371 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8372 $as_echo_n "(cached) " >&6
8374 cat >conftest.
$ac_ext <<_ACEOF
8377 cat confdefs.h
>>conftest.
$ac_ext
8378 cat >>conftest.
$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 #if HAVE_SYS_SOCKET_H
8382 #include <sys/socket.h>
8391 static struct ifreq ac_aggr;
8392 if (ac_aggr.ifr_hwaddr)
8398 rm -f conftest.
$ac_objext
8399 if { (ac_try
="$ac_compile"
8401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8405 $as_echo "$ac_try_echo") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_c_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8418 $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #if HAVE_SYS_SOCKET_H
8429 #include <sys/socket.h>
8438 static struct ifreq ac_aggr;
8439 if (sizeof ac_aggr.ifr_hwaddr)
8445 rm -f conftest.$ac_objext
8446 if { (ac_try="$ac_compile"
8448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8449 *) ac_try_echo
=$ac_try;;
8451 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8452 $as_echo "$ac_try_echo") >&5
8453 (eval "$ac_compile") 2>conftest.er1
8455 grep -v '^ *+' conftest.er1
>conftest.err
8457 cat conftest.err
>&5
8458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } && {
8460 test -z "$ac_c_werror_flag" ||
8461 test ! -s conftest.err
8462 } && test -s conftest.
$ac_objext; then
8463 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8465 $as_echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.
$ac_ext >&5
8468 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8477 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8478 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8480 cat >>confdefs.h
<<_ACEOF
8481 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8486 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8487 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8488 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8489 $as_echo_n "(cached) " >&6
8491 cat >conftest.
$ac_ext <<_ACEOF
8494 cat confdefs.h
>>conftest.
$ac_ext
8495 cat >>conftest.
$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 $ac_includes_default
8498 #if HAVE_SYS_SOCKET_H
8499 #include <sys/socket.h>
8508 static struct ifreq ac_aggr;
8509 if (ac_aggr.ifr_netmask)
8515 rm -f conftest.
$ac_objext
8516 if { (ac_try
="$ac_compile"
8518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8522 $as_echo "$ac_try_echo") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_cv_member_struct_ifreq_ifr_netmask=yes
8535 $as_echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 $ac_includes_default
8545 #if HAVE_SYS_SOCKET_H
8546 #include <sys/socket.h>
8555 static struct ifreq ac_aggr;
8556 if (sizeof ac_aggr.ifr_netmask)
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8566 *) ac_try_echo
=$ac_try;;
8568 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8569 $as_echo "$ac_try_echo") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1
>conftest.err
8574 cat conftest.err
>&5
8575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.
$ac_objext; then
8580 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8582 $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 ac_cv_member_struct_ifreq_ifr_netmask
=no
8588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8593 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8594 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8595 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8597 cat >>confdefs.h
<<_ACEOF
8598 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8603 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8604 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8605 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8606 $as_echo_n "(cached) " >&6
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #if HAVE_SYS_SOCKET_H
8616 #include <sys/socket.h>
8625 static struct ifreq ac_aggr;
8626 if (ac_aggr.ifr_broadaddr)
8632 rm -f conftest.
$ac_objext
8633 if { (ac_try
="$ac_compile"
8635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8639 $as_echo "$ac_try_echo") >&5
8640 (eval "$ac_compile") 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest.$ac_objext; then
8650 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8652 $as_echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 cat >conftest.$ac_ext <<_ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8662 #if HAVE_SYS_SOCKET_H
8663 #include <sys/socket.h>
8672 static struct ifreq ac_aggr;
8673 if (sizeof ac_aggr.ifr_broadaddr)
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8683 *) ac_try_echo
=$ac_try;;
8685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8686 $as_echo "$ac_try_echo") >&5
8687 (eval "$ac_compile") 2>conftest.er1
8689 grep -v '^ *+' conftest.er1
>conftest.err
8691 cat conftest.err
>&5
8692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && {
8694 test -z "$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8696 } && test -s conftest.
$ac_objext; then
8697 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8699 $as_echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.
$ac_ext >&5
8702 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8711 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8712 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8714 cat >>confdefs.h
<<_ACEOF
8715 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8720 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8721 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8722 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8723 $as_echo_n "(cached) " >&6
8725 cat >conftest.
$ac_ext <<_ACEOF
8728 cat confdefs.h
>>conftest.
$ac_ext
8729 cat >>conftest.
$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8732 #if HAVE_SYS_SOCKET_H
8733 #include <sys/socket.h>
8742 static struct ifreq ac_aggr;
8743 if (ac_aggr.ifr_addr)
8749 rm -f conftest.
$ac_objext
8750 if { (ac_try
="$ac_compile"
8752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8767 ac_cv_member_struct_ifreq_ifr_addr=yes
8769 $as_echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 cat >conftest.$ac_ext <<_ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8778 $ac_includes_default
8779 #if HAVE_SYS_SOCKET_H
8780 #include <sys/socket.h>
8789 static struct ifreq ac_aggr;
8790 if (sizeof ac_aggr.ifr_addr)
8796 rm -f conftest.$ac_objext
8797 if { (ac_try="$ac_compile"
8799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8800 *) ac_try_echo
=$ac_try;;
8802 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8803 $as_echo "$ac_try_echo") >&5
8804 (eval "$ac_compile") 2>conftest.er1
8806 grep -v '^ *+' conftest.er1
>conftest.err
8808 cat conftest.err
>&5
8809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest.
$ac_objext; then
8814 ac_cv_member_struct_ifreq_ifr_addr
=yes
8816 $as_echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.
$ac_ext >&5
8819 ac_cv_member_struct_ifreq_ifr_addr
=no
8822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8827 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8828 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8829 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8831 cat >>confdefs.h
<<_ACEOF
8832 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8840 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8841 $as_echo_n "checking for function prototypes... " >&6; }
8842 if test "$ac_cv_prog_cc_c89" != no
; then
8843 { $as_echo "$as_me:$LINENO: result: yes" >&5
8844 $as_echo "yes" >&6; }
8846 cat >>confdefs.h
<<\_ACEOF
8847 #define PROTOTYPES 1
8851 cat >>confdefs.h
<<\_ACEOF
8852 #define __PROTOTYPES 1
8856 { $as_echo "$as_me:$LINENO: result: no" >&5
8857 $as_echo "no" >&6; }
8860 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8861 $as_echo_n "checking for working volatile... " >&6; }
8862 if test "${ac_cv_c_volatile+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8865 cat >conftest.
$ac_ext <<_ACEOF
8868 cat confdefs.h
>>conftest.
$ac_ext
8869 cat >>conftest.
$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8877 int * volatile y = (int *) 0;
8883 rm -f conftest.
$ac_objext
8884 if { (ac_try
="$ac_compile"
8886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_c_volatile=yes
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8912 $as_echo "$ac_cv_c_volatile" >&6; }
8913 if test $ac_cv_c_volatile = no; then
8915 cat >>confdefs.h <<\_ACEOF
8916 #define volatile /**/
8921 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8922 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8923 if test "${ac_cv_c_const+set}" = set; then
8924 $as_echo_n "(cached) " >&6
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8936 /* FIXME: Include the comments suggested by Paul. */
8938 /* Ultrix mips cc rejects this. */
8939 typedef int charset[2];
8941 /* SunOS 4.1.1 cc rejects this. */
8942 char const *const *pcpcc;
8944 /* NEC SVR4.0.2 mips cc rejects this. */
8945 struct point {int x, y;};
8946 static struct point const zero = {0,0};
8947 /* AIX XL C 1.02.0.0 rejects this.
8948 It does not let you subtract one const X* pointer from another in
8949 an arm of an if-expression whose if-part is not a constant
8951 const char *g = "string";
8952 pcpcc = &g + (g ? g-g : 0);
8953 /* HPUX 7.0 cc rejects these. */
8955 ppc = (char**) pcpcc;
8956 pcpcc = (char const *const *) ppc;
8957 { /* SCO 3.2v4 cc rejects this. */
8959 char const *s = 0 ? (char *) 0 : (char const *) 0;
8964 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8966 const int *foo = &x[0];
8969 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8970 typedef const int *iptr;
8974 { /* AIX XL C 1.02.0.0 rejects this saying
8975 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8976 struct s { int j; const int *ap[3]; };
8977 struct s *b; b->j = 5;
8979 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8983 return !cs[0] && !zero.x;
8990 rm -f conftest.$ac_objext
8991 if { (ac_try="$ac_compile"
8993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8994 *) ac_try_echo
=$ac_try;;
8996 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8997 $as_echo "$ac_try_echo") >&5
8998 (eval "$ac_compile") 2>conftest.er1
9000 grep -v '^ *+' conftest.er1
>conftest.err
9002 cat conftest.err
>&5
9003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest.
$ac_objext; then
9010 $as_echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.
$ac_ext >&5
9016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9018 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9019 $as_echo "$ac_cv_c_const" >&6; }
9020 if test $ac_cv_c_const = no
; then
9022 cat >>confdefs.h
<<\_ACEOF
9028 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9029 $as_echo_n "checking for void * support... " >&6; }
9030 if test "${emacs_cv_void_star+set}" = set; then
9031 $as_echo_n "(cached) " >&6
9033 cat >conftest.
$ac_ext <<_ACEOF
9036 cat confdefs.h
>>conftest.
$ac_ext
9037 cat >>conftest.
$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9048 rm -f conftest.
$ac_objext
9049 if { (ac_try
="$ac_compile"
9051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_compile") 2>conftest.er1
9058 grep -v '^ *+' conftest.er1 >conftest.err
9060 cat conftest.err >&5
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest.$ac_objext; then
9066 emacs_cv_void_star=yes
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 emacs_cv_void_star=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9077 $as_echo "$emacs_cv_void_star" >&6; }
9078 if test $emacs_cv_void_star = yes; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define POINTER_TYPE void
9084 cat >>confdefs.h <<\_ACEOF
9085 #define POINTER_TYPE char
9094 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9095 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9097 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9098 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9099 $as_echo_n "(cached) " >&6
9101 cat >conftest.make <<\_ACEOF
9104 @echo '@@@%%%=$(MAKE)=@@@%%%'
9106 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9107 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9109 eval ac_cv_prog_make_${ac_make}_set=yes;;
9111 eval ac_cv_prog_make_${ac_make}_set=no;;
9115 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9116 { $as_echo "$as_me:$LINENO: result: yes" >&5
9117 $as_echo "yes" >&6; }
9120 { $as_echo "$as_me:$LINENO: result: no" >&5
9121 $as_echo "no" >&6; }
9122 SET_MAKE="MAKE=${MAKE-make}"
9126 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9127 $as_echo_n "checking for long file names... " >&6; }
9128 if test "${ac_cv_sys_long_file_names+set}" = set; then
9129 $as_echo_n "(cached) " >&6
9131 ac_cv_sys_long_file_names=yes
9132 # Test for long file names in all the places we know might matter:
9133 # . the current directory, where building will happen
9134 # $prefix/lib where we will be installing things
9135 # $exec_prefix/lib likewise
9136 # $TMPDIR if set, where it might want to write temporary files
9137 # /tmp where it might want to write temporary files
9140 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9141 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9142 # in the usual case where exec_prefix is '${prefix}'.
9144 . | /* | ?:[\\/]*) ;; #(
9147 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9148 ac_xdir=$ac_dir/cf$$
9149 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9150 ac_tf1=$ac_xdir/conftest9012345
9151 ac_tf2=$ac_xdir/conftest9012346
9152 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9153 ac_cv_sys_long_file_names=no
9154 rm -f -r "$ac_xdir" 2>/dev/null
9155 test $ac_cv_sys_long_file_names = no && break
9158 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9159 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9160 if test $ac_cv_sys_long_file_names = yes; then
9162 cat >>confdefs.h <<\_ACEOF
9163 #define HAVE_LONG_FILE_NAMES 1
9169 #### Choose a window system.
9171 { $as_echo "$as_me:$LINENO: checking for X" >&5
9172 $as_echo_n "checking for X... " >&6; }
9175 # Check whether --with-x was given.
9176 if test "${with_x+set}" = set; then
9180 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9181 if test "x$with_x" = xno; then
9182 # The user explicitly disabled X.
9185 case $x_includes,$x_libraries in #(
9186 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9187 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9188 { (exit 1); exit 1; }; };; #(
9189 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9190 $as_echo_n "(cached) " >&6
9192 # One or both of the vars are not set, and there is no cached value.
9193 ac_x_includes=no ac_x_libraries=no
9194 rm -f -r conftest.dir
9195 if mkdir conftest.dir; then
9197 cat >Imakefile <<'_ACEOF'
9199 @echo incroot='${INCROOT}'
9201 @echo usrlibdir='${USRLIBDIR}'
9203 @echo libdir='${LIBDIR}'
9205 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9207 for ac_var in incroot usrlibdir libdir; do
9208 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9210 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9211 for ac_extension in a so sl dylib la dll; do
9212 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9213 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9214 ac_im_usrlibdir=$ac_im_libdir; break
9217 # Screen out bogus values from the imake configuration. They are
9218 # bogus both because they are the default anyway, and because
9219 # using them would break gcc on systems where it needs fixed includes.
9220 case $ac_im_incroot in
9221 /usr/include) ac_x_includes= ;;
9222 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9224 case $ac_im_usrlibdir in
9226 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9230 rm -f -r conftest.dir
9233 # Standard set of common directories for X headers.
9234 # Check X11 before X11Rn because it is often a symlink to the current release.
9246 /usr/local/X11/include
9247 /usr/local/X11R6/include
9248 /usr/local/X11R5/include
9249 /usr/local/X11R4/include
9251 /usr/local/include/X11
9252 /usr/local/include/X11R6
9253 /usr/local/include/X11R5
9254 /usr/local/include/X11R4
9258 /usr/XFree86/include/X11
9262 /usr/unsupported/include
9264 /usr/local/x11r5/include
9265 /usr/lpp/Xamples/include
9267 /usr/openwin/include
9268 /usr/openwin/share/include'
9270 if test "$ac_x_includes" = no; then
9271 # Guess where to find include files, by looking for Xlib.h.
9272 # First, try using that file with no special directory specified.
9273 cat >conftest.$ac_ext <<_ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 #include <X11/Xlib.h>
9281 if { (ac_try="$ac_cpp conftest.$ac_ext"
9283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9284 *) ac_try_echo
=$ac_try;;
9286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev
/null
&& {
9295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9298 # We can compile using X headers with no special include directory.
9301 $as_echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.
$ac_ext >&5
9304 for ac_dir
in $ac_x_header_dirs; do
9305 if test -r "$ac_dir/X11/Xlib.h"; then
9306 ac_x_includes
=$ac_dir
9312 rm -f conftest.err conftest.
$ac_ext
9313 fi # $ac_x_includes = no
9315 if test "$ac_x_libraries" = no
; then
9316 # Check for the libraries.
9317 # See if we find them without any special options.
9318 # Don't add to $LIBS permanently.
9321 cat >conftest.
$ac_ext <<_ACEOF
9324 cat confdefs.h
>>conftest.
$ac_ext
9325 cat >>conftest.
$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 #include <X11/Xlib.h>
9336 rm -f conftest.
$ac_objext conftest
$ac_exeext
9337 if { (ac_try
="$ac_link"
9339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9343 $as_echo "$ac_try_echo") >&5
9344 (eval "$ac_link") 2>conftest.er1
9346 grep -v '^ *+' conftest.er1 >conftest.err
9348 cat conftest.err >&5
9349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } && {
9351 test -z "$ac_c_werror_flag" ||
9352 test ! -s conftest.err
9353 } && test -s conftest$ac_exeext && {
9354 test "$cross_compiling" = yes ||
9355 $as_test_x conftest$ac_exeext
9358 # We can link X programs with no special library path.
9361 $as_echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9365 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9367 # Don't even attempt the hair of trying to link an X program!
9368 for ac_extension in a so sl dylib la dll; do
9369 if test -r "$ac_dir/libX11.$ac_extension"; then
9370 ac_x_libraries=$ac_dir
9377 rm -rf conftest.dSYM
9378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379 conftest$ac_exeext conftest.$ac_ext
9380 fi # $ac_x_libraries = no
9382 case $ac_x_includes,$ac_x_libraries in #(
9384 # Didn't find X, or a directory has "'" in its name.
9385 ac_cv_have_x="have_x=no";; #(
9387 # Record where we found X for the cache.
9388 ac_cv_have_x="have_x=yes\
9389 ac_x_includes='$ac_x_includes'\
9390 ac_x_libraries='$ac_x_libraries'"
9396 eval "$ac_cv_have_x"
9399 if test "$have_x" != yes; then
9400 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9401 $as_echo "$have_x" >&6; }
9404 # If each of the values was on the command line, it overrides each guess.
9405 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9406 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9407 # Update the cache value to reflect the command line values.
9408 ac_cv_have_x="have_x=yes\
9409 ac_x_includes='$x_includes'\
9410 ac_x_libraries='$x_libraries'"
9411 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9412 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9415 if test "$no_x" = yes; then
9421 ## Workaround for bug in autoconf <= 2.62.
9422 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9423 ## No need to do anything special for these standard directories.
9424 ## This is an experiment, take it out if it causes problems.
9425 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9427 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9431 if test "${x_libraries}" != NONE; then
9432 if test -n "${x_libraries}"; then
9433 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9434 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9436 x_default_search_path=""
9437 x_search_path=${x_libraries}
9438 if test -z "${x_search_path}"; then
9439 x_search_path=/usr/lib
9441 for x_library in `echo ${x_search_path}: | \
9442 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9444 ${x_library}/X11/%L/%T/%N%C%S:\
9445 ${x_library}/X11/%l/%T/%N%C%S:\
9446 ${x_library}/X11/%T/%N%C%S:\
9447 ${x_library}/X11/%L/%T/%N%S:\
9448 ${x_library}/X11/%l/%T/%N%S:\
9449 ${x_library}/X11/%T/%N%S"
9450 if test x"${x_default_search_path}" = x; then
9451 x_default_search_path=${x_search_path}
9453 x_default_search_path="${x_search_path}:${x_default_search_path}"
9457 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9458 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9461 if test x"${x_includes}" = x; then
9462 bitmapdir=/usr/include/X11/bitmaps
9464 # accumulate include directories that have X11 bitmap subdirectories
9466 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9467 if test -d "${bmd}/X11/bitmaps"; then
9468 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9470 if test -d "${bmd}/bitmaps"; then
9471 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9474 if test ${bmd_acc} != "dummyval"; then
9475 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9482 tmp_CPPFLAGS="$CPPFLAGS"
9483 tmp_CFLAGS="$CFLAGS"
9484 CPPFLAGS="$CPPFLAGS -x objective-c"
9485 CFLAGS="$CFLAGS -x objective-c"
9486 if test "${with_ns}" != no; then
9487 if test "${opsys}" = darwin; then
9489 ns_appdir=`pwd`/nextstep/Emacs.app
9490 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9491 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9492 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9493 elif test -f $GNUSTEP_CONFIG_FILE; then
9495 ns_appdir=`pwd`/nextstep/Emacs.app
9496 ns_appbindir=`pwd`/nextstep/Emacs.app
9497 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9498 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9499 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9500 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9501 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9502 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9503 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9504 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9505 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9507 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9508 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9509 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9510 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9511 $as_echo_n "(cached) " >&6
9513 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9514 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9516 # Is the header compilable?
9517 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9518 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 $ac_includes_default
9526 #include <AppKit/AppKit.h>
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9532 *) ac_try_echo
=$ac_try;;
9534 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9535 $as_echo "$ac_try_echo") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1
>conftest.err
9540 cat conftest.err
>&5
9541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.
$ac_objext; then
9546 ac_header_compiler
=yes
9548 $as_echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.
$ac_ext >&5
9551 ac_header_compiler
=no
9554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9555 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 $as_echo "$ac_header_compiler" >&6; }
9558 # Is the header present?
9559 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9560 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9561 cat >conftest.
$ac_ext <<_ACEOF
9564 cat confdefs.h
>>conftest.
$ac_ext
9565 cat >>conftest.
$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #include <AppKit/AppKit.h>
9569 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9575 $as_echo "$ac_try_echo") >&5
9576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9578 grep -v '^ *+' conftest.er1 >conftest.err
9580 cat conftest.err >&5
9581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } >/dev/null && {
9583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9586 ac_header_preproc=yes
9588 $as_echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_header_preproc=no
9594 rm -f conftest.err conftest.$ac_ext
9595 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 $as_echo "$ac_header_preproc" >&6; }
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9601 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9602 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9604 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9605 ac_header_preproc=yes
9608 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9609 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9610 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9611 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9612 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9613 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9614 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9615 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9616 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9617 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9618 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9619 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9623 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9624 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9625 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9626 $as_echo_n "(cached) " >&6
9628 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9630 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9631 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9634 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9637 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9638 files are missing or cannot be compiled." >&5
9639 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9640 files are missing or cannot be compiled.
" >&2;}
9641 { (exit 1); exit 1; }; }
9645 NS_HAVE_NSINTEGER=yes
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <Foundation/NSObjCRuntime.h>
9661 rm -f conftest.$ac_objext
9662 if { (ac_try="$ac_compile"
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9667 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9668 $as_echo "$ac_try_echo") >&5
9669 (eval "$ac_compile") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest.$ac_objext; then
9679 ns_have_nsinteger=yes
9681 $as_echo "$as_me: failed program was
:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ns_have_nsinteger=no
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 if test $ns_have_nsinteger = no; then
9689 NS_HAVE_NSINTEGER=no
9692 if test "${HAVE_NS}" = yes; then
9693 window_system=nextstep
9695 # set up packaging dirs
9696 exec_prefix=${ns_appbindir}
9697 libexecdir=${ns_appbindir}/libexec
9698 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9699 prefix=${ns_appresdir}
9702 CFLAGS="$tmp_CFLAGS"
9703 CPPFLAGS="$tmp_CPPFLAGS"
9705 case "${window_system}" in
9709 case "${with_x_toolkit}" in
9710 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9711 motif ) USE_X_TOOLKIT=MOTIF ;;
9713 USE_X_TOOLKIT=none ;;
9714 no ) USE_X_TOOLKIT=none ;;
9715 * ) USE_X_TOOLKIT=maybe ;;
9725 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9726 # Extract the first word of "X
", so it can be a program name with args.
9727 set dummy X; ac_word=$2
9728 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
9729 $as_echo_n "checking
for $ac_word...
" >&6; }
9730 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9731 $as_echo_n "(cached
) " >&6
9733 if test -n "$HAVE_XSERVER"; then
9734 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9743 ac_cv_prog_HAVE_XSERVER="true
"
9744 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9751 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9754 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9755 if test -n "$HAVE_XSERVER"; then
9756 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9757 $as_echo "$HAVE_XSERVER" >&6; }
9759 { $as_echo "$as_me:$LINENO: result
: no
" >&5
9760 $as_echo "no
" >&6; }
9764 if test "$HAVE_XSERVER" = true ||
9765 test -n "$DISPLAY" ||
9766 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9767 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9768 were found. You should
install the relevant development files
for X
9769 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9770 sure you have development files
for image handling
, i.e.
9771 tiff
, gif
, jpeg
, png and xpm.
9772 If you are sure you want Emacs compiled without X window support
, pass
9775 $as_echo "$as_me: 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
9782 to configure.
" >&2;}
9783 { (exit 1); exit 1; }; }
9787 ### If we're using X11, we should use the X menu package.
9790 yes ) HAVE_MENUS=yes ;;
9793 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9794 # Assume not, until told otherwise.
9797 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9798 $as_echo_n "checking
for malloc_get_state...
" >&6; }
9799 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9800 $as_echo_n "(cached
) " >&6
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9810 #define malloc_get_state innocuous_malloc_get_state
9812 /* System header to define __stub macros and hopefully few prototypes,
9813 which can conflict with char malloc_get_state (); below.
9814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9815 <limits.h> exists even on freestanding compilers. */
9818 # include <limits.h>
9820 # include <assert.h>
9823 #undef malloc_get_state
9825 /* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9831 char malloc_get_state ();
9832 /* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9842 return malloc_get_state ();
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855 (eval "$ac_link") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext && {
9865 test "$cross_compiling" = yes ||
9866 $as_test_x conftest$ac_exeext
9868 ac_cv_func_malloc_get_state=yes
9870 $as_echo "$as_me: failed program was
:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 ac_cv_func_malloc_get_state=no
9876 rm -rf conftest.dSYM
9877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878 conftest$ac_exeext conftest.$ac_ext
9880 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9881 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9882 if test $ac_cv_func_malloc_get_state = yes; then
9888 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9889 $as_echo_n "checking
for malloc_set_state...
" >&6; }
9890 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9891 $as_echo_n "(cached
) " >&6
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9901 #define malloc_set_state innocuous_malloc_set_state
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char malloc_set_state (); below.
9905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906 <limits.h> exists even on freestanding compilers. */
9909 # include <limits.h>
9911 # include <assert.h>
9914 #undef malloc_set_state
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9922 char malloc_set_state ();
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9933 return malloc_set_state ();
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9945 $as_echo "$ac_try_echo") >&5
9946 (eval "$ac_link") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest$ac_exeext && {
9956 test "$cross_compiling" = yes ||
9957 $as_test_x conftest$ac_exeext
9959 ac_cv_func_malloc_set_state=yes
9961 $as_echo "$as_me: failed program was
:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ac_cv_func_malloc_set_state=no
9967 rm -rf conftest.dSYM
9968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9969 conftest$ac_exeext conftest.$ac_ext
9971 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9972 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9973 if test $ac_cv_func_malloc_set_state = yes; then
9979 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9980 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
9981 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9982 $as_echo_n "(cached
) " >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 extern void (* __after_morecore_hook)();
9994 __after_morecore_hook = 0
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10006 $as_echo "$ac_try_echo") >&5
10007 (eval "$ac_link") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext && {
10017 test "$cross_compiling" = yes ||
10018 $as_test_x conftest$ac_exeext
10020 emacs_cv_var___after_morecore_hook=yes
10022 $as_echo "$as_me: failed program was
:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 emacs_cv_var___after_morecore_hook=no
10028 rm -rf conftest.dSYM
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10032 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10033 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10034 if test $emacs_cv_var___after_morecore_hook = no; then
10037 if test "${system_malloc}" = "yes"; then
10039 GNU_MALLOC_reason="
10040 (The GNU allocators don
't work with this system configuration.)"
10042 if test "$doug_lea_malloc" = "yes" ; then
10043 if test "$GNU_MALLOC" = yes ; then
10044 GNU_MALLOC_reason="
10045 (Using Doug Lea's new malloc from the GNU C Library.
)"
10048 cat >>confdefs.h <<\_ACEOF
10049 #define DOUG_LEA_MALLOC 1
10054 if test x"${REL_ALLOC}" = x; then
10055 REL_ALLOC=${GNU_MALLOC}
10061 for ac_header in stdlib.h unistd.h
10063 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10064 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10065 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10066 $as_echo_n "checking
for $ac_header...
" >&6; }
10067 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10068 $as_echo_n "(cached
) " >&6
10070 ac_res=`eval 'as_val=${'$as_ac_Header'}
10071 $as_echo "$as_val"'`
10072 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10073 $as_echo "$ac_res" >&6; }
10075 # Is the header compilable?
10076 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10077 $as_echo_n "checking
$ac_header usability...
" >&6; }
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 #include <$ac_header>
10087 rm -f conftest.$ac_objext
10088 if { (ac_try="$ac_compile"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10094 $as_echo "$ac_try_echo") >&5
10095 (eval "$ac_compile") 2>conftest.er1
10097 grep -v '^ *+' conftest.er1 >conftest.err
10099 cat conftest.err >&5
10100 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10101 (exit $ac_status); } && {
10102 test -z "$ac_c_werror_flag" ||
10103 test ! -s conftest.err
10104 } && test -s conftest.$ac_objext; then
10105 ac_header_compiler=yes
10107 $as_echo "$as_me: failed program was
:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_header_compiler=no
10113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10115 $as_echo "$ac_header_compiler" >&6; }
10117 # Is the header present?
10118 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10119 $as_echo_n "checking
$ac_header presence...
" >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 #include <$ac_header>
10128 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10133 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10134 $as_echo "$ac_try_echo") >&5
10135 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10141 (exit $ac_status); } >/dev/null && {
10142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10145 ac_header_preproc=yes
10147 $as_echo "$as_me: failed program was
:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ac_header_preproc=no
10153 rm -f conftest.err conftest.$ac_ext
10154 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10155 $as_echo "$ac_header_preproc" >&6; }
10157 # So? What about this header?
10158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10160 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10161 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10162 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10164 ac_header_preproc=yes
10167 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10168 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10169 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10170 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10171 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10172 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10173 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10174 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10175 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10177 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10178 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10182 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10183 $as_echo_n "checking
for $ac_header...
" >&6; }
10184 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10185 $as_echo_n "(cached
) " >&6
10187 eval "$as_ac_Header=\
$ac_header_preproc"
10189 ac_res=`eval 'as_val=${'$as_ac_Header'}
10190 $as_echo "$as_val"'`
10191 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10192 $as_echo "$ac_res" >&6; }
10195 if test `eval 'as_val=${'$as_ac_Header'}
10196 $as_echo "$as_val"'` = yes; then
10197 cat >>confdefs.h <<_ACEOF
10198 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10206 for ac_func in getpagesize
10208 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10209 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10210 $as_echo_n "checking
for $ac_func...
" >&6; }
10211 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10212 $as_echo_n "(cached
) " >&6
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10222 #define $ac_func innocuous_$ac_func
10224 /* System header to define __stub macros and hopefully few prototypes,
10225 which can conflict with char $ac_func (); below.
10226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10227 <limits.h> exists even on freestanding compilers. */
10230 # include <limits.h>
10232 # include <assert.h>
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10244 /* The GNU C library defines this for functions which it implements
10245 to always fail with ENOSYS. Some functions are actually named
10246 something starting with __ and the normal name is an alias. */
10247 #if defined __stub_$ac_func || defined __stub___$ac_func
10254 return $ac_func ();
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10266 $as_echo "$ac_try_echo") >&5
10267 (eval "$ac_link") 2>conftest.er1
10269 grep -v '^ *+' conftest.er1 >conftest.err
10271 cat conftest.err >&5
10272 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest$ac_exeext && {
10277 test "$cross_compiling" = yes ||
10278 $as_test_x conftest$ac_exeext
10280 eval "$as_ac_var=yes"
10282 $as_echo "$as_me: failed program was
:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 eval "$as_ac_var=no
"
10288 rm -rf conftest.dSYM
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10292 ac_res=`eval 'as_val=${'$as_ac_var'}
10293 $as_echo "$as_val"'`
10294 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10295 $as_echo "$ac_res" >&6; }
10296 if test `eval 'as_val=${'$as_ac_var'}
10297 $as_echo "$as_val"'` = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10305 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10306 $as_echo_n "checking
for working mmap...
" >&6; }
10307 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10308 $as_echo_n "(cached
) " >&6
10310 if test "$cross_compiling" = yes; then
10311 ac_cv_func_mmap_fixed_mapped=no
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 $ac_includes_default
10320 /* malloc might have been renamed as rpl_malloc. */
10323 /* Thanks to Mike Haertel and Jim Avera for this test.
10324 Here is a matrix of mmap possibilities:
10325 mmap private not fixed
10326 mmap private fixed at somewhere currently unmapped
10327 mmap private fixed at somewhere already mapped
10328 mmap shared not fixed
10329 mmap shared fixed at somewhere currently unmapped
10330 mmap shared fixed at somewhere already mapped
10331 For private mappings, we should verify that changes cannot be read()
10332 back from the file, nor mmap's back from the file at a different
10333 address. (There have been systems where private was not correctly
10334 implemented like the infamous i386 svr4.0, and systems where the
10335 VM page cache was not coherent with the file system buffer cache
10336 like early versions of FreeBSD and possibly contemporary NetBSD.)
10337 For shared mappings, we should conversely verify that changes get
10338 propagated back to all the places they're supposed to be.
10340 Grep wants private fixed already mapped.
10341 The main things grep needs to know about mmap are:
10342 * does it exist and is it safe to write into the mmap'd area
10343 * how to use it (BSD variants) */
10346 #include <sys/mman.h>
10348 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10352 /* This mess was copied from the GNU getpagesize.h. */
10353 #ifndef HAVE_GETPAGESIZE
10354 /* Assume that all systems that can run configure have sys/param.h. */
10355 # ifndef HAVE_SYS_PARAM_H
10356 # define HAVE_SYS_PARAM_H 1
10359 # ifdef _SC_PAGESIZE
10360 # define getpagesize() sysconf(_SC_PAGESIZE)
10361 # else /* no _SC_PAGESIZE */
10362 # ifdef HAVE_SYS_PARAM_H
10363 # include <sys/param.h>
10364 # ifdef EXEC_PAGESIZE
10365 # define getpagesize() EXEC_PAGESIZE
10366 # else /* no EXEC_PAGESIZE */
10368 # define getpagesize() NBPG * CLSIZE
10371 # endif /* no CLSIZE */
10372 # else /* no NBPG */
10374 # define getpagesize() NBPC
10375 # else /* no NBPC */
10377 # define getpagesize() PAGESIZE
10378 # endif /* PAGESIZE */
10379 # endif /* no NBPC */
10380 # endif /* no NBPG */
10381 # endif /* no EXEC_PAGESIZE */
10382 # else /* no HAVE_SYS_PARAM_H */
10383 # define getpagesize() 8192 /* punt totally */
10384 # endif /* no HAVE_SYS_PARAM_H */
10385 # endif /* no _SC_PAGESIZE */
10387 #endif /* no HAVE_GETPAGESIZE */
10392 char *data, *data2, *data3;
10396 pagesize = getpagesize ();
10398 /* First, make a file with some known garbage in it. */
10399 data = (char *) malloc (pagesize);
10402 for (i = 0; i < pagesize; ++i)
10403 *(data + i) = rand ();
10405 fd = creat ("conftest.mmap
", 0600);
10408 if (write (fd, data, pagesize) != pagesize)
10412 /* Next, try to mmap the file at a fixed address which already has
10413 something else allocated at it. If we can, also make sure that
10414 we see the same garbage. */
10415 fd = open ("conftest.mmap
", O_RDWR);
10418 data2 = (char *) malloc (2 * pagesize);
10421 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10422 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10423 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10425 for (i = 0; i < pagesize; ++i)
10426 if (*(data + i) != *(data2 + i))
10429 /* Finally, make sure that changes to the mapped area do not
10430 percolate back to the file as seen by read(). (This is a bug on
10431 some variants of i386 svr4.0.) */
10432 for (i = 0; i < pagesize; ++i)
10433 *(data2 + i) = *(data2 + i) + 1;
10434 data3 = (char *) malloc (pagesize);
10437 if (read (fd, data3, pagesize) != pagesize)
10439 for (i = 0; i < pagesize; ++i)
10440 if (*(data + i) != *(data3 + i))
10446 rm -f conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454 (eval "$ac_link") 2>&5
10456 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10458 { (case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10462 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10463 $as_echo "$ac_try_echo") >&5
10464 (eval "$ac_try") 2>&5
10466 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 ac_cv_func_mmap_fixed_mapped=yes
10470 $as_echo "$as_me: program exited with status
$ac_status" >&5
10471 $as_echo "$as_me: failed program was
:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ( exit $ac_status )
10475 ac_cv_func_mmap_fixed_mapped=no
10477 rm -rf conftest.dSYM
10478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10483 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10484 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10485 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_MMAP 1
10492 rm -f conftest.mmap
10494 if test $use_mmap_for_buffers = yes; then
10498 LIBS="$libsrc_libs $LIBS"
10501 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10502 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10503 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10504 $as_echo_n "(cached
) " >&6
10506 ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldnet $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10525 return dnet_ntoa ();
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10537 $as_echo "$ac_try_echo") >&5
10538 (eval "$ac_link") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext && {
10548 test "$cross_compiling" = yes ||
10549 $as_test_x conftest$ac_exeext
10551 ac_cv_lib_dnet_dnet_ntoa=yes
10553 $as_echo "$as_me: failed program was
:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_cv_lib_dnet_dnet_ntoa=no
10559 rm -rf conftest.dSYM
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10565 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10566 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define HAVE_LIBDNET 1
10571 LIBS="-ldnet $LIBS"
10576 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10577 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10578 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10579 $as_echo_n "(cached
) " >&6
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-lXbsd $LIBS"
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607 (eval "$ac_link") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext && {
10617 test "$cross_compiling" = yes ||
10618 $as_test_x conftest$ac_exeext
10620 ac_cv_lib_Xbsd_main=yes
10622 $as_echo "$as_me: failed program was
:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 ac_cv_lib_Xbsd_main=no
10628 rm -rf conftest.dSYM
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10634 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10635 if test $ac_cv_lib_Xbsd_main = yes; then
10636 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10641 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10642 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10643 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10644 $as_echo_n "(cached
) " >&6
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lpthreads $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10665 return cma_open ();
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678 (eval "$ac_link") 2>conftest.er1
10680 grep -v '^ *+' conftest.er1 >conftest.err
10682 cat conftest.err >&5
10683 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest$ac_exeext && {
10688 test "$cross_compiling" = yes ||
10689 $as_test_x conftest$ac_exeext
10691 ac_cv_lib_pthreads_cma_open=yes
10693 $as_echo "$as_me: failed program was
:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_lib_pthreads_cma_open=no
10699 rm -rf conftest.dSYM
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10704 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10705 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10706 if test $ac_cv_lib_pthreads_cma_open = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708 #define HAVE_LIBPTHREADS 1
10711 LIBS="-lpthreads $LIBS"
10719 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10720 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
10721 if test "${gdb_cv_bigtoc+set}" = set; then
10722 $as_echo_n "(cached
) " >&6
10726 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10727 *) gdb_cv_bigtoc=-bbigtoc ;;
10730 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10752 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest$ac_exeext
10769 $as_echo "$as_me: failed program was
:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10777 conftest$ac_exeext conftest.$ac_ext
10780 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10781 $as_echo "$gdb_cv_bigtoc" >&6; }
10785 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10786 # used for the tests that follow. We set them back to REAL_CFLAGS and
10787 # REAL_CPPFLAGS later on.
10789 REAL_CPPFLAGS="$CPPFLAGS"
10791 if test "${HAVE_X11}" = "yes"; then
10792 DEFS="$C_SWITCH_X_SITE $DEFS"
10793 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10795 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10796 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10798 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10799 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10800 # but it's more convenient here to set LD_RUN_PATH
10801 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10802 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10803 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10807 if test "${opsys}" = "gnu-linux
"; then
10808 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10809 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
10810 cat >conftest.$ac_ext <<_ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10820 XOpenDisplay ("foo
");
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest$ac_exeext
10846 xlinux_first_failure=no
10848 $as_echo "$as_me: failed program was
:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 xlinux_first_failure=yes
10854 rm -rf conftest.dSYM
10855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10856 conftest$ac_exeext conftest.$ac_ext
10857 if test "${xlinux_first_failure}" = "yes"; then
10858 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10859 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10860 OLD_CPPFLAGS="$CPPFLAGS"
10862 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10863 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10864 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10865 LIBS="$LIBS -b i486-linuxaout
"
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10876 XOpenDisplay ("foo
");
10881 rm -f conftest.$ac_objext conftest$ac_exeext
10882 if { (ac_try="$ac_link"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10888 $as_echo "$ac_try_echo") >&5
10889 (eval "$ac_link") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest$ac_exeext && {
10899 test "$cross_compiling" = yes ||
10900 $as_test_x conftest$ac_exeext
10902 xlinux_second_failure=no
10904 $as_echo "$as_me: failed program was
:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 xlinux_second_failure=yes
10910 rm -rf conftest.dSYM
10911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10912 conftest$ac_exeext conftest.$ac_ext
10913 if test "${xlinux_second_failure}" = "yes"; then
10914 # If we get the same failure with -b, there is no use adding -b.
10915 # So take it out. This plays safe.
10916 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10917 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10918 CPPFLAGS="$OLD_CPPFLAGS"
10920 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10921 $as_echo "no
" >&6; }
10923 { $as_echo "$as_me:$LINENO: result
: yes" >&5
10924 $as_echo "yes" >&6; }
10927 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10928 $as_echo "no
" >&6; }
10932 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10933 # header files included from there.
10934 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
10935 $as_echo_n "checking
for Xkb...
" >&6; }
10936 cat >conftest.$ac_ext <<_ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 #include <X11/Xlib.h>
10943 #include <X11/XKBlib.h>
10947 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (ac_try="$ac_link"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10959 $as_echo "$ac_try_echo") >&5
10960 (eval "$ac_link") 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest$ac_exeext && {
10970 test "$cross_compiling" = yes ||
10971 $as_test_x conftest$ac_exeext
10975 $as_echo "$as_me: failed program was
:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10981 rm -rf conftest.dSYM
10982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10983 conftest$ac_exeext conftest.$ac_ext
10984 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10985 $as_echo "$emacs_xkb" >&6; }
10986 if test $emacs_xkb = yes; then
10988 cat >>confdefs.h <<\_ACEOF
10989 #define HAVE_XKBGETKEYBOARD 1
10998 for ac_func in XrmSetDatabase XScreenResourceString \
10999 XScreenNumberOfScreen XSetWMProtocols
11001 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11002 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11003 $as_echo_n "checking
for $ac_func...
" >&6; }
11004 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11005 $as_echo_n "(cached
) " >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11015 #define $ac_func innocuous_$ac_func
11017 /* System header to define __stub macros and hopefully few prototypes,
11018 which can conflict with char $ac_func (); below.
11019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 <limits.h> exists even on freestanding compilers. */
11023 # include <limits.h>
11025 # include <assert.h>
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11037 /* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
11040 #if defined __stub_$ac_func || defined __stub___$ac_func
11047 return $ac_func ();
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (ac_try="$ac_link"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11059 $as_echo "$ac_try_echo") >&5
11060 (eval "$ac_link") 2>conftest.er1
11062 grep -v '^ *+' conftest.er1 >conftest.err
11064 cat conftest.err >&5
11065 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest$ac_exeext && {
11070 test "$cross_compiling" = yes ||
11071 $as_test_x conftest$ac_exeext
11073 eval "$as_ac_var=yes"
11075 $as_echo "$as_me: failed program was
:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 eval "$as_ac_var=no
"
11081 rm -rf conftest.dSYM
11082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11083 conftest$ac_exeext conftest.$ac_ext
11085 ac_res=`eval 'as_val=${'$as_ac_var'}
11086 $as_echo "$as_val"'`
11087 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11088 $as_echo "$ac_res" >&6; }
11089 if test `eval 'as_val=${'$as_ac_var'}
11090 $as_echo "$as_val"'` = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11100 if test "${window_system}" = "x11
"; then
11101 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11102 $as_echo_n "checking X11 version
6...
" >&6; }
11103 if test "${emacs_cv_x11_version_6+set}" = set; then
11104 $as_echo_n "(cached
) " >&6
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 #include <X11/Xlib.h>
11116 #if XlibSpecificationRelease < 6
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (ac_try="$ac_link"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11131 $as_echo "$ac_try_echo") >&5
11132 (eval "$ac_link") 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest$ac_exeext && {
11142 test "$cross_compiling" = yes ||
11143 $as_test_x conftest$ac_exeext
11145 emacs_cv_x11_version_6=yes
11147 $as_echo "$as_me: failed program was
:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 emacs_cv_x11_version_6=no
11153 rm -rf conftest.dSYM
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155 conftest$ac_exeext conftest.$ac_ext
11158 if test $emacs_cv_x11_version_6 = yes; then
11159 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11160 $as_echo "6 or newer
" >&6; }
11162 cat >>confdefs.h <<\_ACEOF
11163 #define HAVE_X11R6 1
11167 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11168 $as_echo "before
6" >&6; }
11173 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11175 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11176 if test "${with_rsvg}" != "no
"; then
11177 RSVG_REQUIRED=2.11.0
11178 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11183 # Extract the first word of "pkg-config
", so it can be a program name with args.
11184 set dummy pkg-config; ac_word=$2
11185 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11186 $as_echo_n "checking
for $ac_word...
" >&6; }
11187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11188 $as_echo_n "(cached
) " >&6
11190 case $PKG_CONFIG in
11192 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11203 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11214 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11215 if test -n "$PKG_CONFIG"; then
11216 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11217 $as_echo "$PKG_CONFIG" >&6; }
11219 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11220 $as_echo "no
" >&6; }
11225 if test "$PKG_CONFIG" = "no
" ; then
11228 PKG_CONFIG_MIN_VERSION=0.9.0
11229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11230 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11231 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11233 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11234 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11235 $as_echo "yes" >&6; }
11238 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11239 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11240 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11241 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11242 $as_echo "$RSVG_CFLAGS" >&6; }
11244 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11245 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11246 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11248 $as_echo "$RSVG_LIBS" >&6; }
11250 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11251 $as_echo "no
" >&6; }
11254 ## If we have a custom action on failure, don't print errors, but
11255 ## do set a variable so people can do so.
11256 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11263 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11264 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11268 if test $succeeded = yes; then
11277 if test ".
${RSVG_CFLAGS}" != ".
"; then
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_RSVG 1
11284 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11285 LIBS="$RSVG_LIBS $LIBS"
11292 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11295 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11300 # Extract the first word of "pkg-config
", so it can be a program name with args.
11301 set dummy pkg-config; ac_word=$2
11302 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11303 $as_echo_n "checking
for $ac_word...
" >&6; }
11304 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11305 $as_echo_n "(cached
) " >&6
11307 case $PKG_CONFIG in
11309 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11320 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11332 if test -n "$PKG_CONFIG"; then
11333 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11334 $as_echo "$PKG_CONFIG" >&6; }
11336 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11337 $as_echo "no
" >&6; }
11342 if test "$PKG_CONFIG" = "no
" ; then
11345 PKG_CONFIG_MIN_VERSION=0.9.0
11346 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11347 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11348 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11350 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11351 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11352 $as_echo "yes" >&6; }
11355 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11356 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11357 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11358 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11359 $as_echo "$GTK_CFLAGS" >&6; }
11361 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11362 $as_echo_n "checking GTK_LIBS...
" >&6; }
11363 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11364 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11365 $as_echo "$GTK_LIBS" >&6; }
11367 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11368 $as_echo "no
" >&6; }
11371 ## If we have a custom action on failure, don't print errors, but
11372 ## do set a variable so people can do so.
11373 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11380 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11381 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11385 if test $succeeded = yes; then
11391 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11392 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11393 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11394 { (exit 1); exit 1; }; }
11399 if test x"$pkg_check_gtk" = xyes; then
11403 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11404 CFLAGS="$CFLAGS $GTK_CFLAGS"
11405 LIBS="$GTK_LIBS $LIBS"
11408 for ac_func in gtk_main
11410 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11411 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11412 $as_echo_n "checking
for $ac_func...
" >&6; }
11413 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11414 $as_echo_n "(cached
) " >&6
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11424 #define $ac_func innocuous_$ac_func
11426 /* System header to define __stub macros and hopefully few prototypes,
11427 which can conflict with char $ac_func (); below.
11428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429 <limits.h> exists even on freestanding compilers. */
11432 # include <limits.h>
11434 # include <assert.h>
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11446 /* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449 #if defined __stub_$ac_func || defined __stub___$ac_func
11456 return $ac_func ();
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (ac_try="$ac_link"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11468 $as_echo "$ac_try_echo") >&5
11469 (eval "$ac_link") 2>conftest.er1
11471 grep -v '^ *+' conftest.er1 >conftest.err
11473 cat conftest.err >&5
11474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11475 (exit $ac_status); } && {
11476 test -z "$ac_c_werror_flag" ||
11477 test ! -s conftest.err
11478 } && test -s conftest$ac_exeext && {
11479 test "$cross_compiling" = yes ||
11480 $as_test_x conftest$ac_exeext
11482 eval "$as_ac_var=yes"
11484 $as_echo "$as_me: failed program was
:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 eval "$as_ac_var=no
"
11490 rm -rf conftest.dSYM
11491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11492 conftest$ac_exeext conftest.$ac_ext
11494 ac_res=`eval 'as_val=${'$as_ac_var'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11497 $as_echo "$ac_res" >&6; }
11498 if test `eval 'as_val=${'$as_ac_var'}
11499 $as_echo "$as_val"'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11507 if test "${GTK_COMPILES}" != "yes"; then
11508 if test "$USE_X_TOOLKIT" != "maybe
"; then
11509 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11510 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11511 { (exit 1); exit 1; }; };
11516 cat >>confdefs.h <<\_ACEOF
11521 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11524 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11525 closing open displays. This is no problem
if you just use
11526 one display
, but
if you use
more than one and close one of them
11527 Emacs may crash.
" >&5
11528 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11529 closing open displays. This is no problem
if you just use
11530 one display
, but
if you use
more than one and close one of them
11531 Emacs may crash.
" >&2;}
11539 if test "${HAVE_GTK}" = "yes"; then
11541 if test "$with_toolkit_scroll_bars" != no; then
11542 with_toolkit_scroll_bars=yes
11545 HAVE_GTK_MULTIDISPLAY=no
11547 for ac_func in gdk_display_open
11549 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11550 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11551 $as_echo_n "checking
for $ac_func...
" >&6; }
11552 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11553 $as_echo_n "(cached
) " >&6
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11563 #define $ac_func innocuous_$ac_func
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func (); below.
11567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11568 <limits.h> exists even on freestanding compilers. */
11571 # include <limits.h>
11573 # include <assert.h>
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11585 /* The GNU C library defines this for functions which it implements
11586 to always fail with ENOSYS. Some functions are actually named
11587 something starting with __ and the normal name is an alias. */
11588 #if defined __stub_$ac_func || defined __stub___$ac_func
11595 return $ac_func ();
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11606 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11607 $as_echo "$ac_try_echo") >&5
11608 (eval "$ac_link") 2>conftest.er1
11610 grep -v '^ *+' conftest.er1 >conftest.err
11612 cat conftest.err >&5
11613 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11614 (exit $ac_status); } && {
11615 test -z "$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 } && test -s conftest$ac_exeext && {
11618 test "$cross_compiling" = yes ||
11619 $as_test_x conftest$ac_exeext
11621 eval "$as_ac_var=yes"
11623 $as_echo "$as_me: failed program was
:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 eval "$as_ac_var=no
"
11629 rm -rf conftest.dSYM
11630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11631 conftest$ac_exeext conftest.$ac_ext
11633 ac_res=`eval 'as_val=${'$as_ac_var'}
11634 $as_echo "$as_val"'`
11635 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11636 $as_echo "$ac_res" >&6; }
11637 if test `eval 'as_val=${'$as_ac_var'}
11638 $as_echo "$as_val"'` = yes; then
11639 cat >>confdefs.h <<_ACEOF
11640 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11642 HAVE_GTK_MULTIDISPLAY=yes
11646 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11648 cat >>confdefs.h <<\_ACEOF
11649 #define HAVE_GTK_MULTIDISPLAY 1
11654 HAVE_GTK_FILE_SELECTION=no
11655 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11656 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11657 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11658 $as_echo_n "(cached
) " >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 $ac_includes_default
11667 #include <gtk/gtk.h>
11672 #ifndef GTK_TYPE_FILE_SELECTION
11673 (void) GTK_TYPE_FILE_SELECTION;
11680 rm -f conftest.$ac_objext
11681 if { (ac_try="$ac_compile"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11687 $as_echo "$ac_try_echo") >&5
11688 (eval "$ac_compile") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest.$ac_objext; then
11698 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11700 $as_echo "$as_me: failed program was
:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11709 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11710 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11711 HAVE_GTK_FILE_SELECTION=yes
11713 HAVE_GTK_FILE_SELECTION=no
11716 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11718 for ac_func in gtk_file_selection_new
11720 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11721 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11722 $as_echo_n "checking
for $ac_func...
" >&6; }
11723 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11724 $as_echo_n "(cached
) " >&6
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11734 #define $ac_func innocuous_$ac_func
11736 /* System header to define __stub macros and hopefully few prototypes,
11737 which can conflict with char $ac_func (); below.
11738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 <limits.h> exists even on freestanding compilers. */
11742 # include <limits.h>
11744 # include <assert.h>
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11756 /* The GNU C library defines this for functions which it implements
11757 to always fail with ENOSYS. Some functions are actually named
11758 something starting with __ and the normal name is an alias. */
11759 #if defined __stub_$ac_func || defined __stub___$ac_func
11766 return $ac_func ();
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779 (eval "$ac_link") 2>conftest.er1
11781 grep -v '^ *+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest$ac_exeext && {
11789 test "$cross_compiling" = yes ||
11790 $as_test_x conftest$ac_exeext
11792 eval "$as_ac_var=yes"
11794 $as_echo "$as_me: failed program was
:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 eval "$as_ac_var=no
"
11800 rm -rf conftest.dSYM
11801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11802 conftest$ac_exeext conftest.$ac_ext
11804 ac_res=`eval 'as_val=${'$as_ac_var'}
11805 $as_echo "$as_val"'`
11806 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11807 $as_echo "$ac_res" >&6; }
11808 if test `eval 'as_val=${'$as_ac_var'}
11809 $as_echo "$as_val"'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11813 HAVE_GTK_FILE_SELECTION=yes
11815 HAVE_GTK_FILE_SELECTION=no
11821 HAVE_GTK_FILE_CHOOSER=no
11822 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
11823 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
11824 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11825 $as_echo_n "(cached
) " >&6
11827 cat >conftest.$ac_ext <<_ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 $ac_includes_default
11834 #include <gtk/gtk.h>
11839 #ifndef GTK_TYPE_FILE_CHOOSER
11840 (void) GTK_TYPE_FILE_CHOOSER;
11847 rm -f conftest.$ac_objext
11848 if { (ac_try="$ac_compile"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11854 $as_echo "$ac_try_echo") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11865 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11867 $as_echo "$as_me: failed program was
:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11876 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11877 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11878 HAVE_GTK_FILE_CHOOSER=yes
11880 HAVE_GTK_FILE_CHOOSER=no
11883 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11885 for ac_func in gtk_file_chooser_dialog_new
11887 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11888 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11889 $as_echo_n "checking
for $ac_func...
" >&6; }
11890 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11891 $as_echo_n "(cached
) " >&6
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11901 #define $ac_func innocuous_$ac_func
11903 /* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char $ac_func (); below.
11905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11906 <limits.h> exists even on freestanding compilers. */
11909 # include <limits.h>
11911 # include <assert.h>
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11923 /* The GNU C library defines this for functions which it implements
11924 to always fail with ENOSYS. Some functions are actually named
11925 something starting with __ and the normal name is an alias. */
11926 #if defined __stub_$ac_func || defined __stub___$ac_func
11933 return $ac_func ();
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (ac_try="$ac_link"
11940 case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11944 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946 (eval "$ac_link") 2>conftest.er1
11948 grep -v '^ *+' conftest.er1 >conftest.err
11950 cat conftest.err >&5
11951 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11952 (exit $ac_status); } && {
11953 test -z "$ac_c_werror_flag" ||
11954 test ! -s conftest.err
11955 } && test -s conftest$ac_exeext && {
11956 test "$cross_compiling" = yes ||
11957 $as_test_x conftest$ac_exeext
11959 eval "$as_ac_var=yes"
11961 $as_echo "$as_me: failed program was
:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 eval "$as_ac_var=no
"
11967 rm -rf conftest.dSYM
11968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11969 conftest$ac_exeext conftest.$ac_ext
11971 ac_res=`eval 'as_val=${'$as_ac_var'}
11972 $as_echo "$as_val"'`
11973 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11974 $as_echo "$ac_res" >&6; }
11975 if test `eval 'as_val=${'$as_ac_var'}
11976 $as_echo "$as_val"'` = yes; then
11977 cat >>confdefs.h <<_ACEOF
11978 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11980 HAVE_GTK_FILE_CHOOSER=yes
11982 HAVE_GTK_FILE_CHOOSER=no
11988 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11989 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11991 cat >>confdefs.h <<\_ACEOF
11992 #define HAVE_GTK_FILE_BOTH 1
11997 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11998 HAVE_GTK_AND_PTHREAD=no
12000 for ac_header in pthread.h
12002 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12004 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12005 $as_echo_n "checking
for $ac_header...
" >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12007 $as_echo_n "(cached
) " >&6
12009 ac_res=`eval 'as_val=${'$as_ac_Header'}
12010 $as_echo "$as_val"'`
12011 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12012 $as_echo "$ac_res" >&6; }
12014 # Is the header compilable?
12015 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12016 $as_echo_n "checking
$ac_header usability...
" >&6; }
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12024 #include <$ac_header>
12026 rm -f conftest.$ac_objext
12027 if { (ac_try="$ac_compile"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12033 $as_echo "$ac_try_echo") >&5
12034 (eval "$ac_compile") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest.$ac_objext; then
12044 ac_header_compiler=yes
12046 $as_echo "$as_me: failed program was
:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ac_header_compiler=no
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12054 $as_echo "$ac_header_compiler" >&6; }
12056 # Is the header present?
12057 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12058 $as_echo_n "checking
$ac_header presence...
" >&6; }
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 #include <$ac_header>
12067 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12080 (exit $ac_status); } >/dev/null && {
12081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12084 ac_header_preproc=yes
12086 $as_echo "$as_me: failed program was
:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_header_preproc=no
12092 rm -f conftest.err conftest.$ac_ext
12093 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12094 $as_echo "$ac_header_preproc" >&6; }
12096 # So? What about this header?
12097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12099 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12100 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12101 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12102 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12103 ac_header_preproc=yes
12106 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12107 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12108 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12109 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12111 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12112 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12113 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12114 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12115 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12117 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12121 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12122 $as_echo_n "checking
for $ac_header...
" >&6; }
12123 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12124 $as_echo_n "(cached
) " >&6
12126 eval "$as_ac_Header=\
$ac_header_preproc"
12128 ac_res=`eval 'as_val=${'$as_ac_Header'}
12129 $as_echo "$as_val"'`
12130 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12131 $as_echo "$ac_res" >&6; }
12134 if test `eval 'as_val=${'$as_ac_Header'}
12135 $as_echo "$as_val"'` = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12144 if test "$ac_cv_header_pthread_h"; then
12145 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12146 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12147 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12148 $as_echo_n "(cached
) " >&6
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-lpthread $LIBS"
12152 cat >conftest.$ac_ext <<_ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12165 char pthread_self ();
12169 return pthread_self ();
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12181 $as_echo "$ac_try_echo") >&5
12182 (eval "$ac_link") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest$ac_exeext && {
12192 test "$cross_compiling" = yes ||
12193 $as_test_x conftest$ac_exeext
12195 ac_cv_lib_pthread_pthread_self=yes
12197 $as_echo "$as_me: failed program was
:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_cv_lib_pthread_pthread_self=no
12203 rm -rf conftest.dSYM
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12209 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12210 if test $ac_cv_lib_pthread_pthread_self = yes; then
12211 HAVE_GTK_AND_PTHREAD=yes
12215 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12216 case "${canonical}" in
12218 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_GTK_AND_PTHREAD 1
12230 if test "${with_dbus}" = "yes"; then
12234 # Extract the first word of "pkg-config
", so it can be a program name with args.
12235 set dummy pkg-config; ac_word=$2
12236 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12237 $as_echo_n "checking
for $ac_word...
" >&6; }
12238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12239 $as_echo_n "(cached
) " >&6
12241 case $PKG_CONFIG in
12243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12261 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12265 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12266 if test -n "$PKG_CONFIG"; then
12267 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12268 $as_echo "$PKG_CONFIG" >&6; }
12270 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12271 $as_echo "no
" >&6; }
12276 if test "$PKG_CONFIG" = "no
" ; then
12279 PKG_CONFIG_MIN_VERSION=0.9.0
12280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12281 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12282 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12284 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12285 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12286 $as_echo "yes" >&6; }
12289 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12290 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12291 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12292 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12293 $as_echo "$DBUS_CFLAGS" >&6; }
12295 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12296 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12297 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12298 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12299 $as_echo "$DBUS_LIBS" >&6; }
12301 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12302 $as_echo "no
" >&6; }
12305 ## If we have a custom action on failure, don't print errors, but
12306 ## do set a variable so people can do so.
12307 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12314 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12315 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12319 if test $succeeded = yes; then
12325 if test "$HAVE_DBUS" = yes; then
12326 LIBS="$LIBS $DBUS_LIBS"
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_DBUS 1
12333 for ac_func in dbus_watch_get_unix_fd
12335 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12336 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12337 $as_echo_n "checking
for $ac_func...
" >&6; }
12338 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12339 $as_echo_n "(cached
) " >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12349 #define $ac_func innocuous_$ac_func
12351 /* System header to define __stub macros and hopefully few prototypes,
12352 which can conflict with char $ac_func (); below.
12353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354 <limits.h> exists even on freestanding compilers. */
12357 # include <limits.h>
12359 # include <assert.h>
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12371 /* The GNU C library defines this for functions which it implements
12372 to always fail with ENOSYS. Some functions are actually named
12373 something starting with __ and the normal name is an alias. */
12374 #if defined __stub_$ac_func || defined __stub___$ac_func
12381 return $ac_func ();
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (ac_try="$ac_link"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394 (eval "$ac_link") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest$ac_exeext && {
12404 test "$cross_compiling" = yes ||
12405 $as_test_x conftest$ac_exeext
12407 eval "$as_ac_var=yes"
12409 $as_echo "$as_me: failed program was
:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 eval "$as_ac_var=no
"
12415 rm -rf conftest.dSYM
12416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12417 conftest$ac_exeext conftest.$ac_ext
12419 ac_res=`eval 'as_val=${'$as_ac_var'}
12420 $as_echo "$as_val"'`
12421 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12422 $as_echo "$ac_res" >&6; }
12423 if test `eval 'as_val=${'$as_ac_var'}
12424 $as_echo "$as_val"'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12436 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12437 if test "$with_xaw3d" != no; then
12438 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12439 $as_echo_n "checking
for xaw3d...
" >&6; }
12440 if test "${emacs_cv_xaw3d+set}" = set; then
12441 $as_echo_n "(cached
) " >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12450 #include <X11/Intrinsic.h>
12451 #include <X11/Xaw3d/Simple.h>
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (ac_try="$ac_link"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12467 $as_echo "$ac_try_echo") >&5
12468 (eval "$ac_link") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest$ac_exeext && {
12478 test "$cross_compiling" = yes ||
12479 $as_test_x conftest$ac_exeext
12483 $as_echo "$as_me: failed program was
:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12489 rm -rf conftest.dSYM
12490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12491 conftest$ac_exeext conftest.$ac_ext
12497 if test $emacs_cv_xaw3d = yes; then
12498 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12499 $as_echo "yes; using Lucid toolkit
" >&6; }
12500 USE_X_TOOLKIT=LUCID
12503 cat >>confdefs.h <<\_ACEOF
12504 #define HAVE_XAW3D 1
12508 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12509 $as_echo "no
" >&6; }
12510 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
12511 $as_echo_n "checking
for libXaw...
" >&6; }
12512 if test "${emacs_cv_xaw+set}" = set; then
12513 $as_echo_n "(cached
) " >&6
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12522 #include <X11/Intrinsic.h>
12523 #include <X11/Xaw/Simple.h>
12532 rm -f conftest.$ac_objext conftest$ac_exeext
12533 if { (ac_try="$ac_link"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12539 $as_echo "$ac_try_echo") >&5
12540 (eval "$ac_link") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12546 (exit $ac_status); } && {
12547 test -z "$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12549 } && test -s conftest$ac_exeext && {
12550 test "$cross_compiling" = yes ||
12551 $as_test_x conftest$ac_exeext
12555 $as_echo "$as_me: failed program was
:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -rf conftest.dSYM
12562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12563 conftest$ac_exeext conftest.$ac_ext
12566 if test $emacs_cv_xaw = yes; then
12567 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12568 $as_echo "yes; using Lucid toolkit
" >&6; }
12569 USE_X_TOOLKIT=LUCID
12570 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12571 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12572 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12573 { (exit 1); exit 1; }; }
12575 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12576 $as_echo "no
; do not use toolkit by default
" >&6; }
12582 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12584 if test "${USE_X_TOOLKIT}" != "none
"; then
12585 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12586 $as_echo_n "checking X11 toolkit version...
" >&6; }
12587 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12588 $as_echo_n "(cached
) " >&6
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 #include <X11/Intrinsic.h>
12600 #if XtSpecificationRelease < 6
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (ac_try="$ac_link"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12615 $as_echo "$ac_try_echo") >&5
12616 (eval "$ac_link") 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest$ac_exeext && {
12626 test "$cross_compiling" = yes ||
12627 $as_test_x conftest$ac_exeext
12629 emacs_cv_x11_toolkit_version_6=yes
12631 $as_echo "$as_me: failed program was
:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 emacs_cv_x11_toolkit_version_6=no
12637 rm -rf conftest.dSYM
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639 conftest$ac_exeext conftest.$ac_ext
12642 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12643 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12644 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12645 $as_echo "6 or newer
" >&6; }
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_X11XTR6 1
12652 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
12653 $as_echo "before
6" >&6; }
12657 if test x$HAVE_X11XTR6 = xyes; then
12658 LIBS="-lXt -lSM -lICE $LIBS"
12663 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12664 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
12665 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12666 $as_echo_n "(cached
) " >&6
12668 ac_check_lib_save_LIBS=$LIBS
12670 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12677 /* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12683 char XmuConvertStandardSelection ();
12687 return XmuConvertStandardSelection ();
12692 rm -f conftest.$ac_objext conftest$ac_exeext
12693 if { (ac_try="$ac_link"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12699 $as_echo "$ac_try_echo") >&5
12700 (eval "$ac_link") 2>conftest.er1
12702 grep -v '^ *+' conftest.er1 >conftest.err
12704 cat conftest.err >&5
12705 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12706 (exit $ac_status); } && {
12707 test -z "$ac_c_werror_flag" ||
12708 test ! -s conftest.err
12709 } && test -s conftest$ac_exeext && {
12710 test "$cross_compiling" = yes ||
12711 $as_test_x conftest$ac_exeext
12713 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12715 $as_echo "$as_me: failed program was
:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12721 rm -rf conftest.dSYM
12722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12726 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12727 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12729 cat >>confdefs.h <<_ACEOF
12730 #define HAVE_LIBXMU 1
12737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12741 if test "${HAVE_X11}" = "yes"; then
12742 if test "${USE_X_TOOLKIT}" != "none
"; then
12744 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12745 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
12746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12747 $as_echo_n "(cached
) " >&6
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lXext $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12764 char XShapeQueryExtension ();
12768 return XShapeQueryExtension ();
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12780 $as_echo "$ac_try_echo") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest$ac_exeext && {
12791 test "$cross_compiling" = yes ||
12792 $as_test_x conftest$ac_exeext
12794 ac_cv_lib_Xext_XShapeQueryExtension=yes
12796 $as_echo "$as_me: failed program was
:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_cv_lib_Xext_XShapeQueryExtension=no
12802 rm -rf conftest.dSYM
12803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12804 conftest$ac_exeext conftest.$ac_ext
12805 LIBS=$ac_check_lib_save_LIBS
12807 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12808 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12809 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_LIBXEXT 1
12814 LIBS="-lXext $LIBS"
12821 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12822 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12823 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
12824 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12825 $as_echo_n "(cached
) " >&6
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12837 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12840 Motif version prior to 2.1.
12846 rm -f conftest.$ac_objext
12847 if { (ac_try="$ac_compile"
12848 case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854 (eval "$ac_compile") 2>conftest.er1
12856 grep -v '^ *+' conftest.er1 >conftest.err
12858 cat conftest.err >&5
12859 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12860 (exit $ac_status); } && {
12861 test -z "$ac_c_werror_flag" ||
12862 test ! -s conftest.err
12863 } && test -s conftest.$ac_objext; then
12864 emacs_cv_motif_version_2_1=yes
12866 $as_echo "$as_me: failed program was
:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 emacs_cv_motif_version_2_1=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12875 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12876 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12877 if test $emacs_cv_motif_version_2_1 = yes; then
12880 cat >>confdefs.h <<\_ACEOF
12881 #define HAVE_MOTIF_2_1 1
12884 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12885 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
12886 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12887 $as_echo_n "(cached
) " >&6
12889 ac_check_lib_save_LIBS=$LIBS
12891 cat >conftest.$ac_ext <<_ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12904 char XpCreateContext ();
12908 return XpCreateContext ();
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (ac_try="$ac_link"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12920 $as_echo "$ac_try_echo") >&5
12921 (eval "$ac_link") 2>conftest.er1
12923 grep -v '^ *+' conftest.er1 >conftest.err
12925 cat conftest.err >&5
12926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12927 (exit $ac_status); } && {
12928 test -z "$ac_c_werror_flag" ||
12929 test ! -s conftest.err
12930 } && test -s conftest$ac_exeext && {
12931 test "$cross_compiling" = yes ||
12932 $as_test_x conftest$ac_exeext
12934 ac_cv_lib_Xp_XpCreateContext=yes
12936 $as_echo "$as_me: failed program was
:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ac_cv_lib_Xp_XpCreateContext=no
12942 rm -rf conftest.dSYM
12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12944 conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12947 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12948 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12949 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12953 if test ${HAVE_LIBXP} = yes; then
12955 cat >>confdefs.h <<\_ACEOF
12956 #define HAVE_LIBXP 1
12961 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12962 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
12963 if test "${emacs_cv_lesstif+set}" = set; then
12964 $as_echo_n "(cached
) " >&6
12966 # We put this in CFLAGS temporarily to precede other -I options
12967 # that might be in CFLAGS temporarily.
12968 # We put this in CPPFLAGS where it precedes the other -I options.
12969 OLD_CPPFLAGS=$CPPFLAGS
12971 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12972 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12973 cat >conftest.$ac_ext <<_ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12988 rm -f conftest.$ac_objext
12989 if { (ac_try="$ac_compile"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12995 $as_echo "$ac_try_echo") >&5
12996 (eval "$ac_compile") 2>conftest.er1
12998 grep -v '^ *+' conftest.er1 >conftest.err
13000 cat conftest.err >&5
13001 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
13006 emacs_cv_lesstif=yes
13008 $as_echo "$as_me: failed program was
:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 emacs_cv_lesstif=no
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
13017 $as_echo "$emacs_cv_lesstif" >&6; }
13018 if test $emacs_cv_lesstif = yes; then
13019 # Make sure this -I option remains in CPPFLAGS after it is set
13020 # back to REAL_CPPFLAGS.
13021 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13022 # have those other -I options anyway. Ultimately, having this
13023 # directory ultimately in CPPFLAGS will be enough.
13024 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
13025 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
13028 CPPFLAGS=$OLD_CPPFLAGS
13035 USE_TOOLKIT_SCROLL_BARS=no
13036 if test "${with_toolkit_scroll_bars}" != "no
"; then
13037 if test "${USE_X_TOOLKIT}" != "none
"; then
13038 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13039 cat >>confdefs.h <<\_ACEOF
13040 #define USE_TOOLKIT_SCROLL_BARS 1
13044 USE_TOOLKIT_SCROLL_BARS=yes
13045 elif test "${HAVE_XAW3D}" = "yes"; then
13046 cat >>confdefs.h <<\_ACEOF
13047 #define USE_TOOLKIT_SCROLL_BARS 1
13050 USE_TOOLKIT_SCROLL_BARS=yes
13052 elif test "${HAVE_GTK}" = "yes"; then
13053 cat >>confdefs.h <<\_ACEOF
13054 #define USE_TOOLKIT_SCROLL_BARS 1
13057 USE_TOOLKIT_SCROLL_BARS=yes
13058 elif test "${HAVE_NS}" = "yes"; then
13059 cat >>confdefs.h <<\_ACEOF
13060 #define USE_TOOLKIT_SCROLL_BARS 1
13063 USE_TOOLKIT_SCROLL_BARS=yes
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13074 #include <X11/Xlib.h>
13075 #include <X11/Xresource.h>
13084 rm -f conftest.$ac_objext
13085 if { (ac_try="$ac_compile"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13091 $as_echo "$ac_try_echo") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
13104 cat >>confdefs.h <<\_ACEOF
13109 $as_echo "$as_me: failed program was
:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 if test "${with_xim}" != "no
"; then
13120 cat >>confdefs.h <<\_ACEOF
13127 if test "${HAVE_XIM}" != "no
"; then
13128 late_CFLAGS=$CFLAGS
13129 if test "$GCC" = yes; then
13130 CFLAGS="$CFLAGS --pedantic-errors"
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13139 #include <X11/Xlib.h>
13140 #include <X11/Xresource.h>
13149 XPointer *client_data;
13151 /* If we're not using GCC, it's probably not XFree86, and this is
13152 probably right, but we can't use something like --pedantic-errors. */
13153 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13154 char*, XIMProc, XPointer*);
13156 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_compile") 2>conftest.er1
13172 grep -v '^ *+' conftest.er1 >conftest.err
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest.$ac_objext; then
13180 emacs_cv_arg6_star=yes
13182 $as_echo "$as_me: failed program was
:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190 if test "$emacs_cv_arg6_star" = yes; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13196 cat >>confdefs.h <<\_ACEOF
13197 #define XRegisterIMInstantiateCallback_arg6 XPointer
13201 CFLAGS=$late_CFLAGS
13204 ### Start of font-backend (under any platform) section.
13205 # (nothing here yet -- this is a placeholder)
13206 ### End of font-backend (under any platform) section.
13208 ### Start of font-backend (under X11) section.
13209 if test "${HAVE_X11}" = "yes"; then
13213 # Extract the first word of "pkg-config
", so it can be a program name with args.
13214 set dummy pkg-config; ac_word=$2
13215 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13216 $as_echo_n "checking
for $ac_word...
" >&6; }
13217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13218 $as_echo_n "(cached
) " >&6
13220 case $PKG_CONFIG in
13222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13233 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13245 if test -n "$PKG_CONFIG"; then
13246 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13247 $as_echo "$PKG_CONFIG" >&6; }
13249 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13250 $as_echo "no
" >&6; }
13255 if test "$PKG_CONFIG" = "no
" ; then
13258 PKG_CONFIG_MIN_VERSION=0.9.0
13259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13260 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13261 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13263 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13264 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13265 $as_echo "yes" >&6; }
13268 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13269 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13270 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13271 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13272 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13274 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13275 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13276 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13277 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13278 $as_echo "$FONTCONFIG_LIBS" >&6; }
13280 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13281 $as_echo "no
" >&6; }
13282 FONTCONFIG_CFLAGS=""
13284 ## If we have a custom action on failure, don't print errors, but
13285 ## do set a variable so people can do so.
13286 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13293 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13294 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13298 if test $succeeded = yes; then
13305 ## Use -lXft if available, unless `--with-xft=no'.
13307 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13310 if test "x
${with_xft}" != "xno
"; then
13315 # Extract the first word of "pkg-config
", so it can be a program name with args.
13316 set dummy pkg-config; ac_word=$2
13317 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13318 $as_echo_n "checking
for $ac_word...
" >&6; }
13319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13320 $as_echo_n "(cached
) " >&6
13322 case $PKG_CONFIG in
13324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328 for as_dir in $PATH
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13335 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13346 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13347 if test -n "$PKG_CONFIG"; then
13348 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13349 $as_echo "$PKG_CONFIG" >&6; }
13351 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13352 $as_echo "no
" >&6; }
13357 if test "$PKG_CONFIG" = "no
" ; then
13360 PKG_CONFIG_MIN_VERSION=0.9.0
13361 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13362 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13363 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13365 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13366 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13367 $as_echo "yes" >&6; }
13370 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13371 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13372 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13373 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13374 $as_echo "$XFT_CFLAGS" >&6; }
13376 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13377 $as_echo_n "checking XFT_LIBS...
" >&6; }
13378 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13379 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13380 $as_echo "$XFT_LIBS" >&6; }
13382 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13383 $as_echo "no
" >&6; }
13386 ## If we have a custom action on failure, don't print errors, but
13387 ## do set a variable so people can do so.
13388 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13395 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13396 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13400 if test $succeeded = yes; then
13406 if test "$HAVE_XFT" != no; then
13407 OLD_CPPFLAGS="$CPPFLAGS"
13408 OLD_CFLAGS="$CFLAGS"
13410 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13411 CFLAGS="$CFLAGS $XFT_CFLAGS"
13412 LIBS="$XFT_LIBS $LIBS"
13413 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13414 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13415 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13416 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13417 $as_echo_n "(cached
) " >&6
13419 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13420 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13422 # Is the header compilable?
13423 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
13424 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <X11/Xft/Xft.h>
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13441 $as_echo "$ac_try_echo") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13444 grep -v '^ *+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
13452 ac_header_compiler=yes
13454 $as_echo "$as_me: failed program was
:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_header_compiler=no
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13462 $as_echo "$ac_header_compiler" >&6; }
13464 # Is the header present?
13465 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13466 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
13467 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <X11/Xft/Xft.h>
13475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13481 $as_echo "$ac_try_echo") >&5
13482 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13484 grep -v '^ *+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13488 (exit $ac_status); } >/dev/null && {
13489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13492 ac_header_preproc=yes
13494 $as_echo "$as_me: failed program was
:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_header_preproc=no
13500 rm -f conftest.err conftest.$ac_ext
13501 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13502 $as_echo "$ac_header_preproc" >&6; }
13504 # So? What about this header?
13505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13508 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13509 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13510 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13511 ac_header_preproc=yes
13514 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13515 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13516 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13517 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13518 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13519 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13520 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13521 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13522 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13523 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13524 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13525 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13529 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13530 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13531 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13532 $as_echo_n "(cached
) " >&6
13534 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13536 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13537 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13540 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13541 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13542 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
13543 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13544 $as_echo_n "(cached
) " >&6
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-lXft $XFT_LIBS $LIBS"
13548 cat >conftest.$ac_ext <<_ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13555 /* Override any GCC internal prototype to avoid an error.
13556 Use char because int might match the return type of a GCC
13557 builtin and then its argument prototype would still apply. */
13561 char XftFontOpen ();
13565 return XftFontOpen ();
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (ac_try="$ac_link"
13572 case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13577 $as_echo "$ac_try_echo") >&5
13578 (eval "$ac_link") 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest$ac_exeext && {
13588 test "$cross_compiling" = yes ||
13589 $as_test_x conftest$ac_exeext
13591 ac_cv_lib_Xft_XftFontOpen=yes
13593 $as_echo "$as_me: failed program was
:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_cv_lib_Xft_XftFontOpen=no
13599 rm -rf conftest.dSYM
13600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13604 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13605 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13606 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13614 if test "${HAVE_XFT}" = "yes"; then
13616 cat >>confdefs.h <<\_ACEOF
13621 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13623 CPPFLAGS="$OLD_CPPFLAGS"
13624 CFLAGS="$OLD_CFLAGS"
13626 fi # "${HAVE_XFT}" = "yes"
13627 fi # "$HAVE_XFT" != no
13628 fi # "x
${with_xft}" != "xno
"
13630 if test "$HAVE_XFT" != "yes"; then
13636 ## We used to allow building with FreeType and without Xft.
13637 ## However, the ftx font backend driver is not in good shape.
13638 if test "${HAVE_XFT}" = "yes"; then
13645 if test "${HAVE_FREETYPE}" = "yes"; then
13647 cat >>confdefs.h <<\_ACEOF
13648 #define HAVE_FREETYPE 1
13651 if test "${with_libotf}" != "no
"; then
13655 # Extract the first word of "pkg-config
", so it can be a program name with args.
13656 set dummy pkg-config; ac_word=$2
13657 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13658 $as_echo_n "checking
for $ac_word...
" >&6; }
13659 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13660 $as_echo_n "(cached
) " >&6
13662 case $PKG_CONFIG in
13664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13675 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13682 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13686 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13687 if test -n "$PKG_CONFIG"; then
13688 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13689 $as_echo "$PKG_CONFIG" >&6; }
13691 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13692 $as_echo "no
" >&6; }
13697 if test "$PKG_CONFIG" = "no
" ; then
13700 PKG_CONFIG_MIN_VERSION=0.9.0
13701 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13702 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
13703 $as_echo_n "checking
for libotf...
" >&6; }
13705 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13706 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13707 $as_echo "yes" >&6; }
13710 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13711 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
13712 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13713 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13714 $as_echo "$LIBOTF_CFLAGS" >&6; }
13716 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13717 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
13718 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13719 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13720 $as_echo "$LIBOTF_LIBS" >&6; }
13722 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13723 $as_echo "no
" >&6; }
13726 ## If we have a custom action on failure, don't print errors, but
13727 ## do set a variable so people can do so.
13728 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13735 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13736 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13740 if test $succeeded = yes; then
13746 if test "$HAVE_LIBOTF" = "yes"; then
13748 cat >>confdefs.h <<\_ACEOF
13749 #define HAVE_LIBOTF 1
13752 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13753 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
13754 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13755 $as_echo_n "(cached
) " >&6
13757 ac_check_lib_save_LIBS=$LIBS
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13766 /* Override any GCC internal prototype to avoid an error.
13767 Use char because int might match the return type of a GCC
13768 builtin and then its argument prototype would still apply. */
13772 char OTF_get_variation_glyphs ();
13776 return OTF_get_variation_glyphs ();
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (ac_try="$ac_link"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13788 $as_echo "$ac_try_echo") >&5
13789 (eval "$ac_link") 2>conftest.er1
13791 grep -v '^ *+' conftest.er1 >conftest.err
13793 cat conftest.err >&5
13794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13795 (exit $ac_status); } && {
13796 test -z "$ac_c_werror_flag" ||
13797 test ! -s conftest.err
13798 } && test -s conftest$ac_exeext && {
13799 test "$cross_compiling" = yes ||
13800 $as_test_x conftest$ac_exeext
13802 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13804 $as_echo "$as_me: failed program was
:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13810 rm -rf conftest.dSYM
13811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13815 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13816 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13817 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13818 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13820 HAVE_OTF_GET_VARIATION_GLYPHS=no
13823 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13825 cat >>confdefs.h <<\_ACEOF
13826 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13835 if test "${HAVE_LIBOTF}" = yes; then
13836 if test "${with_m17n_flt}" != "no
"; then
13840 # Extract the first word of "pkg-config
", so it can be a program name with args.
13841 set dummy pkg-config; ac_word=$2
13842 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13843 $as_echo_n "checking
for $ac_word...
" >&6; }
13844 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13845 $as_echo_n "(cached
) " >&6
13847 case $PKG_CONFIG in
13849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13860 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13867 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13871 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13872 if test -n "$PKG_CONFIG"; then
13873 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13874 $as_echo "$PKG_CONFIG" >&6; }
13876 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13877 $as_echo "no
" >&6; }
13882 if test "$PKG_CONFIG" = "no
" ; then
13885 PKG_CONFIG_MIN_VERSION=0.9.0
13886 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13887 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13888 $as_echo_n "checking
for m17n-flt...
" >&6; }
13890 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13891 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13892 $as_echo "yes" >&6; }
13895 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13896 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
13897 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13898 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13899 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13901 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13902 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
13903 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13904 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13905 $as_echo "$M17N_FLT_LIBS" >&6; }
13907 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13908 $as_echo "no
" >&6; }
13911 ## If we have a custom action on failure, don't print errors, but
13912 ## do set a variable so people can do so.
13913 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13920 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13921 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13925 if test $succeeded = yes; then
13931 if test "$HAVE_M17N_FLT" = "yes"; then
13933 cat >>confdefs.h <<\_ACEOF
13934 #define HAVE_M17N_FLT 1
13946 ### End of font-backend (under X11) section.
13957 ### Use -lXpm if available, unless `--with-xpm=no'.
13959 if test "${HAVE_X11}" = "yes"; then
13960 if test "${with_xpm}" != "no
"; then
13961 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13962 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13963 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13964 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13965 $as_echo_n "(cached
) " >&6
13967 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13968 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13970 # Is the header compilable?
13971 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13972 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
13973 cat >conftest.$ac_ext <<_ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 $ac_includes_default
13980 #include <X11/xpm.h>
13982 rm -f conftest.$ac_objext
13983 if { (ac_try="$ac_compile"
13984 case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13988 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13989 $as_echo "$ac_try_echo") >&5
13990 (eval "$ac_compile") 2>conftest.er1
13992 grep -v '^ *+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13996 (exit $ac_status); } && {
13997 test -z "$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 } && test -s conftest.$ac_objext; then
14000 ac_header_compiler=yes
14002 $as_echo "$as_me: failed program was
:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_header_compiler=no
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14010 $as_echo "$ac_header_compiler" >&6; }
14012 # Is the header present?
14013 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
14014 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <X11/xpm.h>
14023 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14036 (exit $ac_status); } >/dev/null && {
14037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14040 ac_header_preproc=yes
14042 $as_echo "$as_me: failed program was
:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_header_preproc=no
14048 rm -f conftest.err conftest.$ac_ext
14049 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14050 $as_echo "$ac_header_preproc" >&6; }
14052 # So? What about this header?
14053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14055 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14056 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14057 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
14058 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
14059 ac_header_preproc=yes
14062 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
14063 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
14064 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
14065 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
14066 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
14067 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
14068 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14069 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14070 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
14071 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
14072 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
14073 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
14077 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14078 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14079 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14080 $as_echo_n "(cached
) " >&6
14082 ac_cv_header_X11_xpm_h=$ac_header_preproc
14084 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14085 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14088 if test $ac_cv_header_X11_xpm_h = yes; then
14089 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
14090 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
14091 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14092 $as_echo_n "(cached
) " >&6
14094 ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lXpm -lX11 $LIBS"
14096 cat >conftest.$ac_ext <<_ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14103 /* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14109 char XpmReadFileToPixmap ();
14113 return XpmReadFileToPixmap ();
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (ac_try="$ac_link"
14120 case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14124 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14125 $as_echo "$ac_try_echo") >&5
14126 (eval "$ac_link") 2>conftest.er1
14128 grep -v '^ *+' conftest.er1 >conftest.err
14130 cat conftest.err >&5
14131 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest$ac_exeext && {
14136 test "$cross_compiling" = yes ||
14137 $as_test_x conftest$ac_exeext
14139 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14141 $as_echo "$as_me: failed program was
:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14147 rm -rf conftest.dSYM
14148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14153 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14154 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14161 if test "${HAVE_XPM}" = "yes"; then
14162 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14163 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include "X11
/xpm.h
"
14171 #ifndef XpmReturnAllocPixels
14172 no_return_alloc_pixels
14176 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14177 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14185 if test "${HAVE_XPM}" = "yes"; then
14186 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14187 $as_echo "yes" >&6; }
14189 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14190 $as_echo "no
" >&6; }
14195 if test "${HAVE_XPM}" = "yes"; then
14197 cat >>confdefs.h <<\_ACEOF
14204 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14206 if test "${HAVE_X11}" = "yes"; then
14207 if test "${with_jpeg}" != "no
"; then
14208 if test "${ac_cv_header_jerror_h+set}" = set; then
14209 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14210 $as_echo_n "checking
for jerror.h...
" >&6; }
14211 if test "${ac_cv_header_jerror_h+set}" = set; then
14212 $as_echo_n "(cached
) " >&6
14214 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14215 $as_echo "$ac_cv_header_jerror_h" >&6; }
14217 # Is the header compilable?
14218 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14219 $as_echo_n "checking jerror.h usability...
" >&6; }
14220 cat >conftest.$ac_ext <<_ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 $ac_includes_default
14227 #include <jerror.h>
14229 rm -f conftest.$ac_objext
14230 if { (ac_try="$ac_compile"
14231 case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14236 $as_echo "$ac_try_echo") >&5
14237 (eval "$ac_compile") 2>conftest.er1
14239 grep -v '^ *+' conftest.er1 >conftest.err
14241 cat conftest.err >&5
14242 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14243 (exit $ac_status); } && {
14244 test -z "$ac_c_werror_flag" ||
14245 test ! -s conftest.err
14246 } && test -s conftest.$ac_objext; then
14247 ac_header_compiler=yes
14249 $as_echo "$as_me: failed program was
:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_header_compiler=no
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14257 $as_echo "$ac_header_compiler" >&6; }
14259 # Is the header present?
14260 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14261 $as_echo_n "checking jerror.h presence...
" >&6; }
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 #include <jerror.h>
14270 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14276 $as_echo "$ac_try_echo") >&5
14277 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14283 (exit $ac_status); } >/dev/null && {
14284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14287 ac_header_preproc=yes
14289 $as_echo "$as_me: failed program was
:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 ac_header_preproc=no
14295 rm -f conftest.err conftest.$ac_ext
14296 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14297 $as_echo "$ac_header_preproc" >&6; }
14299 # So? What about this header?
14300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14302 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14303 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14304 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14305 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14306 ac_header_preproc=yes
14309 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14310 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14311 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14312 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14313 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14314 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14315 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14316 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14317 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14318 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14319 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14320 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14324 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14325 $as_echo_n "checking
for jerror.h...
" >&6; }
14326 if test "${ac_cv_header_jerror_h+set}" = set; then
14327 $as_echo_n "(cached
) " >&6
14329 ac_cv_header_jerror_h=$ac_header_preproc
14331 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14332 $as_echo "$ac_cv_header_jerror_h" >&6; }
14335 if test $ac_cv_header_jerror_h = yes; then
14336 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14337 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14338 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14339 $as_echo_n "(cached
) " >&6
14341 ac_check_lib_save_LIBS=$LIBS
14342 LIBS="-ljpeg $LIBS"
14343 cat >conftest.$ac_ext <<_ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14356 char jpeg_destroy_compress ();
14360 return jpeg_destroy_compress ();
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (ac_try="$ac_link"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14372 $as_echo "$ac_try_echo") >&5
14373 (eval "$ac_link") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest$ac_exeext && {
14383 test "$cross_compiling" = yes ||
14384 $as_test_x conftest$ac_exeext
14386 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14388 $as_echo "$as_me: failed program was
:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14394 rm -rf conftest.dSYM
14395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LIBS=$ac_check_lib_save_LIBS
14399 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14400 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14401 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14411 if test "${HAVE_JPEG}" = "yes"; then
14412 cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_JPEG 1
14416 cat >conftest.$ac_ext <<_ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 #include <jpeglib.h>
14423 version=JPEG_LIB_VERSION
14426 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14427 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_JPEG 1
14433 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
14434 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
14442 ### Use -lpng if available, unless `--with-png=no'.
14444 if test "${HAVE_X11}" = "yes"; then
14445 if test "${with_png}" != "no
"; then
14446 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14447 # in /usr/include/libpng.
14450 for ac_header in png.h libpng/png.h
14452 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14453 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14454 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14455 $as_echo_n "checking
for $ac_header...
" >&6; }
14456 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14457 $as_echo_n "(cached
) " >&6
14459 ac_res=`eval 'as_val=${'$as_ac_Header'}
14460 $as_echo "$as_val"'`
14461 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14462 $as_echo "$ac_res" >&6; }
14464 # Is the header compilable?
14465 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14466 $as_echo_n "checking
$ac_header usability...
" >&6; }
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 $ac_includes_default
14474 #include <$ac_header>
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14483 $as_echo "$ac_try_echo") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14490 (exit $ac_status); } && {
14491 test -z "$ac_c_werror_flag" ||
14492 test ! -s conftest.err
14493 } && test -s conftest.$ac_objext; then
14494 ac_header_compiler=yes
14496 $as_echo "$as_me: failed program was
:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_header_compiler=no
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14504 $as_echo "$ac_header_compiler" >&6; }
14506 # Is the header present?
14507 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14508 $as_echo_n "checking
$ac_header presence...
" >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 #include <$ac_header>
14517 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14522 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14523 $as_echo "$ac_try_echo") >&5
14524 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14530 (exit $ac_status); } >/dev/null && {
14531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14534 ac_header_preproc=yes
14536 $as_echo "$as_me: failed program was
:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 ac_header_preproc=no
14542 rm -f conftest.err conftest.$ac_ext
14543 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14544 $as_echo "$ac_header_preproc" >&6; }
14546 # So? What about this header?
14547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14549 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14550 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14551 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14553 ac_header_preproc=yes
14556 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14557 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14558 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14559 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14560 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14561 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14562 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14563 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14567 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14571 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14572 $as_echo_n "checking
for $ac_header...
" >&6; }
14573 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14574 $as_echo_n "(cached
) " >&6
14576 eval "$as_ac_Header=\
$ac_header_preproc"
14578 ac_res=`eval 'as_val=${'$as_ac_Header'}
14579 $as_echo "$as_val"'`
14580 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14581 $as_echo "$ac_res" >&6; }
14584 if test `eval 'as_val=${'$as_ac_Header'}
14585 $as_echo "$as_val"'` = yes; then
14586 cat >>confdefs.h <<_ACEOF
14587 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14594 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14595 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14596 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
14597 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14598 $as_echo_n "(cached
) " >&6
14600 ac_check_lib_save_LIBS=$LIBS
14601 LIBS="-lpng -lz -lm $LIBS"
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14615 char png_get_channels ();
14619 return png_get_channels ();
14624 rm -f conftest.$ac_objext conftest$ac_exeext
14625 if { (ac_try="$ac_link"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14631 $as_echo "$ac_try_echo") >&5
14632 (eval "$ac_link") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest$ac_exeext && {
14642 test "$cross_compiling" = yes ||
14643 $as_test_x conftest$ac_exeext
14645 ac_cv_lib_png_png_get_channels=yes
14647 $as_echo "$as_me: failed program was
:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_cv_lib_png_png_get_channels=no
14653 rm -rf conftest.dSYM
14654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14655 conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14658 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14659 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14660 if test $ac_cv_lib_png_png_get_channels = yes; then
14667 if test "${HAVE_PNG}" = "yes"; then
14669 cat >>confdefs.h <<\_ACEOF
14676 ### Use -ltiff if available, unless `--with-tiff=no'.
14678 if test "${HAVE_X11}" = "yes"; then
14679 if test "${with_tiff}" != "no
"; then
14680 if test "${ac_cv_header_tiffio_h+set}" = set; then
14681 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14682 $as_echo_n "checking
for tiffio.h...
" >&6; }
14683 if test "${ac_cv_header_tiffio_h+set}" = set; then
14684 $as_echo_n "(cached
) " >&6
14686 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14687 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14689 # Is the header compilable?
14690 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14691 $as_echo_n "checking tiffio.h usability...
" >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 $ac_includes_default
14699 #include <tiffio.h>
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14708 $as_echo "$ac_try_echo") >&5
14709 (eval "$ac_compile") 2>conftest.er1
14711 grep -v '^ *+' conftest.er1 >conftest.err
14713 cat conftest.err >&5
14714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14715 (exit $ac_status); } && {
14716 test -z "$ac_c_werror_flag" ||
14717 test ! -s conftest.err
14718 } && test -s conftest.$ac_objext; then
14719 ac_header_compiler=yes
14721 $as_echo "$as_me: failed program was
:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_header_compiler=no
14727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14729 $as_echo "$ac_header_compiler" >&6; }
14731 # Is the header present?
14732 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14733 $as_echo_n "checking tiffio.h presence...
" >&6; }
14734 cat >conftest.$ac_ext <<_ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14740 #include <tiffio.h>
14742 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14743 case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14748 $as_echo "$ac_try_echo") >&5
14749 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14751 grep -v '^ *+' conftest.er1 >conftest.err
14753 cat conftest.err >&5
14754 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14755 (exit $ac_status); } >/dev/null && {
14756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14757 test ! -s conftest.err
14759 ac_header_preproc=yes
14761 $as_echo "$as_me: failed program was
:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 ac_header_preproc=no
14767 rm -f conftest.err conftest.$ac_ext
14768 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14769 $as_echo "$ac_header_preproc" >&6; }
14771 # So? What about this header?
14772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14774 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14775 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14776 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14777 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14778 ac_header_preproc=yes
14781 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14782 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14783 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14784 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14785 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14786 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14787 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14788 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14789 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14790 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14792 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14796 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14797 $as_echo_n "checking
for tiffio.h...
" >&6; }
14798 if test "${ac_cv_header_tiffio_h+set}" = set; then
14799 $as_echo_n "(cached
) " >&6
14801 ac_cv_header_tiffio_h=$ac_header_preproc
14803 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14804 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14807 if test $ac_cv_header_tiffio_h = yes; then
14809 # At least one tiff package requires the jpeg library.
14810 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14811 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14812 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
14813 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14814 $as_echo_n "(cached
) " >&6
14816 ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-ltiff $tifflibs $LIBS"
14818 cat >conftest.$ac_ext <<_ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14831 char TIFFGetVersion ();
14835 return TIFFGetVersion ();
14840 rm -f conftest.$ac_objext conftest$ac_exeext
14841 if { (ac_try="$ac_link"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848 (eval "$ac_link") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14854 (exit $ac_status); } && {
14855 test -z "$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14857 } && test -s conftest$ac_exeext && {
14858 test "$cross_compiling" = yes ||
14859 $as_test_x conftest$ac_exeext
14861 ac_cv_lib_tiff_TIFFGetVersion=yes
14863 $as_echo "$as_me: failed program was
:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_cv_lib_tiff_TIFFGetVersion=no
14869 rm -rf conftest.dSYM
14870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14871 conftest$ac_exeext conftest.$ac_ext
14872 LIBS=$ac_check_lib_save_LIBS
14874 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14875 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14876 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14885 if test "${HAVE_TIFF}" = "yes"; then
14887 cat >>confdefs.h <<\_ACEOF
14888 #define HAVE_TIFF 1
14894 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14896 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14897 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14898 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14899 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14900 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14901 $as_echo_n "(cached
) " >&6
14903 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14904 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14906 # Is the header compilable?
14907 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14908 $as_echo_n "checking gif_lib.h usability...
" >&6; }
14909 cat >conftest.$ac_ext <<_ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915 $ac_includes_default
14916 #include <gif_lib.h>
14918 rm -f conftest.$ac_objext
14919 if { (ac_try="$ac_compile"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14925 $as_echo "$ac_try_echo") >&5
14926 (eval "$ac_compile") 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14932 (exit $ac_status); } && {
14933 test -z "$ac_c_werror_flag" ||
14934 test ! -s conftest.err
14935 } && test -s conftest.$ac_objext; then
14936 ac_header_compiler=yes
14938 $as_echo "$as_me: failed program was
:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ac_header_compiler=no
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14946 $as_echo "$ac_header_compiler" >&6; }
14948 # Is the header present?
14949 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14950 $as_echo_n "checking gif_lib.h presence...
" >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957 #include <gif_lib.h>
14959 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14964 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14965 $as_echo "$ac_try_echo") >&5
14966 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14972 (exit $ac_status); } >/dev/null && {
14973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14976 ac_header_preproc=yes
14978 $as_echo "$as_me: failed program was
:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_header_preproc=no
14984 rm -f conftest.err conftest.$ac_ext
14985 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14986 $as_echo "$ac_header_preproc" >&6; }
14988 # So? What about this header?
14989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14992 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14993 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14994 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14995 ac_header_preproc=yes
14998 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14999 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
15000 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
15001 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
15002 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
15003 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
15004 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15005 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15006 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
15007 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
15008 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
15009 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
15013 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15014 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15015 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15016 $as_echo_n "(cached
) " >&6
15018 ac_cv_header_gif_lib_h=$ac_header_preproc
15020 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15021 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15024 if test $ac_cv_header_gif_lib_h = yes; then
15025 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15026 # Earlier versions can crash Emacs.
15027 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
15028 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
15029 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15030 $as_echo_n "(cached
) " >&6
15032 ac_check_lib_save_LIBS=$LIBS
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15041 /* Override any GCC internal prototype to avoid an error.
15042 Use char because int might match the return type of a GCC
15043 builtin and then its argument prototype would still apply. */
15047 char EGifPutExtensionLast ();
15051 return EGifPutExtensionLast ();
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (ac_try="$ac_link"
15058 case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15063 $as_echo "$ac_try_echo") >&5
15064 (eval "$ac_link") 2>conftest.er1
15066 grep -v '^ *+' conftest.er1 >conftest.err
15068 cat conftest.err >&5
15069 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15070 (exit $ac_status); } && {
15071 test -z "$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 } && test -s conftest$ac_exeext && {
15074 test "$cross_compiling" = yes ||
15075 $as_test_x conftest$ac_exeext
15077 ac_cv_lib_gif_EGifPutExtensionLast=yes
15079 $as_echo "$as_me: failed program was
:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_cv_lib_gif_EGifPutExtensionLast=no
15085 rm -rf conftest.dSYM
15086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15087 conftest$ac_exeext conftest.$ac_ext
15088 LIBS=$ac_check_lib_save_LIBS
15090 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15091 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15092 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15102 if test "$HAVE_GIF" = yes; then
15103 ac_gif_lib_name="-lgif"
15106 # If gif_lib.h but no libgif, try libungif.
15107 if test x"$try_libungif" = xyes; then
15108 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15109 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15110 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15111 $as_echo_n "(cached
) " >&6
15113 ac_check_lib_save_LIBS=$LIBS
15114 LIBS="-lungif $LIBS"
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15128 char EGifPutExtensionLast ();
15132 return EGifPutExtensionLast ();
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15144 $as_echo "$ac_try_echo") >&5
15145 (eval "$ac_link") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext && {
15155 test "$cross_compiling" = yes ||
15156 $as_test_x conftest$ac_exeext
15158 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15160 $as_echo "$as_me: failed program was
:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_lib_ungif_EGifPutExtensionLast=no
15166 rm -rf conftest.dSYM
15167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15168 conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15171 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15172 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15173 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15178 if test "$HAVE_GIF" = yes; then
15180 cat >>confdefs.h <<\_ACEOF
15181 #define LIBGIF -lungif
15184 ac_gif_lib_name="-lungif"
15188 if test "${HAVE_GIF}" = "yes"; then
15190 cat >>confdefs.h <<\_ACEOF
15197 if test "${HAVE_X11}" = "yes"; then
15200 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15201 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15202 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15203 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15204 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15205 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15206 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15207 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15208 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15209 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15211 if test "X
${MISSING}" != X; then
15212 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15214 Maybe some development libraries
/packages are missing?
15215 If you don
't want to link with them give
15217 as options to configure" >&5
15218 $as_echo "$as_me: error: The following required libraries were not found:
15220 Maybe some development libraries/packages are missing?
15221 If you don't want to link with them give
15223 as options to configure
" >&2;}
15224 { (exit 1); exit 1; }; }
15228 ### Use -lgpm if available, unless `--with-gpm=no'.
15230 if test "${with_gpm}" != "no
"; then
15231 if test "${ac_cv_header_gpm_h+set}" = set; then
15232 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15233 $as_echo_n "checking
for gpm.h...
" >&6; }
15234 if test "${ac_cv_header_gpm_h+set}" = set; then
15235 $as_echo_n "(cached
) " >&6
15237 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15238 $as_echo "$ac_cv_header_gpm_h" >&6; }
15240 # Is the header compilable?
15241 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15242 $as_echo_n "checking gpm.h usability...
" >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 $ac_includes_default
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest.$ac_objext; then
15270 ac_header_compiler=yes
15272 $as_echo "$as_me: failed program was
:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_header_compiler=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15280 $as_echo "$ac_header_compiler" >&6; }
15282 # Is the header present?
15283 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15284 $as_echo_n "checking gpm.h presence...
" >&6; }
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15293 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15299 $as_echo "$ac_try_echo") >&5
15300 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15302 grep -v '^ *+' conftest.er1 >conftest.err
15304 cat conftest.err >&5
15305 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15306 (exit $ac_status); } >/dev/null && {
15307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15308 test ! -s conftest.err
15310 ac_header_preproc=yes
15312 $as_echo "$as_me: failed program was
:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_header_preproc=no
15318 rm -f conftest.err conftest.$ac_ext
15319 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15320 $as_echo "$ac_header_preproc" >&6; }
15322 # So? What about this header?
15323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15325 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15326 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15327 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15328 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15329 ac_header_preproc=yes
15332 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15333 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15335 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15337 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15338 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15339 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15340 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15341 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15342 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15343 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15347 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15348 $as_echo_n "checking
for gpm.h...
" >&6; }
15349 if test "${ac_cv_header_gpm_h+set}" = set; then
15350 $as_echo_n "(cached
) " >&6
15352 ac_cv_header_gpm_h=$ac_header_preproc
15354 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15355 $as_echo "$ac_cv_header_gpm_h" >&6; }
15358 if test $ac_cv_header_gpm_h = yes; then
15359 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15360 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15361 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15362 $as_echo_n "(cached
) " >&6
15364 ac_check_lib_save_LIBS=$LIBS
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15373 /* Override any GCC internal prototype to avoid an error.
15374 Use char because int might match the return type of a GCC
15375 builtin and then its argument prototype would still apply. */
15383 return Gpm_Open ();
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15394 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15395 $as_echo "$ac_try_echo") >&5
15396 (eval "$ac_link") 2>conftest.er1
15398 grep -v '^ *+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext && {
15406 test "$cross_compiling" = yes ||
15407 $as_test_x conftest$ac_exeext
15409 ac_cv_lib_gpm_Gpm_Open=yes
15411 $as_echo "$as_me: failed program was
:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_cv_lib_gpm_Gpm_Open=no
15417 rm -rf conftest.dSYM
15418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS
15422 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
15423 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15424 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15433 if test "${HAVE_GPM}" = "yes"; then
15435 cat >>confdefs.h <<\_ACEOF
15441 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15442 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15443 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15444 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15445 $as_echo_n "(cached
) " >&6
15447 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15448 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15450 # Is the header compilable?
15451 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
15452 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
15453 cat >conftest.$ac_ext <<_ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 $ac_includes_default
15460 #include <malloc/malloc.h>
15462 rm -f conftest.$ac_objext
15463 if { (ac_try="$ac_compile"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15469 $as_echo "$ac_try_echo") >&5
15470 (eval "$ac_compile") 2>conftest.er1
15472 grep -v '^ *+' conftest.er1 >conftest.err
15474 cat conftest.err >&5
15475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest.$ac_objext; then
15480 ac_header_compiler=yes
15482 $as_echo "$as_me: failed program was
:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_header_compiler=no
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15490 $as_echo "$ac_header_compiler" >&6; }
15492 # Is the header present?
15493 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15494 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <malloc/malloc.h>
15503 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15509 $as_echo "$ac_try_echo") >&5
15510 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15516 (exit $ac_status); } >/dev/null && {
15517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15520 ac_header_preproc=yes
15522 $as_echo "$as_me: failed program was
:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 ac_header_preproc=no
15528 rm -f conftest.err conftest.$ac_ext
15529 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15530 $as_echo "$ac_header_preproc" >&6; }
15532 # So? What about this header?
15533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15535 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15536 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15537 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15538 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15539 ac_header_preproc=yes
15542 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15543 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15544 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15545 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15546 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15547 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15548 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15549 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15550 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15551 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15552 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15553 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15557 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15558 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15559 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15560 $as_echo_n "(cached
) " >&6
15562 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15564 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15565 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15568 if test $ac_cv_header_malloc_malloc_h = yes; then
15570 cat >>confdefs.h <<\_ACEOF
15571 #define HAVE_MALLOC_MALLOC_H 1
15578 ### Use NeXTstep API to implement GUI.
15579 if test "${HAVE_NS}" = "yes"; then
15581 cat >>confdefs.h <<\_ACEOF
15585 if test "${NS_IMPL_COCOA}" = "yes"; then
15587 cat >>confdefs.h <<\_ACEOF
15588 #define NS_IMPL_COCOA 1
15593 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15595 cat >>confdefs.h <<\_ACEOF
15596 #define NS_IMPL_GNUSTEP 1
15599 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15601 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define NS_HAVE_NSINTEGER 1
15608 # We also have mouse menus.
15614 ### Use session management (-lSM -lICE) if available
15616 if test "${HAVE_X11}" = "yes"; then
15617 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15618 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15619 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15620 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15621 $as_echo_n "(cached
) " >&6
15623 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15624 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15626 # Is the header compilable?
15627 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15628 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 $ac_includes_default
15636 #include <X11/SM/SMlib.h>
15638 rm -f conftest.$ac_objext
15639 if { (ac_try="$ac_compile"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15645 $as_echo "$ac_try_echo") >&5
15646 (eval "$ac_compile") 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15652 (exit $ac_status); } && {
15653 test -z "$ac_c_werror_flag" ||
15654 test ! -s conftest.err
15655 } && test -s conftest.$ac_objext; then
15656 ac_header_compiler=yes
15658 $as_echo "$as_me: failed program was
:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15661 ac_header_compiler=no
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15666 $as_echo "$ac_header_compiler" >&6; }
15668 # Is the header present?
15669 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15670 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <X11/SM/SMlib.h>
15679 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15680 case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15685 $as_echo "$ac_try_echo") >&5
15686 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15692 (exit $ac_status); } >/dev/null && {
15693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15694 test ! -s conftest.err
15696 ac_header_preproc=yes
15698 $as_echo "$as_me: failed program was
:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 ac_header_preproc=no
15704 rm -f conftest.err conftest.$ac_ext
15705 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15706 $as_echo "$ac_header_preproc" >&6; }
15708 # So? What about this header?
15709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15711 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15712 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15713 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15714 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15715 ac_header_preproc=yes
15718 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15719 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15720 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15721 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15722 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15723 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15724 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15725 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15726 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15727 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15728 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15729 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15733 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15734 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15735 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15736 $as_echo_n "(cached
) " >&6
15738 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15740 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15741 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15744 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15745 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15746 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
15747 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15748 $as_echo_n "(cached
) " >&6
15750 ac_check_lib_save_LIBS=$LIBS
15751 LIBS="-lSM -lICE $LIBS"
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15759 /* Override any GCC internal prototype to avoid an error.
15760 Use char because int might match the return type of a GCC
15761 builtin and then its argument prototype would still apply. */
15765 char SmcOpenConnection ();
15769 return SmcOpenConnection ();
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (ac_try="$ac_link"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15781 $as_echo "$ac_try_echo") >&5
15782 (eval "$ac_link") 2>conftest.er1
15784 grep -v '^ *+' conftest.er1 >conftest.err
15786 cat conftest.err >&5
15787 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15788 (exit $ac_status); } && {
15789 test -z "$ac_c_werror_flag" ||
15790 test ! -s conftest.err
15791 } && test -s conftest$ac_exeext && {
15792 test "$cross_compiling" = yes ||
15793 $as_test_x conftest$ac_exeext
15795 ac_cv_lib_SM_SmcOpenConnection=yes
15797 $as_echo "$as_me: failed program was
:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 ac_cv_lib_SM_SmcOpenConnection=no
15803 rm -rf conftest.dSYM
15804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15805 conftest$ac_exeext conftest.$ac_ext
15806 LIBS=$ac_check_lib_save_LIBS
15808 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15809 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15810 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15818 if test "${HAVE_X_SM}" = "yes"; then
15820 cat >>confdefs.h <<\_ACEOF
15821 #define HAVE_X_SM 1
15826 *) LIBS="-lSM -lICE $LIBS" ;;
15831 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15832 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15833 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
15834 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15835 $as_echo_n "(cached
) " >&6
15837 cat >conftest.$ac_ext <<_ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15859 $as_echo "$ac_try_echo") >&5
15860 (eval "$ac_link") 2>conftest.er1
15862 grep -v '^ *+' conftest.er1 >conftest.err
15864 cat conftest.err >&5
15865 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15866 (exit $ac_status); } && {
15867 test -z "$ac_c_werror_flag" ||
15868 test ! -s conftest.err
15869 } && test -s conftest$ac_exeext && {
15870 test "$cross_compiling" = yes ||
15871 $as_test_x conftest$ac_exeext
15873 emacs_cv_netdb_declares_h_errno=yes
15875 $as_echo "$as_me: failed program was
:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 emacs_cv_netdb_declares_h_errno=no
15881 rm -rf conftest.dSYM
15882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15883 conftest$ac_exeext conftest.$ac_ext
15885 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15886 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15887 if test $emacs_cv_netdb_declares_h_errno = yes; then
15889 cat >>confdefs.h <<\_ACEOF
15890 #define HAVE_H_ERRNO 1
15895 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15896 # for constant arguments. Useless!
15897 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15898 $as_echo_n "checking
for working alloca.h...
" >&6; }
15899 if test "${ac_cv_working_alloca_h+set}" = set; then
15900 $as_echo_n "(cached
) " >&6
15902 cat >conftest.$ac_ext <<_ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 #include <alloca.h>
15912 char *p = (char *) alloca (2 * sizeof (int));
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926 (eval "$ac_link") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext && {
15936 test "$cross_compiling" = yes ||
15937 $as_test_x conftest$ac_exeext
15939 ac_cv_working_alloca_h=yes
15941 $as_echo "$as_me: failed program was
:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_cv_working_alloca_h=no
15947 rm -rf conftest.dSYM
15948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15949 conftest$ac_exeext conftest.$ac_ext
15951 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15952 $as_echo "$ac_cv_working_alloca_h" >&6; }
15953 if test $ac_cv_working_alloca_h = yes; then
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_ALLOCA_H 1
15961 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
15962 $as_echo_n "checking
for alloca...
" >&6; }
15963 if test "${ac_cv_func_alloca_works+set}" = set; then
15964 $as_echo_n "(cached
) " >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15973 # define alloca __builtin_alloca
15976 # include <malloc.h>
15977 # define alloca _alloca
15979 # ifdef HAVE_ALLOCA_H
15980 # include <alloca.h>
15985 # ifndef alloca /* predefined by HP cc +Olibcalls */
15996 char *p = (char *) alloca (1);
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (ac_try="$ac_link"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16009 $as_echo "$ac_try_echo") >&5
16010 (eval "$ac_link") 2>conftest.er1
16012 grep -v '^ *+' conftest.er1 >conftest.err
16014 cat conftest.err >&5
16015 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16016 (exit $ac_status); } && {
16017 test -z "$ac_c_werror_flag" ||
16018 test ! -s conftest.err
16019 } && test -s conftest$ac_exeext && {
16020 test "$cross_compiling" = yes ||
16021 $as_test_x conftest$ac_exeext
16023 ac_cv_func_alloca_works=yes
16025 $as_echo "$as_me: failed program was
:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_cv_func_alloca_works=no
16031 rm -rf conftest.dSYM
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16035 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
16036 $as_echo "$ac_cv_func_alloca_works" >&6; }
16038 if test $ac_cv_func_alloca_works = yes; then
16040 cat >>confdefs.h <<\_ACEOF
16041 #define HAVE_ALLOCA 1
16045 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16046 # that cause trouble. Some versions do not even contain alloca or
16047 # contain a buggy version. If you still want to use their alloca,
16048 # use ar to extract alloca.o from them instead of compiling alloca.c.
16050 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16052 cat >>confdefs.h <<\_ACEOF
16057 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
16058 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
16059 if test "${ac_cv_os_cray+set}" = set; then
16060 $as_echo_n "(cached) " >&6
16062 cat >conftest.$ac_ext <<_ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16068 #if defined CRAY && ! defined CRAY2
16075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16076 $EGREP "webecray" >/dev/null 2>&1; then
16084 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16085 $as_echo "$ac_cv_os_cray" >&6; }
16086 if test $ac_cv_os_cray = yes; then
16087 for ac_func in _getb67 GETB67 getb67; do
16088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 $as_echo_n "checking for $ac_func... " >&6; }
16091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16092 $as_echo_n "(cached) " >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16102 #define $ac_func innocuous_$ac_func
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func (); below.
16106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16107 <limits.h> exists even on freestanding compilers. */
16110 # include <limits.h>
16112 # include <assert.h>
16117 /* Override any GCC internal prototype to avoid an error.
16118 Use char because int might match the return type of a GCC
16119 builtin and then its argument prototype would still apply. */
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined __stub_$ac_func || defined __stub___$ac_func
16134 return $ac_func ();
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16146 $as_echo "$ac_try_echo") >&5
16147 (eval "$ac_link") 2>conftest.er1
16149 grep -v '^
*+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest$ac_exeext && {
16157 test "$cross_compiling" = yes ||
16158 $as_test_x conftest$ac_exeext
16160 eval "$as_ac_var=yes"
16162 $as_echo "$as_me: failed program was:" >&5
16163 sed 's
/^
/|
/' conftest.$ac_ext >&5
16165 eval "$as_ac_var=no"
16168 rm -rf conftest.dSYM
16169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16170 conftest$ac_exeext conftest.$ac_ext
16172 ac_res=`eval 'as_val
=${'$as_ac_var'}
16173 $as_echo "$as_val"'`
16174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16175 $as_echo "$ac_res" >&6; }
16176 if test `eval 'as_val
=${'$as_ac_var'}
16177 $as_echo "$as_val"'` = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define CRAY_STACKSEG_END $ac_func
16189 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16190 $as_echo_n "checking stack direction for C alloca... " >&6; }
16191 if test "${ac_cv_c_stack_direction+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16194 if test "$cross_compiling" = yes; then
16195 ac_cv_c_stack_direction=0
16197 cat >conftest.$ac_ext <<_ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 $ac_includes_default
16205 find_stack_direction ()
16207 static char *addr = 0;
16212 return find_stack_direction ();
16215 return (&dummy > addr) ? 1 : -1;
16221 return find_stack_direction () < 0;
16224 rm -f conftest$ac_exeext
16225 if { (ac_try="$ac_link"
16226 case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16231 $as_echo "$ac_try_echo") >&5
16232 (eval "$ac_link") 2>&5
16234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16236 { (case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16241 $as_echo "$ac_try_echo") >&5
16242 (eval "$ac_try") 2>&5
16244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ac_cv_c_stack_direction=1
16248 $as_echo "$as_me: program exited with status $ac_status" >&5
16249 $as_echo "$as_me: failed program was:" >&5
16250 sed 's
/^
/|
/' conftest.$ac_ext >&5
16252 ( exit $ac_status )
16253 ac_cv_c_stack_direction=-1
16255 rm -rf conftest.dSYM
16256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16261 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16262 $as_echo "$ac_cv_c_stack_direction" >&6; }
16264 cat >>confdefs.h <<_ACEOF
16265 #define STACK_DIRECTION $ac_cv_c_stack_direction
16272 if test x"$ac_cv_func_alloca_works" != xyes; then
16273 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16274 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16275 { (exit 1); exit 1; }; }
16278 # fmod, logb, and frexp are found in -lm on most systems.
16279 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16281 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16282 $as_echo_n "checking for sqrt in -lm... " >&6; }
16283 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16284 $as_echo_n "(cached) " >&6
16286 ac_check_lib_save_LIBS=$LIBS
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16295 /* Override any GCC internal prototype to avoid an error.
16296 Use char because int might match the return type of a GCC
16297 builtin and then its argument prototype would still apply. */
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318 (eval "$ac_link") 2>conftest.er1
16320 grep -v '^
*+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext && {
16328 test "$cross_compiling" = yes ||
16329 $as_test_x conftest$ac_exeext
16331 ac_cv_lib_m_sqrt=yes
16333 $as_echo "$as_me: failed program was:" >&5
16334 sed 's
/^
/|
/' conftest.$ac_ext >&5
16336 ac_cv_lib_m_sqrt=no
16339 rm -rf conftest.dSYM
16340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16341 conftest$ac_exeext conftest.$ac_ext
16342 LIBS=$ac_check_lib_save_LIBS
16344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16345 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16346 if test $ac_cv_lib_m_sqrt = yes; then
16347 cat >>confdefs.h <<_ACEOF
16348 #define HAVE_LIBM 1
16356 # Check for mail-locking functions in a "mail" library. Probably this should
16357 # have the same check as for liblockfile below.
16359 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16360 $as_echo_n "checking for maillock in -lmail... " >&6; }
16361 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16362 $as_echo_n "(cached) " >&6
16364 ac_check_lib_save_LIBS=$LIBS
16365 LIBS="-lmail $LIBS"
16366 cat >conftest.$ac_ext <<_ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16373 /* Override any GCC internal prototype to avoid an error.
16374 Use char because int might match the return type of a GCC
16375 builtin and then its argument prototype would still apply. */
16383 return maillock ();
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
16398 grep -v '^
*+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest$ac_exeext
16409 ac_cv_lib_mail_maillock=yes
16411 $as_echo "$as_me: failed program was:" >&5
16412 sed 's
/^
/|
/' conftest.$ac_ext >&5
16414 ac_cv_lib_mail_maillock=no
16417 rm -rf conftest.dSYM
16418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419 conftest$ac_exeext conftest.$ac_ext
16420 LIBS=$ac_check_lib_save_LIBS
16422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16423 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16424 if test $ac_cv_lib_mail_maillock = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define HAVE_LIBMAIL 1
16429 LIBS="-lmail $LIBS"
16434 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16435 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16436 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16437 $as_echo_n "(cached) " >&6
16439 ac_check_lib_save_LIBS=$LIBS
16440 LIBS="-llockfile $LIBS"
16441 cat >conftest.$ac_ext <<_ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16458 return maillock ();
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (ac_try="$ac_link"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_link") 2>conftest.er1
16473 grep -v '^
*+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest$ac_exeext && {
16481 test "$cross_compiling" = yes ||
16482 $as_test_x conftest$ac_exeext
16484 ac_cv_lib_lockfile_maillock=yes
16486 $as_echo "$as_me: failed program was:" >&5
16487 sed 's
/^
/|
/' conftest.$ac_ext >&5
16489 ac_cv_lib_lockfile_maillock=no
16492 rm -rf conftest.dSYM
16493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16494 conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_check_lib_save_LIBS
16497 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16498 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16499 if test $ac_cv_lib_lockfile_maillock = yes; then
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_LIBLOCKFILE 1
16504 LIBS="-llockfile $LIBS"
16508 # If we have the shared liblockfile, assume we must use it for mail
16509 # locking (e.g. Debian). If we couldn't link against liblockfile
16510 # (no liblockfile.a installed), ensure that we don't need to.
16511 if test "$ac_cv_lib_lockfile_maillock" = no
; then
16512 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16513 set dummy liblockfile.so
; ac_word
=$2
16514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16515 $as_echo_n "checking for $ac_word... " >&6; }
16516 if test "${ac_cv_prog_liblockfile+set}" = set; then
16517 $as_echo_n "(cached) " >&6
16519 if test -n "$liblockfile"; then
16520 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
16522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16523 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16524 for as_dir
in $as_dummy
16527 test -z "$as_dir" && as_dir
=.
16528 for ac_exec_ext
in '' $ac_executable_extensions; do
16529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16530 ac_cv_prog_liblockfile
="yes"
16531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16538 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16541 liblockfile
=$ac_cv_prog_liblockfile
16542 if test -n "$liblockfile"; then
16543 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16544 $as_echo "$liblockfile" >&6; }
16546 { $as_echo "$as_me:$LINENO: result: no" >&5
16547 $as_echo "no" >&6; }
16551 if test $ac_cv_prog_liblockfile = yes; then
16552 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16553 This probably means that movemail could lose mail.
16554 There may be a \`development' package to install containing liblockfile." >&5
16555 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16556 This probably means that movemail could lose mail.
16557 There may be a \`development' package to install containing liblockfile." >&2;}
16558 { (exit 1); exit 1; }; }
16563 for ac_func
in touchlock
16565 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16566 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16567 $as_echo_n "checking for $ac_func... " >&6; }
16568 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16569 $as_echo_n "(cached) " >&6
16571 cat >conftest.
$ac_ext <<_ACEOF
16574 cat confdefs.h
>>conftest.
$ac_ext
16575 cat >>conftest.
$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16579 #define $ac_func innocuous_$ac_func
16581 /* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char $ac_func (); below.
16583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16584 <limits.h> exists even on freestanding compilers. */
16587 # include <limits.h>
16589 # include <assert.h>
16594 /* Override any GCC internal prototype to avoid an error.
16595 Use char because int might match the return type of a GCC
16596 builtin and then its argument prototype would still apply. */
16601 /* The GNU C library defines this for functions which it implements
16602 to always fail with ENOSYS. Some functions are actually named
16603 something starting with __ and the normal name is an alias. */
16604 #if defined __stub_$ac_func || defined __stub___$ac_func
16611 return $ac_func ();
16616 rm -f conftest.
$ac_objext conftest
$ac_exeext
16617 if { (ac_try
="$ac_link"
16618 case "(($ac_try" in
16619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16623 $as_echo "$ac_try_echo") >&5
16624 (eval "$ac_link") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } && {
16631 test -z "$ac_c_werror_flag" ||
16632 test ! -s conftest.err
16633 } && test -s conftest$ac_exeext && {
16634 test "$cross_compiling" = yes ||
16635 $as_test_x conftest$ac_exeext
16637 eval "$as_ac_var=yes"
16639 $as_echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 eval "$as_ac_var=no"
16645 rm -rf conftest.dSYM
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16649 ac_res=`eval 'as_val=${'$as_ac_var'}
16650 $as_echo "$as_val"'`
16651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16652 $as_echo "$ac_res" >&6; }
16653 if test `eval 'as_val=${'$as_ac_var'}
16654 $as_echo "$as_val"'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16663 for ac_header in maillock.h
16665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16668 $as_echo_n "checking for $ac_header... " >&6; }
16669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16670 $as_echo_n "(cached) " >&6
16672 ac_res=`eval 'as_val=${'$as_ac_Header'}
16673 $as_echo "$as_val"'`
16674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16675 $as_echo "$ac_res" >&6; }
16677 # Is the header compilable?
16678 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679 $as_echo_n "checking $ac_header usability... " >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 $ac_includes_default
16687 #include <$ac_header>
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16693 *) ac_try_echo
=$ac_try;;
16695 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16696 $as_echo "$ac_try_echo") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1
>conftest.err
16701 cat conftest.err
>&5
16702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } && {
16704 test -z "$ac_c_werror_flag" ||
16705 test ! -s conftest.err
16706 } && test -s conftest.
$ac_objext; then
16707 ac_header_compiler
=yes
16709 $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.
$ac_ext >&5
16712 ac_header_compiler
=no
16715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16717 $as_echo "$ac_header_compiler" >&6; }
16719 # Is the header present?
16720 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16721 $as_echo_n "checking $ac_header presence... " >&6; }
16722 cat >conftest.
$ac_ext <<_ACEOF
16725 cat confdefs.h
>>conftest.
$ac_ext
16726 cat >>conftest.
$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <$ac_header>
16730 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16731 case "(($ac_try" in
16732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16736 $as_echo "$ac_try_echo") >&5
16737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16739 grep -v '^ *+' conftest.er1 >conftest.err
16741 cat conftest.err >&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } >/dev/null && {
16744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16747 ac_header_preproc=yes
16749 $as_echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_header_preproc=no
16755 rm -f conftest.err conftest.$ac_ext
16756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16757 $as_echo "$ac_header_preproc" >&6; }
16759 # So? What about this header?
16760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16763 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16766 ac_header_preproc=yes
16769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16770 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16772 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16774 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16776 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16780 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16785 $as_echo_n "checking for $ac_header... " >&6; }
16786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16787 $as_echo_n "(cached) " >&6
16789 eval "$as_ac_Header=\$ac_header_preproc"
16791 ac_res=`eval 'as_val=${'$as_ac_Header'}
16792 $as_echo "$as_val"'`
16793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16794 $as_echo "$ac_res" >&6; }
16797 if test `eval 'as_val=${'$as_ac_Header'}
16798 $as_echo "$as_val"'` = yes; then
16799 cat >>confdefs.h <<_ACEOF
16800 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16879 for ac_func in gethostname getdomainname dup2 \
16880 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16881 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16882 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16883 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16884 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16885 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16886 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16887 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16888 cfmakeraw cfsetspeed
16890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16892 $as_echo_n "checking for $ac_func... " >&6; }
16893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16894 $as_echo_n "(cached) " >&6
16896 cat >conftest.$ac_ext <<_ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16904 #define $ac_func innocuous_$ac_func
16906 /* System header to define __stub macros and hopefully few prototypes,
16907 which can conflict with char $ac_func (); below.
16908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16909 <limits.h> exists even on freestanding compilers. */
16912 # include <limits.h>
16914 # include <assert.h>
16919 /* Override any GCC internal prototype to avoid an error.
16920 Use char because int might match the return type of a GCC
16921 builtin and then its argument prototype would still apply. */
16926 /* The GNU C library defines this for functions which it implements
16927 to always fail with ENOSYS. Some functions are actually named
16928 something starting with __ and the normal name is an alias. */
16929 #if defined __stub_$ac_func || defined __stub___$ac_func
16936 return $ac_func ();
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (ac_try="$ac_link"
16943 case "(($ac_try" in
16944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16945 *) ac_try_echo
=$ac_try;;
16947 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16948 $as_echo "$ac_try_echo") >&5
16949 (eval "$ac_link") 2>conftest.er1
16951 grep -v '^ *+' conftest.er1
>conftest.err
16953 cat conftest.err
>&5
16954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest
$ac_exeext && {
16959 test "$cross_compiling" = yes ||
16960 $as_test_x conftest
$ac_exeext
16962 eval "$as_ac_var=yes"
16964 $as_echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.
$ac_ext >&5
16967 eval "$as_ac_var=no"
16970 rm -rf conftest.dSYM
16971 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16972 conftest
$ac_exeext conftest.
$ac_ext
16974 ac_res
=`eval 'as_val=${'$as_ac_var'}
16975 $as_echo "$as_val"'`
16976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16977 $as_echo "$ac_res" >&6; }
16978 if test `eval 'as_val=${'$as_ac_var'}
16979 $as_echo "$as_val"'` = yes; then
16980 cat >>confdefs.h
<<_ACEOF
16981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 for ac_header
in sys
/un.h
16991 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16992 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 $as_echo_n "checking for $ac_header... " >&6; }
16995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16996 $as_echo_n "(cached) " >&6
16998 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16999 $as_echo "$as_val"'`
17000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17001 $as_echo "$ac_res" >&6; }
17003 # Is the header compilable?
17004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17005 $as_echo_n "checking $ac_header usability... " >&6; }
17006 cat >conftest.
$ac_ext <<_ACEOF
17009 cat confdefs.h
>>conftest.
$ac_ext
17010 cat >>conftest.
$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 $ac_includes_default
17013 #include <$ac_header>
17015 rm -f conftest.
$ac_objext
17016 if { (ac_try
="$ac_compile"
17017 case "(($ac_try" in
17018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17022 $as_echo "$ac_try_echo") >&5
17023 (eval "$ac_compile") 2>conftest.er1
17025 grep -v '^ *+' conftest.er1 >conftest.err
17027 cat conftest.err >&5
17028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } && {
17030 test -z "$ac_c_werror_flag" ||
17031 test ! -s conftest.err
17032 } && test -s conftest.$ac_objext; then
17033 ac_header_compiler=yes
17035 $as_echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 ac_header_compiler=no
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17043 $as_echo "$ac_header_compiler" >&6; }
17045 # Is the header present?
17046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17047 $as_echo_n "checking $ac_header presence... " >&6; }
17048 cat >conftest.$ac_ext <<_ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054 #include <$ac_header>
17056 if { (ac_try="$ac_cpp conftest.$ac_ext"
17057 case "(($ac_try" in
17058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17059 *) ac_try_echo
=$ac_try;;
17061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17062 $as_echo "$ac_try_echo") >&5
17063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17065 grep -v '^ *+' conftest.er1
>conftest.err
17067 cat conftest.err
>&5
17068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } >/dev
/null
&& {
17070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17071 test ! -s conftest.err
17073 ac_header_preproc
=yes
17075 $as_echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.
$ac_ext >&5
17078 ac_header_preproc
=no
17081 rm -f conftest.err conftest.
$ac_ext
17082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17083 $as_echo "$ac_header_preproc" >&6; }
17085 # So? What about this header?
17086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17092 ac_header_preproc
=yes
17095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17111 $as_echo_n "checking for $ac_header... " >&6; }
17112 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17113 $as_echo_n "(cached) " >&6
17115 eval "$as_ac_Header=\$ac_header_preproc"
17117 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17118 $as_echo "$as_val"'`
17119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17120 $as_echo "$ac_res" >&6; }
17123 if test `eval 'as_val=${'$as_ac_Header'}
17124 $as_echo "$as_val"'` = yes; then
17125 cat >>confdefs.h
<<_ACEOF
17126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17138 for ac_header
in $ac_header_list
17140 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17141 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17143 $as_echo_n "checking for $ac_header... " >&6; }
17144 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17145 $as_echo_n "(cached) " >&6
17147 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17148 $as_echo "$as_val"'`
17149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17150 $as_echo "$ac_res" >&6; }
17152 # Is the header compilable?
17153 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17154 $as_echo_n "checking $ac_header usability... " >&6; }
17155 cat >conftest.
$ac_ext <<_ACEOF
17158 cat confdefs.h
>>conftest.
$ac_ext
17159 cat >>conftest.
$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17161 $ac_includes_default
17162 #include <$ac_header>
17164 rm -f conftest.
$ac_objext
17165 if { (ac_try
="$ac_compile"
17166 case "(($ac_try" in
17167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17171 $as_echo "$ac_try_echo") >&5
17172 (eval "$ac_compile") 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } && {
17179 test -z "$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 } && test -s conftest.$ac_objext; then
17182 ac_header_compiler=yes
17184 $as_echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_compiler=no
17190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17192 $as_echo "$ac_header_compiler" >&6; }
17194 # Is the header present?
17195 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17196 $as_echo_n "checking $ac_header presence... " >&6; }
17197 cat >conftest.$ac_ext <<_ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17203 #include <$ac_header>
17205 if { (ac_try="$ac_cpp conftest.$ac_ext"
17206 case "(($ac_try" in
17207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17208 *) ac_try_echo
=$ac_try;;
17210 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17211 $as_echo "$ac_try_echo") >&5
17212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17214 grep -v '^ *+' conftest.er1
>conftest.err
17216 cat conftest.err
>&5
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } >/dev
/null
&& {
17219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17220 test ! -s conftest.err
17222 ac_header_preproc
=yes
17224 $as_echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.
$ac_ext >&5
17227 ac_header_preproc
=no
17230 rm -f conftest.err conftest.
$ac_ext
17231 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17232 $as_echo "$ac_header_preproc" >&6; }
17234 # So? What about this header?
17235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17238 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17241 ac_header_preproc
=yes
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17249 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17251 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17253 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17255 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17260 $as_echo_n "checking for $ac_header... " >&6; }
17261 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17262 $as_echo_n "(cached) " >&6
17264 eval "$as_ac_Header=\$ac_header_preproc"
17266 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17267 $as_echo "$as_val"'`
17268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17269 $as_echo "$ac_res" >&6; }
17272 if test `eval 'as_val=${'$as_ac_Header'}
17273 $as_echo "$as_val"'` = yes; then
17274 cat >>confdefs.h
<<_ACEOF
17275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17290 for ac_func
in $ac_func_list
17292 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17293 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17294 $as_echo_n "checking for $ac_func... " >&6; }
17295 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17296 $as_echo_n "(cached) " >&6
17298 cat >conftest.
$ac_ext <<_ACEOF
17301 cat confdefs.h
>>conftest.
$ac_ext
17302 cat >>conftest.
$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17306 #define $ac_func innocuous_$ac_func
17308 /* System header to define __stub macros and hopefully few prototypes,
17309 which can conflict with char $ac_func (); below.
17310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311 <limits.h> exists even on freestanding compilers. */
17314 # include <limits.h>
17316 # include <assert.h>
17321 /* Override any GCC internal prototype to avoid an error.
17322 Use char because int might match the return type of a GCC
17323 builtin and then its argument prototype would still apply. */
17328 /* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331 #if defined __stub_$ac_func || defined __stub___$ac_func
17338 return $ac_func ();
17343 rm -f conftest.
$ac_objext conftest
$ac_exeext
17344 if { (ac_try
="$ac_link"
17345 case "(($ac_try" in
17346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17350 $as_echo "$ac_try_echo") >&5
17351 (eval "$ac_link") 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } && {
17358 test -z "$ac_c_werror_flag" ||
17359 test ! -s conftest.err
17360 } && test -s conftest$ac_exeext && {
17361 test "$cross_compiling" = yes ||
17362 $as_test_x conftest$ac_exeext
17364 eval "$as_ac_var=yes"
17366 $as_echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 eval "$as_ac_var=no"
17372 rm -rf conftest.dSYM
17373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17374 conftest$ac_exeext conftest.$ac_ext
17376 ac_res=`eval 'as_val=${'$as_ac_var'}
17377 $as_echo "$as_val"'`
17378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17379 $as_echo "$ac_res" >&6; }
17380 if test `eval 'as_val=${'$as_ac_var'}
17381 $as_echo "$as_val"'` = yes; then
17382 cat >>confdefs.h <<_ACEOF
17383 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17405 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17406 $as_echo_n "checking for working mktime... " >&6; }
17407 if test "${ac_cv_func_working_mktime+set}" = set; then
17408 $as_echo_n "(cached) " >&6
17410 if test "$cross_compiling" = yes; then
17411 ac_cv_func_working_mktime=no
17413 cat >conftest.$ac_ext <<_ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 /* Test program from Paul Eggert and Tony Leneis. */
17420 #ifdef TIME_WITH_SYS_TIME
17421 # include <sys/time.h>
17424 # ifdef HAVE_SYS_TIME_H
17425 # include <sys/time.h>
17431 #include <limits.h>
17432 #include <stdlib.h>
17434 #ifdef HAVE_UNISTD_H
17435 # include <unistd.h>
17439 # define alarm(X) /* empty */
17442 /* Work around redefinition to rpl_putenv by other config tests. */
17445 static time_t time_t_max;
17446 static time_t time_t_min;
17448 /* Values we'll use to set the TZ environment variable. */
17449 static char *tz_strings[] = {
17450 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17451 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17453 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17455 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17456 Based on a problem report from Andreas Jaeger. */
17458 spring_forward_gap ()
17460 /* glibc (up to about 1998-10-07) failed this test. */
17463 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17464 instead of "TZ=America/Vancouver" in order to detect the bug even
17465 on systems that don't support the Olson extension, or don't have the
17466 full zoneinfo tables installed. */
17467 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17476 return mktime (&tm) != (time_t) -1;
17484 return ! (lt = localtime (&now)) || mktime (lt) == now;
17491 return (mktime_test1 (now)
17492 && mktime_test1 ((time_t) (time_t_max - now))
17493 && mktime_test1 ((time_t) (time_t_min + now)));
17499 /* Based on code from Ariel Faigon. */
17509 return tm.tm_mon == 2 && tm.tm_mday == 31;
17518 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17519 now = mktime (&tm);
17520 if (now != (time_t) -1)
17522 struct tm *lt = localtime (&now);
17524 && lt->tm_year == tm.tm_year
17525 && lt->tm_mon == tm.tm_mon
17526 && lt->tm_mday == tm.tm_mday
17527 && lt->tm_hour == tm.tm_hour
17528 && lt->tm_min == tm.tm_min
17529 && lt->tm_sec == tm.tm_sec
17530 && lt->tm_yday == tm.tm_yday
17531 && lt->tm_wday == tm.tm_wday
17532 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17533 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17542 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17543 ignoring leap seconds. */
17544 unsigned long int answer = 2527315200UL;
17548 tm.tm_year = 2050 - 1900;
17551 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17554 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17555 instead of "TZ=America/Vancouver" in order to detect the bug even
17556 on systems that don't support the Olson extension, or don't have the
17557 full zoneinfo tables installed. */
17558 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17562 /* Check that the result is either a failure, or close enough
17563 to the correct answer that we can assume the discrepancy is
17564 due to leap seconds. */
17565 return (t == (time_t) -1
17566 || (0 < t && answer - 120 <= t && t <= answer + 120));
17575 /* This test makes some buggy mktime implementations loop.
17576 Give up after 60 seconds; a mktime slower than that
17577 isn't worth using anyway. */
17582 t = (time_t_max << 1) + 1;
17583 if (t <= time_t_max)
17587 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17589 delta = time_t_max / 997; /* a suitable prime number */
17590 for (i = 0; i < N_STRINGS; i++)
17593 putenv (tz_strings[i]);
17595 for (t = 0; t <= time_t_max - delta; t += delta)
17596 if (! mktime_test (t))
17598 if (! (mktime_test ((time_t) 1)
17599 && mktime_test ((time_t) (60 * 60))
17600 && mktime_test ((time_t) (60 * 60 * 24))))
17603 for (j = 1; ; j <<= 1)
17604 if (! bigtime_test (j))
17606 else if (INT_MAX / 2 < j)
17608 if (! bigtime_test (INT_MAX))
17611 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17614 rm -f conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17618 *) ac_try_echo
=$ac_try;;
17620 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17621 $as_echo "$ac_try_echo") >&5
17622 (eval "$ac_link") 2>&5
17624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17626 { (case "(($ac_try" in
17627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17631 $as_echo "$ac_try_echo") >&5
17632 (eval "$ac_try") 2>&5
17634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 ac_cv_func_working_mktime=yes
17638 $as_echo "$as_me: program exited with status $ac_status" >&5
17639 $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ( exit $ac_status )
17643 ac_cv_func_working_mktime=no
17645 rm -rf conftest.dSYM
17646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17651 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17652 $as_echo "$ac_cv_func_working_mktime" >&6; }
17653 if test $ac_cv_func_working_mktime = no; then
17654 case " $LIBOBJS " in
17655 *" mktime.$ac_objext "* ) ;;
17656 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17662 if test "$ac_cv_func_working_mktime" = no; then
17664 cat >>confdefs.h <<\_ACEOF
17665 #define BROKEN_MKTIME 1
17670 ac_have_func=no # yes means we've found a way to get the load average.
17672 # Make sure getloadavg.c is where it belongs, at configure-time.
17673 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17674 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17675 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17676 { (exit 1); exit 1; }; }
17680 # Check for getloadavg, but be sure not to touch the cache variable.
17681 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17682 $as_echo_n "checking for getloadavg... " >&6; }
17683 if test "${ac_cv_func_getloadavg+set}" = set; then
17684 $as_echo_n "(cached) " >&6
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694 #define getloadavg innocuous_getloadavg
17696 /* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char getloadavg (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17702 # include <limits.h>
17704 # include <assert.h>
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17715 char getloadavg ();
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined __stub_getloadavg || defined __stub___getloadavg
17726 return getloadavg ();
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17735 *) ac_try_echo
=$ac_try;;
17737 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17738 $as_echo "$ac_try_echo") >&5
17739 (eval "$ac_link") 2>conftest.er1
17741 grep -v '^ *+' conftest.er1
>conftest.err
17743 cat conftest.err
>&5
17744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && {
17746 test -z "$ac_c_werror_flag" ||
17747 test ! -s conftest.err
17748 } && test -s conftest
$ac_exeext && {
17749 test "$cross_compiling" = yes ||
17750 $as_test_x conftest
$ac_exeext
17752 ac_cv_func_getloadavg
=yes
17754 $as_echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.
$ac_ext >&5
17757 ac_cv_func_getloadavg
=no
17760 rm -rf conftest.dSYM
17761 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17762 conftest
$ac_exeext conftest.
$ac_ext
17764 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17765 $as_echo "$ac_cv_func_getloadavg" >&6; }
17766 if test $ac_cv_func_getloadavg = yes; then
17771 ) && ac_have_func
=yes
17773 # On HPUX9, an unprivileged user can get load averages through this function.
17775 for ac_func
in pstat_getdynamic
17777 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17778 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17779 $as_echo_n "checking for $ac_func... " >&6; }
17780 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17781 $as_echo_n "(cached) " >&6
17783 cat >conftest.
$ac_ext <<_ACEOF
17786 cat confdefs.h
>>conftest.
$ac_ext
17787 cat >>conftest.
$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17791 #define $ac_func innocuous_$ac_func
17793 /* System header to define __stub macros and hopefully few prototypes,
17794 which can conflict with char $ac_func (); below.
17795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17796 <limits.h> exists even on freestanding compilers. */
17799 # include <limits.h>
17801 # include <assert.h>
17806 /* Override any GCC internal prototype to avoid an error.
17807 Use char because int might match the return type of a GCC
17808 builtin and then its argument prototype would still apply. */
17813 /* The GNU C library defines this for functions which it implements
17814 to always fail with ENOSYS. Some functions are actually named
17815 something starting with __ and the normal name is an alias. */
17816 #if defined __stub_$ac_func || defined __stub___$ac_func
17823 return $ac_func ();
17828 rm -f conftest.
$ac_objext conftest
$ac_exeext
17829 if { (ac_try
="$ac_link"
17830 case "(($ac_try" in
17831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17835 $as_echo "$ac_try_echo") >&5
17836 (eval "$ac_link") 2>conftest.er1
17838 grep -v '^ *+' conftest.er1 >conftest.err
17840 cat conftest.err >&5
17841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && {
17843 test -z "$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17845 } && test -s conftest$ac_exeext && {
17846 test "$cross_compiling" = yes ||
17847 $as_test_x conftest$ac_exeext
17849 eval "$as_ac_var=yes"
17851 $as_echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 eval "$as_ac_var=no"
17857 rm -rf conftest.dSYM
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859 conftest$ac_exeext conftest.$ac_ext
17861 ac_res=`eval 'as_val=${'$as_ac_var'}
17862 $as_echo "$as_val"'`
17863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17864 $as_echo "$ac_res" >&6; }
17865 if test `eval 'as_val=${'$as_ac_var'}
17866 $as_echo "$as_val"'` = yes; then
17867 cat >>confdefs.h <<_ACEOF
17868 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17875 # Solaris has libkstat which does not require root.
17877 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17878 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17879 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17880 $as_echo_n "(cached) " >&6
17882 ac_check_lib_save_LIBS=$LIBS
17883 LIBS="-lkstat $LIBS"
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17891 /* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17897 char kstat_open ();
17901 return kstat_open ();
17906 rm -f conftest.$ac_objext conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17910 *) ac_try_echo
=$ac_try;;
17912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17913 $as_echo "$ac_try_echo") >&5
17914 (eval "$ac_link") 2>conftest.er1
17916 grep -v '^ *+' conftest.er1
>conftest.err
17918 cat conftest.err
>&5
17919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest
$ac_exeext && {
17924 test "$cross_compiling" = yes ||
17925 $as_test_x conftest
$ac_exeext
17927 ac_cv_lib_kstat_kstat_open
=yes
17929 $as_echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.
$ac_ext >&5
17932 ac_cv_lib_kstat_kstat_open
=no
17935 rm -rf conftest.dSYM
17936 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17937 conftest
$ac_exeext conftest.
$ac_ext
17938 LIBS
=$ac_check_lib_save_LIBS
17940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17941 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17942 if test $ac_cv_lib_kstat_kstat_open = yes; then
17943 cat >>confdefs.h
<<_ACEOF
17944 #define HAVE_LIBKSTAT 1
17947 LIBS
="-lkstat $LIBS"
17951 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17953 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17954 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17955 # to get the right answer into the cache.
17956 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17957 if test $ac_have_func = no
; then
17958 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17959 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17960 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17961 $as_echo_n "(cached) " >&6
17963 ac_check_lib_save_LIBS
=$LIBS
17965 cat >conftest.
$ac_ext <<_ACEOF
17968 cat confdefs.h
>>conftest.
$ac_ext
17969 cat >>conftest.
$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17982 return elf_begin ();
17987 rm -f conftest.
$ac_objext conftest
$ac_exeext
17988 if { (ac_try
="$ac_link"
17989 case "(($ac_try" in
17990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17994 $as_echo "$ac_try_echo") >&5
17995 (eval "$ac_link") 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } && {
18002 test -z "$ac_c_werror_flag" ||
18003 test ! -s conftest.err
18004 } && test -s conftest$ac_exeext && {
18005 test "$cross_compiling" = yes ||
18006 $as_test_x conftest$ac_exeext
18008 ac_cv_lib_elf_elf_begin=yes
18010 $as_echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_cv_lib_elf_elf_begin=no
18016 rm -rf conftest.dSYM
18017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18022 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18023 if test $ac_cv_lib_elf_elf_begin = yes; then
18028 if test $ac_have_func = no; then
18029 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18030 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18031 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18032 $as_echo_n "(cached) " >&6
18034 ac_check_lib_save_LIBS=$LIBS
18036 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18043 /* Override any GCC internal prototype to avoid an error.
18044 Use char because int might match the return type of a GCC
18045 builtin and then its argument prototype would still apply. */
18053 return kvm_open ();
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (ac_try="$ac_link"
18060 case "(($ac_try" in
18061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18062 *) ac_try_echo
=$ac_try;;
18064 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18065 $as_echo "$ac_try_echo") >&5
18066 (eval "$ac_link") 2>conftest.er1
18068 grep -v '^ *+' conftest.er1
>conftest.err
18070 cat conftest.err
>&5
18071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && {
18073 test -z "$ac_c_werror_flag" ||
18074 test ! -s conftest.err
18075 } && test -s conftest
$ac_exeext && {
18076 test "$cross_compiling" = yes ||
18077 $as_test_x conftest
$ac_exeext
18079 ac_cv_lib_kvm_kvm_open
=yes
18081 $as_echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.
$ac_ext >&5
18084 ac_cv_lib_kvm_kvm_open
=no
18087 rm -rf conftest.dSYM
18088 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18089 conftest
$ac_exeext conftest.
$ac_ext
18090 LIBS
=$ac_check_lib_save_LIBS
18092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18093 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18094 if test $ac_cv_lib_kvm_kvm_open = yes; then
18098 # Check for the 4.4BSD definition of getloadavg.
18099 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18100 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18101 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18102 $as_echo_n "(cached) " >&6
18104 ac_check_lib_save_LIBS
=$LIBS
18105 LIBS
="-lutil $LIBS"
18106 cat >conftest.
$ac_ext <<_ACEOF
18109 cat confdefs.h
>>conftest.
$ac_ext
18110 cat >>conftest.
$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18113 /* Override any GCC internal prototype to avoid an error.
18114 Use char because int might match the return type of a GCC
18115 builtin and then its argument prototype would still apply. */
18119 char getloadavg ();
18123 return getloadavg ();
18128 rm -f conftest.
$ac_objext conftest
$ac_exeext
18129 if { (ac_try
="$ac_link"
18130 case "(($ac_try" in
18131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18135 $as_echo "$ac_try_echo") >&5
18136 (eval "$ac_link") 2>conftest.er1
18138 grep -v '^ *+' conftest.er1 >conftest.err
18140 cat conftest.err >&5
18141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } && {
18143 test -z "$ac_c_werror_flag" ||
18144 test ! -s conftest.err
18145 } && test -s conftest$ac_exeext && {
18146 test "$cross_compiling" = yes ||
18147 $as_test_x conftest$ac_exeext
18149 ac_cv_lib_util_getloadavg=yes
18151 $as_echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 ac_cv_lib_util_getloadavg=no
18157 rm -rf conftest.dSYM
18158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18159 conftest$ac_exeext conftest.$ac_ext
18160 LIBS=$ac_check_lib_save_LIBS
18162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18163 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18164 if test $ac_cv_lib_util_getloadavg = yes; then
18165 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18170 if test $ac_have_func = no; then
18171 # There is a commonly available library for RS/6000 AIX.
18172 # Since it is not a standard part of AIX, it might be installed locally.
18173 ac_getloadavg_LIBS=$LIBS
18174 LIBS="-L/usr/local/lib $LIBS"
18175 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18176 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18177 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18178 $as_echo_n "(cached) " >&6
18180 ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-lgetloadavg $LIBS"
18182 cat >conftest.$ac_ext <<_ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18189 /* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18195 char getloadavg ();
18199 return getloadavg ();
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (ac_try="$ac_link"
18206 case "(($ac_try" in
18207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18208 *) ac_try_echo
=$ac_try;;
18210 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18211 $as_echo "$ac_try_echo") >&5
18212 (eval "$ac_link") 2>conftest.er1
18214 grep -v '^ *+' conftest.er1
>conftest.err
18216 cat conftest.err
>&5
18217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && {
18219 test -z "$ac_c_werror_flag" ||
18220 test ! -s conftest.err
18221 } && test -s conftest
$ac_exeext && {
18222 test "$cross_compiling" = yes ||
18223 $as_test_x conftest
$ac_exeext
18225 ac_cv_lib_getloadavg_getloadavg
=yes
18227 $as_echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.
$ac_ext >&5
18230 ac_cv_lib_getloadavg_getloadavg
=no
18233 rm -rf conftest.dSYM
18234 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18235 conftest
$ac_exeext conftest.
$ac_ext
18236 LIBS
=$ac_check_lib_save_LIBS
18238 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18239 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18240 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18241 LIBS
="-lgetloadavg $LIBS"
18243 LIBS
=$ac_getloadavg_LIBS
18248 # Make sure it is really in the library, if we think we found it,
18249 # otherwise set up the replacement function.
18251 for ac_func
in getloadavg
18253 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18254 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18255 $as_echo_n "checking for $ac_func... " >&6; }
18256 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18257 $as_echo_n "(cached) " >&6
18259 cat >conftest.
$ac_ext <<_ACEOF
18262 cat confdefs.h
>>conftest.
$ac_ext
18263 cat >>conftest.
$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18267 #define $ac_func innocuous_$ac_func
18269 /* System header to define __stub macros and hopefully few prototypes,
18270 which can conflict with char $ac_func (); below.
18271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18272 <limits.h> exists even on freestanding compilers. */
18275 # include <limits.h>
18277 # include <assert.h>
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18289 /* The GNU C library defines this for functions which it implements
18290 to always fail with ENOSYS. Some functions are actually named
18291 something starting with __ and the normal name is an alias. */
18292 #if defined __stub_$ac_func || defined __stub___$ac_func
18299 return $ac_func ();
18304 rm -f conftest.
$ac_objext conftest
$ac_exeext
18305 if { (ac_try
="$ac_link"
18306 case "(($ac_try" in
18307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18311 $as_echo "$ac_try_echo") >&5
18312 (eval "$ac_link") 2>conftest.er1
18314 grep -v '^ *+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } && {
18319 test -z "$ac_c_werror_flag" ||
18320 test ! -s conftest.err
18321 } && test -s conftest$ac_exeext && {
18322 test "$cross_compiling" = yes ||
18323 $as_test_x conftest$ac_exeext
18325 eval "$as_ac_var=yes"
18327 $as_echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 eval "$as_ac_var=no"
18333 rm -rf conftest.dSYM
18334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18335 conftest$ac_exeext conftest.$ac_ext
18337 ac_res=`eval 'as_val=${'$as_ac_var'}
18338 $as_echo "$as_val"'`
18339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18340 $as_echo "$ac_res" >&6; }
18341 if test `eval 'as_val=${'$as_ac_var'}
18342 $as_echo "$as_val"'` = yes; then
18343 cat >>confdefs.h <<_ACEOF
18344 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18348 case " $LIBOBJS " in
18349 *" getloadavg.$ac_objext "* ) ;;
18350 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18355 cat >>confdefs.h <<\_ACEOF
18356 #define C_GETLOADAVG 1
18359 # Figure out what our getloadavg.c needs.
18361 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18362 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18363 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18364 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18365 $as_echo_n "(cached) " >&6
18367 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18368 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18370 # Is the header compilable?
18371 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18372 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18373 cat >conftest.$ac_ext <<_ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 $ac_includes_default
18380 #include <sys/dg_sys_info.h>
18382 rm -f conftest.$ac_objext
18383 if { (ac_try="$ac_compile"
18384 case "(($ac_try" in
18385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18386 *) ac_try_echo
=$ac_try;;
18388 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18389 $as_echo "$ac_try_echo") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18392 grep -v '^ *+' conftest.er1
>conftest.err
18394 cat conftest.err
>&5
18395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.
$ac_objext; then
18400 ac_header_compiler
=yes
18402 $as_echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.
$ac_ext >&5
18405 ac_header_compiler
=no
18408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18409 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18410 $as_echo "$ac_header_compiler" >&6; }
18412 # Is the header present?
18413 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18414 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18415 cat >conftest.
$ac_ext <<_ACEOF
18418 cat confdefs.h
>>conftest.
$ac_ext
18419 cat >>conftest.
$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 #include <sys/dg_sys_info.h>
18423 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18424 case "(($ac_try" in
18425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18429 $as_echo "$ac_try_echo") >&5
18430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18432 grep -v '^ *+' conftest.er1 >conftest.err
18434 cat conftest.err >&5
18435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } >/dev/null && {
18437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18438 test ! -s conftest.err
18440 ac_header_preproc=yes
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 ac_header_preproc=no
18448 rm -f conftest.err conftest.$ac_ext
18449 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18450 $as_echo "$ac_header_preproc" >&6; }
18452 # So? What about this header?
18453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18455 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18456 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18457 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18458 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18459 ac_header_preproc=yes
18462 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18463 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18464 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18465 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18466 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18467 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18468 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18469 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18470 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18471 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18472 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18473 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18477 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18478 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18479 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18480 $as_echo_n "(cached) " >&6
18482 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18485 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18488 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18491 cat >>confdefs.h <<\_ACEOF
18496 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18497 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18498 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18499 $as_echo_n "(cached) " >&6
18501 ac_check_lib_save_LIBS=$LIBS
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18510 /* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18516 char dg_sys_info ();
18520 return dg_sys_info ();
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18529 *) ac_try_echo
=$ac_try;;
18531 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18532 $as_echo "$ac_try_echo") >&5
18533 (eval "$ac_link") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1
>conftest.err
18537 cat conftest.err
>&5
18538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest
$ac_exeext && {
18543 test "$cross_compiling" = yes ||
18544 $as_test_x conftest
$ac_exeext
18546 ac_cv_lib_dgc_dg_sys_info
=yes
18548 $as_echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.
$ac_ext >&5
18551 ac_cv_lib_dgc_dg_sys_info
=no
18554 rm -rf conftest.dSYM
18555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18556 conftest
$ac_exeext conftest.
$ac_ext
18557 LIBS
=$ac_check_lib_save_LIBS
18559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18560 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18561 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18562 cat >>confdefs.h
<<_ACEOF
18563 #define HAVE_LIBDGC 1
18574 if test "${ac_cv_header_locale_h+set}" = set; then
18575 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18576 $as_echo_n "checking for locale.h... " >&6; }
18577 if test "${ac_cv_header_locale_h+set}" = set; then
18578 $as_echo_n "(cached) " >&6
18580 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18581 $as_echo "$ac_cv_header_locale_h" >&6; }
18583 # Is the header compilable?
18584 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18585 $as_echo_n "checking locale.h usability... " >&6; }
18586 cat >conftest.
$ac_ext <<_ACEOF
18589 cat confdefs.h
>>conftest.
$ac_ext
18590 cat >>conftest.
$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 $ac_includes_default
18593 #include <locale.h>
18595 rm -f conftest.
$ac_objext
18596 if { (ac_try
="$ac_compile"
18597 case "(($ac_try" in
18598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603 (eval "$ac_compile") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest.$ac_objext; then
18613 ac_header_compiler=yes
18615 $as_echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18618 ac_header_compiler=no
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18623 $as_echo "$ac_header_compiler" >&6; }
18625 # Is the header present?
18626 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18627 $as_echo_n "checking locale.h presence... " >&6; }
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #include <locale.h>
18636 if { (ac_try="$ac_cpp conftest.$ac_ext"
18637 case "(($ac_try" in
18638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18639 *) ac_try_echo
=$ac_try;;
18641 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18642 $as_echo "$ac_try_echo") >&5
18643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18645 grep -v '^ *+' conftest.er1
>conftest.err
18647 cat conftest.err
>&5
18648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } >/dev
/null
&& {
18650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18651 test ! -s conftest.err
18653 ac_header_preproc
=yes
18655 $as_echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.
$ac_ext >&5
18658 ac_header_preproc
=no
18661 rm -f conftest.err conftest.
$ac_ext
18662 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18663 $as_echo "$ac_header_preproc" >&6; }
18665 # So? What about this header?
18666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18668 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18669 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18670 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18671 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18672 ac_header_preproc
=yes
18675 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18676 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18677 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18678 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18679 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18680 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18681 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18682 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18683 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18684 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18685 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18686 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18690 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18691 $as_echo_n "checking for locale.h... " >&6; }
18692 if test "${ac_cv_header_locale_h+set}" = set; then
18693 $as_echo_n "(cached) " >&6
18695 ac_cv_header_locale_h
=$ac_header_preproc
18697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18698 $as_echo "$ac_cv_header_locale_h" >&6; }
18704 for ac_func
in setlocale
18706 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18708 $as_echo_n "checking for $ac_func... " >&6; }
18709 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18710 $as_echo_n "(cached) " >&6
18712 cat >conftest.
$ac_ext <<_ACEOF
18715 cat confdefs.h
>>conftest.
$ac_ext
18716 cat >>conftest.
$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18720 #define $ac_func innocuous_$ac_func
18722 /* System header to define __stub macros and hopefully few prototypes,
18723 which can conflict with char $ac_func (); below.
18724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18725 <limits.h> exists even on freestanding compilers. */
18728 # include <limits.h>
18730 # include <assert.h>
18735 /* Override any GCC internal prototype to avoid an error.
18736 Use char because int might match the return type of a GCC
18737 builtin and then its argument prototype would still apply. */
18742 /* The GNU C library defines this for functions which it implements
18743 to always fail with ENOSYS. Some functions are actually named
18744 something starting with __ and the normal name is an alias. */
18745 #if defined __stub_$ac_func || defined __stub___$ac_func
18752 return $ac_func ();
18757 rm -f conftest.
$ac_objext conftest
$ac_exeext
18758 if { (ac_try
="$ac_link"
18759 case "(($ac_try" in
18760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18764 $as_echo "$ac_try_echo") >&5
18765 (eval "$ac_link") 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest$ac_exeext && {
18775 test "$cross_compiling" = yes ||
18776 $as_test_x conftest$ac_exeext
18778 eval "$as_ac_var=yes"
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 eval "$as_ac_var=no"
18786 rm -rf conftest.dSYM
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18790 ac_res=`eval 'as_val=${'$as_ac_var'}
18791 $as_echo "$as_val"'`
18792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18793 $as_echo "$ac_res" >&6; }
18794 if test `eval 'as_val=${'$as_ac_var'}
18795 $as_echo "$as_val"'` = yes; then
18796 cat >>confdefs.h <<_ACEOF
18797 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18804 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18805 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18806 # Irix 4.0.5F has the header but not the library.
18807 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18810 cat >>confdefs.h <<\_ACEOF
18816 if test $ac_have_func = no; then
18817 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18818 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18819 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18820 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18821 $as_echo_n "(cached) " >&6
18823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18824 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18826 # Is the header compilable?
18827 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18828 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 #include <inq_stats/cpustats.h>
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18842 *) ac_try_echo
=$ac_try;;
18844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_compile") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1
>conftest.err
18850 cat conftest.err
>&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest.
$ac_objext; then
18856 ac_header_compiler
=yes
18858 $as_echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.
$ac_ext >&5
18861 ac_header_compiler
=no
18864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18866 $as_echo "$ac_header_compiler" >&6; }
18868 # Is the header present?
18869 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18870 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18871 cat >conftest.
$ac_ext <<_ACEOF
18874 cat confdefs.h
>>conftest.
$ac_ext
18875 cat >>conftest.
$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18877 #include <inq_stats/cpustats.h>
18879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18880 case "(($ac_try" in
18881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18885 $as_echo "$ac_try_echo") >&5
18886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18888 grep -v '^ *+' conftest.er1 >conftest.err
18890 cat conftest.err >&5
18891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } >/dev/null && {
18893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18894 test ! -s conftest.err
18896 ac_header_preproc=yes
18898 $as_echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_preproc=no
18904 rm -f conftest.err conftest.$ac_ext
18905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18906 $as_echo "$ac_header_preproc" >&6; }
18908 # So? What about this header?
18909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18911 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18912 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18913 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18914 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18915 ac_header_preproc=yes
18918 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18919 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18922 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18923 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18924 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18925 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18926 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18927 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18928 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18929 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18933 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18934 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18935 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18936 $as_echo_n "(cached) " >&6
18938 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18941 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18944 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18947 cat >>confdefs.h <<\_ACEOF
18952 cat >>confdefs.h <<\_ACEOF
18961 if test $ac_have_func = no; then
18962 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18963 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18964 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18965 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18966 $as_echo_n "(cached) " >&6
18968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18969 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18971 # Is the header compilable?
18972 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18973 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 $ac_includes_default
18981 #include <sys/cpustats.h>
18983 rm -f conftest.$ac_objext
18984 if { (ac_try="$ac_compile"
18985 case "(($ac_try" in
18986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18987 *) ac_try_echo
=$ac_try;;
18989 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18990 $as_echo "$ac_try_echo") >&5
18991 (eval "$ac_compile") 2>conftest.er1
18993 grep -v '^ *+' conftest.er1
>conftest.err
18995 cat conftest.err
>&5
18996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } && {
18998 test -z "$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 } && test -s conftest.
$ac_objext; then
19001 ac_header_compiler
=yes
19003 $as_echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.
$ac_ext >&5
19006 ac_header_compiler
=no
19009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19011 $as_echo "$ac_header_compiler" >&6; }
19013 # Is the header present?
19014 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19015 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19016 cat >conftest.
$ac_ext <<_ACEOF
19019 cat confdefs.h
>>conftest.
$ac_ext
19020 cat >>conftest.
$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <sys/cpustats.h>
19024 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19025 case "(($ac_try" in
19026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19030 $as_echo "$ac_try_echo") >&5
19031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19033 grep -v '^ *+' conftest.er1 >conftest.err
19035 cat conftest.err >&5
19036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } >/dev/null && {
19038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19041 ac_header_preproc=yes
19043 $as_echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_header_preproc=no
19049 rm -f conftest.err conftest.$ac_ext
19050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19051 $as_echo "$ac_header_preproc" >&6; }
19053 # So? What about this header?
19054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19056 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19057 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19058 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19059 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19060 ac_header_preproc=yes
19063 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19064 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19066 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19067 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19068 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19069 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19070 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19071 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19072 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19073 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19074 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19078 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19079 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19080 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19081 $as_echo_n "(cached) " >&6
19083 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19085 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19086 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19089 if test $ac_cv_header_sys_cpustats_h = yes; then
19090 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19099 if test $ac_have_func = no; then
19101 for ac_header in mach/mach.h
19103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 $as_echo_n "checking for $ac_header... " >&6; }
19107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19108 $as_echo_n "(cached) " >&6
19110 ac_res=`eval 'as_val=${'$as_ac_Header'}
19111 $as_echo "$as_val"'`
19112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
19115 # Is the header compilable?
19116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19117 $as_echo_n "checking $ac_header usability... " >&6; }
19118 cat >conftest.$ac_ext <<_ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <$ac_header>
19127 rm -f conftest.$ac_objext
19128 if { (ac_try="$ac_compile"
19129 case "(($ac_try" in
19130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19131 *) ac_try_echo
=$ac_try;;
19133 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19134 $as_echo "$ac_try_echo") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19137 grep -v '^ *+' conftest.er1
>conftest.err
19139 cat conftest.err
>&5
19140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.
$ac_objext; then
19145 ac_header_compiler
=yes
19147 $as_echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.
$ac_ext >&5
19150 ac_header_compiler
=no
19153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19155 $as_echo "$ac_header_compiler" >&6; }
19157 # Is the header present?
19158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19159 $as_echo_n "checking $ac_header presence... " >&6; }
19160 cat >conftest.
$ac_ext <<_ACEOF
19163 cat confdefs.h
>>conftest.
$ac_ext
19164 cat >>conftest.
$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <$ac_header>
19168 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19169 case "(($ac_try" in
19170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19174 $as_echo "$ac_try_echo") >&5
19175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1 >conftest.err
19179 cat conftest.err >&5
19180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } >/dev/null && {
19182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19185 ac_header_preproc=yes
19187 $as_echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19190 ac_header_preproc=no
19193 rm -f conftest.err conftest.$ac_ext
19194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19195 $as_echo "$ac_header_preproc" >&6; }
19197 # So? What about this header?
19198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19204 ac_header_preproc=yes
19207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19223 $as_echo_n "checking for $ac_header... " >&6; }
19224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19225 $as_echo_n "(cached) " >&6
19227 eval "$as_ac_Header=\$ac_header_preproc"
19229 ac_res=`eval 'as_val=${'$as_ac_Header'}
19230 $as_echo "$as_val"'`
19231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19232 $as_echo "$ac_res" >&6; }
19235 if test `eval 'as_val=${'$as_ac_Header'}
19236 $as_echo "$as_val"'` = yes; then
19237 cat >>confdefs.h <<_ACEOF
19238 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19248 for ac_header in nlist.h
19250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19253 $as_echo_n "checking for $ac_header... " >&6; }
19254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19255 $as_echo_n "(cached) " >&6
19257 ac_res=`eval 'as_val=${'$as_ac_Header'}
19258 $as_echo "$as_val"'`
19259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19260 $as_echo "$ac_res" >&6; }
19262 # Is the header compilable?
19263 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19264 $as_echo_n "checking $ac_header usability... " >&6; }
19265 cat >conftest.$ac_ext <<_ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 $ac_includes_default
19272 #include <$ac_header>
19274 rm -f conftest.$ac_objext
19275 if { (ac_try="$ac_compile"
19276 case "(($ac_try" in
19277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19278 *) ac_try_echo
=$ac_try;;
19280 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19281 $as_echo "$ac_try_echo") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19284 grep -v '^ *+' conftest.er1
>conftest.err
19286 cat conftest.err
>&5
19287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest.
$ac_objext; then
19292 ac_header_compiler
=yes
19294 $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.
$ac_ext >&5
19297 ac_header_compiler
=no
19300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19302 $as_echo "$ac_header_compiler" >&6; }
19304 # Is the header present?
19305 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19306 $as_echo_n "checking $ac_header presence... " >&6; }
19307 cat >conftest.
$ac_ext <<_ACEOF
19310 cat confdefs.h
>>conftest.
$ac_ext
19311 cat >>conftest.
$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <$ac_header>
19315 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19316 case "(($ac_try" in
19317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } >/dev/null && {
19329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19332 ac_header_preproc=yes
19334 $as_echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_header_preproc=no
19340 rm -f conftest.err conftest.$ac_ext
19341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19342 $as_echo "$ac_header_preproc" >&6; }
19344 # So? What about this header?
19345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19348 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19351 ac_header_preproc=yes
19354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19355 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19357 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19359 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19361 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19365 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19370 $as_echo_n "checking for $ac_header... " >&6; }
19371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19372 $as_echo_n "(cached) " >&6
19374 eval "$as_ac_Header=\$ac_header_preproc"
19376 ac_res=`eval 'as_val=${'$as_ac_Header'}
19377 $as_echo "$as_val"'`
19378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19379 $as_echo "$ac_res" >&6; }
19382 if test `eval 'as_val=${'$as_ac_Header'}
19383 $as_echo "$as_val"'` = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19387 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19388 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19389 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19390 $as_echo_n "(cached) " >&6
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19403 static struct nlist ac_aggr;
19404 if (ac_aggr.n_un.n_name)
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19414 *) ac_try_echo
=$ac_try;;
19416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19417 $as_echo "$ac_try_echo") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19420 grep -v '^ *+' conftest.er1
>conftest.err
19422 cat conftest.err
>&5
19423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest.
$ac_objext; then
19428 ac_cv_member_struct_nlist_n_un_n_name
=yes
19430 $as_echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.
$ac_ext >&5
19433 cat >conftest.
$ac_ext <<_ACEOF
19436 cat confdefs.h
>>conftest.
$ac_ext
19437 cat >>conftest.
$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19444 static struct nlist ac_aggr;
19445 if (sizeof ac_aggr.n_un.n_name)
19451 rm -f conftest.
$ac_objext
19452 if { (ac_try
="$ac_compile"
19453 case "(($ac_try" in
19454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19458 $as_echo "$ac_try_echo") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest.$ac_objext; then
19469 ac_cv_member_struct_nlist_n_un_n_name=yes
19471 $as_echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_member_struct_nlist_n_un_n_name=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19483 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19484 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19491 cat >>confdefs.h <<\_ACEOF
19492 #define NLIST_NAME_UNION 1
19506 # Some definitions of getloadavg require that the program be installed setgid.
19507 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19508 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19509 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19510 $as_echo_n "(cached) " >&6
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19518 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19519 #ifdef LDAV_PRIVILEGED
19520 Yowza Am I SETGID yet
19523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19524 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19525 ac_cv_func_getloadavg_setgid=yes
19527 ac_cv_func_getloadavg_setgid=no
19532 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19533 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19534 if test $ac_cv_func_getloadavg_setgid = yes; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define GETLOADAVG_PRIVILEGED 1
19545 if test $ac_cv_func_getloadavg_setgid = yes; then
19546 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19547 $as_echo_n "checking group of /dev/kmem... " >&6; }
19548 if test "${ac_cv_group_kmem+set}" = set; then
19549 $as_echo_n "(cached) " >&6
19551 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19552 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
19553 # If we got an error (system does not support symlinks), try without -L.
19554 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
19555 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19556 |
sed -ne 's/[ ][ ]*/ /g;
19557 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19561 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19562 $as_echo "$ac_cv_group_kmem" >&6; }
19563 KMEM_GROUP=$ac_cv_group_kmem
19565 if test "x$ac_save_LIBS" = x; then
19566 GETLOADAVG_LIBS=$LIBS
19568 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
19574 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19575 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19576 if test "${ac_cv_sys_largefile_source+set}" = set; then
19577 $as_echo_n "(cached) " >&6
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <sys/types.h> /* for off_t */
19591 int (*fp) (FILE *, off_t, int) = fseeko;
19592 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19601 *) ac_try_echo
=$ac_try;;
19603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19604 $as_echo "$ac_try_echo") >&5
19605 (eval "$ac_link") 2>conftest.er1
19607 grep -v '^ *+' conftest.er1
>conftest.err
19609 cat conftest.err
>&5
19610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest
$ac_exeext && {
19615 test "$cross_compiling" = yes ||
19616 $as_test_x conftest
$ac_exeext
19618 ac_cv_sys_largefile_source
=no
; break
19620 $as_echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.
$ac_ext >&5
19626 rm -rf conftest.dSYM
19627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19628 conftest
$ac_exeext conftest.
$ac_ext
19629 cat >conftest.
$ac_ext <<_ACEOF
19632 cat confdefs.h
>>conftest.
$ac_ext
19633 cat >>conftest.
$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 #define _LARGEFILE_SOURCE 1
19636 #include <sys/types.h> /* for off_t */
19641 int (*fp) (FILE *, off_t, int) = fseeko;
19642 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19647 rm -f conftest.
$ac_objext conftest
$ac_exeext
19648 if { (ac_try
="$ac_link"
19649 case "(($ac_try" in
19650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19654 $as_echo "$ac_try_echo") >&5
19655 (eval "$ac_link") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest$ac_exeext && {
19665 test "$cross_compiling" = yes ||
19666 $as_test_x conftest$ac_exeext
19668 ac_cv_sys_largefile_source=1; break
19670 $as_echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19676 rm -rf conftest.dSYM
19677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19678 conftest$ac_exeext conftest.$ac_ext
19679 ac_cv_sys_largefile_source=unknown
19683 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19684 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19685 case $ac_cv_sys_largefile_source in #(
19688 cat >>confdefs.h <<_ACEOF
19689 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19695 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19696 # in glibc 2.1.3, but that breaks too many other things.
19697 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19698 if test $ac_cv_sys_largefile_source != unknown; then
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE_FSEEKO 1
19707 # Configure getopt.
19708 # getopt.m4 serial 10
19710 # The getopt module assume you want GNU getopt, with getopt_long etc,
19711 # rather than vanilla POSIX getopt. This means your your code should
19712 # always include <getopt.h> for the getopt prototypes.
19724 # Prerequisites of lib/getopt*.
19731 for ac_header in getopt.h
19733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 $as_echo_n "checking for $ac_header... " >&6; }
19737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19738 $as_echo_n "(cached) " >&6
19740 ac_res=`eval 'as_val=${'$as_ac_Header'}
19741 $as_echo "$as_val"'`
19742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19743 $as_echo "$ac_res" >&6; }
19745 # Is the header compilable?
19746 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19747 $as_echo_n "checking $ac_header usability... " >&6; }
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19755 #include <$ac_header>
19757 rm -f conftest.$ac_objext
19758 if { (ac_try="$ac_compile"
19759 case "(($ac_try" in
19760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19761 *) ac_try_echo
=$ac_try;;
19763 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19764 $as_echo "$ac_try_echo") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1
>conftest.err
19769 cat conftest.err
>&5
19770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest.
$ac_objext; then
19775 ac_header_compiler
=yes
19777 $as_echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.
$ac_ext >&5
19780 ac_header_compiler
=no
19783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19784 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 $as_echo "$ac_header_compiler" >&6; }
19787 # Is the header present?
19788 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 $as_echo_n "checking $ac_header presence... " >&6; }
19790 cat >conftest.
$ac_ext <<_ACEOF
19793 cat confdefs.h
>>conftest.
$ac_ext
19794 cat >>conftest.
$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <$ac_header>
19798 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19799 case "(($ac_try" in
19800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } >/dev/null && {
19812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19815 ac_header_preproc=yes
19817 $as_echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_header_preproc=no
19823 rm -f conftest.err conftest.$ac_ext
19824 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19825 $as_echo "$ac_header_preproc" >&6; }
19827 # So? What about this header?
19828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19833 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19834 ac_header_preproc=yes
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19848 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19853 $as_echo_n "checking for $ac_header... " >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 $as_echo_n "(cached) " >&6
19857 eval "$as_ac_Header=\$ac_header_preproc"
19859 ac_res=`eval 'as_val=${'$as_ac_Header'}
19860 $as_echo "$as_val"'`
19861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19862 $as_echo "$ac_res" >&6; }
19865 if test `eval 'as_val=${'$as_ac_Header'}
19866 $as_echo "$as_val"'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19877 if test -z "$GETOPT_H"; then
19879 for ac_func in getopt_long_only
19881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19882 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19883 $as_echo_n "checking for $ac_func... " >&6; }
19884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19885 $as_echo_n "(cached) " >&6
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19895 #define $ac_func innocuous_$ac_func
19897 /* System header to define __stub macros and hopefully few prototypes,
19898 which can conflict with char $ac_func (); below.
19899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19900 <limits.h> exists even on freestanding compilers. */
19903 # include <limits.h>
19905 # include <assert.h>
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19917 /* The GNU C library defines this for functions which it implements
19918 to always fail with ENOSYS. Some functions are actually named
19919 something starting with __ and the normal name is an alias. */
19920 #if defined __stub_$ac_func || defined __stub___$ac_func
19927 return $ac_func ();
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19936 *) ac_try_echo
=$ac_try;;
19938 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19939 $as_echo "$ac_try_echo") >&5
19940 (eval "$ac_link") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1
>conftest.err
19944 cat conftest.err
>&5
19945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest
$ac_exeext && {
19950 test "$cross_compiling" = yes ||
19951 $as_test_x conftest
$ac_exeext
19953 eval "$as_ac_var=yes"
19955 $as_echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.
$ac_ext >&5
19958 eval "$as_ac_var=no"
19961 rm -rf conftest.dSYM
19962 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19963 conftest
$ac_exeext conftest.
$ac_ext
19965 ac_res
=`eval 'as_val=${'$as_ac_var'}
19966 $as_echo "$as_val"'`
19967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19968 $as_echo "$ac_res" >&6; }
19969 if test `eval 'as_val=${'$as_ac_var'}
19970 $as_echo "$as_val"'` = yes; then
19971 cat >>confdefs.h
<<_ACEOF
19972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19982 if test -z "$GETOPT_H"; then
19983 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19984 $as_echo_n "checking whether optreset is declared... " >&6; }
19985 if test "${ac_cv_have_decl_optreset+set}" = set; then
19986 $as_echo_n "(cached) " >&6
19988 cat >conftest.
$ac_ext <<_ACEOF
19991 cat confdefs.h
>>conftest.
$ac_ext
19992 cat >>conftest.
$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 #include <getopt.h>
20007 rm -f conftest.
$ac_objext
20008 if { (ac_try
="$ac_compile"
20009 case "(($ac_try" in
20010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20014 $as_echo "$ac_try_echo") >&5
20015 (eval "$ac_compile") 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && {
20022 test -z "$ac_c_werror_flag" ||
20023 test ! -s conftest.err
20024 } && test -s conftest.$ac_objext; then
20025 ac_cv_have_decl_optreset=yes
20027 $as_echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_have_decl_optreset=no
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20036 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20037 if test $ac_cv_have_decl_optreset = yes; then
20043 if test -z "$GETOPT_H"; then
20044 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20045 $as_echo_n "checking for working GNU getopt function... " >&6; }
20046 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20047 $as_echo_n "(cached) " >&6
20049 if test "$cross_compiling" = yes; then
20050 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20051 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20052 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20053 $as_echo_n "(cached) " >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 #include <getopt.h>
20066 #ifndef getopt_clip
20067 (void) getopt_clip;
20074 rm -f conftest.$ac_objext
20075 if { (ac_try="$ac_compile"
20076 case "(($ac_try" in
20077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20078 *) ac_try_echo
=$ac_try;;
20080 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20081 $as_echo "$ac_try_echo") >&5
20082 (eval "$ac_compile") 2>conftest.er1
20084 grep -v '^ *+' conftest.er1
>conftest.err
20086 cat conftest.err
>&5
20087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest.
$ac_objext; then
20092 ac_cv_have_decl_getopt_clip
=yes
20094 $as_echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.
$ac_ext >&5
20097 ac_cv_have_decl_getopt_clip
=no
20100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20102 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20103 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20104 if test $ac_cv_have_decl_getopt_clip = yes; then
20105 gl_cv_func_gnu_getopt
=no
20107 gl_cv_func_gnu_getopt
=yes
20111 cat >conftest.
$ac_ext <<_ACEOF
20114 cat confdefs.h
>>conftest.
$ac_ext
20115 cat >>conftest.
$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 #include <getopt.h>
20123 myargv[0] = "conftest";
20126 return getopt (2, myargv, "+a") != '?';
20132 rm -f conftest
$ac_exeext
20133 if { (ac_try
="$ac_link"
20134 case "(($ac_try" in
20135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20139 $as_echo "$ac_try_echo") >&5
20140 (eval "$ac_link") 2>&5
20142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20146 *) ac_try_echo
=$ac_try;;
20148 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20149 $as_echo "$ac_try_echo") >&5
20150 (eval "$ac_try") 2>&5
20152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 gl_cv_func_gnu_getopt
=yes
20156 $as_echo "$as_me: program exited with status $ac_status" >&5
20157 $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.
$ac_ext >&5
20160 ( exit $ac_status )
20161 gl_cv_func_gnu_getopt
=no
20163 rm -rf conftest.dSYM
20164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20169 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20170 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20171 if test "$gl_cv_func_gnu_getopt" = "no"; then
20178 if test -n "$GETOPT_H"; then
20183 cat >>confdefs.h
<<\_ACEOF
20184 #define __GETOPT_PREFIX rpl_
20190 GETOPTOBJS
='getopt.o getopt1.o'
20197 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20198 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20199 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20200 $as_echo_n "(cached) " >&6
20202 # Use it with a single arg.
20203 cat >conftest.
$ac_ext <<_ACEOF
20206 cat confdefs.h
>>conftest.
$ac_ext
20207 cat >>conftest.
$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 $ac_includes_default
20218 rm -f conftest.
$ac_objext
20219 if { (ac_try
="$ac_compile"
20220 case "(($ac_try" in
20221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20228 grep -v '^ *+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
20236 ac_cv_func_getpgrp_void=no
20238 $as_echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_cv_func_getpgrp_void=yes
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20248 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20249 if test $ac_cv_func_getpgrp_void = yes; then
20251 cat >>confdefs.h <<\_ACEOF
20252 #define GETPGRP_VOID 1
20259 for ac_func in strftime
20261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20263 $as_echo_n "checking for $ac_func... " >&6; }
20264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20265 $as_echo_n "(cached) " >&6
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20275 #define $ac_func innocuous_$ac_func
20277 /* System header to define __stub macros and hopefully few prototypes,
20278 which can conflict with char $ac_func (); below.
20279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20280 <limits.h> exists even on freestanding compilers. */
20283 # include <limits.h>
20285 # include <assert.h>
20290 /* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20297 /* The GNU C library defines this for functions which it implements
20298 to always fail with ENOSYS. Some functions are actually named
20299 something starting with __ and the normal name is an alias. */
20300 #if defined __stub_$ac_func || defined __stub___$ac_func
20307 return $ac_func ();
20312 rm -f conftest.$ac_objext conftest$ac_exeext
20313 if { (ac_try="$ac_link"
20314 case "(($ac_try" in
20315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20316 *) ac_try_echo
=$ac_try;;
20318 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20319 $as_echo "$ac_try_echo") >&5
20320 (eval "$ac_link") 2>conftest.er1
20322 grep -v '^ *+' conftest.er1
>conftest.err
20324 cat conftest.err
>&5
20325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && {
20327 test -z "$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 } && test -s conftest
$ac_exeext && {
20330 test "$cross_compiling" = yes ||
20331 $as_test_x conftest
$ac_exeext
20333 eval "$as_ac_var=yes"
20335 $as_echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.
$ac_ext >&5
20338 eval "$as_ac_var=no"
20341 rm -rf conftest.dSYM
20342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20343 conftest
$ac_exeext conftest.
$ac_ext
20345 ac_res
=`eval 'as_val=${'$as_ac_var'}
20346 $as_echo "$as_val"'`
20347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20348 $as_echo "$ac_res" >&6; }
20349 if test `eval 'as_val=${'$as_ac_var'}
20350 $as_echo "$as_val"'` = yes; then
20351 cat >>confdefs.h
<<_ACEOF
20352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20356 # strftime is in -lintl on SCO UNIX.
20357 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20358 $as_echo_n "checking for strftime in -lintl... " >&6; }
20359 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20360 $as_echo_n "(cached) " >&6
20362 ac_check_lib_save_LIBS
=$LIBS
20363 LIBS
="-lintl $LIBS"
20364 cat >conftest.
$ac_ext <<_ACEOF
20367 cat confdefs.h
>>conftest.
$ac_ext
20368 cat >>conftest.
$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20371 /* Override any GCC internal prototype to avoid an error.
20372 Use char because int might match the return type of a GCC
20373 builtin and then its argument prototype would still apply. */
20381 return strftime ();
20386 rm -f conftest.
$ac_objext conftest
$ac_exeext
20387 if { (ac_try
="$ac_link"
20388 case "(($ac_try" in
20389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20393 $as_echo "$ac_try_echo") >&5
20394 (eval "$ac_link") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext && {
20404 test "$cross_compiling" = yes ||
20405 $as_test_x conftest$ac_exeext
20407 ac_cv_lib_intl_strftime=yes
20409 $as_echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_lib_intl_strftime=no
20415 rm -rf conftest.dSYM
20416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20417 conftest$ac_exeext conftest.$ac_ext
20418 LIBS=$ac_check_lib_save_LIBS
20420 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20421 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20422 if test $ac_cv_lib_intl_strftime = yes; then
20423 cat >>confdefs.h <<\_ACEOF
20424 #define HAVE_STRFTIME 1
20427 LIBS="-lintl $LIBS"
20436 for ac_func in grantpt
20438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20439 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20440 $as_echo_n "checking for $ac_func... " >&6; }
20441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20442 $as_echo_n "(cached) " >&6
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20452 #define $ac_func innocuous_$ac_func
20454 /* System header to define __stub macros and hopefully few prototypes,
20455 which can conflict with char $ac_func (); below.
20456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20457 <limits.h> exists even on freestanding compilers. */
20460 # include <limits.h>
20462 # include <assert.h>
20467 /* Override any GCC internal prototype to avoid an error.
20468 Use char because int might match the return type of a GCC
20469 builtin and then its argument prototype would still apply. */
20474 /* The GNU C library defines this for functions which it implements
20475 to always fail with ENOSYS. Some functions are actually named
20476 something starting with __ and the normal name is an alias. */
20477 #if defined __stub_$ac_func || defined __stub___$ac_func
20484 return $ac_func ();
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20493 *) ac_try_echo
=$ac_try;;
20495 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20496 $as_echo "$ac_try_echo") >&5
20497 (eval "$ac_link") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1
>conftest.err
20501 cat conftest.err
>&5
20502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest
$ac_exeext && {
20507 test "$cross_compiling" = yes ||
20508 $as_test_x conftest
$ac_exeext
20510 eval "$as_ac_var=yes"
20512 $as_echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.
$ac_ext >&5
20515 eval "$as_ac_var=no"
20518 rm -rf conftest.dSYM
20519 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20520 conftest
$ac_exeext conftest.
$ac_ext
20522 ac_res
=`eval 'as_val=${'$as_ac_var'}
20523 $as_echo "$as_val"'`
20524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20525 $as_echo "$ac_res" >&6; }
20526 if test `eval 'as_val=${'$as_ac_var'}
20527 $as_echo "$as_val"'` = yes; then
20528 cat >>confdefs.h
<<_ACEOF
20529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20536 # PTY-related GNU extensions.
20538 for ac_func
in getpt
20540 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20542 $as_echo_n "checking for $ac_func... " >&6; }
20543 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20544 $as_echo_n "(cached) " >&6
20546 cat >conftest.
$ac_ext <<_ACEOF
20549 cat confdefs.h
>>conftest.
$ac_ext
20550 cat >>conftest.
$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20554 #define $ac_func innocuous_$ac_func
20556 /* System header to define __stub macros and hopefully few prototypes,
20557 which can conflict with char $ac_func (); below.
20558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20559 <limits.h> exists even on freestanding compilers. */
20562 # include <limits.h>
20564 # include <assert.h>
20569 /* Override any GCC internal prototype to avoid an error.
20570 Use char because int might match the return type of a GCC
20571 builtin and then its argument prototype would still apply. */
20576 /* The GNU C library defines this for functions which it implements
20577 to always fail with ENOSYS. Some functions are actually named
20578 something starting with __ and the normal name is an alias. */
20579 #if defined __stub_$ac_func || defined __stub___$ac_func
20586 return $ac_func ();
20591 rm -f conftest.
$ac_objext conftest
$ac_exeext
20592 if { (ac_try
="$ac_link"
20593 case "(($ac_try" in
20594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20598 $as_echo "$ac_try_echo") >&5
20599 (eval "$ac_link") 2>conftest.er1
20601 grep -v '^ *+' conftest.er1 >conftest.err
20603 cat conftest.err >&5
20604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && {
20606 test -z "$ac_c_werror_flag" ||
20607 test ! -s conftest.err
20608 } && test -s conftest$ac_exeext && {
20609 test "$cross_compiling" = yes ||
20610 $as_test_x conftest$ac_exeext
20612 eval "$as_ac_var=yes"
20614 $as_echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 eval "$as_ac_var=no"
20620 rm -rf conftest.dSYM
20621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20622 conftest$ac_exeext conftest.$ac_ext
20624 ac_res=`eval 'as_val=${'$as_ac_var'}
20625 $as_echo "$as_val"'`
20626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20627 $as_echo "$ac_res" >&6; }
20628 if test `eval 'as_val=${'$as_ac_var'}
20629 $as_echo "$as_val"'` = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20638 # Check this now, so that we will NOT find the above functions in ncurses.
20639 # That is because we have not set up to link ncurses in lib-src.
20640 # It's better to believe a function is not available
20641 # than to expect to find it in ncurses.
20643 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20644 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20645 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20646 $as_echo_n "(cached) " >&6
20648 ac_check_lib_save_LIBS=$LIBS
20649 LIBS="-lncurses $LIBS"
20650 cat >conftest.$ac_ext <<_ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20657 /* Override any GCC internal prototype to avoid an error.
20658 Use char because int might match the return type of a GCC
20659 builtin and then its argument prototype would still apply. */
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20676 *) ac_try_echo
=$ac_try;;
20678 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20679 $as_echo "$ac_try_echo") >&5
20680 (eval "$ac_link") 2>conftest.er1
20682 grep -v '^ *+' conftest.er1
>conftest.err
20684 cat conftest.err
>&5
20685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } && {
20687 test -z "$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 } && test -s conftest
$ac_exeext && {
20690 test "$cross_compiling" = yes ||
20691 $as_test_x conftest
$ac_exeext
20693 ac_cv_lib_ncurses_tparm
=yes
20695 $as_echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.
$ac_ext >&5
20698 ac_cv_lib_ncurses_tparm
=no
20701 rm -rf conftest.dSYM
20702 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20703 conftest
$ac_exeext conftest.
$ac_ext
20704 LIBS
=$ac_check_lib_save_LIBS
20706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20707 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20708 if test $ac_cv_lib_ncurses_tparm = yes; then
20709 cat >>confdefs.h
<<_ACEOF
20710 #define HAVE_LIBNCURSES 1
20713 LIBS
="-lncurses $LIBS"
20718 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20721 cat >conftest.
$ac_ext <<_ACEOF
20724 cat confdefs.h
>>conftest.
$ac_ext
20725 cat >>conftest.
$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <netinet/in.h>
20728 #include <arpa/nameser.h>
20729 #include <resolv.h>
20738 rm -f conftest.
$ac_objext conftest
$ac_exeext
20739 if { (ac_try
="$ac_link"
20740 case "(($ac_try" in
20741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20745 $as_echo "$ac_try_echo") >&5
20746 (eval "$ac_link") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest$ac_exeext && {
20756 test "$cross_compiling" = yes ||
20757 $as_test_x conftest$ac_exeext
20761 $as_echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20767 rm -rf conftest.dSYM
20768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20769 conftest$ac_exeext conftest.$ac_ext
20770 if test "$have_res_init" = no; then
20772 LIBS="$LIBS -lresolv"
20773 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20774 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20775 cat >conftest.$ac_ext <<_ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 #include <netinet/in.h>
20782 #include <arpa/nameser.h>
20783 #include <resolv.h>
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20796 *) ac_try_echo
=$ac_try;;
20798 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_link") 2>conftest.er1
20802 grep -v '^ *+' conftest.er1
>conftest.err
20804 cat conftest.err
>&5
20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest
$ac_exeext && {
20810 test "$cross_compiling" = yes ||
20811 $as_test_x conftest
$ac_exeext
20815 $as_echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.
$ac_ext >&5
20821 rm -rf conftest.dSYM
20822 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20823 conftest
$ac_exeext conftest.
$ac_ext
20824 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20825 $as_echo "$have_res_init" >&6; }
20826 if test "$have_res_init" = yes ; then
20832 if test "$have_res_init" = yes; then
20834 cat >>confdefs.h
<<\_ACEOF
20835 #define HAVE_RES_INIT 1
20840 # Do we need the Hesiod library to provide the support routines?
20841 if test "$with_hesiod" != no
; then
20842 # Don't set $LIBS here -- see comments above.
20843 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20844 $as_echo_n "checking for res_send... " >&6; }
20845 if test "${ac_cv_func_res_send+set}" = set; then
20846 $as_echo_n "(cached) " >&6
20848 cat >conftest.
$ac_ext <<_ACEOF
20851 cat confdefs.h
>>conftest.
$ac_ext
20852 cat >>conftest.
$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20856 #define res_send innocuous_res_send
20858 /* System header to define __stub macros and hopefully few prototypes,
20859 which can conflict with char res_send (); below.
20860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20861 <limits.h> exists even on freestanding compilers. */
20864 # include <limits.h>
20866 # include <assert.h>
20871 /* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20878 /* The GNU C library defines this for functions which it implements
20879 to always fail with ENOSYS. Some functions are actually named
20880 something starting with __ and the normal name is an alias. */
20881 #if defined __stub_res_send || defined __stub___res_send
20888 return res_send ();
20893 rm -f conftest.
$ac_objext conftest
$ac_exeext
20894 if { (ac_try
="$ac_link"
20895 case "(($ac_try" in
20896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_link") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest$ac_exeext && {
20911 test "$cross_compiling" = yes ||
20912 $as_test_x conftest$ac_exeext
20914 ac_cv_func_res_send=yes
20916 $as_echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_func_res_send=no
20922 rm -rf conftest.dSYM
20923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924 conftest$ac_exeext conftest.$ac_ext
20926 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20927 $as_echo "$ac_cv_func_res_send" >&6; }
20928 if test $ac_cv_func_res_send = yes; then
20931 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20932 $as_echo_n "checking for __res_send... " >&6; }
20933 if test "${ac_cv_func___res_send+set}" = set; then
20934 $as_echo_n "(cached) " >&6
20936 cat >conftest.$ac_ext <<_ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20944 #define __res_send innocuous___res_send
20946 /* System header to define __stub macros and hopefully few prototypes,
20947 which can conflict with char __res_send (); below.
20948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20949 <limits.h> exists even on freestanding compilers. */
20952 # include <limits.h>
20954 # include <assert.h>
20959 /* Override any GCC internal prototype to avoid an error.
20960 Use char because int might match the return type of a GCC
20961 builtin and then its argument prototype would still apply. */
20965 char __res_send ();
20966 /* The GNU C library defines this for functions which it implements
20967 to always fail with ENOSYS. Some functions are actually named
20968 something starting with __ and the normal name is an alias. */
20969 #if defined __stub___res_send || defined __stub_____res_send
20976 return __res_send ();
20981 rm -f conftest.$ac_objext conftest$ac_exeext
20982 if { (ac_try="$ac_link"
20983 case "(($ac_try" in
20984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20985 *) ac_try_echo
=$ac_try;;
20987 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20988 $as_echo "$ac_try_echo") >&5
20989 (eval "$ac_link") 2>conftest.er1
20991 grep -v '^ *+' conftest.er1
>conftest.err
20993 cat conftest.err
>&5
20994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } && {
20996 test -z "$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20998 } && test -s conftest
$ac_exeext && {
20999 test "$cross_compiling" = yes ||
21000 $as_test_x conftest
$ac_exeext
21002 ac_cv_func___res_send
=yes
21004 $as_echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.
$ac_ext >&5
21007 ac_cv_func___res_send
=no
21010 rm -rf conftest.dSYM
21011 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21012 conftest
$ac_exeext conftest.
$ac_ext
21014 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21015 $as_echo "$ac_cv_func___res_send" >&6; }
21016 if test $ac_cv_func___res_send = yes; then
21019 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21020 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21021 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21022 $as_echo_n "(cached) " >&6
21024 ac_check_lib_save_LIBS
=$LIBS
21025 LIBS
="-lresolv $LIBS"
21026 cat >conftest.
$ac_ext <<_ACEOF
21029 cat confdefs.h
>>conftest.
$ac_ext
21030 cat >>conftest.
$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21033 /* Override any GCC internal prototype to avoid an error.
21034 Use char because int might match the return type of a GCC
21035 builtin and then its argument prototype would still apply. */
21043 return res_send ();
21048 rm -f conftest.
$ac_objext conftest
$ac_exeext
21049 if { (ac_try
="$ac_link"
21050 case "(($ac_try" in
21051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056 (eval "$ac_link") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest$ac_exeext && {
21066 test "$cross_compiling" = yes ||
21067 $as_test_x conftest$ac_exeext
21069 ac_cv_lib_resolv_res_send=yes
21071 $as_echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_cv_lib_resolv_res_send=no
21077 rm -rf conftest.dSYM
21078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21079 conftest$ac_exeext conftest.$ac_ext
21080 LIBS=$ac_check_lib_save_LIBS
21082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21083 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21084 if test $ac_cv_lib_resolv_res_send = yes; then
21087 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21088 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21089 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21090 $as_echo_n "(cached) " >&6
21092 ac_check_lib_save_LIBS=$LIBS
21093 LIBS="-lresolv $LIBS"
21094 cat >conftest.$ac_ext <<_ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21101 /* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
21107 char __res_send ();
21111 return __res_send ();
21116 rm -f conftest.$ac_objext conftest$ac_exeext
21117 if { (ac_try="$ac_link"
21118 case "(($ac_try" in
21119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21120 *) ac_try_echo
=$ac_try;;
21122 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21123 $as_echo "$ac_try_echo") >&5
21124 (eval "$ac_link") 2>conftest.er1
21126 grep -v '^ *+' conftest.er1
>conftest.err
21128 cat conftest.err
>&5
21129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && {
21131 test -z "$ac_c_werror_flag" ||
21132 test ! -s conftest.err
21133 } && test -s conftest
$ac_exeext && {
21134 test "$cross_compiling" = yes ||
21135 $as_test_x conftest
$ac_exeext
21137 ac_cv_lib_resolv___res_send
=yes
21139 $as_echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.
$ac_ext >&5
21142 ac_cv_lib_resolv___res_send
=no
21145 rm -rf conftest.dSYM
21146 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21147 conftest
$ac_exeext conftest.
$ac_ext
21148 LIBS
=$ac_check_lib_save_LIBS
21150 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21151 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21152 if test $ac_cv_lib_resolv___res_send = yes; then
21162 if test "$resolv" = yes ; then
21167 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21168 $as_echo_n "checking for hes_getmailhost... " >&6; }
21169 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21170 $as_echo_n "(cached) " >&6
21172 cat >conftest.
$ac_ext <<_ACEOF
21175 cat confdefs.h
>>conftest.
$ac_ext
21176 cat >>conftest.
$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21180 #define hes_getmailhost innocuous_hes_getmailhost
21182 /* System header to define __stub macros and hopefully few prototypes,
21183 which can conflict with char hes_getmailhost (); below.
21184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21185 <limits.h> exists even on freestanding compilers. */
21188 # include <limits.h>
21190 # include <assert.h>
21193 #undef hes_getmailhost
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21201 char hes_getmailhost ();
21202 /* The GNU C library defines this for functions which it implements
21203 to always fail with ENOSYS. Some functions are actually named
21204 something starting with __ and the normal name is an alias. */
21205 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21212 return hes_getmailhost ();
21217 rm -f conftest.
$ac_objext conftest
$ac_exeext
21218 if { (ac_try
="$ac_link"
21219 case "(($ac_try" in
21220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21224 $as_echo "$ac_try_echo") >&5
21225 (eval "$ac_link") 2>conftest.er1
21227 grep -v '^ *+' conftest.er1 >conftest.err
21229 cat conftest.err >&5
21230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest$ac_exeext && {
21235 test "$cross_compiling" = yes ||
21236 $as_test_x conftest$ac_exeext
21238 ac_cv_func_hes_getmailhost=yes
21240 $as_echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 ac_cv_func_hes_getmailhost=no
21246 rm -rf conftest.dSYM
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248 conftest$ac_exeext conftest.$ac_ext
21250 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21251 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21252 if test $ac_cv_func_hes_getmailhost = yes; then
21255 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21256 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21257 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21258 $as_echo_n "(cached) " >&6
21260 ac_check_lib_save_LIBS=$LIBS
21261 LIBS="-lhesiod $RESOLVLIB $LIBS"
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21269 /* Override any GCC internal prototype to avoid an error.
21270 Use char because int might match the return type of a GCC
21271 builtin and then its argument prototype would still apply. */
21275 char hes_getmailhost ();
21279 return hes_getmailhost ();
21284 rm -f conftest.$ac_objext conftest$ac_exeext
21285 if { (ac_try="$ac_link"
21286 case "(($ac_try" in
21287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21288 *) ac_try_echo
=$ac_try;;
21290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21291 $as_echo "$ac_try_echo") >&5
21292 (eval "$ac_link") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1
>conftest.err
21296 cat conftest.err
>&5
21297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest
$ac_exeext && {
21302 test "$cross_compiling" = yes ||
21303 $as_test_x conftest
$ac_exeext
21305 ac_cv_lib_hesiod_hes_getmailhost
=yes
21307 $as_echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.
$ac_ext >&5
21310 ac_cv_lib_hesiod_hes_getmailhost
=no
21313 rm -rf conftest.dSYM
21314 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21315 conftest
$ac_exeext conftest.
$ac_ext
21316 LIBS
=$ac_check_lib_save_LIBS
21318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21319 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21320 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21322 cat >>confdefs.h
<<\_ACEOF
21323 #define HAVE_LIBHESIOD 1
21334 # Do we need libresolv (due to res_init or Hesiod)?
21335 if test "$resolv" = yes ; then
21337 cat >>confdefs.h
<<\_ACEOF
21338 #define HAVE_LIBRESOLV 1
21343 # These tell us which Kerberos-related libraries to use.
21344 if test "${with_kerberos}" != no
; then
21346 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21347 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21348 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21349 $as_echo_n "(cached) " >&6
21351 ac_check_lib_save_LIBS
=$LIBS
21352 LIBS
="-lcom_err $LIBS"
21353 cat >conftest.
$ac_ext <<_ACEOF
21356 cat confdefs.h
>>conftest.
$ac_ext
21357 cat >>conftest.
$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21360 /* Override any GCC internal prototype to avoid an error.
21361 Use char because int might match the return type of a GCC
21362 builtin and then its argument prototype would still apply. */
21375 rm -f conftest.
$ac_objext conftest
$ac_exeext
21376 if { (ac_try
="$ac_link"
21377 case "(($ac_try" in
21378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21382 $as_echo "$ac_try_echo") >&5
21383 (eval "$ac_link") 2>conftest.er1
21385 grep -v '^ *+' conftest.er1 >conftest.err
21387 cat conftest.err >&5
21388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest$ac_exeext && {
21393 test "$cross_compiling" = yes ||
21394 $as_test_x conftest$ac_exeext
21396 ac_cv_lib_com_err_com_err=yes
21398 $as_echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_cv_lib_com_err_com_err=no
21404 rm -rf conftest.dSYM
21405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21406 conftest$ac_exeext conftest.$ac_ext
21407 LIBS=$ac_check_lib_save_LIBS
21409 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21410 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21411 if test $ac_cv_lib_com_err_com_err = yes; then
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE_LIBCOM_ERR 1
21416 LIBS="-lcom_err $LIBS"
21421 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21422 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21423 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21424 $as_echo_n "(cached) " >&6
21426 ac_check_lib_save_LIBS=$LIBS
21427 LIBS="-lk5crypto $LIBS"
21428 cat >conftest.$ac_ext <<_ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21435 /* Override any GCC internal prototype to avoid an error.
21436 Use char because int might match the return type of a GCC
21437 builtin and then its argument prototype would still apply. */
21441 char mit_des_cbc_encrypt ();
21445 return mit_des_cbc_encrypt ();
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21454 *) ac_try_echo
=$ac_try;;
21456 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21457 $as_echo "$ac_try_echo") >&5
21458 (eval "$ac_link") 2>conftest.er1
21460 grep -v '^ *+' conftest.er1
>conftest.err
21462 cat conftest.err
>&5
21463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } && {
21465 test -z "$ac_c_werror_flag" ||
21466 test ! -s conftest.err
21467 } && test -s conftest
$ac_exeext && {
21468 test "$cross_compiling" = yes ||
21469 $as_test_x conftest
$ac_exeext
21471 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21473 $as_echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.
$ac_ext >&5
21476 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21479 rm -rf conftest.dSYM
21480 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21481 conftest
$ac_exeext conftest.
$ac_ext
21482 LIBS
=$ac_check_lib_save_LIBS
21484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21485 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21486 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21487 cat >>confdefs.h
<<_ACEOF
21488 #define HAVE_LIBK5CRYPTO 1
21491 LIBS
="-lk5crypto $LIBS"
21496 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21497 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21498 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21499 $as_echo_n "(cached) " >&6
21501 ac_check_lib_save_LIBS
=$LIBS
21502 LIBS
="-lcrypto $LIBS"
21503 cat >conftest.
$ac_ext <<_ACEOF
21506 cat confdefs.h
>>conftest.
$ac_ext
21507 cat >>conftest.
$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21510 /* Override any GCC internal prototype to avoid an error.
21511 Use char because int might match the return type of a GCC
21512 builtin and then its argument prototype would still apply. */
21516 char mit_des_cbc_encrypt ();
21520 return mit_des_cbc_encrypt ();
21525 rm -f conftest.
$ac_objext conftest
$ac_exeext
21526 if { (ac_try
="$ac_link"
21527 case "(($ac_try" in
21528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21532 $as_echo "$ac_try_echo") >&5
21533 (eval "$ac_link") 2>conftest.er1
21535 grep -v '^ *+' conftest.er1 >conftest.err
21537 cat conftest.err >&5
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest$ac_exeext && {
21543 test "$cross_compiling" = yes ||
21544 $as_test_x conftest$ac_exeext
21546 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21548 $as_echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21554 rm -rf conftest.dSYM
21555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21556 conftest$ac_exeext conftest.$ac_ext
21557 LIBS=$ac_check_lib_save_LIBS
21559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21560 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21561 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21562 cat >>confdefs.h <<_ACEOF
21563 #define HAVE_LIBCRYPTO 1
21566 LIBS="-lcrypto $LIBS"
21571 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21572 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21573 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21574 $as_echo_n "(cached) " >&6
21576 ac_check_lib_save_LIBS=$LIBS
21577 LIBS="-lkrb5 $LIBS"
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21585 /* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21591 char krb5_init_context ();
21595 return krb5_init_context ();
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21604 *) ac_try_echo
=$ac_try;;
21606 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21607 $as_echo "$ac_try_echo") >&5
21608 (eval "$ac_link") 2>conftest.er1
21610 grep -v '^ *+' conftest.er1
>conftest.err
21612 cat conftest.err
>&5
21613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest
$ac_exeext && {
21618 test "$cross_compiling" = yes ||
21619 $as_test_x conftest
$ac_exeext
21621 ac_cv_lib_krb5_krb5_init_context
=yes
21623 $as_echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.
$ac_ext >&5
21626 ac_cv_lib_krb5_krb5_init_context
=no
21629 rm -rf conftest.dSYM
21630 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21631 conftest
$ac_exeext conftest.
$ac_ext
21632 LIBS
=$ac_check_lib_save_LIBS
21634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21635 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21636 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21637 cat >>confdefs.h
<<_ACEOF
21638 #define HAVE_LIBKRB5 1
21641 LIBS
="-lkrb5 $LIBS"
21645 if test "${with_kerberos5}" = no
; then
21647 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21648 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21649 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21650 $as_echo_n "(cached) " >&6
21652 ac_check_lib_save_LIBS
=$LIBS
21653 LIBS
="-ldes425 $LIBS"
21654 cat >conftest.
$ac_ext <<_ACEOF
21657 cat confdefs.h
>>conftest.
$ac_ext
21658 cat >>conftest.
$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21661 /* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
21667 char des_cbc_encrypt ();
21671 return des_cbc_encrypt ();
21676 rm -f conftest.
$ac_objext conftest
$ac_exeext
21677 if { (ac_try
="$ac_link"
21678 case "(($ac_try" in
21679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21683 $as_echo "$ac_try_echo") >&5
21684 (eval "$ac_link") 2>conftest.er1
21686 grep -v '^ *+' conftest.er1 >conftest.err
21688 cat conftest.err >&5
21689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } && {
21691 test -z "$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 } && test -s conftest$ac_exeext && {
21694 test "$cross_compiling" = yes ||
21695 $as_test_x conftest$ac_exeext
21697 ac_cv_lib_des425_des_cbc_encrypt=yes
21699 $as_echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_cv_lib_des425_des_cbc_encrypt=no
21705 rm -rf conftest.dSYM
21706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21707 conftest$ac_exeext conftest.$ac_ext
21708 LIBS=$ac_check_lib_save_LIBS
21710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21711 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21712 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define HAVE_LIBDES425 1
21717 LIBS="-ldes425 $LIBS"
21721 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21722 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21723 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21724 $as_echo_n "(cached) " >&6
21726 ac_check_lib_save_LIBS=$LIBS
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21741 char des_cbc_encrypt ();
21745 return des_cbc_encrypt ();
21750 rm -f conftest.$ac_objext conftest$ac_exeext
21751 if { (ac_try="$ac_link"
21752 case "(($ac_try" in
21753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21754 *) ac_try_echo
=$ac_try;;
21756 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21757 $as_echo "$ac_try_echo") >&5
21758 (eval "$ac_link") 2>conftest.er1
21760 grep -v '^ *+' conftest.er1
>conftest.err
21762 cat conftest.err
>&5
21763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && {
21765 test -z "$ac_c_werror_flag" ||
21766 test ! -s conftest.err
21767 } && test -s conftest
$ac_exeext && {
21768 test "$cross_compiling" = yes ||
21769 $as_test_x conftest
$ac_exeext
21771 ac_cv_lib_des_des_cbc_encrypt
=yes
21773 $as_echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.
$ac_ext >&5
21776 ac_cv_lib_des_des_cbc_encrypt
=no
21779 rm -rf conftest.dSYM
21780 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21781 conftest
$ac_exeext conftest.
$ac_ext
21782 LIBS
=$ac_check_lib_save_LIBS
21784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21785 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21786 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21787 cat >>confdefs.h
<<_ACEOF
21788 #define HAVE_LIBDES 1
21798 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21799 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21800 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21801 $as_echo_n "(cached) " >&6
21803 ac_check_lib_save_LIBS
=$LIBS
21804 LIBS
="-lkrb4 $LIBS"
21805 cat >conftest.
$ac_ext <<_ACEOF
21808 cat confdefs.h
>>conftest.
$ac_ext
21809 cat >>conftest.
$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21812 /* Override any GCC internal prototype to avoid an error.
21813 Use char because int might match the return type of a GCC
21814 builtin and then its argument prototype would still apply. */
21818 char krb_get_cred ();
21822 return krb_get_cred ();
21827 rm -f conftest.
$ac_objext conftest
$ac_exeext
21828 if { (ac_try
="$ac_link"
21829 case "(($ac_try" in
21830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21834 $as_echo "$ac_try_echo") >&5
21835 (eval "$ac_link") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest$ac_exeext && {
21845 test "$cross_compiling" = yes ||
21846 $as_test_x conftest$ac_exeext
21848 ac_cv_lib_krb4_krb_get_cred=yes
21850 $as_echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 ac_cv_lib_krb4_krb_get_cred=no
21856 rm -rf conftest.dSYM
21857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21858 conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21862 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21863 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21864 cat >>confdefs.h <<_ACEOF
21865 #define HAVE_LIBKRB4 1
21868 LIBS="-lkrb4 $LIBS"
21872 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21873 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21874 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21875 $as_echo_n "(cached) " >&6
21877 ac_check_lib_save_LIBS=$LIBS
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21886 /* Override any GCC internal prototype to avoid an error.
21887 Use char because int might match the return type of a GCC
21888 builtin and then its argument prototype would still apply. */
21892 char krb_get_cred ();
21896 return krb_get_cred ();
21901 rm -f conftest.$ac_objext conftest$ac_exeext
21902 if { (ac_try="$ac_link"
21903 case "(($ac_try" in
21904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21905 *) ac_try_echo
=$ac_try;;
21907 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21908 $as_echo "$ac_try_echo") >&5
21909 (eval "$ac_link") 2>conftest.er1
21911 grep -v '^ *+' conftest.er1
>conftest.err
21913 cat conftest.err
>&5
21914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest
$ac_exeext && {
21919 test "$cross_compiling" = yes ||
21920 $as_test_x conftest
$ac_exeext
21922 ac_cv_lib_krb_krb_get_cred
=yes
21924 $as_echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.
$ac_ext >&5
21927 ac_cv_lib_krb_krb_get_cred
=no
21930 rm -rf conftest.dSYM
21931 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21932 conftest
$ac_exeext conftest.
$ac_ext
21933 LIBS
=$ac_check_lib_save_LIBS
21935 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21936 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21937 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21938 cat >>confdefs.h
<<_ACEOF
21939 #define HAVE_LIBKRB 1
21950 if test "${with_kerberos5}" != no
; then
21952 for ac_header
in krb5.h
21954 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21955 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 $as_echo_n "checking for $ac_header... " >&6; }
21958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 $as_echo_n "(cached) " >&6
21961 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21962 $as_echo "$as_val"'`
21963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21964 $as_echo "$ac_res" >&6; }
21966 # Is the header compilable?
21967 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21968 $as_echo_n "checking $ac_header usability... " >&6; }
21969 cat >conftest.
$ac_ext <<_ACEOF
21972 cat confdefs.h
>>conftest.
$ac_ext
21973 cat >>conftest.
$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21975 $ac_includes_default
21976 #include <$ac_header>
21978 rm -f conftest.
$ac_objext
21979 if { (ac_try
="$ac_compile"
21980 case "(($ac_try" in
21981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21985 $as_echo "$ac_try_echo") >&5
21986 (eval "$ac_compile") 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && {
21993 test -z "$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 } && test -s conftest.$ac_objext; then
21996 ac_header_compiler=yes
21998 $as_echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_header_compiler=no
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22006 $as_echo "$ac_header_compiler" >&6; }
22008 # Is the header present?
22009 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22010 $as_echo_n "checking $ac_header presence... " >&6; }
22011 cat >conftest.$ac_ext <<_ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22017 #include <$ac_header>
22019 if { (ac_try="$ac_cpp conftest.$ac_ext"
22020 case "(($ac_try" in
22021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22022 *) ac_try_echo
=$ac_try;;
22024 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22025 $as_echo "$ac_try_echo") >&5
22026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22028 grep -v '^ *+' conftest.er1
>conftest.err
22030 cat conftest.err
>&5
22031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } >/dev
/null
&& {
22033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22036 ac_header_preproc
=yes
22038 $as_echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.
$ac_ext >&5
22041 ac_header_preproc
=no
22044 rm -f conftest.err conftest.
$ac_ext
22045 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046 $as_echo "$ac_header_preproc" >&6; }
22048 # So? What about this header?
22049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055 ac_header_preproc
=yes
22058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22061 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22065 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 $as_echo_n "checking for $ac_header... " >&6; }
22075 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 $as_echo_n "(cached) " >&6
22078 eval "$as_ac_Header=\$ac_header_preproc"
22080 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22081 $as_echo "$as_val"'`
22082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22083 $as_echo "$ac_res" >&6; }
22086 if test `eval 'as_val=${'$as_ac_Header'}
22087 $as_echo "$as_val"'` = yes; then
22088 cat >>confdefs.h
<<_ACEOF
22089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22091 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22092 $as_echo_n "checking for krb5_error.text... " >&6; }
22093 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22094 $as_echo_n "(cached) " >&6
22096 cat >conftest.
$ac_ext <<_ACEOF
22099 cat confdefs.h
>>conftest.
$ac_ext
22100 cat >>conftest.
$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22107 static krb5_error ac_aggr;
22114 rm -f conftest.
$ac_objext
22115 if { (ac_try
="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22121 $as_echo "$ac_try_echo") >&5
22122 (eval "$ac_compile") 2>conftest.er1
22124 grep -v '^ *+' conftest.er1 >conftest.err
22126 cat conftest.err >&5
22127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } && {
22129 test -z "$ac_c_werror_flag" ||
22130 test ! -s conftest.err
22131 } && test -s conftest.$ac_objext; then
22132 ac_cv_member_krb5_error_text=yes
22134 $as_echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22148 static krb5_error ac_aggr;
22149 if (sizeof ac_aggr.text)
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22159 *) ac_try_echo
=$ac_try;;
22161 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22162 $as_echo "$ac_try_echo") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22165 grep -v '^ *+' conftest.er1
>conftest.err
22167 cat conftest.err
>&5
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.
$ac_objext; then
22173 ac_cv_member_krb5_error_text
=yes
22175 $as_echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.
$ac_ext >&5
22178 ac_cv_member_krb5_error_text
=no
22181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22186 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22187 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22188 if test $ac_cv_member_krb5_error_text = yes; then
22190 cat >>confdefs.h
<<_ACEOF
22191 #define HAVE_KRB5_ERROR_TEXT 1
22196 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22197 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22198 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22199 $as_echo_n "(cached) " >&6
22201 cat >conftest.
$ac_ext <<_ACEOF
22204 cat confdefs.h
>>conftest.
$ac_ext
22205 cat >>conftest.
$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22212 static krb5_error ac_aggr;
22213 if (ac_aggr.e_text)
22219 rm -f conftest.
$ac_objext
22220 if { (ac_try
="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22226 $as_echo "$ac_try_echo") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22229 grep -v '^ *+' conftest.er1 >conftest.err
22231 cat conftest.err >&5
22232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_cv_member_krb5_error_e_text=yes
22239 $as_echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22253 static krb5_error ac_aggr;
22254 if (sizeof ac_aggr.e_text)
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22264 *) ac_try_echo
=$ac_try;;
22266 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22267 $as_echo "$ac_try_echo") >&5
22268 (eval "$ac_compile") 2>conftest.er1
22270 grep -v '^ *+' conftest.er1
>conftest.err
22272 cat conftest.err
>&5
22273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest.
$ac_objext; then
22278 ac_cv_member_krb5_error_e_text
=yes
22280 $as_echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.
$ac_ext >&5
22283 ac_cv_member_krb5_error_e_text
=no
22286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22291 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22292 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22293 if test $ac_cv_member_krb5_error_e_text = yes; then
22295 cat >>confdefs.h
<<_ACEOF
22296 #define HAVE_KRB5_ERROR_E_TEXT 1
22308 for ac_header
in des.h
22310 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22311 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22313 $as_echo_n "checking for $ac_header... " >&6; }
22314 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22315 $as_echo_n "(cached) " >&6
22317 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22318 $as_echo "$as_val"'`
22319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22320 $as_echo "$ac_res" >&6; }
22322 # Is the header compilable?
22323 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22324 $as_echo_n "checking $ac_header usability... " >&6; }
22325 cat >conftest.
$ac_ext <<_ACEOF
22328 cat confdefs.h
>>conftest.
$ac_ext
22329 cat >>conftest.
$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 $ac_includes_default
22332 #include <$ac_header>
22334 rm -f conftest.
$ac_objext
22335 if { (ac_try
="$ac_compile"
22336 case "(($ac_try" in
22337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22341 $as_echo "$ac_try_echo") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22344 grep -v '^ *+' conftest.er1 >conftest.err
22346 cat conftest.err >&5
22347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_header_compiler=yes
22354 $as_echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 ac_header_compiler=no
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22362 $as_echo "$ac_header_compiler" >&6; }
22364 # Is the header present?
22365 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22366 $as_echo_n "checking $ac_header presence... " >&6; }
22367 cat >conftest.$ac_ext <<_ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 #include <$ac_header>
22375 if { (ac_try="$ac_cpp conftest.$ac_ext"
22376 case "(($ac_try" in
22377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22378 *) ac_try_echo
=$ac_try;;
22380 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1
>conftest.err
22386 cat conftest.err
>&5
22387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } >/dev
/null
&& {
22389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22392 ac_header_preproc
=yes
22394 $as_echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.
$ac_ext >&5
22397 ac_header_preproc
=no
22400 rm -f conftest.err conftest.
$ac_ext
22401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22402 $as_echo "$ac_header_preproc" >&6; }
22404 # So? What about this header?
22405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22408 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22411 ac_header_preproc
=yes
22414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22415 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22417 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22419 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22421 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22425 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22430 $as_echo_n "checking for $ac_header... " >&6; }
22431 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 $as_echo_n "(cached) " >&6
22434 eval "$as_ac_Header=\$ac_header_preproc"
22436 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22437 $as_echo "$as_val"'`
22438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22439 $as_echo "$ac_res" >&6; }
22442 if test `eval 'as_val=${'$as_ac_Header'}
22443 $as_echo "$as_val"'` = yes; then
22444 cat >>confdefs.h
<<_ACEOF
22445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22450 for ac_header
in kerberosIV
/des.h
22452 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22453 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22455 $as_echo_n "checking for $ac_header... " >&6; }
22456 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22457 $as_echo_n "(cached) " >&6
22459 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22460 $as_echo "$as_val"'`
22461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22462 $as_echo "$ac_res" >&6; }
22464 # Is the header compilable?
22465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22466 $as_echo_n "checking $ac_header usability... " >&6; }
22467 cat >conftest.
$ac_ext <<_ACEOF
22470 cat confdefs.h
>>conftest.
$ac_ext
22471 cat >>conftest.
$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 $ac_includes_default
22474 #include <$ac_header>
22476 rm -f conftest.
$ac_objext
22477 if { (ac_try
="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22483 $as_echo "$ac_try_echo") >&5
22484 (eval "$ac_compile") 2>conftest.er1
22486 grep -v '^ *+' conftest.er1 >conftest.err
22488 cat conftest.err >&5
22489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } && {
22491 test -z "$ac_c_werror_flag" ||
22492 test ! -s conftest.err
22493 } && test -s conftest.$ac_objext; then
22494 ac_header_compiler=yes
22496 $as_echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22499 ac_header_compiler=no
22502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22504 $as_echo "$ac_header_compiler" >&6; }
22506 # Is the header present?
22507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22508 $as_echo_n "checking $ac_header presence... " >&6; }
22509 cat >conftest.$ac_ext <<_ACEOF
22512 cat confdefs.h >>conftest.$ac_ext
22513 cat >>conftest.$ac_ext <<_ACEOF
22514 /* end confdefs.h. */
22515 #include <$ac_header>
22517 if { (ac_try="$ac_cpp conftest.$ac_ext"
22518 case "(($ac_try" in
22519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22520 *) ac_try_echo
=$ac_try;;
22522 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22523 $as_echo "$ac_try_echo") >&5
22524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22526 grep -v '^ *+' conftest.er1
>conftest.err
22528 cat conftest.err
>&5
22529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } >/dev
/null
&& {
22531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22534 ac_header_preproc
=yes
22536 $as_echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.
$ac_ext >&5
22539 ac_header_preproc
=no
22542 rm -f conftest.err conftest.
$ac_ext
22543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22544 $as_echo "$ac_header_preproc" >&6; }
22546 # So? What about this header?
22547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22553 ac_header_preproc
=yes
22556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22559 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22563 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22572 $as_echo_n "checking for $ac_header... " >&6; }
22573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22574 $as_echo_n "(cached) " >&6
22576 eval "$as_ac_Header=\$ac_header_preproc"
22578 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22579 $as_echo "$as_val"'`
22580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22581 $as_echo "$ac_res" >&6; }
22584 if test `eval 'as_val=${'$as_ac_Header'}
22585 $as_echo "$as_val"'` = yes; then
22586 cat >>confdefs.h
<<_ACEOF
22587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22592 for ac_header
in kerberos
/des.h
22594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22595 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22597 $as_echo_n "checking for $ac_header... " >&6; }
22598 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22599 $as_echo_n "(cached) " >&6
22601 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22602 $as_echo "$as_val"'`
22603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22604 $as_echo "$ac_res" >&6; }
22606 # Is the header compilable?
22607 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22608 $as_echo_n "checking $ac_header usability... " >&6; }
22609 cat >conftest.
$ac_ext <<_ACEOF
22612 cat confdefs.h
>>conftest.
$ac_ext
22613 cat >>conftest.
$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22615 $ac_includes_default
22616 #include <$ac_header>
22618 rm -f conftest.
$ac_objext
22619 if { (ac_try
="$ac_compile"
22620 case "(($ac_try" in
22621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22622 *) ac_try_echo=$ac_try;;
22624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22625 $as_echo "$ac_try_echo") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 ac_header_compiler=yes
22638 $as_echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_header_compiler=no
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22646 $as_echo "$ac_header_compiler" >&6; }
22648 # Is the header present?
22649 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22650 $as_echo_n "checking $ac_header presence... " >&6; }
22651 cat >conftest.$ac_ext <<_ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657 #include <$ac_header>
22659 if { (ac_try="$ac_cpp conftest.$ac_ext"
22660 case "(($ac_try" in
22661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22662 *) ac_try_echo
=$ac_try;;
22664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22665 $as_echo "$ac_try_echo") >&5
22666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22668 grep -v '^ *+' conftest.er1
>conftest.err
22670 cat conftest.err
>&5
22671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } >/dev
/null
&& {
22673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22674 test ! -s conftest.err
22676 ac_header_preproc
=yes
22678 $as_echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.
$ac_ext >&5
22681 ac_header_preproc
=no
22684 rm -f conftest.err conftest.
$ac_ext
22685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22686 $as_echo "$ac_header_preproc" >&6; }
22688 # So? What about this header?
22689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22692 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22695 ac_header_preproc
=yes
22698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22699 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22703 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22705 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22709 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22714 $as_echo_n "checking for $ac_header... " >&6; }
22715 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22716 $as_echo_n "(cached) " >&6
22718 eval "$as_ac_Header=\$ac_header_preproc"
22720 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22721 $as_echo "$as_val"'`
22722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22723 $as_echo "$ac_res" >&6; }
22726 if test `eval 'as_val=${'$as_ac_Header'}
22727 $as_echo "$as_val"'` = yes; then
22728 cat >>confdefs.h
<<_ACEOF
22729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22745 for ac_header
in krb.h
22747 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22748 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22750 $as_echo_n "checking for $ac_header... " >&6; }
22751 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22752 $as_echo_n "(cached) " >&6
22754 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22755 $as_echo "$as_val"'`
22756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22757 $as_echo "$ac_res" >&6; }
22759 # Is the header compilable?
22760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22761 $as_echo_n "checking $ac_header usability... " >&6; }
22762 cat >conftest.
$ac_ext <<_ACEOF
22765 cat confdefs.h
>>conftest.
$ac_ext
22766 cat >>conftest.
$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 $ac_includes_default
22769 #include <$ac_header>
22771 rm -f conftest.
$ac_objext
22772 if { (ac_try
="$ac_compile"
22773 case "(($ac_try" in
22774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22778 $as_echo "$ac_try_echo") >&5
22779 (eval "$ac_compile") 2>conftest.er1
22781 grep -v '^ *+' conftest.er1 >conftest.err
22783 cat conftest.err >&5
22784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } && {
22786 test -z "$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 } && test -s conftest.$ac_objext; then
22789 ac_header_compiler=yes
22791 $as_echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 ac_header_compiler=no
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22799 $as_echo "$ac_header_compiler" >&6; }
22801 # Is the header present?
22802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22803 $as_echo_n "checking $ac_header presence... " >&6; }
22804 cat >conftest.$ac_ext <<_ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22810 #include <$ac_header>
22812 if { (ac_try="$ac_cpp conftest.$ac_ext"
22813 case "(($ac_try" in
22814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22815 *) ac_try_echo
=$ac_try;;
22817 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22818 $as_echo "$ac_try_echo") >&5
22819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1
>conftest.err
22823 cat conftest.err
>&5
22824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } >/dev
/null
&& {
22826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22829 ac_header_preproc
=yes
22831 $as_echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.
$ac_ext >&5
22834 ac_header_preproc
=no
22837 rm -f conftest.err conftest.
$ac_ext
22838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22839 $as_echo "$ac_header_preproc" >&6; }
22841 # So? What about this header?
22842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22848 ac_header_preproc
=yes
22851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22854 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22858 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22867 $as_echo_n "checking for $ac_header... " >&6; }
22868 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22869 $as_echo_n "(cached) " >&6
22871 eval "$as_ac_Header=\$ac_header_preproc"
22873 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22874 $as_echo "$as_val"'`
22875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22876 $as_echo "$ac_res" >&6; }
22879 if test `eval 'as_val=${'$as_ac_Header'}
22880 $as_echo "$as_val"'` = yes; then
22881 cat >>confdefs.h
<<_ACEOF
22882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22887 for ac_header
in kerberosIV
/krb.h
22889 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22890 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22892 $as_echo_n "checking for $ac_header... " >&6; }
22893 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22894 $as_echo_n "(cached) " >&6
22896 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22897 $as_echo "$as_val"'`
22898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22899 $as_echo "$ac_res" >&6; }
22901 # Is the header compilable?
22902 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22903 $as_echo_n "checking $ac_header usability... " >&6; }
22904 cat >conftest.
$ac_ext <<_ACEOF
22907 cat confdefs.h
>>conftest.
$ac_ext
22908 cat >>conftest.
$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 $ac_includes_default
22911 #include <$ac_header>
22913 rm -f conftest.
$ac_objext
22914 if { (ac_try
="$ac_compile"
22915 case "(($ac_try" in
22916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22920 $as_echo "$ac_try_echo") >&5
22921 (eval "$ac_compile") 2>conftest.er1
22923 grep -v '^ *+' conftest.er1 >conftest.err
22925 cat conftest.err >&5
22926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } && {
22928 test -z "$ac_c_werror_flag" ||
22929 test ! -s conftest.err
22930 } && test -s conftest.$ac_objext; then
22931 ac_header_compiler=yes
22933 $as_echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ac_header_compiler=no
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22941 $as_echo "$ac_header_compiler" >&6; }
22943 # Is the header present?
22944 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22945 $as_echo_n "checking $ac_header presence... " >&6; }
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 #include <$ac_header>
22954 if { (ac_try="$ac_cpp conftest.$ac_ext"
22955 case "(($ac_try" in
22956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22957 *) ac_try_echo
=$ac_try;;
22959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22960 $as_echo "$ac_try_echo") >&5
22961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22963 grep -v '^ *+' conftest.er1
>conftest.err
22965 cat conftest.err
>&5
22966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } >/dev
/null
&& {
22968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22971 ac_header_preproc
=yes
22973 $as_echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.
$ac_ext >&5
22976 ac_header_preproc
=no
22979 rm -f conftest.err conftest.
$ac_ext
22980 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22981 $as_echo "$ac_header_preproc" >&6; }
22983 # So? What about this header?
22984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22987 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22990 ac_header_preproc
=yes
22993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22994 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22996 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22998 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23000 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23004 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23009 $as_echo_n "checking for $ac_header... " >&6; }
23010 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 $as_echo_n "(cached) " >&6
23013 eval "$as_ac_Header=\$ac_header_preproc"
23015 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23016 $as_echo "$as_val"'`
23017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23018 $as_echo "$ac_res" >&6; }
23021 if test `eval 'as_val=${'$as_ac_Header'}
23022 $as_echo "$as_val"'` = yes; then
23023 cat >>confdefs.h
<<_ACEOF
23024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23029 for ac_header
in kerberos
/krb.h
23031 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23032 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23034 $as_echo_n "checking for $ac_header... " >&6; }
23035 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23036 $as_echo_n "(cached) " >&6
23038 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23039 $as_echo "$as_val"'`
23040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23041 $as_echo "$ac_res" >&6; }
23043 # Is the header compilable?
23044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23045 $as_echo_n "checking $ac_header usability... " >&6; }
23046 cat >conftest.
$ac_ext <<_ACEOF
23049 cat confdefs.h
>>conftest.
$ac_ext
23050 cat >>conftest.
$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23053 #include <$ac_header>
23055 rm -f conftest.
$ac_objext
23056 if { (ac_try
="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23062 $as_echo "$ac_try_echo") >&5
23063 (eval "$ac_compile") 2>conftest.er1
23065 grep -v '^ *+' conftest.er1 >conftest.err
23067 cat conftest.err >&5
23068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && {
23070 test -z "$ac_c_werror_flag" ||
23071 test ! -s conftest.err
23072 } && test -s conftest.$ac_objext; then
23073 ac_header_compiler=yes
23075 $as_echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_header_compiler=no
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23083 $as_echo "$ac_header_compiler" >&6; }
23085 # Is the header present?
23086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23087 $as_echo_n "checking $ac_header presence... " >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 #include <$ac_header>
23096 if { (ac_try="$ac_cpp conftest.$ac_ext"
23097 case "(($ac_try" in
23098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23099 *) ac_try_echo
=$ac_try;;
23101 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23102 $as_echo "$ac_try_echo") >&5
23103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23105 grep -v '^ *+' conftest.er1
>conftest.err
23107 cat conftest.err
>&5
23108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } >/dev
/null
&& {
23110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23113 ac_header_preproc
=yes
23115 $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.
$ac_ext >&5
23118 ac_header_preproc
=no
23121 rm -f conftest.err conftest.
$ac_ext
23122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 $as_echo "$ac_header_preproc" >&6; }
23125 # So? What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23132 ac_header_preproc
=yes
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23142 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23151 $as_echo_n "checking for $ac_header... " >&6; }
23152 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23153 $as_echo_n "(cached) " >&6
23155 eval "$as_ac_Header=\$ac_header_preproc"
23157 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23158 $as_echo "$as_val"'`
23159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23160 $as_echo "$ac_res" >&6; }
23163 if test `eval 'as_val=${'$as_ac_Header'}
23164 $as_echo "$as_val"'` = yes; then
23165 cat >>confdefs.h
<<_ACEOF
23166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23183 for ac_header
in com_err.h
23185 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23186 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23188 $as_echo_n "checking for $ac_header... " >&6; }
23189 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23190 $as_echo_n "(cached) " >&6
23192 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23193 $as_echo "$as_val"'`
23194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23195 $as_echo "$ac_res" >&6; }
23197 # Is the header compilable?
23198 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23199 $as_echo_n "checking $ac_header usability... " >&6; }
23200 cat >conftest.
$ac_ext <<_ACEOF
23203 cat confdefs.h
>>conftest.
$ac_ext
23204 cat >>conftest.
$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 $ac_includes_default
23207 #include <$ac_header>
23209 rm -f conftest.
$ac_objext
23210 if { (ac_try
="$ac_compile"
23211 case "(($ac_try" in
23212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23216 $as_echo "$ac_try_echo") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest.$ac_objext; then
23227 ac_header_compiler=yes
23229 $as_echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ac_header_compiler=no
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23237 $as_echo "$ac_header_compiler" >&6; }
23239 # Is the header present?
23240 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23241 $as_echo_n "checking $ac_header presence... " >&6; }
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 #include <$ac_header>
23250 if { (ac_try="$ac_cpp conftest.$ac_ext"
23251 case "(($ac_try" in
23252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23253 *) ac_try_echo
=$ac_try;;
23255 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23256 $as_echo "$ac_try_echo") >&5
23257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23259 grep -v '^ *+' conftest.er1
>conftest.err
23261 cat conftest.err
>&5
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } >/dev
/null
&& {
23264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23267 ac_header_preproc
=yes
23269 $as_echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.
$ac_ext >&5
23272 ac_header_preproc
=no
23275 rm -f conftest.err conftest.
$ac_ext
23276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23277 $as_echo "$ac_header_preproc" >&6; }
23279 # So? What about this header?
23280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23283 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23286 ac_header_preproc
=yes
23289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23290 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23292 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23294 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23296 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23300 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23304 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23305 $as_echo_n "checking for $ac_header... " >&6; }
23306 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23307 $as_echo_n "(cached) " >&6
23309 eval "$as_ac_Header=\$ac_header_preproc"
23311 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23312 $as_echo "$as_val"'`
23313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23314 $as_echo "$ac_res" >&6; }
23317 if test `eval 'as_val=${'$as_ac_Header'}
23318 $as_echo "$as_val"'` = yes; then
23319 cat >>confdefs.h
<<_ACEOF
23320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23329 # Solaris requires -lintl if you want strerror (which calls dgettext)
23330 # to return localized messages.
23332 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23333 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23334 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23335 $as_echo_n "(cached) " >&6
23337 ac_check_lib_save_LIBS
=$LIBS
23338 LIBS
="-lintl $LIBS"
23339 cat >conftest.
$ac_ext <<_ACEOF
23342 cat confdefs.h
>>conftest.
$ac_ext
23343 cat >>conftest.
$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23346 /* Override any GCC internal prototype to avoid an error.
23347 Use char because int might match the return type of a GCC
23348 builtin and then its argument prototype would still apply. */
23356 return dgettext ();
23361 rm -f conftest.
$ac_objext conftest
$ac_exeext
23362 if { (ac_try
="$ac_link"
23363 case "(($ac_try" in
23364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_link") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest$ac_exeext && {
23379 test "$cross_compiling" = yes ||
23380 $as_test_x conftest$ac_exeext
23382 ac_cv_lib_intl_dgettext=yes
23384 $as_echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ac_cv_lib_intl_dgettext=no
23390 rm -rf conftest.dSYM
23391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23392 conftest$ac_exeext conftest.$ac_ext
23393 LIBS=$ac_check_lib_save_LIBS
23395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23396 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23397 if test $ac_cv_lib_intl_dgettext = yes; then
23398 cat >>confdefs.h <<_ACEOF
23399 #define HAVE_LIBINTL 1
23402 LIBS="-lintl $LIBS"
23407 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23408 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23409 if test "${emacs_cv_localtime_cache+set}" = set; then
23410 $as_echo_n "(cached) " >&6
23412 if test x$ac_cv_func_tzset = xyes; then
23413 if test "$cross_compiling" = yes; then
23414 # If we have tzset, assume the worst when cross-compiling.
23415 emacs_cv_localtime_cache=yes
23417 cat >conftest.$ac_ext <<_ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23424 extern char **environ;
23428 for (to = from = environ; (*to = *from); from++)
23429 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23432 char TZ_GMT0[] = "TZ=GMT0";
23433 char TZ_PST8[] = "TZ=PST8";
23436 time_t now = time ((time_t *) 0);
23437 int hour_GMT0, hour_unset;
23438 if (putenv (TZ_GMT0) != 0)
23440 hour_GMT0 = localtime (&now)->tm_hour;
23442 hour_unset = localtime (&now)->tm_hour;
23443 if (putenv (TZ_PST8) != 0)
23445 if (localtime (&now)->tm_hour == hour_GMT0)
23448 if (localtime (&now)->tm_hour != hour_unset)
23453 rm -f conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23457 *) ac_try_echo
=$ac_try;;
23459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23460 $as_echo "$ac_try_echo") >&5
23461 (eval "$ac_link") 2>&5
23463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23465 { (case "(($ac_try" in
23466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23470 $as_echo "$ac_try_echo") >&5
23471 (eval "$ac_try") 2>&5
23473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 emacs_cv_localtime_cache=no
23477 $as_echo "$as_me: program exited with status $ac_status" >&5
23478 $as_echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23481 ( exit $ac_status )
23482 emacs_cv_localtime_cache=yes
23484 rm -rf conftest.dSYM
23485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23490 # If we lack tzset, report that localtime does not cache TZ,
23491 # since we can't invalidate the cache if we don't have tzset.
23492 emacs_cv_localtime_cache=no
23495 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23496 $as_echo "$emacs_cv_localtime_cache" >&6; }
23497 if test $emacs_cv_localtime_cache = yes; then
23499 cat >>confdefs.h <<\_ACEOF
23500 #define LOCALTIME_CACHE 1
23505 if test "x$HAVE_TIMEVAL" = xyes; then
23507 for ac_func in gettimeofday
23509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23510 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23511 $as_echo_n "checking for $ac_func... " >&6; }
23512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23513 $as_echo_n "(cached) " >&6
23515 cat >conftest.$ac_ext <<_ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23523 #define $ac_func innocuous_$ac_func
23525 /* System header to define __stub macros and hopefully few prototypes,
23526 which can conflict with char $ac_func (); below.
23527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23528 <limits.h> exists even on freestanding compilers. */
23531 # include <limits.h>
23533 # include <assert.h>
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23545 /* The GNU C library defines this for functions which it implements
23546 to always fail with ENOSYS. Some functions are actually named
23547 something starting with __ and the normal name is an alias. */
23548 #if defined __stub_$ac_func || defined __stub___$ac_func
23555 return $ac_func ();
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (ac_try="$ac_link"
23562 case "(($ac_try" in
23563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23564 *) ac_try_echo
=$ac_try;;
23566 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23567 $as_echo "$ac_try_echo") >&5
23568 (eval "$ac_link") 2>conftest.er1
23570 grep -v '^ *+' conftest.er1
>conftest.err
23572 cat conftest.err
>&5
23573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); } && {
23575 test -z "$ac_c_werror_flag" ||
23576 test ! -s conftest.err
23577 } && test -s conftest
$ac_exeext && {
23578 test "$cross_compiling" = yes ||
23579 $as_test_x conftest
$ac_exeext
23581 eval "$as_ac_var=yes"
23583 $as_echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.
$ac_ext >&5
23586 eval "$as_ac_var=no"
23589 rm -rf conftest.dSYM
23590 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23591 conftest
$ac_exeext conftest.
$ac_ext
23593 ac_res
=`eval 'as_val=${'$as_ac_var'}
23594 $as_echo "$as_val"'`
23595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23596 $as_echo "$ac_res" >&6; }
23597 if test `eval 'as_val=${'$as_ac_var'}
23598 $as_echo "$as_val"'` = yes; then
23599 cat >>confdefs.h
<<_ACEOF
23600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23606 if test $ac_cv_func_gettimeofday = yes; then
23607 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23608 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23609 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23610 $as_echo_n "(cached) " >&6
23612 cat >conftest.
$ac_ext <<_ACEOF
23615 cat confdefs.h
>>conftest.
$ac_ext
23616 cat >>conftest.
$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23619 #ifdef TIME_WITH_SYS_TIME
23620 #include <sys/time.h>
23623 #ifdef HAVE_SYS_TIME_H
23624 #include <sys/time.h>
23632 struct timeval time;
23633 gettimeofday (&time, 0);
23638 rm -f conftest.
$ac_objext
23639 if { (ac_try
="$ac_compile"
23640 case "(($ac_try" in
23641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23645 $as_echo "$ac_try_echo") >&5
23646 (eval "$ac_compile") 2>conftest.er1
23648 grep -v '^ *+' conftest.er1 >conftest.err
23650 cat conftest.err >&5
23651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } && {
23653 test -z "$ac_c_werror_flag" ||
23654 test ! -s conftest.err
23655 } && test -s conftest.$ac_objext; then
23656 emacs_cv_gettimeofday_two_arguments=yes
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23661 emacs_cv_gettimeofday_two_arguments=no
23664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23667 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23668 if test $emacs_cv_gettimeofday_two_arguments = no; then
23670 cat >>confdefs.h <<\_ACEOF
23671 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23679 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23680 $as_echo_n "checking for socket... " >&6; }
23681 if test "${ac_cv_func_socket+set}" = set; then
23682 $as_echo_n "(cached) " >&6
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23692 #define socket innocuous_socket
23694 /* System header to define __stub macros and hopefully few prototypes,
23695 which can conflict with char socket (); below.
23696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23697 <limits.h> exists even on freestanding compilers. */
23700 # include <limits.h>
23702 # include <assert.h>
23707 /* Override any GCC internal prototype to avoid an error.
23708 Use char because int might match the return type of a GCC
23709 builtin and then its argument prototype would still apply. */
23714 /* The GNU C library defines this for functions which it implements
23715 to always fail with ENOSYS. Some functions are actually named
23716 something starting with __ and the normal name is an alias. */
23717 #if defined __stub_socket || defined __stub___socket
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (ac_try="$ac_link"
23731 case "(($ac_try" in
23732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23733 *) ac_try_echo
=$ac_try;;
23735 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23736 $as_echo "$ac_try_echo") >&5
23737 (eval "$ac_link") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1
>conftest.err
23741 cat conftest.err
>&5
23742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest
$ac_exeext && {
23747 test "$cross_compiling" = yes ||
23748 $as_test_x conftest
$ac_exeext
23750 ac_cv_func_socket
=yes
23752 $as_echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.
$ac_ext >&5
23755 ac_cv_func_socket
=no
23758 rm -rf conftest.dSYM
23759 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23760 conftest
$ac_exeext conftest.
$ac_ext
23762 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23763 $as_echo "$ac_cv_func_socket" >&6; }
23764 if test $ac_cv_func_socket = yes; then
23770 if test $ok_so_far = yes; then
23771 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23772 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23773 $as_echo_n "checking for netinet/in.h... " >&6; }
23774 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23775 $as_echo_n "(cached) " >&6
23777 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23778 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23780 # Is the header compilable?
23781 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23782 $as_echo_n "checking netinet/in.h usability... " >&6; }
23783 cat >conftest.
$ac_ext <<_ACEOF
23786 cat confdefs.h
>>conftest.
$ac_ext
23787 cat >>conftest.
$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789 $ac_includes_default
23790 #include <netinet/in.h>
23792 rm -f conftest.
$ac_objext
23793 if { (ac_try
="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23799 $as_echo "$ac_try_echo") >&5
23800 (eval "$ac_compile") 2>conftest.er1
23802 grep -v '^ *+' conftest.er1 >conftest.err
23804 cat conftest.err >&5
23805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } && {
23807 test -z "$ac_c_werror_flag" ||
23808 test ! -s conftest.err
23809 } && test -s conftest.$ac_objext; then
23810 ac_header_compiler=yes
23812 $as_echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 ac_header_compiler=no
23818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23820 $as_echo "$ac_header_compiler" >&6; }
23822 # Is the header present?
23823 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23824 $as_echo_n "checking netinet/in.h presence... " >&6; }
23825 cat >conftest.$ac_ext <<_ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 #include <netinet/in.h>
23833 if { (ac_try="$ac_cpp conftest.$ac_ext"
23834 case "(($ac_try" in
23835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23836 *) ac_try_echo
=$ac_try;;
23838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23839 $as_echo "$ac_try_echo") >&5
23840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23842 grep -v '^ *+' conftest.er1
>conftest.err
23844 cat conftest.err
>&5
23845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } >/dev
/null
&& {
23847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23850 ac_header_preproc
=yes
23852 $as_echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.
$ac_ext >&5
23855 ac_header_preproc
=no
23858 rm -f conftest.err conftest.
$ac_ext
23859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23860 $as_echo "$ac_header_preproc" >&6; }
23862 # So? What about this header?
23863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23865 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23866 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23867 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23868 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23869 ac_header_preproc
=yes
23872 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23873 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23874 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23875 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23876 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23877 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23878 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23879 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23880 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23881 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23882 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23883 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23887 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23888 $as_echo_n "checking for netinet/in.h... " >&6; }
23889 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23890 $as_echo_n "(cached) " >&6
23892 ac_cv_header_netinet_in_h
=$ac_header_preproc
23894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23895 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23898 if test $ac_cv_header_netinet_in_h = yes; then
23906 if test $ok_so_far = yes; then
23907 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23908 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23909 $as_echo_n "checking for arpa/inet.h... " >&6; }
23910 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23911 $as_echo_n "(cached) " >&6
23913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23914 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23916 # Is the header compilable?
23917 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23918 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23919 cat >conftest.
$ac_ext <<_ACEOF
23922 cat confdefs.h
>>conftest.
$ac_ext
23923 cat >>conftest.
$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23925 $ac_includes_default
23926 #include <arpa/inet.h>
23928 rm -f conftest.
$ac_objext
23929 if { (ac_try
="$ac_compile"
23930 case "(($ac_try" in
23931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23935 $as_echo "$ac_try_echo") >&5
23936 (eval "$ac_compile") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest.$ac_objext; then
23946 ac_header_compiler=yes
23948 $as_echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 ac_header_compiler=no
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23956 $as_echo "$ac_header_compiler" >&6; }
23958 # Is the header present?
23959 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23960 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23961 cat >conftest.$ac_ext <<_ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 #include <arpa/inet.h>
23969 if { (ac_try="$ac_cpp conftest.$ac_ext"
23970 case "(($ac_try" in
23971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23972 *) ac_try_echo
=$ac_try;;
23974 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23975 $as_echo "$ac_try_echo") >&5
23976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23978 grep -v '^ *+' conftest.er1
>conftest.err
23980 cat conftest.err
>&5
23981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } >/dev
/null
&& {
23983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23984 test ! -s conftest.err
23986 ac_header_preproc
=yes
23988 $as_echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.
$ac_ext >&5
23991 ac_header_preproc
=no
23994 rm -f conftest.err conftest.
$ac_ext
23995 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23996 $as_echo "$ac_header_preproc" >&6; }
23998 # So? What about this header?
23999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24001 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24002 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24003 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24004 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24005 ac_header_preproc
=yes
24008 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24009 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24010 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24011 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24013 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24014 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24015 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24016 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24017 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24018 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24019 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24023 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24024 $as_echo_n "checking for arpa/inet.h... " >&6; }
24025 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24026 $as_echo_n "(cached) " >&6
24028 ac_cv_header_arpa_inet_h
=$ac_header_preproc
24030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24031 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24034 if test $ac_cv_header_arpa_inet_h = yes; then
24042 if test $ok_so_far = yes; then
24044 cat >>confdefs.h
<<\_ACEOF
24045 #define HAVE_INET_SOCKETS 1
24051 for ac_header
in sys
/ioctl.h
24053 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24054 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24056 $as_echo_n "checking for $ac_header... " >&6; }
24057 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24058 $as_echo_n "(cached) " >&6
24060 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24061 $as_echo "$as_val"'`
24062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24063 $as_echo "$ac_res" >&6; }
24065 # Is the header compilable?
24066 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24067 $as_echo_n "checking $ac_header usability... " >&6; }
24068 cat >conftest.
$ac_ext <<_ACEOF
24071 cat confdefs.h
>>conftest.
$ac_ext
24072 cat >>conftest.
$ac_ext <<_ACEOF
24073 /* end confdefs.h. */
24074 $ac_includes_default
24075 #include <$ac_header>
24077 rm -f conftest.
$ac_objext
24078 if { (ac_try
="$ac_compile"
24079 case "(($ac_try" in
24080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24084 $as_echo "$ac_try_echo") >&5
24085 (eval "$ac_compile") 2>conftest.er1
24087 grep -v '^ *+' conftest.er1 >conftest.err
24089 cat conftest.err >&5
24090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); } && {
24092 test -z "$ac_c_werror_flag" ||
24093 test ! -s conftest.err
24094 } && test -s conftest.$ac_objext; then
24095 ac_header_compiler=yes
24097 $as_echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 ac_header_compiler=no
24103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24105 $as_echo "$ac_header_compiler" >&6; }
24107 # Is the header present?
24108 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24109 $as_echo_n "checking $ac_header presence... " >&6; }
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 #include <$ac_header>
24118 if { (ac_try="$ac_cpp conftest.$ac_ext"
24119 case "(($ac_try" in
24120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24121 *) ac_try_echo
=$ac_try;;
24123 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24124 $as_echo "$ac_try_echo") >&5
24125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24127 grep -v '^ *+' conftest.er1
>conftest.err
24129 cat conftest.err
>&5
24130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } >/dev
/null
&& {
24132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24133 test ! -s conftest.err
24135 ac_header_preproc
=yes
24137 $as_echo "$as_me: failed program was:" >&5
24138 sed 's/^/| /' conftest.
$ac_ext >&5
24140 ac_header_preproc
=no
24143 rm -f conftest.err conftest.
$ac_ext
24144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24145 $as_echo "$ac_header_preproc" >&6; }
24147 # So? What about this header?
24148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24151 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24154 ac_header_preproc
=yes
24157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24158 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24160 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24162 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24164 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24168 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24173 $as_echo_n "checking for $ac_header... " >&6; }
24174 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24175 $as_echo_n "(cached) " >&6
24177 eval "$as_ac_Header=\$ac_header_preproc"
24179 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24180 $as_echo "$as_val"'`
24181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24182 $as_echo "$ac_res" >&6; }
24185 if test `eval 'as_val=${'$as_ac_Header'}
24186 $as_echo "$as_val"'` = yes; then
24187 cat >>confdefs.h
<<_ACEOF
24188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24196 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24198 cat >>confdefs.h
<<\_ACEOF
24199 #define HAVE_AIX_SMT_EXP 1
24204 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24205 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24206 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24207 { $as_echo "$as_me:$LINENO: result: yes" >&5
24208 $as_echo "yes" >&6; }
24210 cat >>confdefs.h
<<\_ACEOF
24211 #define HAVE_DEV_PTMX 1
24215 { $as_echo "$as_me:$LINENO: result: no" >&5
24216 $as_echo "no" >&6; }
24219 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24220 $as_echo_n "checking for pid_t... " >&6; }
24221 if test "${ac_cv_type_pid_t+set}" = set; then
24222 $as_echo_n "(cached) " >&6
24224 ac_cv_type_pid_t
=no
24225 cat >conftest.
$ac_ext <<_ACEOF
24228 cat confdefs.h
>>conftest.
$ac_ext
24229 cat >>conftest.
$ac_ext <<_ACEOF
24230 /* end confdefs.h. */
24231 $ac_includes_default
24235 if (sizeof (pid_t))
24241 rm -f conftest.
$ac_objext
24242 if { (ac_try
="$ac_compile"
24243 case "(($ac_try" in
24244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24248 $as_echo "$ac_try_echo") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24251 grep -v '^ *+' conftest.er1 >conftest.err
24253 cat conftest.err >&5
24254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.$ac_objext; then
24259 cat >conftest.$ac_ext <<_ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 $ac_includes_default
24269 if (sizeof ((pid_t)))
24275 rm -f conftest.$ac_objext
24276 if { (ac_try="$ac_compile"
24277 case "(($ac_try" in
24278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24279 *) ac_try_echo
=$ac_try;;
24281 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24282 $as_echo "$ac_try_echo") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24285 grep -v '^ *+' conftest.er1
>conftest.err
24287 cat conftest.err
>&5
24288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.
$ac_objext; then
24295 $as_echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.
$ac_ext >&5
24298 ac_cv_type_pid_t
=yes
24301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24303 $as_echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.
$ac_ext >&5
24309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24311 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24312 $as_echo "$ac_cv_type_pid_t" >&6; }
24313 if test $ac_cv_type_pid_t = yes; then
24317 cat >>confdefs.h
<<_ACEOF
24324 for ac_header
in vfork.h
24326 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24327 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24329 $as_echo_n "checking for $ac_header... " >&6; }
24330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24331 $as_echo_n "(cached) " >&6
24333 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24334 $as_echo "$as_val"'`
24335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24336 $as_echo "$ac_res" >&6; }
24338 # Is the header compilable?
24339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24340 $as_echo_n "checking $ac_header usability... " >&6; }
24341 cat >conftest.
$ac_ext <<_ACEOF
24344 cat confdefs.h
>>conftest.
$ac_ext
24345 cat >>conftest.
$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 $ac_includes_default
24348 #include <$ac_header>
24350 rm -f conftest.
$ac_objext
24351 if { (ac_try
="$ac_compile"
24352 case "(($ac_try" in
24353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24354 *) ac_try_echo=$ac_try;;
24356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24357 $as_echo "$ac_try_echo") >&5
24358 (eval "$ac_compile") 2>conftest.er1
24360 grep -v '^ *+' conftest.er1 >conftest.err
24362 cat conftest.err >&5
24363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } && {
24365 test -z "$ac_c_werror_flag" ||
24366 test ! -s conftest.err
24367 } && test -s conftest.$ac_objext; then
24368 ac_header_compiler=yes
24370 $as_echo "$as_me: failed program was:" >&5
24371 sed 's/^/| /' conftest.$ac_ext >&5
24373 ac_header_compiler=no
24376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24378 $as_echo "$ac_header_compiler" >&6; }
24380 # Is the header present?
24381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24382 $as_echo_n "checking $ac_header presence... " >&6; }
24383 cat >conftest.$ac_ext <<_ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 #include <$ac_header>
24391 if { (ac_try="$ac_cpp conftest.$ac_ext"
24392 case "(($ac_try" in
24393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24394 *) ac_try_echo
=$ac_try;;
24396 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24397 $as_echo "$ac_try_echo") >&5
24398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24400 grep -v '^ *+' conftest.er1
>conftest.err
24402 cat conftest.err
>&5
24403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } >/dev
/null
&& {
24405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24406 test ! -s conftest.err
24408 ac_header_preproc
=yes
24410 $as_echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.
$ac_ext >&5
24413 ac_header_preproc
=no
24416 rm -f conftest.err conftest.
$ac_ext
24417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24418 $as_echo "$ac_header_preproc" >&6; }
24420 # So? What about this header?
24421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24427 ac_header_preproc
=yes
24430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24433 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24437 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24446 $as_echo_n "checking for $ac_header... " >&6; }
24447 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24448 $as_echo_n "(cached) " >&6
24450 eval "$as_ac_Header=\$ac_header_preproc"
24452 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24453 $as_echo "$as_val"'`
24454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24455 $as_echo "$ac_res" >&6; }
24458 if test `eval 'as_val=${'$as_ac_Header'}
24459 $as_echo "$as_val"'` = yes; then
24460 cat >>confdefs.h
<<_ACEOF
24461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24470 for ac_func
in fork vfork
24472 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24473 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24474 $as_echo_n "checking for $ac_func... " >&6; }
24475 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24476 $as_echo_n "(cached) " >&6
24478 cat >conftest.
$ac_ext <<_ACEOF
24481 cat confdefs.h
>>conftest.
$ac_ext
24482 cat >>conftest.
$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24486 #define $ac_func innocuous_$ac_func
24488 /* System header to define __stub macros and hopefully few prototypes,
24489 which can conflict with char $ac_func (); below.
24490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24491 <limits.h> exists even on freestanding compilers. */
24494 # include <limits.h>
24496 # include <assert.h>
24501 /* Override any GCC internal prototype to avoid an error.
24502 Use char because int might match the return type of a GCC
24503 builtin and then its argument prototype would still apply. */
24508 /* The GNU C library defines this for functions which it implements
24509 to always fail with ENOSYS. Some functions are actually named
24510 something starting with __ and the normal name is an alias. */
24511 #if defined __stub_$ac_func || defined __stub___$ac_func
24518 return $ac_func ();
24523 rm -f conftest.
$ac_objext conftest
$ac_exeext
24524 if { (ac_try
="$ac_link"
24525 case "(($ac_try" in
24526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24530 $as_echo "$ac_try_echo") >&5
24531 (eval "$ac_link") 2>conftest.er1
24533 grep -v '^ *+' conftest.er1 >conftest.err
24535 cat conftest.err >&5
24536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } && {
24538 test -z "$ac_c_werror_flag" ||
24539 test ! -s conftest.err
24540 } && test -s conftest$ac_exeext && {
24541 test "$cross_compiling" = yes ||
24542 $as_test_x conftest$ac_exeext
24544 eval "$as_ac_var=yes"
24546 $as_echo "$as_me: failed program was:" >&5
24547 sed 's/^/| /' conftest.$ac_ext >&5
24549 eval "$as_ac_var=no"
24552 rm -rf conftest.dSYM
24553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24554 conftest$ac_exeext conftest.$ac_ext
24556 ac_res=`eval 'as_val=${'$as_ac_var'}
24557 $as_echo "$as_val"'`
24558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24559 $as_echo "$ac_res" >&6; }
24560 if test `eval 'as_val=${'$as_ac_var'}
24561 $as_echo "$as_val"'` = yes; then
24562 cat >>confdefs.h <<_ACEOF
24563 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24569 if test "x$ac_cv_func_fork" = xyes; then
24570 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24571 $as_echo_n "checking for working fork... " >&6; }
24572 if test "${ac_cv_func_fork_works+set}" = set; then
24573 $as_echo_n "(cached) " >&6
24575 if test "$cross_compiling" = yes; then
24576 ac_cv_func_fork_works=cross
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 $ac_includes_default
24589 /* By Ruediger Kuhlmann. */
24590 return fork () < 0;
24596 rm -f conftest$ac_exeext
24597 if { (ac_try="$ac_link"
24598 case "(($ac_try" in
24599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24600 *) ac_try_echo
=$ac_try;;
24602 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24603 $as_echo "$ac_try_echo") >&5
24604 (eval "$ac_link") 2>&5
24606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24608 { (case "(($ac_try" in
24609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24613 $as_echo "$ac_try_echo") >&5
24614 (eval "$ac_try") 2>&5
24616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24618 ac_cv_func_fork_works=yes
24620 $as_echo "$as_me: program exited with status $ac_status" >&5
24621 $as_echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24624 ( exit $ac_status )
24625 ac_cv_func_fork_works=no
24627 rm -rf conftest.dSYM
24628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24633 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24634 $as_echo "$ac_cv_func_fork_works" >&6; }
24637 ac_cv_func_fork_works=$ac_cv_func_fork
24639 if test "x$ac_cv_func_fork_works" = xcross; then
24641 *-*-amigaos* | *-*-msdosdjgpp*)
24642 # Override, as these systems have only a dummy fork() stub
24643 ac_cv_func_fork_works=no
24646 ac_cv_func_fork_works=yes
24649 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24650 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24652 ac_cv_func_vfork_works=$ac_cv_func_vfork
24653 if test "x$ac_cv_func_vfork" = xyes; then
24654 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24655 $as_echo_n "checking for working vfork... " >&6; }
24656 if test "${ac_cv_func_vfork_works+set}" = set; then
24657 $as_echo_n "(cached) " >&6
24659 if test "$cross_compiling" = yes; then
24660 ac_cv_func_vfork_works=cross
24662 cat >conftest.$ac_ext <<_ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24668 /* Thanks to Paul Eggert for this test. */
24669 $ac_includes_default
24670 #include <sys/wait.h>
24671 #ifdef HAVE_VFORK_H
24672 # include <vfork.h>
24674 /* On some sparc systems, changes by the child to local and incoming
24675 argument registers are propagated back to the parent. The compiler
24676 is told about this with #include <vfork.h>, but some compilers
24677 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24678 static variable whose address is put into a register that is
24679 clobbered by the vfork. */
24682 sparc_address_test (int arg)
24684 sparc_address_test (arg) int arg;
24687 static pid_t child;
24705 pid_t parent = getpid ();
24708 sparc_address_test (0);
24713 /* Here is another test for sparc vfork register problems. This
24714 test uses lots of local variables, at least as many local
24715 variables as main has allocated so far including compiler
24716 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24717 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24718 reuse the register of parent for one of the local variables,
24719 since it will think that parent can't possibly be used any more
24720 in this routine. Assigning to the local variable will thus
24721 munge parent in the parent process. */
24723 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24724 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24725 /* Convince the compiler that p..p7 are live; otherwise, it might
24726 use the same hardware register for all 8 local variables. */
24727 if (p != p1 || p != p2 || p != p3 || p != p4
24728 || p != p5 || p != p6 || p != p7)
24731 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24732 from child file descriptors. If the child closes a descriptor
24733 before it execs or exits, this munges the parent's descriptor
24734 as well. Test for this by closing stdout in the child. */
24735 _exit(close(fileno(stdout)) != 0);
24740 while (wait(&status) != child)
24743 /* Was there some problem with vforking? */
24746 /* Did the child fail? (This shouldn't happen.) */
24749 /* Did the vfork/compiler bug occur? */
24750 || parent != getpid()
24752 /* Did the file descriptor bug occur? */
24753 || fstat(fileno(stdout), &st) != 0
24758 rm -f conftest$ac_exeext
24759 if { (ac_try="$ac_link"
24760 case "(($ac_try" in
24761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24762 *) ac_try_echo
=$ac_try;;
24764 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24765 $as_echo "$ac_try_echo") >&5
24766 (eval "$ac_link") 2>&5
24768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24770 { (case "(($ac_try" in
24771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24775 $as_echo "$ac_try_echo") >&5
24776 (eval "$ac_try") 2>&5
24778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_func_vfork_works=yes
24782 $as_echo "$as_me: program exited with status $ac_status" >&5
24783 $as_echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 ( exit $ac_status )
24787 ac_cv_func_vfork_works=no
24789 rm -rf conftest.dSYM
24790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24795 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24796 $as_echo "$ac_cv_func_vfork_works" >&6; }
24799 if test "x$ac_cv_func_fork_works" = xcross; then
24800 ac_cv_func_vfork_works=$ac_cv_func_vfork
24801 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24802 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24805 if test "x$ac_cv_func_vfork_works" = xyes; then
24807 cat >>confdefs.h <<\_ACEOF
24808 #define HAVE_WORKING_VFORK 1
24813 cat >>confdefs.h <<\_ACEOF
24818 if test "x$ac_cv_func_fork_works" = xyes; then
24820 cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_WORKING_FORK 1
24827 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24828 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24829 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24830 $as_echo_n "(cached) " >&6
24832 cat >conftest.$ac_ext <<_ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h. */
24838 #include <langinfo.h>
24842 char* cs = nl_langinfo(CODESET);
24847 rm -f conftest.$ac_objext conftest$ac_exeext
24848 if { (ac_try="$ac_link"
24849 case "(($ac_try" in
24850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24851 *) ac_try_echo
=$ac_try;;
24853 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24854 $as_echo "$ac_try_echo") >&5
24855 (eval "$ac_link") 2>conftest.er1
24857 grep -v '^ *+' conftest.er1
>conftest.err
24859 cat conftest.err
>&5
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest
$ac_exeext && {
24865 test "$cross_compiling" = yes ||
24866 $as_test_x conftest
$ac_exeext
24868 emacs_cv_langinfo_codeset
=yes
24870 $as_echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.
$ac_ext >&5
24873 emacs_cv_langinfo_codeset
=no
24876 rm -rf conftest.dSYM
24877 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24878 conftest
$ac_exeext conftest.
$ac_ext
24881 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24882 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24883 if test $emacs_cv_langinfo_codeset = yes; then
24885 cat >>confdefs.h
<<\_ACEOF
24886 #define HAVE_LANGINFO_CODESET 1
24891 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24892 $as_echo_n "checking for size_t... " >&6; }
24893 if test "${ac_cv_type_size_t+set}" = set; then
24894 $as_echo_n "(cached) " >&6
24896 ac_cv_type_size_t
=no
24897 cat >conftest.
$ac_ext <<_ACEOF
24900 cat confdefs.h
>>conftest.
$ac_ext
24901 cat >>conftest.
$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 $ac_includes_default
24907 if (sizeof (size_t))
24913 rm -f conftest.
$ac_objext
24914 if { (ac_try
="$ac_compile"
24915 case "(($ac_try" in
24916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24917 *) ac_try_echo=$ac_try;;
24919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24920 $as_echo "$ac_try_echo") >&5
24921 (eval "$ac_compile") 2>conftest.er1
24923 grep -v '^ *+' conftest.er1 >conftest.err
24925 cat conftest.err >&5
24926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } && {
24928 test -z "$ac_c_werror_flag" ||
24929 test ! -s conftest.err
24930 } && test -s conftest.$ac_objext; then
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 $ac_includes_default
24941 if (sizeof ((size_t)))
24947 rm -f conftest.$ac_objext
24948 if { (ac_try="$ac_compile"
24949 case "(($ac_try" in
24950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24951 *) ac_try_echo
=$ac_try;;
24953 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24954 $as_echo "$ac_try_echo") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24957 grep -v '^ *+' conftest.er1
>conftest.err
24959 cat conftest.err
>&5
24960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && {
24962 test -z "$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 } && test -s conftest.
$ac_objext; then
24967 $as_echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.
$ac_ext >&5
24970 ac_cv_type_size_t
=yes
24973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24975 $as_echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.
$ac_ext >&5
24981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24983 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24984 $as_echo "$ac_cv_type_size_t" >&6; }
24985 if test $ac_cv_type_size_t = yes; then
24987 cat >>confdefs.h
<<_ACEOF
24988 #define HAVE_SIZE_T 1
24995 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24996 $as_echo_n "checking for mbstate_t... " >&6; }
24997 if test "${ac_cv_type_mbstate_t+set}" = set; then
24998 $as_echo_n "(cached) " >&6
25000 cat >conftest.
$ac_ext <<_ACEOF
25003 cat confdefs.h
>>conftest.
$ac_ext
25004 cat >>conftest.
$ac_ext <<_ACEOF
25005 /* end confdefs.h. */
25006 $ac_includes_default
25007 # include <wchar.h>
25011 mbstate_t x; return sizeof x;
25016 rm -f conftest.
$ac_objext
25017 if { (ac_try
="$ac_compile"
25018 case "(($ac_try" in
25019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25023 $as_echo "$ac_try_echo") >&5
25024 (eval "$ac_compile") 2>conftest.er1
25026 grep -v '^ *+' conftest.er1 >conftest.err
25028 cat conftest.err >&5
25029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } && {
25031 test -z "$ac_c_werror_flag" ||
25032 test ! -s conftest.err
25033 } && test -s conftest.$ac_objext; then
25034 ac_cv_type_mbstate_t=yes
25036 $as_echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25039 ac_cv_type_mbstate_t=no
25042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25045 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25046 if test $ac_cv_type_mbstate_t = yes; then
25048 cat >>confdefs.h <<\_ACEOF
25049 #define HAVE_MBSTATE_T 1
25054 cat >>confdefs.h <<\_ACEOF
25055 #define mbstate_t int
25060 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25061 $as_echo_n "checking for C restrict keyword... " >&6; }
25062 if test "${emacs_cv_c_restrict+set}" = set; then
25063 $as_echo_n "(cached) " >&6
25065 cat >conftest.$ac_ext <<_ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 void fred (int *restrict x);
25080 rm -f conftest.$ac_objext
25081 if { (ac_try="$ac_compile"
25082 case "(($ac_try" in
25083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25084 *) ac_try_echo
=$ac_try;;
25086 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25087 $as_echo "$ac_try_echo") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25090 grep -v '^ *+' conftest.er1
>conftest.err
25092 cat conftest.err
>&5
25093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest.
$ac_objext; then
25098 emacs_cv_c_restrict
=yes
25100 $as_echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.
$ac_ext >&5
25103 cat >conftest.
$ac_ext <<_ACEOF
25106 cat confdefs.h
>>conftest.
$ac_ext
25107 cat >>conftest.
$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 void fred (int *__restrict x);
25118 rm -f conftest.
$ac_objext
25119 if { (ac_try
="$ac_compile"
25120 case "(($ac_try" in
25121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25125 $as_echo "$ac_try_echo") >&5
25126 (eval "$ac_compile") 2>conftest.er1
25128 grep -v '^ *+' conftest.er1 >conftest.err
25130 cat conftest.err >&5
25131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest.$ac_objext; then
25136 emacs_cv_c_restrict=__restrict
25138 $as_echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 emacs_cv_c_restrict=no
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25150 $as_echo "$emacs_cv_c_restrict" >&6; }
25151 case "$emacs_cv_c_restrict" in
25152 yes) emacs_restrict=restrict;;
25153 no) emacs_restrict="";;
25154 *) emacs_restrict="$emacs_cv_c_restrict";;
25156 if test "$emacs_restrict" != __restrict; then
25158 cat >>confdefs.h <<_ACEOF
25159 #define __restrict $emacs_restrict
25164 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25165 $as_echo_n "checking for C restricted array declarations... " >&6; }
25166 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25167 $as_echo_n "(cached) " >&6
25169 cat >conftest.$ac_ext <<_ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25175 void fred (int x[__restrict]);
25184 rm -f conftest.$ac_objext
25185 if { (ac_try="$ac_compile"
25186 case "(($ac_try" in
25187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25188 *) ac_try_echo
=$ac_try;;
25190 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25191 $as_echo "$ac_try_echo") >&5
25192 (eval "$ac_compile") 2>conftest.er1
25194 grep -v '^ *+' conftest.er1
>conftest.err
25196 cat conftest.err
>&5
25197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } && {
25199 test -z "$ac_c_werror_flag" ||
25200 test ! -s conftest.err
25201 } && test -s conftest.
$ac_objext; then
25202 emacs_cv_c_restrict_arr
=yes
25204 $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.
$ac_ext >&5
25207 emacs_cv_c_restrict_arr
=no
25210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25212 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25213 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25214 if test "$emacs_cv_c_restrict_arr" = yes; then
25216 cat >>confdefs.h
<<\_ACEOF
25217 #define __restrict_arr __restrict
25224 # Set up the CFLAGS for real compilation, so we can substitute it.
25225 CFLAGS
="$REAL_CFLAGS"
25226 CPPFLAGS
="$REAL_CPPFLAGS"
25228 #### Find out which version of Emacs this is.
25229 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25230 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25231 if test x
"${version}" = x
; then
25232 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25233 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25234 { (exit 1); exit 1; }; }
25236 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
25237 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25238 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25241 ### Specify what sort of things we'll be editing into Makefile and config.h.
25242 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25286 cat >>confdefs.h <<_ACEOF
25287 #define EMACS_CONFIGURATION "${canonical}"
25291 cat >>confdefs.h <<_ACEOF
25292 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25296 cat >>confdefs.h <<_ACEOF
25297 #define config_machfile "${machfile}"
25301 cat >>confdefs.h <<_ACEOF
25302 #define config_opsysfile "${opsysfile}"
25306 cat >>confdefs.h <<_ACEOF
25307 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25311 cat >>confdefs.h <<_ACEOF
25312 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25316 cat >>confdefs.h <<_ACEOF
25317 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25321 cat >>confdefs.h <<_ACEOF
25322 #define UNEXEC_SRC ${UNEXEC_SRC}
25326 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_X_WINDOWS 1
25333 if test "${USE_X_TOOLKIT}" != "none
" ; then
25335 cat >>confdefs.h <<\_ACEOF
25336 #define USE_X_TOOLKIT 1
25339 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
25341 cat >>confdefs.h <<\_ACEOF
25342 #define USE_LUCID 1
25345 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
25347 cat >>confdefs.h <<\_ACEOF
25348 #define USE_MOTIF 1
25353 if test "${HAVE_X11}" = "yes" ; then
25355 cat >>confdefs.h <<\_ACEOF
25360 if test "${HAVE_MENUS}" = "yes" ; then
25362 cat >>confdefs.h <<\_ACEOF
25363 #define HAVE_MENUS 1
25367 if test "${GNU_MALLOC}" = "yes" ; then
25369 cat >>confdefs.h <<\_ACEOF
25370 #define GNU_MALLOC 1
25374 if test "${REL_ALLOC}" = "yes" ; then
25376 cat >>confdefs.h <<\_ACEOF
25377 #define REL_ALLOC 1
25387 #### Report on what we decided to do.
25388 #### Report GTK as a toolkit, even if it doesn't use Xt.
25389 #### It makes printing result more understandable as using GTK sets
25390 #### toolkit_scroll_bars to yes by default.
25391 if test "${HAVE_GTK}" = "yes"; then
25396 Configured
for \
`${canonical}'.
25398 Where should the build process find the source code? ${srcdir}
25399 What operating system and machine description files should Emacs use?
25400 \`${opsysfile}' and \`${machfile}'
25401 What compiler should emacs be built with?
${CC} ${CFLAGS}
25402 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
25403 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
25404 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
25405 What window system should Emacs use?
${window_system}
25406 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
25408 if test -n "${x_includes}"; then
25409 echo " Where
do we
find X Windows header files?
${x_includes}"
25411 echo " Where
do we
find X Windows header files? Standard
dirs"
25413 if test -n "${x_libraries}"; then
25414 echo " Where
do we
find X Windows libraries?
${x_libraries}"
25416 echo " Where
do we
find X Windows libraries? Standard
dirs"
25419 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
25420 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
25421 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
25422 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
25423 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
25424 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
25425 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
25426 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
25427 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
25429 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
25430 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
25431 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
25432 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
25434 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
25437 if test $USE_XASSERTS = yes; then
25438 echo " Compiling with asserts turned on.
"
25439 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25444 if test "$USE_X_TOOLKIT" = GTK; then
25445 case "$canonical" in
25447 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
25448 will probably get a crash on startup. If this happens
, please use another
25449 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
25454 if test "$HAVE_NS" = "yes"; then
25456 echo "You must run
\"make install\" in order to
test the built application.
25457 The installed application will go to nextstep
/Emacs.app and can be
25458 run or moved from there.
"
25459 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25460 echo "The application will be fully self-contained.
"
25462 echo "The lisp resources
for the application will be installed under
${prefix}.
25463 You may need to run
\"make install\" with sudo. The application will fail
25464 to run
if these resources are not installed.
"
25469 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
25470 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
25475 # Remove any trailing slashes in these variables.
25476 test "${prefix}" != NONE &&
25477 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25478 test "${exec_prefix}" != NONE &&
25479 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25481 # Now get this: Some word that is part of the ${srcdir} directory name
25482 # or the ${configuration} value might, just might, happen to be an
25483 # identifier like `sun4' or `i386' or something, and be predefined by
25484 # the C preprocessor to some helpful value like 1, or maybe the empty
25485 # string. Needless to say consequent macro substitutions are less
25486 # than conducive to the makefile finding the correct directory.
25487 cpp_undefs="`echo $srcdir $configuration $canonical |
25488 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25489 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25491 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25492 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25493 ## from Makefile.c can correctly provide the arg `-traditional' to the
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25504 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25505 $EGREP "yes..
yes" >/dev/null 2>&1; then
25506 CPP_NEED_TRADITIONAL=no
25508 CPP_NEED_TRADITIONAL=yes
25513 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
"
25515 ac_config_commands="$ac_config_commands default
"
25517 cat >confcache <<\_ACEOF
25518 # This file is a shell script that caches the results of configure
25519 # tests run on this system so they can be shared between configure
25520 # scripts and configure runs, see configure's option --config-cache.
25521 # It is not useful on other systems. If it contains results you don't
25522 # want to keep, you may remove or edit it.
25524 # config.status only pays attention to the cache file if you give it
25525 # the --recheck option to rerun configure.
25527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25529 # following values.
25533 # The following way of writing the cache mishandles newlines in values,
25534 # but we know of no workaround that is simple, portable, and efficient.
25535 # So, we kill variables containing newlines.
25536 # Ultrix sh set writes to stderr and can't be redirected directly,
25537 # and sets the high bit in the cache file unless we assign to the vars.
25539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25540 eval ac_val=\$$ac_var
25544 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
25545 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
25548 _ | IFS | as_nl) ;; #(
25549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25550 *) $as_unset $ac_var ;;
25556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25557 *${as_nl}ac_space=\ *)
25558 # `set' does not quote correctly, so add quotes (double-quote
25559 # substitution turns \\\\ into \\, and sed turns \\ into \).
25562 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
25565 # `set' quotes correctly as required by POSIX, so do not add quotes.
25566 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
25575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25580 if test -w "$cache_file"; then
25581 test "x
$cache_file" != "x
/dev
/null
" &&
25582 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
25583 $as_echo "$as_me: updating cache
$cache_file" >&6;}
25584 cat confcache >$cache_file
25586 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
25587 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
25592 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
25593 # Let make expand exec_prefix.
25594 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
25596 DEFS=-DHAVE_CONFIG_H
25600 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
25601 # 1. Remove the extension, and $U if already installed.
25602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25605 # will be set to the directory where LIBOBJS objects are built.
25606 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
25607 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
25609 LIBOBJS=$ac_libobjs
25611 LTLIBOBJS=$ac_ltlibobjs
25615 : ${CONFIG_STATUS=./config.status}
25617 ac_clean_files_save=$ac_clean_files
25618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25619 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
25620 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
25621 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25623 # Generated by $as_me.
25624 # Run this file to recreate the current configuration.
25625 # Compiler output produced by configure, useful for debugging
25626 # configure, is in config.log if it exists.
25629 ac_cs_recheck=false
25631 SHELL=\${CONFIG_SHELL-$SHELL}
25634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25635 ## --------------------- ##
25636 ## M4sh Initialization. ##
25637 ## --------------------- ##
25639 # Be more Bourne compatible
25640 DUALCASE=1; export DUALCASE # for MKS sh
25641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25645 # is contrary to our usage. Disable this feature.
25646 alias -g '${1+"$@"}'='"$@
"'
25647 setopt NO_GLOB_SUBST
25649 case `(set -o) 2>/dev/null` in
25650 *posix*) set -o posix ;;
25659 # Avoid depending upon Character Ranges.
25660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25663 as_cr_digits='0123456789'
25664 as_cr_alnum=$as_cr_Letters$as_cr_digits
25669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25673 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
25674 as_echo='printf %s\n'
25675 as_echo_n='printf %s'
25677 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
25678 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25679 as_echo_n='/usr/ucb/echo -n'
25681 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
25682 as_echo_n_body='eval
25686 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
25687 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
25689 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
25691 export as_echo_n_body
25692 as_echo_n='sh -c $as_echo_n_body as_echo'
25694 export as_echo_body
25695 as_echo='sh -c $as_echo_body as_echo'
25698 # The user is always right.
25699 if test "${PATH_SEPARATOR+set}" != set; then
25701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25707 # Support unset when possible.
25708 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25716 # We need space, tab and new line, in precisely that order. Quoting is
25717 # there to prevent editors from complaining about space-tab.
25718 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25719 # splitting by setting IFS to empty value.)
25722 # Find who we are. Look in the path if we contain no directory separator.
25724 *[\\/]* ) as_myself=$0 ;;
25725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25726 for as_dir in $PATH
25729 test -z "$as_dir" && as_dir=.
25730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25736 # We did not find ourselves, most probably we were run as `sh COMMAND'
25737 # in which case we are not to be found in the path.
25738 if test "x
$as_myself" = x; then
25741 if test ! -f "$as_myself"; then
25742 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
25743 { (exit 1); exit 1; }
25746 # Work around bugs in pre-3.0 UWIN ksh.
25747 for as_var in ENV MAIL MAILPATH
25748 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25760 # Required to use basename.
25761 if expr a : '\(a\)' >/dev/null 2>&1 &&
25762 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25768 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
25769 as_basename=basename
25775 # Name of the executable.
25776 as_me=`$as_basename -- "$0" ||
25777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25778 X"$0" : 'X\(//\)$' \| \
25779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25781 sed '/^.*\/\([^/][^/]*\)\/*$/{
25800 as_lineno_1=$LINENO
25801 as_lineno_2=$LINENO
25802 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
25803 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
25805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25806 # uniformly replaced by the line number. The first 'sed' inserts a
25807 # line-number line after each line using $LINENO; the second 'sed'
25808 # does the real work. The second script uses 'N' to pair each
25809 # line-number line with the line containing $LINENO, and appends
25810 # trailing '-' during substitution so that $LINENO is not a special
25811 # case at line end.
25812 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25813 # scripts with optimization help from Paolo Bonzini. Blame Lee
25814 # E. McMahon (1931-1989) for sed's syntax. :-)
25826 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25829 ' >$as_me.lineno &&
25830 chmod +x "$as_me.lineno
" ||
25831 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
25832 { (exit 1); exit 1; }; }
25834 # Don't try to exec as it changes $[0], causing all sort of problems
25835 # (the dirname of $[0] is not the place where we might find the
25836 # original and so on. Autoconf is especially sensitive to this).
25837 . ".
/$as_me.lineno
"
25838 # Exit status is that of the last command.
25843 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
25849 ECHO_C= ECHO_N= ECHO_T=
25850 case `echo -n x` in
25852 case `echo 'x\c'` in
25853 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25859 if expr a : '\(a\)' >/dev/null 2>&1 &&
25860 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25866 rm -f conf$$ conf$$.exe conf$$.file
25867 if test -d conf$$.dir; then
25868 rm -f conf$$.dir/conf$$.file
25871 mkdir conf$$.dir 2>/dev/null
25873 if (echo >conf$$.file) 2>/dev/null; then
25874 if ln -s conf$$.file conf$$ 2>/dev/null; then
25876 # ... but there are two gotchas:
25877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25879 # In both cases, we have to default to `cp -p'.
25880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25882 elif ln conf$$.file conf$$ 2>/dev/null; then
25890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25891 rmdir conf$$.dir 2>/dev/null
25893 if mkdir -p . 2>/dev/null; then
25896 test -d ./-p && rmdir ./-p
25900 if test -x / >/dev/null 2>&1; then
25901 as_test_x='test -x'
25903 if ls -dL / >/dev/null 2>&1; then
25910 if test -d "$1"; then
25916 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25917 ???[sx]*):;;*)false;;esac;fi
25921 as_executable_p=$as_test_x
25923 # Sed expression to map a string onto a valid CPP name.
25924 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25926 # Sed expression to map a string onto a valid variable name.
25927 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25932 # Save the log message, to keep $[0] and so on meaningful, and to
25933 # report actual input values of CONFIG_FILES etc. instead of their
25934 # values after options handling.
25936 This
file was extended by emacs
$as_me 23.1.50, which was
25937 generated by GNU Autoconf
2.62. Invocation
command line was
25939 CONFIG_FILES
= $CONFIG_FILES
25940 CONFIG_HEADERS
= $CONFIG_HEADERS
25941 CONFIG_LINKS
= $CONFIG_LINKS
25942 CONFIG_COMMANDS
= $CONFIG_COMMANDS
25945 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
25950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25951 # Files that config.status was made for.
25952 config_files="$ac_config_files"
25953 config_headers="$ac_config_headers"
25954 config_commands="$ac_config_commands"
25958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25960 \
`$as_me' instantiates files from templates according to the
25961 current configuration.
25963 Usage: $0 [OPTIONS] [FILE]...
25965 -h, --help print this help, then exit
25966 -V, --version print version number and configuration settings, then exit
25967 -q, --quiet do not print progress messages
25968 -d, --debug don't remove temporary files
25969 --recheck update $as_me by reconfiguring in the same conditions
25970 --file=FILE[:TEMPLATE]
25971 instantiate the configuration file FILE
25972 --header=FILE[:TEMPLATE]
25973 instantiate the configuration header FILE
25975 Configuration files:
25978 Configuration headers:
25981 Configuration commands:
25984 Report bugs to <bug-autoconf@gnu.org>."
25987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25989 emacs config.status 23.1.50
25990 configured by $0, generated by GNU Autoconf 2.62,
25991 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25993 Copyright (C) 2008 Free Software Foundation, Inc.
25994 This config.status script is free software; the Free Software Foundation
25995 gives unlimited permission to copy, distribute and modify it."
26000 test -n "\$AWK" || AWK=awk
26003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26004 # The default lists apply if the user does not specify any file.
26010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26011 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26022 # Handling of the options.
26023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26026 $as_echo "$ac_cs_version"; exit ;;
26027 --debug | --debu | --deb | --de | --d | -d )
26029 --file | --fil | --fi | --f )
26032 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26034 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26035 ac_need_defaults=false;;
26036 --header | --heade | --head | --hea )
26039 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26041 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26042 ac_need_defaults=false;;
26044 # Conflict between --help and --header
26045 { $as_echo "$as_me: error: ambiguous option: $1
26046 Try \`$0 --help' for more information." >&2
26047 { (exit 1); exit 1; }; };;
26048 --help | --hel | -h )
26049 $as_echo "$ac_cs_usage"; exit ;;
26050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26054 # This is an error.
26055 -*) { $as_echo "$as_me: error: unrecognized option: $1
26056 Try \`$0 --help' for more information.
" >&2
26057 { (exit 1); exit 1; }; } ;;
26059 *) ac_config_targets="$ac_config_targets $1"
26060 ac_need_defaults=false ;;
26066 ac_configure_extra_args=
26068 if $ac_cs_silent; then
26070 ac_configure_extra_args="$ac_configure_extra_args --silent"
26074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26075 if \$ac_cs_recheck; then
26076 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26078 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
26079 CONFIG_SHELL='$SHELL'
26080 export CONFIG_SHELL
26085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26090 ## Running $as_me. ##
26096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26100 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26106 # Handling of arguments.
26107 for ac_config_target in $ac_config_targets
26109 case $ac_config_target in
26110 "src
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/config.h
:src
/config.
in" ;;
26111 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
26112 "lib-src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES lib-src
/Makefile.c
:lib-src
/Makefile.
in" ;;
26113 "oldXMenu
/Makefile
") CONFIG_FILES="$CONFIG_FILES oldXMenu
/Makefile
" ;;
26114 "doc
/emacs
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/emacs
/Makefile
" ;;
26115 "doc
/misc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/misc
/Makefile
" ;;
26116 "doc
/lispintro
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispintro
/Makefile
" ;;
26117 "doc
/lispref
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispref
/Makefile
" ;;
26118 "src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES src
/Makefile.c
:src
/Makefile.
in" ;;
26119 "lwlib
/Makefile
") CONFIG_FILES="$CONFIG_FILES lwlib
/Makefile
" ;;
26120 "lisp
/Makefile
") CONFIG_FILES="$CONFIG_FILES lisp
/Makefile
" ;;
26121 "leim
/Makefile
") CONFIG_FILES="$CONFIG_FILES leim
/Makefile
" ;;
26122 "default
") CONFIG_COMMANDS="$CONFIG_COMMANDS default
" ;;
26124 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
26125 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
26126 { (exit 1); exit 1; }; };;
26131 # If the user did not use the arguments to specify the items to instantiate,
26132 # then the envvar interface is used. Set only those that are not.
26133 # We use the long form for the default assignment because of an extremely
26134 # bizarre bug on SunOS 4.1.3.
26135 if $ac_need_defaults; then
26136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26141 # Have a temporary directory for convenience. Make it in the build tree
26142 # simply because there is no reason against having it here, and in addition,
26143 # creating and moving files from /tmp can sometimes cause problems.
26144 # Hook for its removal unless debugging.
26145 # Note that there is a small window in which the directory will not be cleaned:
26146 # after its creation but before its name has been assigned to `$tmp'.
26150 trap 'exit_status=$?
26151 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26153 trap '{ (exit 1); exit 1; }' 1 2 13 15
26155 # Create a (secure) tmp directory for tmp files.
26158 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
26159 test -n "$tmp" && test -d "$tmp"
26162 tmp=./conf$$-$RANDOM
26163 (umask 077 && mkdir "$tmp")
26166 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
26167 { (exit 1); exit 1; }
26170 # Set up the scripts for CONFIG_FILES section.
26171 # No need to generate them if there are no CONFIG_FILES.
26172 # This happens for instance with `./config.status config.h'.
26173 if test -n "$CONFIG_FILES"; then
26177 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
26178 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
26181 ac_cs_awk_cr=$ac_cr
26184 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
26189 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
26190 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26192 } >conf$$subs.sh ||
26193 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26194 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26195 { (exit 1); exit 1; }; }
26196 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26198 for ac_last_try in false false false false false :; do
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; }; }
26204 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26206 elif $ac_last_try; then
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 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26214 rm -f conf$$subs.sh
26216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26217 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26221 s/^/S["/; s
/!.
*/"]=/
26231 s/\(.\{148\}\).*/\1/
26233 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26238 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26245 s/\(.\{148\}\).*/\1/
26247 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26251 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26256 ' <conf$$subs.awk | sed '
26261 ' >>$CONFIG_STATUS || ac_write_fail=1
26262 rm -f conf$$subs.awk
26263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26265 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26266 for (key in S) S_is_set[key] = 1
26272 nfields = split(line, field, "@
")
26274 len = length(field[1])
26275 for (i = 2; i < nfields; i++) {
26277 keylen = length(key)
26278 if (S_is_set[key]) {
26280 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26281 len += length(value) + length(field[++i])
26292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26293 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26294 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26297 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26298 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26299 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26300 { (exit 1); exit 1; }; }
26303 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26304 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26305 # trailing colons and then remove the whole line if VPATH becomes empty
26306 # (actually we leave an empty line to preserve line numbers).
26307 if test "x
$srcdir" = x.; then
26308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26309 s/:*\$(srcdir):*/:/
26310 s/:*\${srcdir}:*/:/
26312 s/^\([^=]*=[ ]*\):*/\1/
26318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26319 fi # test -n "$CONFIG_FILES"
26321 # Set up the scripts for CONFIG_HEADERS section.
26322 # No need to generate them if there are no CONFIG_HEADERS.
26323 # This happens for instance with `./config.status Makefile'.
26324 if test -n "$CONFIG_HEADERS"; then
26325 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26329 # Transform confdefs.h into an awk script `defines.awk', embedded as
26330 # here-document in config.status, that substitutes the proper values into
26331 # config.h.in to produce config.h.
26333 # Create a delimiter string that does not exist in confdefs.h, to ease
26334 # handling of long lines.
26336 for ac_last_try in false false :; do
26337 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26338 if test -z "$ac_t"; then
26340 elif $ac_last_try; then
26341 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26342 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26343 { (exit 1); exit 1; }; }
26345 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26349 # For the awk script, D is an array of macro values keyed by name,
26350 # likewise P contains macro parameters if any. Preserve backslash
26351 # newline sequences.
26353 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26355 s/.\{148\}/&'"$ac_delim"'/g
26358 s/^[ ]*#[ ]*define[ ][ ]*/ /
26365 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26367 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26372 D["\
1"]=" \
3\\\\\\n
"\\/p
26374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26379 s/.\{148\}/&'"$ac_delim"'/g
26384 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26387 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26389 ' <confdefs.h | sed '
26390 s/'"$ac_delim"'/"\\\
26391 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26394 for (key in D) D_is_set[key] = 1
26397 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26399 split(line, arg, " ")
26400 if (arg[1] == "#") {
26404 defundef
= substr
(arg
[1], 2)
26407 split(mac1
, mac2
, "(") #)
26409 if (D_is_set
[macro
]) {
26410 # Preserve the white space surrounding the "#".
26411 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26412 print prefix
"define", macro P
[macro
] D
[macro
]
26415 # Replace #undef with comments. This is necessary, for example,
26416 # in the case of _POSIX_SOURCE, which is predefined and required
26417 # on some systems where configure will not decide to define it.
26418 if (defundef
== "undef") {
26419 print
"/*", line
, "*/"
26427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26428 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26429 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26430 { (exit 1); exit 1; }; }
26431 fi # test -n "$CONFIG_HEADERS"
26434 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26439 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26441 case $ac_mode$ac_tag in
26443 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26444 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26445 { (exit 1); exit 1; }; };;
26446 :[FH
]-) ac_tag
=-:-;;
26447 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26464 -) ac_f
="$tmp/stdin";;
26465 *) # Look for the file first in the build tree, then in the source tree
26466 # (if the path is not absolute). The absolute path cannot be DOS-style,
26467 # because $ac_f cannot contain `:'.
26471 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26473 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26474 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26475 { (exit 1); exit 1; }; };;
26477 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26478 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26481 # Let's still pretend it is `configure' which instantiates (i.e., don't
26482 # use $as_me), people would be surprised to read:
26483 # /* config.h. Generated by config.status. */
26484 configure_input
='Generated from '`
26485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26487 if test x
"$ac_file" != x-
; then
26488 configure_input
="$ac_file. $configure_input"
26489 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26490 $as_echo "$as_me: creating $ac_file" >&6;}
26492 # Neutralize special characters interpreted by sed in replacement strings.
26493 case $configure_input in #(
26494 *\
&* |
*\|
* |
*\\* )
26495 ac_sed_conf_input
=`$as_echo "$configure_input" |
26496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26497 *) ac_sed_conf_input
=$configure_input;;
26501 *:-:* |
*:-) cat >"$tmp/stdin" \
26502 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26503 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26504 { (exit 1); exit 1; }; } ;;
26509 ac_dir
=`$as_dirname -- "$ac_file" ||
26510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26511 X"$ac_file" : 'X\(//\)[^/]' \| \
26512 X"$ac_file" : 'X\(//\)$' \| \
26513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26514 $as_echo X"$ac_file" |
26515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26519 /^X\(\/\/\)[^/].*/{
26534 -*) as_dir
=.
/$as_dir;;
26536 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26540 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26541 *) as_qdir
=$as_dir;;
26543 as_dirs
="'$as_qdir' $as_dirs"
26544 as_dir
=`$as_dirname -- "$as_dir" ||
26545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26546 X"$as_dir" : 'X\(//\)[^/]' \| \
26547 X"$as_dir" : 'X\(//\)$' \| \
26548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26549 $as_echo X"$as_dir" |
26550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26554 /^X\(\/\/\)[^/].*/{
26567 test -d "$as_dir" && break
26569 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26570 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26571 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26572 { (exit 1); exit 1; }; }; }
26576 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26578 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26579 # A ".." for each directory in $ac_dir_suffix.
26580 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26581 case $ac_top_builddir_sub in
26582 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26583 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26586 ac_abs_top_builddir
=$ac_pwd
26587 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26588 # for backward compatibility:
26589 ac_top_builddir
=$ac_top_build_prefix
26592 .
) # We are building in place.
26594 ac_top_srcdir
=$ac_top_builddir_sub
26595 ac_abs_top_srcdir
=$ac_pwd ;;
26596 [\\/]* | ?
:[\\/]* ) # Absolute name.
26597 ac_srcdir
=$srcdir$ac_dir_suffix;
26598 ac_top_srcdir
=$srcdir
26599 ac_abs_top_srcdir
=$srcdir ;;
26600 *) # Relative name.
26601 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26602 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26603 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26605 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26615 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26616 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26621 # If the template does not know about datarootdir, expand it.
26622 # FIXME: This hack should be removed a few years after 2.60.
26623 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26636 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26637 *datarootdir
*) ac_datarootdir_seen
=yes;;
26638 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26639 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26640 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26643 ac_datarootdir_hack='
26644 s&@datadir@&$datadir&g
26645 s&@docdir@&$docdir&g
26646 s&@infodir@&$infodir&g
26647 s&@localedir@&$localedir&g
26648 s&@mandir@&$mandir&g
26649 s&\\\${datarootdir}&$datarootdir&g' ;;
26653 # Neutralize VPATH when `$srcdir' = `.'.
26654 # Shell code in configure.ac might set extrasub.
26655 # FIXME: do we really want to maintain this feature?
26656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26657 ac_sed_extra="$ac_vpsub
26660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26662 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26663 s|@configure_input@|
$ac_sed_conf_input|
;t t
26664 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26665 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26666 s
&@srcdir@
&$ac_srcdir&;t t
26667 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26668 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26669 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26670 s
&@builddir@
&$ac_builddir&;t t
26671 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26672 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26673 s
&@INSTALL@
&$ac_INSTALL&;t t
26674 $ac_datarootdir_hack
26676 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26677 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26678 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26679 { (exit 1); exit 1; }; }
26681 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26682 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26684 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26685 which seems to be undefined. Please make sure it is defined." >&5
26686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26687 which seems to be undefined. Please make sure it is defined." >&2;}
26691 -) cat "$tmp/out" && rm -f "$tmp/out";;
26692 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26694 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26695 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26696 { (exit 1); exit 1; }; }
26702 if test x"$ac_file" != x-; then
26704 $as_echo "/* $configure_input */" \
26705 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26706 } >"$tmp/config.h" \
26707 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26708 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26709 { (exit 1); exit 1; }; }
26710 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26711 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26712 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26715 mv "$tmp/config.h" "$ac_file" \
26716 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26717 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26718 { (exit 1); exit 1; }; }
26721 $as_echo "/* $configure_input */" \
26722 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26723 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26724 $as_echo "$as_me: error: could not create -" >&2;}
26725 { (exit 1); exit 1; }; }
26729 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26730 $as_echo "$as_me: executing $ac_file commands" >&6;}
26735 case $ac_file$ac_mode in
26738 ### Make the necessary directories, if they don't exist.
26739 for dir
in etc lisp
; do
26740 test -d ${dir} || mkdir
${dir}
26743 # Build src/Makefile from ${srcdir}/src/Makefile.c
26744 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26745 # This must be done after src/config.h is built, since we rely on that file.
26747 echo creating src
/epaths.h
26748 ${MAKE-make} epaths-force
26750 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26751 # `..' to `. .' unless invoked with -traditional
26753 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26754 CPPFLAGS
="$CPPFLAGS -traditional"
26757 echo creating lib-src
/Makefile
26759 rm -f junk.c junk1.c junk2.c
26760 sed -e '/start of cpp stuff/q' \
26761 < Makefile.c
> junk1.c
26762 sed -e '1,/start of cpp stuff/d'\
26763 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26764 < Makefile.c
> junk.c
26765 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26766 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26767 cat junk1.c junk2.c
> Makefile.new
26768 rm -f junk.c junk1.c junk2.c
26769 chmod 444 Makefile.new
26770 mv -f Makefile.new Makefile
26773 echo creating src
/Makefile
26775 rm -f junk.c junk1.c junk2.c
26776 sed -e '/start of cpp stuff/q' \
26777 < Makefile.c
> junk1.c
26778 sed -e '1,/start of cpp stuff/d'\
26779 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26780 < Makefile.c
> junk.c
26781 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26782 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26783 cat junk1.c junk2.c
> Makefile.new
26784 rm -f junk.c junk1.c junk2.c
26785 chmod 444 Makefile.new
26786 mv -f Makefile.new Makefile
26789 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26790 echo creating src
/.gdbinit
26791 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26800 { (exit 0); exit 0; }
26802 chmod +x
$CONFIG_STATUS
26803 ac_clean_files
=$ac_clean_files_save
26805 test $ac_write_fail = 0 ||
26806 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26807 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26808 { (exit 1); exit 1; }; }
26811 # configure is writing to config.log, and then calls config.status.
26812 # config.status does its own redirection, appending to config.log.
26813 # Unfortunately, on DOS this fails, as config.log is still kept open
26814 # by configure, so config.status won't be able to write to it; its
26815 # output is simply discarded. So we exec the FD to /dev/null,
26816 # effectively closing config.log, so it can be properly (re)opened and
26817 # appended to by config.status. When coming back to configure, we
26818 # need to make the FD available again.
26819 if test "$no_create" != yes; then
26821 ac_config_status_args
=
26822 test "$silent" = yes &&
26823 ac_config_status_args
="$ac_config_status_args --quiet"
26825 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26827 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26828 # would make configure fail if this is the last instruction.
26829 $ac_cs_success ||
{ (exit 1); exit 1; }
26831 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26832 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26833 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}