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
746 x_default_search_path
765 GNUSTEP_SYSTEM_HEADERS
766 GNUSTEP_SYSTEM_LIBRARIES
768 LIB_SRC_EXTRA_INSTALLABLES
773 enable_option_checking
790 with_toolkit_scroll_bars
802 enable_ns_self_contained
804 enable_maintainer_mode
812 ac_precious_vars
='build_alias
824 # Initialize some variables set by options.
826 ac_init_version
=false
827 ac_unrecognized_opts
=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name
=s
,x
,x
,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir
='${exec_prefix}/bin'
853 sbindir
='${exec_prefix}/sbin'
854 libexecdir
='${exec_prefix}/libexec'
855 datarootdir
='${prefix}/share'
856 datadir
='${datarootdir}'
857 sysconfdir
='${prefix}/etc'
858 sharedstatedir
='${prefix}/com'
859 localstatedir
='${prefix}/var'
860 includedir
='${prefix}/include'
861 oldincludedir
='/usr/include'
862 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir
='${datarootdir}/info'
868 libdir
='${exec_prefix}/lib'
869 localedir
='${datarootdir}/locale'
870 mandir
='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\
$ac_option
884 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
896 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
899 -build |
--build |
--buil |
--bui |
--bu)
900 ac_prev
=build_alias
;;
901 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
902 build_alias
=$ac_optarg ;;
904 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
905 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
906 ac_prev
=cache_file
;;
907 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
908 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
909 cache_file
=$ac_optarg ;;
912 cache_file
=config.cache
;;
914 -datadir |
--datadir |
--datadi |
--datad)
916 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
917 datadir
=$ac_optarg ;;
919 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
920 |
--dataroo |
--dataro |
--datar)
921 ac_prev
=datarootdir
;;
922 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
923 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
924 datarootdir
=$ac_optarg ;;
926 -disable-* |
--disable-*)
927 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
930 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
931 { (exit 1); exit 1; }; }
932 ac_useropt_orig
=$ac_useropt
933 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
938 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep
=', ';;
941 eval enable_
$ac_useropt=no
;;
943 -docdir |
--docdir |
--docdi |
--doc |
--do)
945 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
948 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
950 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
953 -enable-* |
--enable-*)
954 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
957 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
958 { (exit 1); exit 1; }; }
959 ac_useropt_orig
=$ac_useropt
960 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep
=', ';;
968 eval enable_
$ac_useropt=\
$ac_optarg ;;
970 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
971 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
972 |
--exec |
--exe |
--ex)
973 ac_prev
=exec_prefix
;;
974 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
975 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
976 |
--exec=* |
--exe=* |
--ex=*)
977 exec_prefix
=$ac_optarg ;;
979 -gas |
--gas |
--ga |
--g)
980 # Obsolete; use --with-gas.
983 -help |
--help |
--hel |
--he |
-h)
985 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
986 ac_init_help
=recursive
;;
987 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
988 ac_init_help
=short
;;
990 -host |
--host |
--hos |
--ho)
991 ac_prev
=host_alias
;;
992 -host=* |
--host=* |
--hos=* |
--ho=*)
993 host_alias
=$ac_optarg ;;
995 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
997 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
999 htmldir
=$ac_optarg ;;
1001 -includedir |
--includedir |
--includedi |
--included |
--include \
1002 |
--includ |
--inclu |
--incl |
--inc)
1003 ac_prev
=includedir
;;
1004 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1005 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1006 includedir
=$ac_optarg ;;
1008 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1010 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1011 infodir
=$ac_optarg ;;
1013 -libdir |
--libdir |
--libdi |
--libd)
1015 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1016 libdir
=$ac_optarg ;;
1018 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1019 |
--libexe |
--libex |
--libe)
1020 ac_prev
=libexecdir
;;
1021 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1022 |
--libexe=* |
--libex=* |
--libe=*)
1023 libexecdir
=$ac_optarg ;;
1025 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1026 ac_prev
=localedir
;;
1027 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1028 localedir
=$ac_optarg ;;
1030 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1031 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1032 ac_prev
=localstatedir
;;
1033 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1034 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1035 localstatedir
=$ac_optarg ;;
1037 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1039 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1040 mandir
=$ac_optarg ;;
1042 -nfp |
--nfp |
--nf)
1043 # Obsolete; use --without-fp.
1046 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1047 |
--no-cr |
--no-c |
-n)
1050 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1051 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1054 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1055 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1056 |
--oldin |
--oldi |
--old |
--ol |
--o)
1057 ac_prev
=oldincludedir
;;
1058 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1059 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1060 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1061 oldincludedir
=$ac_optarg ;;
1063 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1065 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1066 prefix
=$ac_optarg ;;
1068 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1069 |
--program-pre |
--program-pr |
--program-p)
1070 ac_prev
=program_prefix
;;
1071 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1072 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1073 program_prefix
=$ac_optarg ;;
1075 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1076 |
--program-suf |
--program-su |
--program-s)
1077 ac_prev
=program_suffix
;;
1078 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1079 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1080 program_suffix
=$ac_optarg ;;
1082 -program-transform-name |
--program-transform-name \
1083 |
--program-transform-nam |
--program-transform-na \
1084 |
--program-transform-n |
--program-transform- \
1085 |
--program-transform |
--program-transfor \
1086 |
--program-transfo |
--program-transf \
1087 |
--program-trans |
--program-tran \
1088 |
--progr-tra |
--program-tr |
--program-t)
1089 ac_prev
=program_transform_name
;;
1090 -program-transform-name=* |
--program-transform-name=* \
1091 |
--program-transform-nam=* |
--program-transform-na=* \
1092 |
--program-transform-n=* |
--program-transform-=* \
1093 |
--program-transform=* |
--program-transfor=* \
1094 |
--program-transfo=* |
--program-transf=* \
1095 |
--program-trans=* |
--program-tran=* \
1096 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1097 program_transform_name
=$ac_optarg ;;
1099 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1101 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1102 pdfdir
=$ac_optarg ;;
1104 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1106 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1109 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1110 |
-silent |
--silent |
--silen |
--sile |
--sil)
1113 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1115 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1117 sbindir
=$ac_optarg ;;
1119 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1120 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1121 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1123 ac_prev
=sharedstatedir
;;
1124 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1125 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1126 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1128 sharedstatedir
=$ac_optarg ;;
1130 -site |
--site |
--sit)
1132 -site=* |
--site=* |
--sit=*)
1135 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1137 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1138 srcdir
=$ac_optarg ;;
1140 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1141 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1142 ac_prev
=sysconfdir
;;
1143 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1144 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1145 sysconfdir
=$ac_optarg ;;
1147 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1148 ac_prev
=target_alias
;;
1149 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1150 target_alias
=$ac_optarg ;;
1152 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1155 -version |
--version |
--versio |
--versi |
--vers |
-V)
1156 ac_init_version
=: ;;
1159 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_useropt_orig
=$ac_useropt
1165 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep
=', ';;
1173 eval with_
$ac_useropt=\
$ac_optarg ;;
1175 -without-* |
--without-*)
1176 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=no
;;
1193 # Obsolete; use --with-x.
1196 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1197 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1198 ac_prev
=x_includes
;;
1199 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1200 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1201 x_includes
=$ac_optarg ;;
1203 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1204 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1205 ac_prev
=x_libraries
;;
1206 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1207 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1208 x_libraries
=$ac_optarg ;;
1210 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1216 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1219 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\
$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 if test -n "$ac_prev"; then
1236 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1237 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1244 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1245 { (exit 1); exit 1; }; } ;;
1246 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 # Check all directory arguments for consistency.
1251 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val
=\$
$ac_var
1257 # Remove trailing slashes.
1260 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\
$ac_val;;
1263 # Be sure to have absolute directory names.
1265 [\\/$
]* | ?
:[\\/]* ) continue;;
1266 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1268 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target
=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x
; then
1281 if test "x$build_alias" = x
; then
1282 cross_compiling
=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1293 test "$silent" = yes && exec 6>/dev
/null
1296 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di
=`ls -di .` &&
1298 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1299 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted
=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir
=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1338 ac_srcdir_defaulted
=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1342 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var
in $ac_precious_vars; do
1361 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1363 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1437 --x-includes=DIR X include files are
in DIR
1438 --x-libraries=DIR X library files are
in DIR
1441 --build=BUILD configure
for building on BUILD
[guessed
]
1442 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1453 --disable-option-checking ignore unrecognized
--enable/--with options
1454 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1455 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1456 --disable-ns-self-contained
1457 disable self contained build under NeXTstep
1458 --enable-asserts compile code with asserts enabled
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful
(and
1461 sometimes confusing
) to the casual installer
1462 --enable-locallisppath=PATH
1463 directories Emacs should search
for lisp files
1464 specific to this site
1465 --enable-checking[=LIST
]
1466 enable expensive run-time checks. With LIST
, enable
1467 only specific categories of checks. Categories are
:
1468 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1469 stringfreelist
, xmallocoverrun
, conslist
1470 --enable-profiling build emacs with profiling support. This might not
1471 work on all platforms
1472 --enable-autodepend automatically generate dependencies to .h-files.
1473 Requires GNU Make and Gcc. Enabled
if GNU Make and
1475 --disable-largefile omit support
for large files
1478 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1479 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1480 --without-pop don
't support POP mail retrieval with movemail
1481 --with-kerberos support Kerberos-authenticated POP
1482 --with-kerberos5 support Kerberos version 5 authenticated POP
1483 --with-hesiod support Hesiod to get the POP server host
1484 --without-sound don't compile with sound support
1485 --without-sync-input process async input synchronously
1486 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1488 --without-xpm don
't compile with XPM image support
1489 --without-jpeg don't compile with JPEG image support
1490 --without-tiff don
't compile with TIFF image support
1491 --without-gif don't compile with GIF image support
1492 --without-png don
't compile with PNG image support
1493 --without-rsvg don't compile with SVG image support
1494 --without-xft don
't use XFT for anti aliased fonts
1495 --without-libotf don't use libotf
for OpenType font support
1496 --without-m17n-flt don
't use m17n-flt for text shaping
1497 --without-toolkit-scroll-bars
1498 don't use Motif or Xaw3d scroll bars
1499 --without-xaw3d don
't use Xaw3d
1500 --without-xim don't use X11 XIM
1501 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1502 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1504 --without-dbus don't compile with D-Bus support
1505 --without-gconf don
't compile with GConf support
1506 --without-makeinfo don't require makeinfo
for building manuals
1508 --with-pkg-config-prog=PATH
1509 path to pkg-config
for finding GTK and librsvg
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1512 or
/etc
/GNUstep
/GNUstep.conf
1513 --with-x use the X Window System
1515 Some influential environment variables
:
1516 CC C compiler
command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1519 nonstandard directory
<lib dir
>
1520 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1521 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1522 you have headers
in a nonstandard directory
<include dir
>
1524 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1526 Use these variables to override the choices made by
`configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1558 .) # We are building in place.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1591 emacs configure 23.1.50
1592 generated by GNU Autoconf 2.62
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by emacs $as_me 23.1.50, which was
1606 generated by GNU Autoconf 2.62. Invocation command line was
1618 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1619 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1620 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1621 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1622 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1624 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1625 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1627 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1628 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1629 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1631 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1633 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_must_keep_next=false
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1677 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 -* ) ac_must_keep_next=true ;;
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1725 eval ac_val=\$$ac_var
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 $as_echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 $as_echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1882 ac_header_list="$ac_header_list sys/time.h"
1883 ac_header_list="$ac_header_list unistd.h"
1884 ac_func_list="$ac_func_list alarm"
1885 # Check that the precious variables saved in the cache have kept the same
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1896 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1900 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 # differences in whitespace do not lead to failure.
1906 ac_old_val_w=`echo x
$ac_old_val`
1907 ac_new_val_w=`echo x
$ac_new_val`
1908 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1909 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1911 ac_cache_corrupted=:
1913 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1914 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1915 eval $ac_var=\$ac_old_val
1917 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1918 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1919 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1920 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1923 # Pass precious variables to config.status.
1924 if test "$ac_new_set" = set; then
1926 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1927 *) ac_arg=$ac_var=$ac_new_val ;;
1929 case " $ac_configure_args " in
1930 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1931 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935 if $ac_cache_corrupted; then
1936 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1937 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1938 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1940 { (exit 1); exit 1; }; }
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1978 test "$program_prefix" != NONE &&
1979 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1980 # Use a double $ so make ignores it.
1981 test "$program_suffix" != NONE &&
1982 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1983 # Double any \ or $.
1984 # By default was `s
,x
,x
', remove it if useless.
1985 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
1986 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1989 lispdir='${datadir}/emacs
/${version}/lisp
'
1990 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1991 '${datadir}/emacs
/site-lisp
'
1992 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1993 etcdir='${datadir}/emacs
/${version}/etc
'
1994 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1995 docdir='${datadir}/emacs
/${version}/etc
'
1996 gamedir='${localstatedir}/games
/emacs
'
2003 # Check whether --with-pop was given.
2004 if test "${with_pop+set}" = set; then
2010 if test "$with_pop" = yes; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define MAIL_USE_POP 1
2019 # Check whether --with-kerberos was given.
2020 if test "${with_kerberos+set}" = set; then
2021 withval=$with_kerberos;
2026 if test "$with_kerberos" != no; then
2027 cat >>confdefs.h <<\_ACEOF
2035 # Check whether --with-kerberos5 was given.
2036 if test "${with_kerberos5+set}" = set; then
2037 withval=$with_kerberos5;
2042 if test "${with_kerberos5}" != no; then
2043 if test "${with_kerberos}" = no; then
2045 cat >>confdefs.h <<\_ACEOF
2051 cat >>confdefs.h <<\_ACEOF
2058 # Check whether --with-hesiod was given.
2059 if test "${with_hesiod+set}" = set; then
2060 withval=$with_hesiod;
2065 if test "$with_hesiod" != no; then
2067 cat >>confdefs.h <<\_ACEOF
2074 # Check whether --with-sound was given.
2075 if test "${with_sound+set}" = set; then
2076 withval=$with_sound;
2083 # Check whether --with-sync-input was given.
2084 if test "${with_sync_input+set}" = set; then
2085 withval=$with_sync_input;
2090 if test "$with_sync_input" = yes; then
2092 cat >>confdefs.h <<\_ACEOF
2093 #define SYNC_INPUT 1
2099 # Check whether --with-x-toolkit was given.
2100 if test "${with_x_toolkit+set}" = set; then
2101 withval=$with_x_toolkit; case "${withval}" in
2102 y | ye | yes ) val=gtk ;;
2104 l | lu | luc | luci | lucid ) val=lucid ;;
2105 a | at | ath | athe | athen | athena ) val=athena ;;
2106 m | mo | mot | moti | motif ) val=motif ;;
2107 g | gt | gtk ) val=gtk ;;
2109 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
2110 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2111 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
2112 $as_echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
2113 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2114 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
2115 { (exit 1); exit 1; }; }
2124 # Check whether --with-xpm was given.
2125 if test "${with_xpm+set}" = set; then
2132 # Check whether --with-jpeg was given.
2133 if test "${with_jpeg+set}" = set; then
2140 # Check whether --with-tiff was given.
2141 if test "${with_tiff+set}" = set; then
2148 # Check whether --with-gif was given.
2149 if test "${with_gif+set}" = set; then
2156 # Check whether --with-png was given.
2157 if test "${with_png+set}" = set; then
2164 # Check whether --with-rsvg was given.
2165 if test "${with_rsvg+set}" = set; then
2173 # Check whether --with-xft was given.
2174 if test "${with_xft+set}" = set; then
2181 # Check whether --with-libotf was given.
2182 if test "${with_libotf+set}" = set; then
2183 withval=$with_libotf;
2189 # Check whether --with-m17n-flt was given.
2190 if test "${with_m17n_flt+set}" = set; then
2191 withval=$with_m17n_flt;
2198 # Check whether --with-toolkit-scroll-bars was given.
2199 if test "${with_toolkit_scroll_bars+set}" = set; then
2200 withval=$with_toolkit_scroll_bars;
2202 with_toolkit_scroll_bars=yes
2206 # Check whether --with-xaw3d was given.
2207 if test "${with_xaw3d+set}" = set; then
2208 withval=$with_xaw3d;
2214 # Check whether --with-xim was given.
2215 if test "${with_xim+set}" = set; then
2222 # Check whether --with-ns was given.
2223 if test "${with_ns+set}" = set; then
2231 # Check whether --with-gpm was given.
2232 if test "${with_gpm+set}" = set; then
2239 # Check whether --with-dbus was given.
2240 if test "${with_dbus+set}" = set; then
2247 # Check whether --with-gconf was given.
2248 if test "${with_gconf+set}" = set; then
2249 withval=$with_gconf;
2255 ## For the times when you want to build Emacs but don't have
2256 ## a suitable makeinfo, and can live without the manuals.
2258 # Check whether --with-makeinfo was given.
2259 if test "${with_makeinfo+set}" = set; then
2260 withval
=$with_makeinfo;
2267 # Check whether --with-gtk was given.
2268 if test "${with_gtk+set}" = set; then
2269 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2270 specify a toolkit." >&5
2271 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2272 specify a toolkit." >&2;}
2273 { (exit 1); exit 1; }; }
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2280 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2281 variable to specify a compiler." >&5
2282 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2283 variable to specify a compiler." >&2;}
2284 { (exit 1); exit 1; }; }
2289 # Check whether --with-pkg-config-prog was given.
2290 if test "${with_pkg_config_prog+set}" = set; then
2291 withval
=$with_pkg_config_prog;
2294 if test "X${with_pkg_config_prog}" != X
; then
2295 if test "${with_pkg_config_prog}" != yes; then
2296 PKG_CONFIG
="${with_pkg_config_prog}"
2301 # Check whether --with-gnustep-conf was given.
2302 if test "${with_gnustep_conf+set}" = set; then
2303 withval
=$with_gnustep_conf;
2306 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2307 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2308 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2309 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2311 # Check whether --enable-ns-self-contained was given.
2312 if test "${enable_ns_self_contained+set}" = set; then
2313 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2315 EN_NS_SELF_CONTAINED
=yes
2319 # Check whether --enable-asserts was given.
2320 if test "${enable_asserts+set}" = set; then
2321 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2327 # Check whether --enable-maintainer-mode was given.
2328 if test "${enable_maintainer_mode+set}" = set; then
2329 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2331 USE_MAINTAINER_MODE
=no
2334 if test $USE_MAINTAINER_MODE = yes; then
2341 # Check whether --enable-locallisppath was given.
2342 if test "${enable_locallisppath+set}" = set; then
2343 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2345 elif test "${enableval}" != "yes"; then
2346 locallisppath
=${enableval}
2351 # Check whether --enable-checking was given.
2352 if test "${enable_checking+set}" = set; then
2353 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2356 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2357 for check
in $ac_checking_flags
2360 # these set all the flags to specific states
2361 yes) ac_enable_checking
=1 ;;
2362 no
) ac_enable_checking
= ;
2363 ac_gc_check_stringbytes
= ;
2364 ac_gc_check_string_overrun
= ;
2365 ac_gc_check_string_free_list
= ;
2366 ac_xmalloc_overrun
= ;
2367 ac_gc_check_cons_list
= ;;
2368 all
) ac_enable_checking
=1 ;
2369 ac_gc_check_stringbytes
=1 ;
2370 ac_gc_check_string_overrun
=1 ;
2371 ac_gc_check_string_free_list
=1 ;
2372 ac_xmalloc_overrun
=1 ;
2373 ac_gc_check_cons_list
=1 ;;
2374 # these enable particular checks
2375 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2376 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2377 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2378 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2379 conslist
) ac_gc_check_cons_list
=1 ;;
2380 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2381 $as_echo "$as_me: error: unknown check category $check" >&2;}
2382 { (exit 1); exit 1; }; } ;;
2387 if test x
$ac_enable_checking != x
; then
2389 cat >>confdefs.h
<<\_ACEOF
2390 #define ENABLE_CHECKING 1
2394 if test x
$ac_gc_check_stringbytes != x
; then
2396 cat >>confdefs.h
<<\_ACEOF
2397 #define GC_CHECK_STRING_BYTES 1
2401 if test x
$ac_gc_check_stringoverrun != x
; then
2403 cat >>confdefs.h
<<\_ACEOF
2404 #define GC_CHECK_STRING_OVERRUN 1
2408 if test x
$ac_gc_check_string_free_list != x
; then
2410 cat >>confdefs.h
<<\_ACEOF
2411 #define GC_CHECK_STRING_FREE_LIST 1
2415 if test x
$ac_xmalloc_overrun != x
; then
2417 cat >>confdefs.h
<<\_ACEOF
2418 #define XMALLOC_OVERRUN_CHECK 1
2422 if test x
$ac_gc_check_cons_list != x
; then
2424 cat >>confdefs.h
<<\_ACEOF
2425 #define GC_CHECK_CONS_LIST 1
2430 # Check whether --enable-profiling was given.
2431 if test "${enable_profiling+set}" = set; then
2432 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2435 if test x
$ac_enable_profiling != x
; then
2436 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2437 PROFILING_LDFLAGS
="-pg"
2443 # Check whether --enable-autodepend was given.
2444 if test "${enable_autodepend+set}" = set; then
2445 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2447 ac_enable_autodepend
=yes
2451 #### Make srcdir absolute, if it isn't already. It's important to
2452 #### avoid running the path through pwd unnecessarily, since pwd can
2453 #### give you automounter prefixes, which can go away. We do all this
2454 #### so Emacs can find its files when run uninstalled.
2455 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2460 ## We may be able to use the $PWD environment variable to make this
2461 ## absolute. But sometimes PWD is inaccurate.
2462 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2463 ## but that tested only for a well-formed and valid PWD,
2464 ## it did not object when PWD was well-formed and valid but just wrong.
2465 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2469 srcdir
="`(cd ${srcdir}; pwd)`"
2472 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2475 #### Check if the source directory already has a configured system in it.
2476 if test `pwd` != `(cd ${srcdir} && pwd)` \
2477 && test -f "${srcdir}/src/config.h" ; then
2478 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2479 as a build directory right now; it has been configured in its own
2480 right. To configure in another directory as well, you MUST
2481 use GNU make. If you do not have GNU make, then you must
2482 now do \`make distclean' in ${srcdir},
2483 and then run $0 again." >&5
2484 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2485 as a build directory right now; it has been configured in its own
2486 right. To configure in another directory as well, you MUST
2487 use GNU make. If you do not have GNU make, then you must
2488 now do \`make distclean' in ${srcdir},
2489 and then run $0 again." >&2;}
2492 #### Given the configuration name, set machfile and opsysfile to the
2493 #### names of the m/*.h and s/*.h files we should use.
2495 ### Canonicalize the configuration name.
2498 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2501 ac_install_sh
="$ac_aux_dir/install-sh -c"
2503 elif test -f "$ac_dir/install.sh"; then
2505 ac_install_sh
="$ac_aux_dir/install.sh -c"
2507 elif test -f "$ac_dir/shtool"; then
2509 ac_install_sh
="$ac_aux_dir/shtool install -c"
2513 if test -z "$ac_aux_dir"; then
2514 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2515 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2516 { (exit 1); exit 1; }; }
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2528 # Make sure we can run config.sub.
2529 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2530 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2532 { (exit 1); exit 1; }; }
2534 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if test "${ac_cv_build+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2539 ac_build_alias
=$build_alias
2540 test "x$ac_build_alias" = x
&&
2541 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x
&&
2543 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2544 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2548 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2549 { (exit 1); exit 1; }; }
2552 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2556 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2557 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2558 { (exit 1); exit 1; }; };;
2561 ac_save_IFS
=$IFS; IFS
='-'
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2571 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2579 if test "x$host_alias" = x
; then
2580 ac_cv_host
=$ac_cv_build
2582 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2584 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2585 { (exit 1); exit 1; }; }
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2593 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2594 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2595 { (exit 1); exit 1; }; };;
2598 ac_save_IFS
=$IFS; IFS
='-'
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2608 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2612 configuration
=${host_alias-${build_alias-$host}}
2616 ### If you add support for a new configuration, add code to this
2617 ### switch statement to recognize your configuration name and select
2618 ### the appropriate operating system and machine description files.
2620 ### You would hope that you could choose an m/*.h file pretty much
2621 ### based on the machine portion of the configuration name, and an s-
2622 ### file based on the operating system portion. However, it turns out
2623 ### that each m/*.h file is pretty manufacturer-specific - for
2624 ### example mips.h is MIPS
2625 ### So we basically have to have a special case for each
2626 ### configuration name.
2628 ### As far as handling version numbers on operating systems is
2629 ### concerned, make sure things will fail in a fixable way. If
2630 ### /etc/MACHINES doesn't say anything about version numbers, be
2631 ### prepared to handle anything reasonably. If version numbers
2632 ### matter, be sure /etc/MACHINES says something about it.
2634 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2635 ### "System V Release 4"; he writes, "The old convention encouraged
2636 ### confusion between `system' and `release' levels'."
2638 machine
='' opsys
='' unported
=no
2639 case "${canonical}" in
2644 case "${canonical}" in
2645 alpha
*-*-freebsd*) machine
=alpha
;;
2646 arm
*-*-freebsd*) machine
=arm
;;
2647 ia64-
*-freebsd*) machine
=ia64
;;
2648 sparc-
*-freebsd*) machine
=sparc
;;
2649 sparc64-
*-freebsd*) machine
=sparc
;;
2650 powerpc-
*-freebsd*) machine
=macppc
;;
2651 i
[3456]86-*-freebsd*) machine
=intel386
;;
2652 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2656 ## FreeBSD kernel + glibc based userland
2659 case "${canonical}" in
2660 alpha
*-*-kfreebsd*) machine
=alpha
;;
2661 ia64-
*-kfreebsd*) machine
=ia64
;;
2662 sparc-
*-kfreebsd*) machine
=sparc
;;
2663 sparc64-
*-kfreebsd*) machine
=sparc
;;
2664 powerpc-
*-kfreebsd*) machine
=macppc
;;
2665 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2666 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2673 if test -f /usr
/lib
/crti.o
; then
2675 cat >>confdefs.h
<<\_ACEOF
2676 #define HAVE_CRTIN /**/
2681 case "${canonical}" in
2682 alpha
*-*-netbsd*) machine
=alpha
;;
2683 i
[3456]86-*-netbsd*) machine
=intel386
;;
2684 mips-
*-netbsd*) machine
=mips
;;
2685 mipsel-
*-netbsd*) machine
=mips
;;
2686 mipseb-
*-netbsd*) machine
=mips
;;
2687 powerpc-
*-netbsd*) machine
=macppc
;;
2688 sparc
*-*-netbsd*) machine
=sparc
;;
2689 vax-
*-netbsd*) machine
=vax
;;
2690 arm-
*-netbsd*) machine
=arm
;;
2691 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2692 hppa-
*-netbsd*) machine
=hp800
;;
2693 m68k-
*-netbsd*) machine
=m68k
;;
2700 case "${canonical}" in
2701 alpha
*-*-openbsd*) machine
=alpha
;;
2702 arm-
*-openbsd*) machine
=arm
;;
2703 i386-
*-openbsd*) machine
=intel386
;;
2704 powerpc-
*-openbsd*) machine
=macppc
;;
2705 sparc
*-*-openbsd*) machine
=sparc
;;
2706 vax-
*-openbsd*) machine
=vax
;;
2707 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2708 hppa-
*-openbsd*) machine
=hp800
;;
2715 case "${canonical}" in
2716 i
[3456]86-*-lynxos*) machine
=intel386
;;
2717 powerpc-
*-lynxos*) machine
=powerpc
;;
2721 alpha
*-*-linux-gnu* )
2722 machine
=alpha opsys
=gnu-linux
2726 machine
=arm opsys
=gnu-linux
2729 ## Apple Darwin / Mac OS X
2731 case "${canonical}" in
2732 i
[3456]86-* ) machine
=intel386
;;
2733 powerpc-
* ) machine
=macppc
;;
2734 x86_64-
* ) machine
=amdx86-64
;;
2738 # Define CPP as follows to make autoconf work correctly.
2739 CPP
="${CC-cc} -E -no-cpp-precomp"
2740 # Use fink packages if available.
2741 if test -d /sw
/include
&& test -d /sw
/lib
; then
2742 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2743 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2744 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2748 ## HP 9000 series 700 and 800, running HP/UX
2749 hppa
*-hp-hpux10.2
* )
2750 machine
=hp800 opsys
=hpux10-20
2752 hppa
*-hp-hpux1[1-9]* )
2753 machine
=hp800 opsys
=hpux11
2754 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2757 hppa
*-*-linux-gnu* )
2758 machine
=hp800 opsys
=gnu-linux
2763 machine
=ibms390 opsys
=gnu-linux
2765 s390x-
*-linux-gnu* )
2766 machine
=ibms390x opsys
=gnu-linux
2768 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2769 machine
=ibmrs6000 opsys
=aix4-2
2771 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2772 machine
=ibmrs6000 opsys
=aix4-2
2774 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2775 machine
=ibmrs6000 opsys
=aix4-2
2777 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2778 machine
=ibmrs6000 opsys
=aix4-2
2781 ## Macintosh PowerPC
2782 powerpc
*-*-linux-gnu* )
2783 machine
=macppc opsys
=gnu-linux
2786 ## Silicon Graphics machines
2789 machine
=iris4d opsys
=irix6-5
2790 # Without defining _LANGUAGE_C, things get masked out in the headers
2791 # so that, for instance, grepping for `free' in stdlib.h fails and
2792 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2793 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2794 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2798 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2799 machine
=sparc opsys
=gnu-linux
2803 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2804 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2805 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2806 case "${canonical}" in
2807 i
[3456]86-*-* ) machine
=intel386
;;
2808 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2809 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2810 sparc
* ) machine
=sparc
;;
2813 case "${canonical}" in
2814 *-sunos5.3
* |
*-solaris2.3
* )
2816 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2818 *-sunos5.4
* |
*-solaris2.4
* )
2820 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2823 *-sunos5.5
* |
*-solaris2.5
* )
2825 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2828 *-sunos5.6
* |
*-solaris2.6
* )
2830 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2833 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2835 emacs_check_sunpro_c
=yes
2836 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2838 *-sunos5* |
*-solaris* )
2840 emacs_check_sunpro_c
=yes
2841 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2844 ## Watch out for a compiler that we know will not work.
2845 case "${canonical}" in
2846 *-solaris* |
*-sunos5* )
2847 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2848 ## /usr/ucb/cc doesn't work;
2849 ## we should find some other compiler that does work.
2859 machine
=ia64 opsys
=gnu-linux
2862 ## Intel 386 machines where we don't care about the manufacturer
2865 case "${canonical}" in
2866 *-cygwin ) opsys
=cygwin
;;
2867 *-darwin* ) opsys
=darwin
2868 CPP
="${CC-cc} -E -no-cpp-precomp"
2870 *-linux-gnu* ) opsys
=gnu-linux
;;
2871 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2872 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2873 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2874 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2878 ## m68k Linux-based GNU system
2880 machine
=m68k opsys
=gnu-linux
2883 ## Mips Linux-based GNU system
2884 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2885 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2886 machine
=mips opsys
=gnu-linux
2889 ## AMD x86-64 Linux-based GNU system
2890 x86_64-
*-linux-gnu* )
2891 machine
=amdx86-64 opsys
=gnu-linux
2894 ## Tensilica Xtensa Linux-based GNU system
2895 xtensa
*-*-linux-gnu* )
2896 machine
=xtensa opsys
=gnu-linux
2899 ## SuperH Linux-based GNU system
2900 sh
[34]*-*-linux-gnu* )
2901 machine
=sh3 opsys
=gnu-linux
2909 ### If the code above didn't choose an operating system, just choose
2910 ### an operating system based on the configuration name. You really
2911 ### only want to use this when you have no idea what the right
2912 ### operating system is; if you know what operating systems a machine
2913 ### runs, it's cleaner to make it explicit in the case statement
2915 if test x
"${opsys}" = x
; then
2916 case "${canonical}" in
2917 *-gnu* ) opsys
=gnu
;;
2918 *-sysv4.2uw
* ) opsys
=unixware
;;
2919 *-sysv5uw* ) opsys
=unixware
;;
2920 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2921 *-sysv4.1
* |
*-sysvr4.1
* )
2922 NON_GNU_CPP
=/usr
/lib
/cpp
2924 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2925 if [ x
$NON_GNU_CPP = x
]; then
2926 if [ -f /usr
/ccs
/lib
/cpp
]; then
2927 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2929 NON_GNU_CPP
=/lib
/cpp
2933 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2942 if test $unported = yes; then
2943 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2944 Check \`etc/MACHINES' for recognized configuration names." >&5
2945 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2946 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2947 { (exit 1); exit 1; }; }
2950 machfile
="m/${machine}.h"
2951 opsysfile
="s/${opsys}.h"
2954 #### Choose a compiler.
2955 test -n "$CC" && cc_specified
=yes
2957 # Save the value of CFLAGS that the user specified.
2958 SPECIFIED_CFLAGS
="$CFLAGS"
2961 ac_cpp
='$CPP $CPPFLAGS'
2962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC
="$CC" # Let the user override the test.
2976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir
=.
2981 for ac_exec_ext
in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999 $as_echo "no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc
; ac_word
=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC
="gcc"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3042 if test "x$ac_ct_CC" = x
; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned
=yes ;;
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC
="$CC" # Let the user override the test.
3073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir
=.
3078 for ac_exec_ext
in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc
; ac_word
=$2
3105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC
="$CC" # Let the user override the test.
3114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir
=.
3119 for ac_exec_ext
in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected
=yes
3126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy
$ac_cv_prog_CC
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3142 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog
in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC
="$CC" # Let the user override the test.
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$CC"; then
3191 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3192 $as_echo "$CC" >&6; }
3194 { $as_echo "$as_me:$LINENO: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$CC" && break
3202 if test -z "$CC"; then
3204 for ac_prog
in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy
$ac_prog; ac_word
=$2
3208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir
=.
3221 for ac_exec_ext
in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC
="$ac_prog"
3224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3238 { $as_echo "$as_me:$LINENO: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$ac_ct_CC" && break
3246 if test "x$ac_ct_CC" = x
; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned
=yes ;;
3266 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3276 { (ac_try
="$ac_compiler --version >&5"
3278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compiler --version >&5") 2>&5
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287 { (ac_try="$ac_compiler -v >&5"
3289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3290 *) ac_try_echo
=$ac_try;;
3292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compiler -v >&5") 2>&5
3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try
="$ac_compiler -V >&5"
3300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compiler -V >&5") 2>&5
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3325 ac_clean_files_save=$ac_clean_files
3326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3327 # Try to create an executable without -o first, disregard a.out.
3328 # It will help us diagnose broken compilers, and finding out an intuition
3330 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3334 # The possible output files:
3335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3338 for ac_file in $ac_files
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3347 if { (ac_try="$ac_link_default"
3349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3350 *) ac_try_echo
=$ac_try;;
3352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_link_default") 2>&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3363 for ac_file
in $ac_files ''
3365 test -f "$ac_file" ||
continue
3367 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3370 # We found the default executable, but exeext='' is most
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3376 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3388 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3394 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 if test -z "$ac_file"; then
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.
$ac_ext >&5
3400 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: C compiler cannot create executables
3403 See \`config.log' for more details." >&2;}
3404 { (exit 77); exit 77; }; }
3407 ac_exeext
=$ac_cv_exeext
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3412 $as_echo_n "checking whether the C compiler works... " >&6; }
3413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3414 # If not cross compiling, check that we can run a simple program.
3415 if test "$cross_compiling" != yes; then
3416 if { ac_try
='./$ac_file'
3417 { (case "(($ac_try" in
3418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_try") 2>&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3429 if test "$cross_compiling" = maybe; then
3432 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details.
" >&5
3435 $as_echo "$as_me: error
: cannot run C compiled programs.
3436 If you meant to cross compile
, use \
`--host'.
3437 See \`config.log
' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3442 { $as_echo "$as_me:$LINENO: result: yes" >&5
3443 $as_echo "yes" >&6; }
3445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3446 ac_clean_files=$ac_clean_files_save
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3452 $as_echo "$cross_compiling" >&6; }
3454 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3455 $as_echo_n "checking for suffix of executables... " >&6; }
3456 if { (ac_try="$ac_link"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_link") 2>&5
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
3467 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3468 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3469 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3471 for ac_file
in conftest.exe conftest conftest.
*; do
3472 test -f "$ac_file" ||
continue
3474 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3475 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3488 rm -f conftest
$ac_cv_exeext
3489 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3492 rm -f conftest.
$ac_ext
3493 EXEEXT
=$ac_cv_exeext
3495 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if test "${ac_cv_objext+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3500 cat >conftest.
$ac_ext <<_ACEOF
3503 cat confdefs.h
>>conftest.
$ac_ext
3504 cat >>conftest.
$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3515 rm -f conftest.o conftest.obj
3516 if { (ac_try
="$ac_compile"
3518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3540 See \`config.log
' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details.
" >&2;}
3543 { (exit 1); exit 1; }; }
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3552 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3555 $as_echo_n "(cached
) " >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 $as_echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3615 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3616 if test "${ac_cv_prog_cc_g+set}" = set; then
3617 $as_echo_n "(cached
) " >&6
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3658 $as_echo "$as_me: failed program was
:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3697 $as_echo "$as_me: failed program was
:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3737 $as_echo "$as_me: failed program was
:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3763 if test "$GCC" = yes; then
3769 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3770 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then
3772 $as_echo_n "(cached
) " >&6
3774 ac_cv_prog_cc_c89=no
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3800 s = g (p, va_arg (v,int));
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3844 $as_echo "$ac_try_echo") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_prog_cc_c89=$ac_arg
3857 $as_echo "$as_me: failed program was
:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3863 rm -f core conftest.err conftest.$ac_objext
3864 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3866 rm -f conftest.$ac_ext
3871 case "x
$ac_cv_prog_cc_c89" in
3873 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3874 $as_echo "none needed
" >&6; } ;;
3876 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3877 $as_echo "unsupported
" >&6; } ;;
3879 CC="$CC $ac_cv_prog_cc_c89"
3880 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3881 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3897 ## If not using gcc, and on Solaris, and no CPP specified, see if
3898 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3899 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3900 test x"$CPP" = x; then
3901 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3902 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3904 if test "${emacs_cv_sunpro_c+set}" = set; then
3905 $as_echo_n "(cached
) " >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_link") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest$ac_exeext && {
3943 test "$cross_compiling" = yes ||
3944 $as_test_x conftest$ac_exeext
3946 emacs_cv_sunpro_c=yes
3948 $as_echo "$as_me: failed program was
:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 emacs_cv_sunpro_c=no
3954 rm -rf conftest.dSYM
3955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 conftest$ac_exeext conftest.$ac_ext
3959 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3960 $as_echo "$emacs_cv_sunpro_c" >&6; }
3962 if test x"$emacs_cv_sunpro_c" = xyes; then
3963 NON_GNU_CPP="$CC -E -Xs"
3967 #### Some systems specify a CPP to use unless we are using GCC.
3968 #### Now that we know whether we are using GCC, we can decide whether
3969 #### to use that one.
3970 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3975 #### Some systems specify a CC to use unless we are using GCC.
3976 #### Now that we know whether we are using GCC, we can decide whether
3977 #### to use that one.
3978 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3979 test x$cc_specified != xyes
3984 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3986 CC="$CC $GCC_TEST_OPTIONS"
3989 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3991 CC="$CC $NON_GCC_TEST_OPTIONS"
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4000 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4001 # On Suns, sometimes $CPP names a directory.
4002 if test -n "$CPP" && test -d "$CPP"; then
4005 if test -z "$CPP"; then
4006 if test "${ac_cv_prog_CPP+set}" = set; then
4007 $as_echo_n "(cached
) " >&6
4009 # Double quotes because CPP needs to be expanded
4010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4013 for ac_c_preproc_warn_flag in '' yes
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error
" is here to catch this case.
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4028 # include <limits.h>
4030 # include <assert.h>
4034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4053 $as_echo "$as_me: failed program was
:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Broken: fails on valid input.
4060 rm -f conftest.err conftest.$ac_ext
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4072 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4085 (exit $ac_status); } >/dev/null && {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4089 # Broken: success on invalid input.
4092 $as_echo "$as_me: failed program was
:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Passes both tests.
4100 rm -f conftest.err conftest.$ac_ext
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4117 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4118 $as_echo "$CPP" >&6; }
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error
" is here to catch this case.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4135 # include <limits.h>
4137 # include <assert.h>
4141 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4154 (exit $ac_status); } >/dev/null && {
4155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4160 $as_echo "$as_me: failed program was
:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 # Broken: fails on valid input.
4167 rm -f conftest.err conftest.$ac_ext
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4179 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4188 grep -v '^ *+' conftest.er1 >conftest.err
4190 cat conftest.err >&5
4191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4196 # Broken: success on invalid input.
4199 $as_echo "$as_me: failed program was
:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Passes both tests.
4207 rm -f conftest.err conftest.$ac_ext
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4215 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4216 See \
`config.log' for more details." >&5
4217 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log
' for more details." >&2;}
4219 { (exit 1); exit 1; }; }
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4225 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and
test for each of PROGNAME-LIST
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4238 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_prog
in grep ggrep
; do
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4250 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4253 $as_echo_n 0123456789 >"conftest.in"
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4261 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4262 ac_count
=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP
="$ac_path_GREP"
4266 ac_path_GREP_max
=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4271 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4274 $ac_path_GREP_found && break 3
4279 if test -z "$ac_cv_path_GREP"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4285 ac_cv_path_GREP
=$GREP
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP
="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4299 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4300 then ac_cv_path_EGREP
="$GREP -E"
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found
=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4306 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4309 test -z "$as_dir" && as_dir
=.
4310 for ac_prog
in egrep; do
4311 for ac_exec_ext
in '' $ac_executable_extensions; do
4312 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4318 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4321 $as_echo_n 0123456789 >"conftest.in"
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4329 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4330 ac_count
=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP
="$ac_path_EGREP"
4334 ac_path_EGREP_max
=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4339 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4342 $ac_path_EGREP_found && break 3
4347 if test -z "$ac_cv_path_EGREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4353 ac_cv_path_EGREP
=$EGREP
4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP
="$ac_cv_path_EGREP"
4363 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4364 $as_echo_n "checking for ANSI C header files... " >&6; }
4365 if test "${ac_cv_header_stdc+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4368 cat >conftest.
$ac_ext <<_ACEOF
4371 cat confdefs.h
>>conftest.
$ac_ext
4372 cat >>conftest.
$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4387 rm -f conftest.
$ac_objext
4388 if { (ac_try
="$ac_compile"
4390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest.$ac_objext; then
4405 ac_cv_header_stdc=yes
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_cv_header_stdc=no
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "memchr" >/dev/null 2>&1; then
4430 ac_cv_header_stdc=no
4436 if test $ac_cv_header_stdc = yes; then
4437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "free" >/dev/null 2>&1; then
4451 ac_cv_header_stdc=no
4457 if test $ac_cv_header_stdc = yes; then
4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4459 if test "$cross_compiling" = yes; then
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4493 rm -f conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4497 *) ac_try_echo
=$ac_try;;
4499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501 (eval "$ac_link") 2>&5
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4505 { (case "(($ac_try" in
4506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_try") 2>&5
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4517 $as_echo "$as_me: program exited with status $ac_status" >&5
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4522 ac_cv_header_stdc=no
4524 rm -rf conftest.dSYM
4525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4532 $as_echo "$ac_cv_header_stdc" >&6; }
4533 if test $ac_cv_header_stdc = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define STDC_HEADERS 1
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4552 inttypes.h stdint.h unistd.h
4554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 $as_echo_n "checking for $ac_header... " >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558 $as_echo_n "(cached) " >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4568 #include <$ac_header>
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4574 *) ac_try_echo
=$ac_try;;
4576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4577 $as_echo "$ac_try_echo") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4580 grep -v '^ *+' conftest.er1
>conftest.err
4582 cat conftest.err
>&5
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.
$ac_objext; then
4588 eval "$as_ac_Header=yes"
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.
$ac_ext >&5
4593 eval "$as_ac_Header=no"
4596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4598 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4599 $as_echo "$as_val"'`
4600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4601 $as_echo "$ac_res" >&6; }
4602 if test `eval 'as_val=${'$as_ac_Header'}
4603 $as_echo "$as_val"'` = yes; then
4604 cat >>confdefs.h
<<_ACEOF
4605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4614 if test "${ac_cv_header_minix_config_h+set}" = set; then
4615 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4616 $as_echo_n "checking for minix/config.h... " >&6; }
4617 if test "${ac_cv_header_minix_config_h+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4621 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4623 # Is the header compilable?
4624 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4625 $as_echo_n "checking minix/config.h usability... " >&6; }
4626 cat >conftest.
$ac_ext <<_ACEOF
4629 cat confdefs.h
>>conftest.
$ac_ext
4630 cat >>conftest.
$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <minix/config.h>
4635 rm -f conftest.
$ac_objext
4636 if { (ac_try
="$ac_compile"
4638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_header_compiler=yes
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_header_compiler=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663 $as_echo "$ac_header_compiler" >&6; }
4665 # Is the header present?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4667 $as_echo_n "checking minix/config.h presence... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <minix/config.h>
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4679 *) ac_try_echo
=$ac_try;;
4681 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1
>conftest.err
4687 cat conftest.err
>&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev
/null
&& {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4693 ac_header_preproc
=yes
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.
$ac_ext >&5
4698 ac_header_preproc
=no
4701 rm -f conftest.err conftest.
$ac_ext
4702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 $as_echo "$ac_header_preproc" >&6; }
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4711 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc
=yes
4715 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4716 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4717 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4718 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4720 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4722 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4724 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4726 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4730 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4731 $as_echo_n "checking for minix/config.h... " >&6; }
4732 if test "${ac_cv_header_minix_config_h+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4735 ac_cv_header_minix_config_h
=$ac_header_preproc
4737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4738 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4741 if test $ac_cv_header_minix_config_h = yes; then
4748 if test "$MINIX" = yes; then
4750 cat >>confdefs.h
<<\_ACEOF
4751 #define _POSIX_SOURCE 1
4755 cat >>confdefs.h
<<\_ACEOF
4756 #define _POSIX_1_SOURCE 2
4760 cat >>confdefs.h
<<\_ACEOF
4768 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4769 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4770 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 # define __EXTENSIONS__ 1
4781 $ac_includes_default
4790 rm -f conftest.
$ac_objext
4791 if { (ac_try
="$ac_compile"
4793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_safe_to_define___extensions__=yes
4810 $as_echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_safe_to_define___extensions__=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4819 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4820 test $ac_cv_safe_to_define___extensions__ = yes &&
4821 cat >>confdefs.h <<\_ACEOF
4822 #define __EXTENSIONS__ 1
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _ALL_SOURCE 1
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _GNU_SOURCE 1
4833 cat >>confdefs.h <<\_ACEOF
4834 #define _POSIX_PTHREAD_SEMANTICS 1
4837 cat >>confdefs.h <<\_ACEOF
4838 #define _TANDEM_SOURCE 1
4843 ### Use -Wno-pointer-sign if the compiler supports it
4844 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4845 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -Wno-pointer-sign"
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4863 rm -f conftest.$ac_objext
4864 if { (ac_try="$ac_compile"
4866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4867 *) ac_try_echo
=$ac_try;;
4869 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1
>conftest.err
4875 cat conftest.err
>&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.
$ac_objext; then
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.
$ac_ext >&5
4889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4890 if test $has_option = yes; then
4891 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4893 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4894 $as_echo "$has_option" >&6; }
4895 CFLAGS
="$SAVE_CFLAGS"
4899 #### Some other nice autoconf tests.
4901 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4902 $as_echo_n "checking whether ln -s works... " >&6; }
4904 if test "$LN_S" = "ln -s"; then
4905 { $as_echo "$as_me:$LINENO: result: yes" >&5
4906 $as_echo "yes" >&6; }
4908 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4909 $as_echo "no, using $LN_S" >&6; }
4913 ac_cpp
='$CPP $CPPFLAGS'
4914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4917 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4919 # On Suns, sometimes $CPP names a directory.
4920 if test -n "$CPP" && test -d "$CPP"; then
4923 if test -z "$CPP"; then
4924 if test "${ac_cv_prog_CPP+set}" = set; then
4925 $as_echo_n "(cached) " >&6
4927 # Double quotes because CPP needs to be expanded
4928 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4931 for ac_c_preproc_warn_flag
in '' yes
4933 # Use a header file that comes with gcc, so configuring glibc
4934 # with a fresh cross-compiler works.
4935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936 # <limits.h> exists even on freestanding compilers.
4937 # On the NeXT, cc -E runs the code through the compiler's parser,
4938 # not just through cpp. "Syntax error" is here to catch this case.
4939 cat >conftest.
$ac_ext <<_ACEOF
4942 cat confdefs.h
>>conftest.
$ac_ext
4943 cat >>conftest.
$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4946 # include <limits.h>
4948 # include <assert.h>
4952 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4958 $as_echo "$ac_try_echo") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 grep -v '^ *+' conftest.er1 >conftest.err
4963 cat conftest.err >&5
4964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null && {
4966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4971 $as_echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 # Broken: fails on valid input.
4978 rm -f conftest.err conftest.$ac_ext
4980 # OK, works on sane cases. Now check whether nonexistent headers
4981 # can be detected and how.
4982 cat >conftest.$ac_ext <<_ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4990 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4993 *) ac_try_echo
=$ac_try;;
4995 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 grep -v '^ *+' conftest.er1
>conftest.err
5001 cat conftest.err
>&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev
/null
&& {
5004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5007 # Broken: success on invalid input.
5010 $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.
$ac_ext >&5
5013 # Passes both tests.
5018 rm -f conftest.err conftest.
$ac_ext
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.
$ac_ext
5023 if $ac_preproc_ok; then
5035 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5036 $as_echo "$CPP" >&6; }
5038 for ac_c_preproc_warn_flag
in '' yes
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat >conftest.
$ac_ext <<_ACEOF
5049 cat confdefs.h
>>conftest.
$ac_ext
5050 cat >>conftest.
$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5053 # include <limits.h>
5055 # include <assert.h>
5059 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065 $as_echo "$ac_try_echo") >&5
5066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } >/dev/null && {
5073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5078 $as_echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Broken: fails on valid input.
5085 rm -f conftest.err conftest.$ac_ext
5087 # OK, works on sane cases. Now check whether nonexistent headers
5088 # can be detected and how.
5089 cat >conftest.$ac_ext <<_ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #include <ac_nonexistent.h>
5097 if { (ac_try="$ac_cpp conftest.$ac_ext"
5099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5100 *) ac_try_echo
=$ac_try;;
5102 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5103 $as_echo "$ac_try_echo") >&5
5104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1
>conftest.err
5108 cat conftest.err
>&5
5109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev
/null
&& {
5111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5114 # Broken: success on invalid input.
5117 $as_echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.
$ac_ext >&5
5120 # Passes both tests.
5125 rm -f conftest.err conftest.
$ac_ext
5128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5129 rm -f conftest.err conftest.
$ac_ext
5130 if $ac_preproc_ok; then
5133 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5134 See \`config.log' for more details." >&5
5135 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; }
5141 ac_cpp
='$CPP $CPPFLAGS'
5142 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5146 # Find a good install program. We prefer a C program (faster),
5147 # so one script is as good as another. But avoid the broken or
5148 # incompatible versions:
5149 # SysV /etc/install, /usr/sbin/install
5150 # SunOS /usr/etc/install
5151 # IRIX /sbin/install
5153 # AmigaOS /C/install, which installs bootblocks on floppy discs
5154 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5155 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5156 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5157 # OS/2's system install, which has a completely different semantic
5158 # ./install, which can be erroneously created by make from ./install.sh.
5159 # Reject install programs that cannot install multiple files.
5160 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5161 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5162 if test -z "$INSTALL"; then
5163 if test "${ac_cv_path_install+set}" = set; then
5164 $as_echo_n "(cached) " >&6
5166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir
=.
5171 # Account for people who put trailing slashes in PATH elements.
5173 .
/ | .
// |
/cC
/* | \
5174 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5175 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5178 # OSF1 and SCO ODT 3.0 have their own names for install.
5179 # Don't use installbsd from OSF since it installs stuff as root
5181 for ac_prog
in ginstall scoinst
install; do
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5184 if test $ac_prog = install &&
5185 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5186 # AIX install. It has an incompatible calling convention.
5188 elif test $ac_prog = install &&
5189 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5190 # program-specific install script used by HP pwplus--don't use.
5193 rm -rf conftest.one conftest.two conftest.dir
5194 echo one
> conftest.one
5195 echo two
> conftest.two
5197 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5198 test -s conftest.one
&& test -s conftest.two
&&
5199 test -s conftest.dir
/conftest.one
&&
5200 test -s conftest.dir
/conftest.two
5202 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5215 rm -rf conftest.one conftest.two conftest.dir
5218 if test "${ac_cv_path_install+set}" = set; then
5219 INSTALL
=$ac_cv_path_install
5221 # As a last resort, use the slow shell script. Don't cache a
5222 # value for INSTALL within a source directory, because that will
5223 # break other packages using the cache if that directory is
5224 # removed, or if the value is a relative name.
5225 INSTALL
=$ac_install_sh
5228 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5229 $as_echo "$INSTALL" >&6; }
5231 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5232 # It thinks the first close brace ends the variable substitution.
5233 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5235 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5237 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5239 if test "x$RANLIB" = x
; then
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5242 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_RANLIB+set}" = set; then
5246 $as_echo_n "(cached) " >&6
5248 if test -n "$RANLIB"; then
5249 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 RANLIB
=$ac_cv_prog_RANLIB
5269 if test -n "$RANLIB"; then
5270 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5271 $as_echo "$RANLIB" >&6; }
5273 { $as_echo "$as_me:$LINENO: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$ac_cv_prog_RANLIB"; then
5280 ac_ct_RANLIB
=$RANLIB
5281 # Extract the first word of "ranlib", so it can be a program name with args.
5282 set dummy ranlib
; ac_word
=$2
5283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5286 $as_echo_n "(cached) " >&6
5288 if test -n "$ac_ct_RANLIB"; then
5289 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir
=.
5296 for ac_exec_ext
in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5309 if test -n "$ac_ct_RANLIB"; then
5310 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5311 $as_echo "$ac_ct_RANLIB" >&6; }
5313 { $as_echo "$as_me:$LINENO: result: no" >&5
5314 $as_echo "no" >&6; }
5317 if test "x$ac_ct_RANLIB" = x
; then
5320 case $cross_compiling:$ac_tool_warned in
5322 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5323 whose name does not start with the host triplet. If you think this
5324 configuration is useful to you, please write to autoconf@gnu.org." >&5
5325 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5326 whose name does not start with the host triplet. If you think this
5327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5328 ac_tool_warned
=yes ;;
5330 RANLIB
=$ac_ct_RANLIB
5333 RANLIB
="$ac_cv_prog_RANLIB"
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info
; ac_word
=$2
5339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5344 case $INSTALL_INFO in
5346 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir
=.
5354 for ac_exec_ext
in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 $as_echo "$INSTALL_INFO" >&6; }
5372 { $as_echo "$as_me:$LINENO: result: no" >&5
5373 $as_echo "no" >&6; }
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info
; ac_word
=$2
5379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 $as_echo_n "(cached) " >&6
5384 case $INSTALL_INFO in
5386 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5390 for as_dir
in /usr
/sbin
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5408 if test -n "$INSTALL_INFO"; then
5409 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5410 $as_echo "$INSTALL_INFO" >&6; }
5412 { $as_echo "$as_me:$LINENO: result: no" >&5
5413 $as_echo "no" >&6; }
5417 # Extract the first word of "install-info", so it can be a program name with args.
5418 set dummy install-info
; ac_word
=$2
5419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5422 $as_echo_n "(cached) " >&6
5424 case $INSTALL_INFO in
5426 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir
=.
5434 for ac_exec_ext
in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5448 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5449 if test -n "$INSTALL_INFO"; then
5450 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5451 $as_echo "$INSTALL_INFO" >&6; }
5453 { $as_echo "$as_me:$LINENO: result: no" >&5
5454 $as_echo "no" >&6; }
5458 # Extract the first word of "gzip", so it can be a program name with args.
5459 set dummy
gzip; ac_word
=$2
5460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5463 $as_echo_n "(cached) " >&6
5467 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir
=.
5475 for ac_exec_ext
in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5489 if test -n "$GZIP_PROG"; then
5490 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5491 $as_echo "$GZIP_PROG" >&6; }
5493 { $as_echo "$as_me:$LINENO: result: no" >&5
5494 $as_echo "no" >&6; }
5500 ## Need makeinfo >= 4.6 (?) to build the manuals.
5501 # Extract the first word of "makeinfo", so it can be a program name with args.
5502 set dummy makeinfo
; ac_word
=$2
5503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5510 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir
=.
5518 for ac_exec_ext
in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5532 MAKEINFO
=$ac_cv_path_MAKEINFO
5533 if test -n "$MAKEINFO"; then
5534 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5535 $as_echo "$MAKEINFO" >&6; }
5537 { $as_echo "$as_me:$LINENO: result: no" >&5
5538 $as_echo "no" >&6; }
5542 if test "$MAKEINFO" != "no" && \
5543 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
5547 ## Makeinfo is unusual. For a released Emacs, the manuals are
5548 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5549 ## therefore in the category of "special tools" not normally required, which
5550 ## configure does not have to check for (eg autoconf itself).
5551 ## In a CVS checkout on the other hand, the manuals are not included.
5552 ## So makeinfo is a requirement to build from CVS, and configure
5553 ## should test for it as it does for any other build requirement.
5554 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5555 ## with pre-built manuals, from a CVS checkout.
5556 if test "$MAKEINFO" = "no"; then
5557 if test "x${with_makeinfo}" = "xno"; then
5559 elif ! test -e $srcdir/info
/emacs
; then
5560 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5561 source tree does not seem to have pre-built manuals in the \`info' directory.
5562 Either install a suitable version of makeinfo, or re-run configure
5563 with the \`--without-makeinfo' option to build without the manuals. " >&5
5564 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5565 source tree does not seem to have pre-built manuals in the \`info' directory.
5566 Either install a suitable version of makeinfo, or re-run configure
5567 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5568 { (exit 1); exit 1; }; }
5573 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5575 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5578 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5580 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5584 late_LDFLAGS
=$LDFLAGS
5585 if test "$GCC" = yes; then
5586 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5588 LDFLAGS
="$LDFLAGS -znocombreloc"
5591 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5592 $as_echo_n "checking for -znocombreloc... " >&6; }
5593 cat >conftest.
$ac_ext <<_ACEOF
5596 rm -f conftest.
$ac_objext conftest
$ac_exeext
5597 if { (ac_try
="$ac_link"
5599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603 $as_echo "$ac_try_echo") >&5
5604 (eval "$ac_link") 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest$ac_exeext && {
5614 test "$cross_compiling" = yes ||
5615 $as_test_x conftest$ac_exeext
5617 { $as_echo "$as_me:$LINENO: result: yes" >&5
5618 $as_echo "yes" >&6; }
5620 $as_echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 LDFLAGS=$late_LDFLAGS
5624 { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5628 rm -rf conftest.dSYM
5629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5630 conftest$ac_exeext conftest.$ac_ext
5632 #### Extract some information from the operating system and machine files.
5634 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5635 - which libraries the lib-src programs will want, and
5636 - whether the GNU malloc routines are usable..." >&5
5637 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5638 - which libraries the lib-src programs will want, and
5639 - whether the GNU malloc routines are usable..." >&6;}
5641 ### First figure out CFLAGS (which we use for running the compiler here)
5642 ### and REAL_CFLAGS (which we use for real compilation).
5643 ### The two are the same except on a few systems, where they are made
5644 ### different to work around various lossages. For example,
5645 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5646 ### as implying static linking.
5648 ### If the CFLAGS env var is specified, we use that value
5649 ### instead of the default.
5651 ### It's not important that this name contain the PID; you can't run
5652 ### two configures in the same directory and have anything work
5654 tempcname="conftest.c"
5657 #include "'${srcdir}'/src/'${opsysfile}'"
5658 #include "'${srcdir}'/src/'${machfile}'"
5659 #ifndef LIBS_MACHINE
5660 #define LIBS_MACHINE
5665 #ifndef C_SWITCH_SYSTEM
5666 #define C_SWITCH_SYSTEM
5668 #ifndef C_SWITCH_MACHINE
5669 #define C_SWITCH_MACHINE
5671 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5672 configure___ c_switch_system=C_SWITCH_SYSTEM
5673 configure___ c_switch_machine=C_SWITCH_MACHINE
5676 #define LIB_X11_LIB -lX11
5679 #ifndef LIBX11_SYSTEM
5680 #define LIBX11_SYSTEM
5682 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5685 configure___ unexec=UNEXEC
5687 configure___ unexec=unexec.o
5690 #ifdef SYSTEM_MALLOC
5691 configure___ system_malloc=yes
5693 configure___ system_malloc=no
5696 #ifdef USE_MMAP_FOR_BUFFERS
5697 configure___ use_mmap_for_buffers=yes
5699 configure___ use_mmap_for_buffers=no
5702 #ifndef C_DEBUG_SWITCH
5703 #define C_DEBUG_SWITCH -g
5706 #ifndef C_OPTIMIZE_SWITCH
5708 #define C_OPTIMIZE_SWITCH -O2
5710 #define C_OPTIMIZE_SWITCH -O
5714 #ifndef C_WARNINGS_SWITCH
5715 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5718 #ifndef LD_SWITCH_MACHINE
5719 #define LD_SWITCH_MACHINE
5722 #ifndef LD_SWITCH_SYSTEM
5723 #define LD_SWITCH_SYSTEM
5726 #ifndef LD_SWITCH_X_SITE_AUX
5727 #define LD_SWITCH_X_SITE_AUX
5730 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5731 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5733 #ifdef THIS_IS_CONFIGURE
5735 /* Get the CFLAGS for tests in configure. */
5737 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5739 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5742 #else /* not THIS_IS_CONFIGURE */
5744 /* Get the CFLAGS for real compilation. */
5746 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5748 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5751 #endif /* not THIS_IS_CONFIGURE */
5754 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5756 # The value of CPP is a quoted variable reference, so we need to do this
5757 # to get its actual value...
5758 CPP=`eval "echo $CPP"`
5759 eval `${CPP} -Isrc ${tempcname} \
5760 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5761 if test "x$SPECIFIED_CFLAGS" = x; then
5762 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5763 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5765 REAL_CFLAGS="$CFLAGS"
5769 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5771 ### Make sure subsequent tests use flags consistent with the build flags.
5773 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5774 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5776 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5781 # Check whether --enable-largefile was given.
5782 if test "${enable_largefile+set}" = set; then
5783 enableval=$enable_largefile;
5786 if test "$enable_largefile" != no; then
5788 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5789 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5790 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5791 $as_echo_n "(cached) " >&6
5793 ac_cv_sys_largefile_CC=no
5794 if test "$GCC" != yes; then
5797 # IRIX 6.2 and later do not support large files by default,
5798 # so use the C compiler's -n32 option if that helps.
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <sys/types.h>
5806 /* Check that off_t can represent 2**63 - 1 correctly.
5807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5808 since some C++ compilers masquerading as C compilers
5809 incorrectly reject 9223372036854775807. */
5810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5812 && LARGE_OFF_T % 2147483647 == 1)
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5826 *) ac_try_echo
=$ac_try;;
5828 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5829 $as_echo "$ac_try_echo") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1
>conftest.err
5834 cat conftest.err
>&5
5835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } && {
5837 test -z "$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 } && test -s conftest.
$ac_objext; then
5842 $as_echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.
$ac_ext >&5
5848 rm -f core conftest.err conftest.
$ac_objext
5850 rm -f conftest.
$ac_objext
5851 if { (ac_try
="$ac_compile"
5853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5857 $as_echo "$ac_try_echo") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest.$ac_objext; then
5868 ac_cv_sys_largefile_CC=' -n32'; break
5870 $as_echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5876 rm -f core conftest.err conftest.$ac_objext
5880 rm -f conftest.$ac_ext
5883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5884 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5885 if test "$ac_cv_sys_largefile_CC" != no; then
5886 CC=$CC$ac_cv_sys_largefile_CC
5889 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5890 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5891 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <sys/types.h>
5902 /* Check that off_t can represent 2**63 - 1 correctly.
5903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5904 since some C++ compilers masquerading as C compilers
5905 incorrectly reject 9223372036854775807. */
5906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5908 && LARGE_OFF_T % 2147483647 == 1)
5918 rm -f conftest.$ac_objext
5919 if { (ac_try="$ac_compile"
5921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5922 *) ac_try_echo
=$ac_try;;
5924 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5925 $as_echo "$ac_try_echo") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1
>conftest.err
5930 cat conftest.err
>&5
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.
$ac_objext; then
5936 ac_cv_sys_file_offset_bits
=no
; break
5938 $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.
$ac_ext >&5
5944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #define _FILE_OFFSET_BITS 64
5952 #include <sys/types.h>
5953 /* Check that off_t can represent 2**63 - 1 correctly.
5954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5955 since some C++ compilers masquerading as C compilers
5956 incorrectly reject 9223372036854775807. */
5957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5959 && LARGE_OFF_T % 2147483647 == 1)
5969 rm -f conftest.
$ac_objext
5970 if { (ac_try
="$ac_compile"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976 $as_echo "$ac_try_echo") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
5987 ac_cv_sys_file_offset_bits=64; break
5989 $as_echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 ac_cv_sys_file_offset_bits=unknown
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6001 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6002 case $ac_cv_sys_file_offset_bits in #(
6005 cat >>confdefs.h <<_ACEOF
6006 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6011 if test $ac_cv_sys_file_offset_bits = unknown; then
6012 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6013 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6014 if test "${ac_cv_sys_large_files+set}" = set; then
6015 $as_echo_n "(cached) " >&6
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6025 /* Check that off_t can represent 2**63 - 1 correctly.
6026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6027 since some C++ compilers masquerading as C compilers
6028 incorrectly reject 9223372036854775807. */
6029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6031 && LARGE_OFF_T % 2147483647 == 1)
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6045 *) ac_try_echo
=$ac_try;;
6047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6048 $as_echo "$ac_try_echo") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6051 grep -v '^ *+' conftest.er1
>conftest.err
6053 cat conftest.err
>&5
6054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest.
$ac_objext; then
6059 ac_cv_sys_large_files
=no
; break
6061 $as_echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.
$ac_ext >&5
6067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6068 cat >conftest.
$ac_ext <<_ACEOF
6071 cat confdefs.h
>>conftest.
$ac_ext
6072 cat >>conftest.
$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #define _LARGE_FILES 1
6075 #include <sys/types.h>
6076 /* Check that off_t can represent 2**63 - 1 correctly.
6077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6078 since some C++ compilers masquerading as C compilers
6079 incorrectly reject 9223372036854775807. */
6080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6082 && LARGE_OFF_T % 2147483647 == 1)
6092 rm -f conftest.
$ac_objext
6093 if { (ac_try
="$ac_compile"
6095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6099 $as_echo "$ac_try_echo") >&5
6100 (eval "$ac_compile") 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest.$ac_objext; then
6110 ac_cv_sys_large_files=1; break
6112 $as_echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 ac_cv_sys_large_files=unknown
6123 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6124 $as_echo "$ac_cv_sys_large_files" >&6; }
6125 case $ac_cv_sys_large_files in #(
6128 cat >>confdefs.h <<_ACEOF
6129 #define _LARGE_FILES $ac_cv_sys_large_files
6139 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6140 ### be located in either /usr/lib64 or /usr/lib.
6141 ### In some rare cases, /usr/lib64 exists but does not contain the
6142 ### relevant files (bug#1287). Hence test for crtn.o.
6143 case "${canonical}" in
6144 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6145 if test -e /usr/lib64/crtn.o; then
6147 cat >>confdefs.h <<\_ACEOF
6148 #define HAVE_LIB64_DIR 1
6157 if test "${with_sound}" != "no"; then
6158 # Sound support for GNU/Linux and the free BSDs.
6162 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6167 $as_echo_n "checking for $ac_header... " >&6; }
6168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6169 $as_echo_n "(cached) " >&6
6171 ac_res=`eval 'as_val=${'$as_ac_Header'}
6172 $as_echo "$as_val"'`
6173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6174 $as_echo "$ac_res" >&6; }
6176 # Is the header compilable?
6177 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6178 $as_echo_n "checking $ac_header usability... " >&6; }
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 $ac_includes_default
6186 #include <$ac_header>
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6192 *) ac_try_echo
=$ac_try;;
6194 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6195 $as_echo "$ac_try_echo") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.
$ac_objext; then
6206 ac_header_compiler
=yes
6208 $as_echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 ac_header_compiler
=no
6214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6216 $as_echo "$ac_header_compiler" >&6; }
6218 # Is the header present?
6219 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6220 $as_echo_n "checking $ac_header presence... " >&6; }
6221 cat >conftest.
$ac_ext <<_ACEOF
6224 cat confdefs.h
>>conftest.
$ac_ext
6225 cat >>conftest.
$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <$ac_header>
6229 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } >/dev/null && {
6243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6246 ac_header_preproc=yes
6248 $as_echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_header_preproc=no
6254 rm -f conftest.err conftest.$ac_ext
6255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6256 $as_echo "$ac_header_preproc" >&6; }
6258 # So? What about this header?
6259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6262 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6264 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6265 ac_header_preproc=yes
6268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6269 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6271 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6273 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6275 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6279 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 $as_echo_n "checking for $ac_header... " >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 $as_echo_n "(cached) " >&6
6288 eval "$as_ac_Header=\$ac_header_preproc"
6290 ac_res=`eval 'as_val=${'$as_ac_Header'}
6291 $as_echo "$as_val"'`
6292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6293 $as_echo "$ac_res" >&6; }
6296 if test `eval 'as_val=${'$as_ac_Header'}
6297 $as_echo "$as_val"'` = yes; then
6298 cat >>confdefs.h <<_ACEOF
6299 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6306 # Emulation library used on NetBSD.
6307 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6308 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6309 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6310 $as_echo_n "(cached) " >&6
6312 ac_check_lib_save_LIBS=$LIBS
6313 LIBS="-lossaudio $LIBS"
6314 cat >conftest.$ac_ext <<_ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6321 /* Override any GCC internal prototype to avoid an error.
6322 Use char because int might match the return type of a GCC
6323 builtin and then its argument prototype would still apply. */
6331 return _oss_ioctl ();
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (ac_try="$ac_link"
6339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6340 *) ac_try_echo
=$ac_try;;
6342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6343 $as_echo "$ac_try_echo") >&5
6344 (eval "$ac_link") 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest
$ac_exeext && {
6354 test "$cross_compiling" = yes ||
6355 $as_test_x conftest
$ac_exeext
6357 ac_cv_lib_ossaudio__oss_ioctl
=yes
6359 $as_echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.
$ac_ext >&5
6362 ac_cv_lib_ossaudio__oss_ioctl
=no
6365 rm -rf conftest.dSYM
6366 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6367 conftest
$ac_exeext conftest.
$ac_ext
6368 LIBS
=$ac_check_lib_save_LIBS
6370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6371 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6372 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6381 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6385 # Extract the first word of "pkg-config", so it can be a program name with args.
6386 set dummy pkg-config
; ac_word
=$2
6387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6390 $as_echo_n "(cached) " >&6
6394 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir
=.
6402 for ac_exec_ext
in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6416 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6417 if test -n "$PKG_CONFIG"; then
6418 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6419 $as_echo "$PKG_CONFIG" >&6; }
6421 { $as_echo "$as_me:$LINENO: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test "$PKG_CONFIG" = "no" ; then
6430 PKG_CONFIG_MIN_VERSION
=0.9.0
6431 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6432 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6433 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6435 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6436 { $as_echo "$as_me:$LINENO: result: yes" >&5
6437 $as_echo "yes" >&6; }
6440 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6441 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6442 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6443 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6444 $as_echo "$ALSA_CFLAGS" >&6; }
6446 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6447 $as_echo_n "checking ALSA_LIBS... " >&6; }
6448 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6449 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6450 $as_echo "$ALSA_LIBS" >&6; }
6452 { $as_echo "$as_me:$LINENO: result: no" >&5
6453 $as_echo "no" >&6; }
6456 ## If we have a custom action on failure, don't print errors, but
6457 ## do set a variable so people can do so.
6458 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6465 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6466 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6470 if test $succeeded = yes; then
6476 if test $HAVE_ALSA = yes; then
6477 SAVE_CFLAGS
="$CFLAGS"
6478 SAVE_LDFLAGS
="$LDFLAGS"
6479 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6480 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6481 cat >conftest.
$ac_ext <<_ACEOF
6484 cat confdefs.h
>>conftest.
$ac_ext
6485 cat >>conftest.
$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <asoundlib.h>
6491 snd_lib_error_set_handler (0);
6496 rm -f conftest.
$ac_objext
6497 if { (ac_try
="$ac_compile"
6499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6503 $as_echo "$ac_try_echo") >&5
6504 (eval "$ac_compile") 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest.$ac_objext; then
6514 emacs_alsa_normal=yes
6516 $as_echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 emacs_alsa_normal=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 if test "$emacs_alsa_normal" != yes; then
6524 cat >conftest.$ac_ext <<_ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <alsa/asoundlib.h>
6534 snd_lib_error_set_handler (0);
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6543 *) ac_try_echo
=$ac_try;;
6545 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6546 $as_echo "$ac_try_echo") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6549 grep -v '^ *+' conftest.er1
>conftest.err
6551 cat conftest.err
>&5
6552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.
$ac_objext; then
6557 emacs_alsa_subdir
=yes
6559 $as_echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.
$ac_ext >&5
6562 emacs_alsa_subdir
=no
6565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 if test "$emacs_alsa_subdir" != yes; then
6567 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6568 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6569 { (exit 1); exit 1; }; }
6571 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6574 CFLAGS
="$SAVE_CFLAGS"
6575 LDFLAGS
="$SAVE_LDFLAGS"
6576 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6577 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6579 cat >>confdefs.h
<<\_ACEOF
6612 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6613 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6614 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6615 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6618 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 $as_echo_n "checking for $ac_header... " >&6; }
6622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623 $as_echo_n "(cached) " >&6
6625 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6626 $as_echo "$as_val"'`
6627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6628 $as_echo "$ac_res" >&6; }
6630 # Is the header compilable?
6631 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6632 $as_echo_n "checking $ac_header usability... " >&6; }
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 #include <$ac_header>
6642 rm -f conftest.
$ac_objext
6643 if { (ac_try
="$ac_compile"
6645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649 $as_echo "$ac_try_echo") >&5
6650 (eval "$ac_compile") 2>conftest.er1
6652 grep -v '^ *+' conftest.er1 >conftest.err
6654 cat conftest.err >&5
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } && {
6657 test -z "$ac_c_werror_flag" ||
6658 test ! -s conftest.err
6659 } && test -s conftest.$ac_objext; then
6660 ac_header_compiler=yes
6662 $as_echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6665 ac_header_compiler=no
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6670 $as_echo "$ac_header_compiler" >&6; }
6672 # Is the header present?
6673 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6674 $as_echo_n "checking $ac_header presence... " >&6; }
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <$ac_header>
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6686 *) ac_try_echo
=$ac_try;;
6688 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6689 $as_echo "$ac_try_echo") >&5
6690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6692 grep -v '^ *+' conftest.er1
>conftest.err
6694 cat conftest.err
>&5
6695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } >/dev
/null
&& {
6697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6700 ac_header_preproc
=yes
6702 $as_echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6705 ac_header_preproc
=no
6708 rm -f conftest.err conftest.
$ac_ext
6709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6710 $as_echo "$ac_header_preproc" >&6; }
6712 # So? What about this header?
6713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6716 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6719 ac_header_preproc
=yes
6722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6723 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6725 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6727 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6729 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6733 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 $as_echo_n "checking for $ac_header... " >&6; }
6739 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6740 $as_echo_n "(cached) " >&6
6742 eval "$as_ac_Header=\$ac_header_preproc"
6744 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6745 $as_echo "$as_val"'`
6746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6747 $as_echo "$ac_res" >&6; }
6750 if test `eval 'as_val=${'$as_ac_Header'}
6751 $as_echo "$as_val"'` = yes; then
6752 cat >>confdefs.h
<<_ACEOF
6753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6761 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6762 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <sys/personality.h>
6773 personality (PER_LINUX32)
6778 rm -f conftest.
$ac_objext
6779 if { (ac_try
="$ac_compile"
6781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785 $as_echo "$ac_try_echo") >&5
6786 (eval "$ac_compile") 2>conftest.er1
6788 grep -v '^ *+' conftest.er1 >conftest.err
6790 cat conftest.err >&5
6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && {
6793 test -z "$ac_c_werror_flag" ||
6794 test ! -s conftest.err
6795 } && test -s conftest.$ac_objext; then
6796 emacs_cv_personality_linux32=yes
6798 $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 emacs_cv_personality_linux32=no
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6806 $as_echo "$emacs_cv_personality_linux32" >&6; }
6808 if test $emacs_cv_personality_linux32 = yes; then
6810 cat >>confdefs.h <<\_ACEOF
6811 #define HAVE_PERSONALITY_LINUX32 1
6817 for ac_header in term.h
6819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6821 $as_echo_n "checking for $ac_header... " >&6; }
6822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6823 $as_echo_n "(cached) " >&6
6825 cat >conftest.$ac_ext <<_ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 #include <$ac_header>
6833 if { (ac_try="$ac_cpp conftest.$ac_ext"
6835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6836 *) ac_try_echo
=$ac_try;;
6838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6839 $as_echo "$ac_try_echo") >&5
6840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1
>conftest.err
6844 cat conftest.err
>&5
6845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } >/dev
/null
&& {
6847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6850 eval "$as_ac_Header=yes"
6852 $as_echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.
$ac_ext >&5
6855 eval "$as_ac_Header=no"
6858 rm -f conftest.err conftest.
$ac_ext
6860 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6861 $as_echo "$as_val"'`
6862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6863 $as_echo "$ac_res" >&6; }
6864 if test `eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'` = yes; then
6866 cat >>confdefs.h
<<_ACEOF
6867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6874 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6875 $as_echo_n "checking for ANSI C header files... " >&6; }
6876 if test "${ac_cv_header_stdc+set}" = set; then
6877 $as_echo_n "(cached) " >&6
6879 cat >conftest.
$ac_ext <<_ACEOF
6882 cat confdefs.h
>>conftest.
$ac_ext
6883 cat >>conftest.
$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6898 rm -f conftest.
$ac_objext
6899 if { (ac_try
="$ac_compile"
6901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 ac_cv_header_stdc=yes
6918 $as_echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_cv_header_stdc=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 if test $ac_cv_header_stdc = yes; then
6927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6938 $EGREP "memchr" >/dev/null 2>&1; then
6941 ac_cv_header_stdc=no
6947 if test $ac_cv_header_stdc = yes; then
6948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959 $EGREP "free" >/dev/null 2>&1; then
6962 ac_cv_header_stdc=no
6968 if test $ac_cv_header_stdc = yes; then
6969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6970 if test "$cross_compiling" = yes; then
6973 cat >conftest.$ac_ext <<_ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6981 #if ((' ' & 0x0FF) == 0x020)
6982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6985 # define ISLOWER(c) \
6986 (('a' <= (c) && (c) <= 'i') \
6987 || ('j' <= (c) && (c) <= 'r') \
6988 || ('s' <= (c) && (c) <= 'z'))
6989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6997 for (i = 0; i < 256; i++)
6998 if (XOR (islower (i), ISLOWER (i))
6999 || toupper (i) != TOUPPER (i))
7004 rm -f conftest$ac_exeext
7005 if { (ac_try="$ac_link"
7007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7008 *) ac_try_echo
=$ac_try;;
7010 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7011 $as_echo "$ac_try_echo") >&5
7012 (eval "$ac_link") 2>&5
7014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7016 { (case "(($ac_try" in
7017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7021 $as_echo "$ac_try_echo") >&5
7022 (eval "$ac_try") 2>&5
7024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7028 $as_echo "$as_me: program exited with status $ac_status" >&5
7029 $as_echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_cv_header_stdc=no
7035 rm -rf conftest.dSYM
7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7042 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7043 $as_echo "$ac_cv_header_stdc" >&6; }
7044 if test $ac_cv_header_stdc = yes; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define STDC_HEADERS 1
7052 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7053 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7054 if test "${ac_cv_header_time+set}" = set; then
7055 $as_echo_n "(cached) " >&6
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 #include <sys/types.h>
7064 #include <sys/time.h>
7070 if ((struct tm *) 0)
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7080 *) ac_try_echo
=$ac_try;;
7082 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7083 $as_echo "$ac_try_echo") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1
>conftest.err
7088 cat conftest.err
>&5
7089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.
$ac_objext; then
7094 ac_cv_header_time
=yes
7096 $as_echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.
$ac_ext >&5
7099 ac_cv_header_time
=no
7102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7104 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7105 $as_echo "$ac_cv_header_time" >&6; }
7106 if test $ac_cv_header_time = yes; then
7108 cat >>confdefs.h
<<\_ACEOF
7109 #define TIME_WITH_SYS_TIME 1
7114 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7115 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7116 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7117 $as_echo_n "(cached) " >&6
7119 cat >conftest.
$ac_ext <<_ACEOF
7122 cat confdefs.h
>>conftest.
$ac_ext
7123 cat >>conftest.
$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7137 rm -f conftest.
$ac_objext
7138 if { (ac_try
="$ac_compile"
7140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7144 $as_echo "$ac_try_echo") >&5
7145 (eval "$ac_compile") 2>conftest.er1
7147 grep -v '^ *+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
7155 ac_cv_have_decl_sys_siglist=yes
7157 $as_echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7160 ac_cv_have_decl_sys_siglist=no
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7166 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7167 if test $ac_cv_have_decl_sys_siglist = yes; then
7169 cat >>confdefs.h <<_ACEOF
7170 #define HAVE_DECL_SYS_SIGLIST 1
7175 cat >>confdefs.h <<_ACEOF
7176 #define HAVE_DECL_SYS_SIGLIST 0
7183 if test $ac_cv_have_decl_sys_siglist != yes; then
7184 # For Tru64, at least:
7185 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7186 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7187 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7188 $as_echo_n "(cached) " >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 $ac_includes_default
7200 #ifndef __sys_siglist
7201 (void) __sys_siglist;
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7212 *) ac_try_echo
=$ac_try;;
7214 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7215 $as_echo "$ac_try_echo") >&5
7216 (eval "$ac_compile") 2>conftest.er1
7218 grep -v '^ *+' conftest.er1
>conftest.err
7220 cat conftest.err
>&5
7221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && {
7223 test -z "$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 } && test -s conftest.
$ac_objext; then
7226 ac_cv_have_decl___sys_siglist
=yes
7228 $as_echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.
$ac_ext >&5
7231 ac_cv_have_decl___sys_siglist
=no
7234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7236 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7237 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7238 if test $ac_cv_have_decl___sys_siglist = yes; then
7240 cat >>confdefs.h
<<_ACEOF
7241 #define HAVE_DECL___SYS_SIGLIST 1
7246 cat >>confdefs.h
<<_ACEOF
7247 #define HAVE_DECL___SYS_SIGLIST 0
7254 if test $ac_cv_have_decl___sys_siglist = yes; then
7256 cat >>confdefs.h
<<\_ACEOF
7257 #define sys_siglist __sys_siglist
7262 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7263 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7264 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7265 $as_echo_n "(cached) " >&6
7267 cat >conftest.
$ac_ext <<_ACEOF
7270 cat confdefs.h
>>conftest.
$ac_ext
7271 cat >>conftest.
$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #include <sys/types.h>
7274 #include <sys/wait.h>
7276 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7279 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7287 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7292 rm -f conftest.
$ac_objext
7293 if { (ac_try
="$ac_compile"
7295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299 $as_echo "$ac_try_echo") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 ac_cv_header_sys_wait_h=yes
7312 $as_echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_cv_header_sys_wait_h=no
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7321 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7322 if test $ac_cv_header_sys_wait_h = yes; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define HAVE_SYS_WAIT_H 1
7331 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7332 $as_echo_n "checking for struct utimbuf... " >&6; }
7333 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7334 $as_echo_n "(cached) " >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #ifdef TIME_WITH_SYS_TIME
7343 #include <sys/time.h>
7346 #ifdef HAVE_SYS_TIME_H
7347 #include <sys/time.h>
7358 static struct utimbuf x; x.actime = x.modtime;
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7367 *) ac_try_echo
=$ac_try;;
7369 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7373 grep -v '^ *+' conftest.er1
>conftest.err
7375 cat conftest.err
>&5
7376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.
$ac_objext; then
7381 emacs_cv_struct_utimbuf
=yes
7383 $as_echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.
$ac_ext >&5
7386 emacs_cv_struct_utimbuf
=no
7389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7391 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7392 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7393 if test $emacs_cv_struct_utimbuf = yes; then
7395 cat >>confdefs.h
<<\_ACEOF
7396 #define HAVE_STRUCT_UTIMBUF 1
7401 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7402 $as_echo_n "checking return type of signal handlers... " >&6; }
7403 if test "${ac_cv_type_signal+set}" = set; then
7404 $as_echo_n "(cached) " >&6
7406 cat >conftest.
$ac_ext <<_ACEOF
7409 cat confdefs.h
>>conftest.
$ac_ext
7410 cat >>conftest.
$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <sys/types.h>
7418 return *(signal (0, 0)) (0) == 1;
7423 rm -f conftest.
$ac_objext
7424 if { (ac_try
="$ac_compile"
7426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7430 $as_echo "$ac_try_echo") >&5
7431 (eval "$ac_compile") 2>conftest.er1
7433 grep -v '^ *+' conftest.er1 >conftest.err
7435 cat conftest.err >&5
7436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && {
7438 test -z "$ac_c_werror_flag" ||
7439 test ! -s conftest.err
7440 } && test -s conftest.$ac_objext; then
7441 ac_cv_type_signal=int
7443 $as_echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 ac_cv_type_signal=void
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7452 $as_echo "$ac_cv_type_signal" >&6; }
7454 cat >>confdefs.h <<_ACEOF
7455 #define RETSIGTYPE $ac_cv_type_signal
7460 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7461 $as_echo_n "checking for speed_t... " >&6; }
7462 if test "${emacs_cv_speed_t+set}" = set; then
7463 $as_echo_n "(cached) " >&6
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 #include <termios.h>
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7484 *) ac_try_echo
=$ac_try;;
7486 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7490 grep -v '^ *+' conftest.er1
>conftest.err
7492 cat conftest.err
>&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.
$ac_objext; then
7498 emacs_cv_speed_t
=yes
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.
$ac_ext >&5
7506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7508 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7509 $as_echo "$emacs_cv_speed_t" >&6; }
7510 if test $emacs_cv_speed_t = yes; then
7512 cat >>confdefs.h
<<\_ACEOF
7513 #define HAVE_SPEED_T 1
7518 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7519 $as_echo_n "checking for struct timeval... " >&6; }
7520 if test "${emacs_cv_struct_timeval+set}" = set; then
7521 $as_echo_n "(cached) " >&6
7523 cat >conftest.
$ac_ext <<_ACEOF
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #ifdef TIME_WITH_SYS_TIME
7530 #include <sys/time.h>
7533 #ifdef HAVE_SYS_TIME_H
7534 #include <sys/time.h>
7542 static struct timeval x; x.tv_sec = x.tv_usec;
7547 rm -f conftest.
$ac_objext
7548 if { (ac_try
="$ac_compile"
7550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554 $as_echo "$ac_try_echo") >&5
7555 (eval "$ac_compile") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest.$ac_objext; then
7565 emacs_cv_struct_timeval=yes
7567 $as_echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 emacs_cv_struct_timeval=no
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7576 $as_echo "$emacs_cv_struct_timeval" >&6; }
7577 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7578 if test $emacs_cv_struct_timeval = yes; then
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_TIMEVAL 1
7586 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7587 $as_echo_n "checking for struct exception... " >&6; }
7588 if test "${emacs_cv_struct_exception+set}" = set; then
7589 $as_echo_n "(cached) " >&6
7591 cat >conftest.$ac_ext <<_ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7601 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7610 *) ac_try_echo
=$ac_try;;
7612 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7613 $as_echo "$ac_try_echo") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7616 grep -v '^ *+' conftest.er1
>conftest.err
7618 cat conftest.err
>&5
7619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.
$ac_objext; then
7624 emacs_cv_struct_exception
=yes
7626 $as_echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.
$ac_ext >&5
7629 emacs_cv_struct_exception
=no
7632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7634 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7635 $as_echo "$emacs_cv_struct_exception" >&6; }
7636 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7637 if test $emacs_cv_struct_exception != yes; then
7639 cat >>confdefs.h
<<\_ACEOF
7640 #define NO_MATHERR 1
7646 for ac_header
in sys
/socket.h
7648 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7651 $as_echo_n "checking for $ac_header... " >&6; }
7652 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7653 $as_echo_n "(cached) " >&6
7655 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7656 $as_echo "$as_val"'`
7657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7658 $as_echo "$ac_res" >&6; }
7660 # Is the header compilable?
7661 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662 $as_echo_n "checking $ac_header usability... " >&6; }
7663 cat >conftest.
$ac_ext <<_ACEOF
7666 cat confdefs.h
>>conftest.
$ac_ext
7667 cat >>conftest.
$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7670 #include <$ac_header>
7672 rm -f conftest.
$ac_objext
7673 if { (ac_try
="$ac_compile"
7675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7679 $as_echo "$ac_try_echo") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7690 ac_header_compiler=yes
7692 $as_echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_header_compiler=no
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7700 $as_echo "$ac_header_compiler" >&6; }
7702 # Is the header present?
7703 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7704 $as_echo_n "checking $ac_header presence... " >&6; }
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 #include <$ac_header>
7713 if { (ac_try="$ac_cpp conftest.$ac_ext"
7715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7716 *) ac_try_echo
=$ac_try;;
7718 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1
>conftest.err
7724 cat conftest.err
>&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } >/dev
/null
&& {
7727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7730 ac_header_preproc
=yes
7732 $as_echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.
$ac_ext >&5
7735 ac_header_preproc
=no
7738 rm -f conftest.err conftest.
$ac_ext
7739 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7740 $as_echo "$ac_header_preproc" >&6; }
7742 # So? What about this header?
7743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7746 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7748 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7749 ac_header_preproc
=yes
7752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7753 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7755 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7757 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7759 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7763 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7768 $as_echo_n "checking for $ac_header... " >&6; }
7769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 $as_echo_n "(cached) " >&6
7772 eval "$as_ac_Header=\$ac_header_preproc"
7774 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7775 $as_echo "$as_val"'`
7776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7777 $as_echo "$ac_res" >&6; }
7780 if test `eval 'as_val=${'$as_ac_Header'}
7781 $as_echo "$as_val"'` = yes; then
7782 cat >>confdefs.h
<<_ACEOF
7783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791 for ac_header
in net
/if.h
7793 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7795 $as_echo_n "checking for $ac_header... " >&6; }
7796 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7797 $as_echo_n "(cached) " >&6
7799 cat >conftest.
$ac_ext <<_ACEOF
7802 cat confdefs.h
>>conftest.
$ac_ext
7803 cat >>conftest.
$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 $ac_includes_default
7806 #if HAVE_SYS_SOCKET_H
7807 #include <sys/socket.h>
7810 #include <$ac_header>
7812 rm -f conftest.
$ac_objext
7813 if { (ac_try
="$ac_compile"
7815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7819 $as_echo "$ac_try_echo") >&5
7820 (eval "$ac_compile") 2>conftest.er1
7822 grep -v '^ *+' conftest.er1 >conftest.err
7824 cat conftest.err >&5
7825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } && {
7827 test -z "$ac_c_werror_flag" ||
7828 test ! -s conftest.err
7829 } && test -s conftest.$ac_objext; then
7830 eval "$as_ac_Header=yes"
7832 $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 eval "$as_ac_Header=no"
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 ac_res=`eval 'as_val=${'$as_ac_Header'}
7841 $as_echo "$as_val"'`
7842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7843 $as_echo "$ac_res" >&6; }
7844 if test `eval 'as_val=${'$as_ac_Header'}
7845 $as_echo "$as_val"'` = yes; then
7846 cat >>confdefs.h <<_ACEOF
7847 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7855 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7856 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7857 if test "${ac_cv_struct_tm+set}" = set; then
7858 $as_echo_n "(cached) " >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <sys/types.h>
7873 int *p = &tm.tm_sec;
7879 rm -f conftest.$ac_objext
7880 if { (ac_try="$ac_compile"
7882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7883 *) ac_try_echo
=$ac_try;;
7885 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7886 $as_echo "$ac_try_echo") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1
>conftest.err
7891 cat conftest.err
>&5
7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.
$ac_objext; then
7897 ac_cv_struct_tm
=time.h
7899 $as_echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 ac_cv_struct_tm
=sys
/time.h
7905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7907 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7908 $as_echo "$ac_cv_struct_tm" >&6; }
7909 if test $ac_cv_struct_tm = sys
/time.h
; then
7911 cat >>confdefs.h
<<\_ACEOF
7912 #define TM_IN_SYS_TIME 1
7917 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7918 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7919 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7922 cat >conftest.
$ac_ext <<_ACEOF
7925 cat confdefs.h
>>conftest.
$ac_ext
7926 cat >>conftest.
$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <sys/types.h>
7929 #include <$ac_cv_struct_tm>
7935 static struct tm ac_aggr;
7936 if (ac_aggr.tm_zone)
7942 rm -f conftest.
$ac_objext
7943 if { (ac_try
="$ac_compile"
7945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_cv_member_struct_tm_tm_zone=yes
7962 $as_echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 #include <sys/types.h>
7972 #include <$ac_cv_struct_tm>
7978 static struct tm ac_aggr;
7979 if (sizeof ac_aggr.tm_zone)
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7989 *) ac_try_echo
=$ac_try;;
7991 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7992 $as_echo "$ac_try_echo") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1
>conftest.err
7997 cat conftest.err
>&5
7998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest.
$ac_objext; then
8003 ac_cv_member_struct_tm_tm_zone
=yes
8005 $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.
$ac_ext >&5
8008 ac_cv_member_struct_tm_tm_zone
=no
8011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8016 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8017 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8018 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8020 cat >>confdefs.h
<<_ACEOF
8021 #define HAVE_STRUCT_TM_TM_ZONE 1
8027 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8029 cat >>confdefs.h
<<\_ACEOF
8030 #define HAVE_TM_ZONE 1
8034 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8035 $as_echo_n "checking whether tzname is declared... " >&6; }
8036 if test "${ac_cv_have_decl_tzname+set}" = set; then
8037 $as_echo_n "(cached) " >&6
8039 cat >conftest.
$ac_ext <<_ACEOF
8042 cat confdefs.h
>>conftest.
$ac_ext
8043 cat >>conftest.
$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8058 rm -f conftest.
$ac_objext
8059 if { (ac_try
="$ac_compile"
8061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8065 $as_echo "$ac_try_echo") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest.$ac_objext; then
8076 ac_cv_have_decl_tzname=yes
8078 $as_echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_have_decl_tzname=no
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8087 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8088 if test $ac_cv_have_decl_tzname = yes; then
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_DECL_TZNAME 1
8096 cat >>confdefs.h <<_ACEOF
8097 #define HAVE_DECL_TZNAME 0
8104 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8105 $as_echo_n "checking for tzname... " >&6; }
8106 if test "${ac_cv_var_tzname+set}" = set; then
8107 $as_echo_n "(cached) " >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 #if !HAVE_DECL_TZNAME
8117 extern char *tzname[];
8123 return tzname[0][0];
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8132 *) ac_try_echo
=$ac_try;;
8134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8135 $as_echo "$ac_try_echo") >&5
8136 (eval "$ac_link") 2>conftest.er1
8138 grep -v '^ *+' conftest.er1
>conftest.err
8140 cat conftest.err
>&5
8141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest
$ac_exeext && {
8146 test "$cross_compiling" = yes ||
8147 $as_test_x conftest
$ac_exeext
8149 ac_cv_var_tzname
=yes
8151 $as_echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.
$ac_ext >&5
8157 rm -rf conftest.dSYM
8158 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8159 conftest
$ac_exeext conftest.
$ac_ext
8161 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8162 $as_echo "$ac_cv_var_tzname" >&6; }
8163 if test $ac_cv_var_tzname = yes; then
8165 cat >>confdefs.h
<<\_ACEOF
8166 #define HAVE_TZNAME 1
8172 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8173 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8174 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8175 $as_echo_n "(cached) " >&6
8177 cat >conftest.
$ac_ext <<_ACEOF
8180 cat confdefs.h
>>conftest.
$ac_ext
8181 cat >>conftest.
$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8188 static struct tm ac_aggr;
8189 if (ac_aggr.tm_gmtoff)
8195 rm -f conftest.
$ac_objext
8196 if { (ac_try
="$ac_compile"
8198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8202 $as_echo "$ac_try_echo") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_c_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.$ac_objext; then
8213 ac_cv_member_struct_tm_tm_gmtoff=yes
8215 $as_echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8218 cat >conftest.$ac_ext <<_ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8229 static struct tm ac_aggr;
8230 if (sizeof ac_aggr.tm_gmtoff)
8236 rm -f conftest.$ac_objext
8237 if { (ac_try="$ac_compile"
8239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8240 *) ac_try_echo
=$ac_try;;
8242 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8243 $as_echo "$ac_try_echo") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.
$ac_objext; then
8254 ac_cv_member_struct_tm_tm_gmtoff
=yes
8256 $as_echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.
$ac_ext >&5
8259 ac_cv_member_struct_tm_tm_gmtoff
=no
8262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8268 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8269 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8271 cat >>confdefs.h
<<\_ACEOF
8272 #define HAVE_TM_GMTOFF 1
8277 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8278 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8279 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8280 $as_echo_n "(cached) " >&6
8282 cat >conftest.
$ac_ext <<_ACEOF
8285 cat confdefs.h
>>conftest.
$ac_ext
8286 cat >>conftest.
$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 #if HAVE_SYS_SOCKET_H
8290 #include <sys/socket.h>
8299 static struct ifreq ac_aggr;
8300 if (ac_aggr.ifr_flags)
8306 rm -f conftest.
$ac_objext
8307 if { (ac_try
="$ac_compile"
8309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8313 $as_echo "$ac_try_echo") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 ac_cv_member_struct_ifreq_ifr_flags=yes
8326 $as_echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 cat >conftest.$ac_ext <<_ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8335 $ac_includes_default
8336 #if HAVE_SYS_SOCKET_H
8337 #include <sys/socket.h>
8346 static struct ifreq ac_aggr;
8347 if (sizeof ac_aggr.ifr_flags)
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8357 *) ac_try_echo
=$ac_try;;
8359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8363 grep -v '^ *+' conftest.er1
>conftest.err
8365 cat conftest.err
>&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.
$ac_objext; then
8371 ac_cv_member_struct_ifreq_ifr_flags
=yes
8373 $as_echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8376 ac_cv_member_struct_ifreq_ifr_flags
=no
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8385 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8386 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8388 cat >>confdefs.h
<<_ACEOF
8389 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8394 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8395 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8396 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8397 $as_echo_n "(cached) " >&6
8399 cat >conftest.
$ac_ext <<_ACEOF
8402 cat confdefs.h
>>conftest.
$ac_ext
8403 cat >>conftest.
$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #if HAVE_SYS_SOCKET_H
8407 #include <sys/socket.h>
8416 static struct ifreq ac_aggr;
8417 if (ac_aggr.ifr_hwaddr)
8423 rm -f conftest.
$ac_objext
8424 if { (ac_try
="$ac_compile"
8426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.$ac_objext; then
8441 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8443 $as_echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8453 #if HAVE_SYS_SOCKET_H
8454 #include <sys/socket.h>
8463 static struct ifreq ac_aggr;
8464 if (sizeof ac_aggr.ifr_hwaddr)
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8474 *) ac_try_echo
=$ac_try;;
8476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_compile") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1
>conftest.err
8482 cat conftest.err
>&5
8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest.
$ac_objext; then
8488 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8490 $as_echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.
$ac_ext >&5
8493 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8502 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8503 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8505 cat >>confdefs.h
<<_ACEOF
8506 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8511 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8512 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8513 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8514 $as_echo_n "(cached) " >&6
8516 cat >conftest.
$ac_ext <<_ACEOF
8519 cat confdefs.h
>>conftest.
$ac_ext
8520 cat >>conftest.
$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8533 static struct ifreq ac_aggr;
8534 if (ac_aggr.ifr_netmask)
8540 rm -f conftest.
$ac_objext
8541 if { (ac_try
="$ac_compile"
8543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547 $as_echo "$ac_try_echo") >&5
8548 (eval "$ac_compile") 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest.$ac_objext; then
8558 ac_cv_member_struct_ifreq_ifr_netmask=yes
8560 $as_echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #if HAVE_SYS_SOCKET_H
8571 #include <sys/socket.h>
8580 static struct ifreq ac_aggr;
8581 if (sizeof ac_aggr.ifr_netmask)
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8591 *) ac_try_echo
=$ac_try;;
8593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1
>conftest.err
8599 cat conftest.err
>&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.
$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8607 $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.
$ac_ext >&5
8610 ac_cv_member_struct_ifreq_ifr_netmask
=no
8613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8618 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8619 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8620 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8622 cat >>confdefs.h
<<_ACEOF
8623 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8628 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8629 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8630 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8631 $as_echo_n "(cached) " >&6
8633 cat >conftest.
$ac_ext <<_ACEOF
8636 cat confdefs.h
>>conftest.
$ac_ext
8637 cat >>conftest.
$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8640 #if HAVE_SYS_SOCKET_H
8641 #include <sys/socket.h>
8650 static struct ifreq ac_aggr;
8651 if (ac_aggr.ifr_broadaddr)
8657 rm -f conftest.
$ac_objext
8658 if { (ac_try
="$ac_compile"
8660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_compile") 2>conftest.er1
8667 grep -v '^ *+' conftest.er1 >conftest.err
8669 cat conftest.err >&5
8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && {
8672 test -z "$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8674 } && test -s conftest.$ac_objext; then
8675 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8677 $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #if HAVE_SYS_SOCKET_H
8688 #include <sys/socket.h>
8697 static struct ifreq ac_aggr;
8698 if (sizeof ac_aggr.ifr_broadaddr)
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8708 *) ac_try_echo
=$ac_try;;
8710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8711 $as_echo "$ac_try_echo") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1
>conftest.err
8716 cat conftest.err
>&5
8717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.
$ac_objext; then
8722 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8724 $as_echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.
$ac_ext >&5
8727 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8736 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8737 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8739 cat >>confdefs.h
<<_ACEOF
8740 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8745 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8746 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8747 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8748 $as_echo_n "(cached) " >&6
8750 cat >conftest.
$ac_ext <<_ACEOF
8753 cat confdefs.h
>>conftest.
$ac_ext
8754 cat >>conftest.
$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 #if HAVE_SYS_SOCKET_H
8758 #include <sys/socket.h>
8767 static struct ifreq ac_aggr;
8768 if (ac_aggr.ifr_addr)
8774 rm -f conftest.
$ac_objext
8775 if { (ac_try
="$ac_compile"
8777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782 (eval "$ac_compile") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest.$ac_objext; then
8792 ac_cv_member_struct_ifreq_ifr_addr=yes
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #if HAVE_SYS_SOCKET_H
8805 #include <sys/socket.h>
8814 static struct ifreq ac_aggr;
8815 if (sizeof ac_aggr.ifr_addr)
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8825 *) ac_try_echo
=$ac_try;;
8827 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8828 $as_echo "$ac_try_echo") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8831 grep -v '^ *+' conftest.er1
>conftest.err
8833 cat conftest.err
>&5
8834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.
$ac_objext; then
8839 ac_cv_member_struct_ifreq_ifr_addr
=yes
8841 $as_echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.
$ac_ext >&5
8844 ac_cv_member_struct_ifreq_ifr_addr
=no
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8852 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8853 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8854 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8856 cat >>confdefs.h
<<_ACEOF
8857 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8865 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8866 $as_echo_n "checking for function prototypes... " >&6; }
8867 if test "$ac_cv_prog_cc_c89" != no
; then
8868 { $as_echo "$as_me:$LINENO: result: yes" >&5
8869 $as_echo "yes" >&6; }
8871 cat >>confdefs.h
<<\_ACEOF
8872 #define PROTOTYPES 1
8876 cat >>confdefs.h
<<\_ACEOF
8877 #define __PROTOTYPES 1
8881 { $as_echo "$as_me:$LINENO: result: no" >&5
8882 $as_echo "no" >&6; }
8885 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8886 $as_echo_n "checking for working volatile... " >&6; }
8887 if test "${ac_cv_c_volatile+set}" = set; then
8888 $as_echo_n "(cached) " >&6
8890 cat >conftest.
$ac_ext <<_ACEOF
8893 cat confdefs.h
>>conftest.
$ac_ext
8894 cat >>conftest.
$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8902 int * volatile y = (int *) 0;
8908 rm -f conftest.
$ac_objext
8909 if { (ac_try
="$ac_compile"
8911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_c_volatile=yes
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8937 $as_echo "$ac_cv_c_volatile" >&6; }
8938 if test $ac_cv_c_volatile = no; then
8940 cat >>confdefs.h <<\_ACEOF
8941 #define volatile /**/
8946 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8947 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8948 if test "${ac_cv_c_const+set}" = set; then
8949 $as_echo_n "(cached) " >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8961 /* FIXME: Include the comments suggested by Paul. */
8963 /* Ultrix mips cc rejects this. */
8964 typedef int charset[2];
8966 /* SunOS 4.1.1 cc rejects this. */
8967 char const *const *pcpcc;
8969 /* NEC SVR4.0.2 mips cc rejects this. */
8970 struct point {int x, y;};
8971 static struct point const zero = {0,0};
8972 /* AIX XL C 1.02.0.0 rejects this.
8973 It does not let you subtract one const X* pointer from another in
8974 an arm of an if-expression whose if-part is not a constant
8976 const char *g = "string";
8977 pcpcc = &g + (g ? g-g : 0);
8978 /* HPUX 7.0 cc rejects these. */
8980 ppc = (char**) pcpcc;
8981 pcpcc = (char const *const *) ppc;
8982 { /* SCO 3.2v4 cc rejects this. */
8984 char const *s = 0 ? (char *) 0 : (char const *) 0;
8989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8991 const int *foo = &x[0];
8994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8995 typedef const int *iptr;
8999 { /* AIX XL C 1.02.0.0 rejects this saying
9000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9001 struct s { int j; const int *ap[3]; };
9002 struct s *b; b->j = 5;
9004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9008 return !cs[0] && !zero.x;
9015 rm -f conftest.$ac_objext
9016 if { (ac_try="$ac_compile"
9018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9019 *) ac_try_echo
=$ac_try;;
9021 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9022 $as_echo "$ac_try_echo") >&5
9023 (eval "$ac_compile") 2>conftest.er1
9025 grep -v '^ *+' conftest.er1
>conftest.err
9027 cat conftest.err
>&5
9028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && {
9030 test -z "$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9032 } && test -s conftest.
$ac_objext; then
9035 $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.
$ac_ext >&5
9041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9043 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9044 $as_echo "$ac_cv_c_const" >&6; }
9045 if test $ac_cv_c_const = no
; then
9047 cat >>confdefs.h
<<\_ACEOF
9053 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9054 $as_echo_n "checking for void * support... " >&6; }
9055 if test "${emacs_cv_void_star+set}" = set; then
9056 $as_echo_n "(cached) " >&6
9058 cat >conftest.
$ac_ext <<_ACEOF
9061 cat confdefs.h
>>conftest.
$ac_ext
9062 cat >>conftest.
$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9073 rm -f conftest.
$ac_objext
9074 if { (ac_try
="$ac_compile"
9076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9080 $as_echo "$ac_try_echo") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 emacs_cv_void_star=yes
9093 $as_echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 emacs_cv_void_star=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9102 $as_echo "$emacs_cv_void_star" >&6; }
9103 if test $emacs_cv_void_star = yes; then
9104 cat >>confdefs.h <<\_ACEOF
9105 #define POINTER_TYPE void
9109 cat >>confdefs.h <<\_ACEOF
9110 #define POINTER_TYPE char
9119 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9120 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9122 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9123 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9124 $as_echo_n "(cached) " >&6
9126 cat >conftest.make <<\_ACEOF
9129 @echo '@@@%%%=$(MAKE)=@@@%%%'
9131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9132 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9134 eval ac_cv_prog_make_${ac_make}_set=yes;;
9136 eval ac_cv_prog_make_${ac_make}_set=no;;
9140 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9141 { $as_echo "$as_me:$LINENO: result: yes" >&5
9142 $as_echo "yes" >&6; }
9145 { $as_echo "$as_me:$LINENO: result: no" >&5
9146 $as_echo "no" >&6; }
9147 SET_MAKE="MAKE=${MAKE-make}"
9151 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9152 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9153 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9155 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9156 if test "x$testval" != x; then
9159 ac_enable_autodepend=no
9161 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9162 $as_echo "$HAVE_GNU_MAKE" >&6; }
9163 if test $HAVE_GNU_MAKE = yes; then
9164 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9165 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9166 SAVE_CFLAGS="$CFLAGS"
9167 CFLAGS="$CFLAGS -MMD -MF deps.d"
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9183 rm -f conftest.$ac_objext
9184 if { (ac_try="$ac_compile"
9186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9187 *) ac_try_echo
=$ac_try;;
9189 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9190 $as_echo "$ac_try_echo") >&5
9191 (eval "$ac_compile") 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest.
$ac_objext; then
9203 $as_echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.
$ac_ext >&5
9206 ac_enable_autodepend
=no
9209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9210 CFLAGS
="$SAVE_CFLAGS"
9211 test -f deps.d || ac_enable_autodepend
=no
9213 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9214 $as_echo "$ac_enable_autodepend" >&6; }
9216 if test $ac_enable_autodepend = yes; then
9218 cat >>confdefs.h
<<\_ACEOF
9219 #define AUTO_DEPEND 1
9225 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9226 $as_echo_n "checking for long file names... " >&6; }
9227 if test "${ac_cv_sys_long_file_names+set}" = set; then
9228 $as_echo_n "(cached) " >&6
9230 ac_cv_sys_long_file_names
=yes
9231 # Test for long file names in all the places we know might matter:
9232 # . the current directory, where building will happen
9233 # $prefix/lib where we will be installing things
9234 # $exec_prefix/lib likewise
9235 # $TMPDIR if set, where it might want to write temporary files
9236 # /tmp where it might want to write temporary files
9239 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9240 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9241 # in the usual case where exec_prefix is '${prefix}'.
9243 . |
/* | ?
:[\\/]*) ;; #(
9246 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9247 ac_xdir
=$ac_dir/cf$$
9248 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9249 ac_tf1
=$ac_xdir/conftest9012345
9250 ac_tf2
=$ac_xdir/conftest9012346
9251 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9252 ac_cv_sys_long_file_names
=no
9253 rm -f -r "$ac_xdir" 2>/dev
/null
9254 test $ac_cv_sys_long_file_names = no
&& break
9257 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9258 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9259 if test $ac_cv_sys_long_file_names = yes; then
9261 cat >>confdefs.h
<<\_ACEOF
9262 #define HAVE_LONG_FILE_NAMES 1
9268 #### Choose a window system.
9270 { $as_echo "$as_me:$LINENO: checking for X" >&5
9271 $as_echo_n "checking for X... " >&6; }
9274 # Check whether --with-x was given.
9275 if test "${with_x+set}" = set; then
9279 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9280 if test "x$with_x" = xno
; then
9281 # The user explicitly disabled X.
9284 case $x_includes,$x_libraries in #(
9285 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9286 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9287 { (exit 1); exit 1; }; };; #(
9288 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9289 $as_echo_n "(cached) " >&6
9291 # One or both of the vars are not set, and there is no cached value.
9292 ac_x_includes
=no ac_x_libraries
=no
9293 rm -f -r conftest.dir
9294 if mkdir conftest.dir
; then
9296 cat >Imakefile
<<'_ACEOF'
9298 @echo incroot='${INCROOT}'
9300 @echo usrlibdir='${USRLIBDIR}'
9302 @echo libdir='${LIBDIR}'
9304 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9306 for ac_var
in incroot usrlibdir libdir
; do
9307 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9310 for ac_extension
in a so sl dylib la dll
; do
9311 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9312 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9313 ac_im_usrlibdir
=$ac_im_libdir; break
9316 # Screen out bogus values from the imake configuration. They are
9317 # bogus both because they are the default anyway, and because
9318 # using them would break gcc on systems where it needs fixed includes.
9319 case $ac_im_incroot in
9320 /usr
/include
) ac_x_includes
= ;;
9321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9323 case $ac_im_usrlibdir in
9325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9329 rm -f -r conftest.dir
9332 # Standard set of common directories for X headers.
9333 # Check X11 before X11Rn because it is often a symlink to the current release.
9345 /usr/local/X11/include
9346 /usr/local/X11R6/include
9347 /usr/local/X11R5/include
9348 /usr/local/X11R4/include
9350 /usr/local/include/X11
9351 /usr/local/include/X11R6
9352 /usr/local/include/X11R5
9353 /usr/local/include/X11R4
9357 /usr/XFree86/include/X11
9361 /usr/unsupported/include
9363 /usr/local/x11r5/include
9364 /usr/lpp/Xamples/include
9366 /usr/openwin/include
9367 /usr/openwin/share/include'
9369 if test "$ac_x_includes" = no
; then
9370 # Guess where to find include files, by looking for Xlib.h.
9371 # First, try using that file with no special directory specified.
9372 cat >conftest.
$ac_ext <<_ACEOF
9375 cat confdefs.h
>>conftest.
$ac_ext
9376 cat >>conftest.
$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <X11/Xlib.h>
9380 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9386 $as_echo "$ac_try_echo") >&5
9387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } >/dev/null && {
9394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9397 # We can compile using X headers with no special include directory.
9400 $as_echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 for ac_dir in $ac_x_header_dirs; do
9404 if test -r "$ac_dir/X11/Xlib.h"; then
9405 ac_x_includes=$ac_dir
9411 rm -f conftest.err conftest.$ac_ext
9412 fi # $ac_x_includes = no
9414 if test "$ac_x_libraries" = no; then
9415 # Check for the libraries.
9416 # See if we find them without any special options.
9417 # Don't add to $LIBS permanently.
9420 cat >conftest.$ac_ext <<_ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 #include <X11/Xlib.h>
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9439 *) ac_try_echo
=$ac_try;;
9441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_link") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1
>conftest.err
9447 cat conftest.err
>&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest
$ac_exeext && {
9453 test "$cross_compiling" = yes ||
9454 $as_test_x conftest
$ac_exeext
9457 # We can link X programs with no special library path.
9460 $as_echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.
$ac_ext >&5
9464 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9466 # Don't even attempt the hair of trying to link an X program!
9467 for ac_extension
in a so sl dylib la dll
; do
9468 if test -r "$ac_dir/libX11.$ac_extension"; then
9469 ac_x_libraries
=$ac_dir
9476 rm -rf conftest.dSYM
9477 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9478 conftest
$ac_exeext conftest.
$ac_ext
9479 fi # $ac_x_libraries = no
9481 case $ac_x_includes,$ac_x_libraries in #(
9483 # Didn't find X, or a directory has "'" in its name.
9484 ac_cv_have_x
="have_x=no";; #(
9486 # Record where we found X for the cache.
9487 ac_cv_have_x
="have_x=yes\
9488 ac_x_includes='$ac_x_includes'\
9489 ac_x_libraries='$ac_x_libraries'"
9495 eval "$ac_cv_have_x"
9498 if test "$have_x" != yes; then
9499 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9500 $as_echo "$have_x" >&6; }
9503 # If each of the values was on the command line, it overrides each guess.
9504 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9505 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9506 # Update the cache value to reflect the command line values.
9507 ac_cv_have_x
="have_x=yes\
9508 ac_x_includes='$x_includes'\
9509 ac_x_libraries='$x_libraries'"
9510 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9511 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9514 if test "$no_x" = yes; then
9520 ## Workaround for bug in autoconf <= 2.62.
9521 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9522 ## No need to do anything special for these standard directories.
9523 ## This is an experiment, take it out if it causes problems.
9524 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9526 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9530 if test "${x_libraries}" != NONE
; then
9531 if test -n "${x_libraries}"; then
9532 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9533 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9535 x_default_search_path
=""
9536 x_search_path
=${x_libraries}
9537 if test -z "${x_search_path}"; then
9538 x_search_path
=/usr
/lib
9540 for x_library
in `echo ${x_search_path}: | \
9541 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9543 ${x_library}/X11/%L/%T/%N%C%S:\
9544 ${x_library}/X11/%l/%T/%N%C%S:\
9545 ${x_library}/X11/%T/%N%C%S:\
9546 ${x_library}/X11/%L/%T/%N%S:\
9547 ${x_library}/X11/%l/%T/%N%S:\
9548 ${x_library}/X11/%T/%N%S"
9549 if test x
"${x_default_search_path}" = x
; then
9550 x_default_search_path
=${x_search_path}
9552 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9556 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9557 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9560 if test x
"${x_includes}" = x
; then
9561 bitmapdir
=/usr
/include
/X11
/bitmaps
9563 # accumulate include directories that have X11 bitmap subdirectories
9565 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9566 if test -d "${bmd}/X11/bitmaps"; then
9567 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9569 if test -d "${bmd}/bitmaps"; then
9570 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9573 if test ${bmd_acc} != "dummyval"; then
9574 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9581 tmp_CPPFLAGS
="$CPPFLAGS"
9582 tmp_CFLAGS
="$CFLAGS"
9583 CPPFLAGS
="$CPPFLAGS -x objective-c"
9584 CFLAGS
="$CFLAGS -x objective-c"
9585 if test "${with_ns}" != no
; then
9586 if test "${opsys}" = darwin
; then
9588 ns_appdir
=`pwd`/nextstep
/Emacs.app
9589 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9590 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9591 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9592 elif test -f $GNUSTEP_CONFIG_FILE; then
9594 ns_appdir
=`pwd`/nextstep
/Emacs.app
9595 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9596 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9597 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9598 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9599 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9600 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9601 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9602 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9603 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9604 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9606 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9607 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9608 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9609 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9610 $as_echo_n "(cached) " >&6
9612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9613 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9615 # Is the header compilable?
9616 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9617 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9618 cat >conftest.
$ac_ext <<_ACEOF
9621 cat confdefs.h
>>conftest.
$ac_ext
9622 cat >>conftest.
$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 #include <AppKit/AppKit.h>
9627 rm -f conftest.
$ac_objext
9628 if { (ac_try
="$ac_compile"
9630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_header_compiler=yes
9647 $as_echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_header_compiler=no
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655 $as_echo "$ac_header_compiler" >&6; }
9657 # Is the header present?
9658 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9659 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9660 cat >conftest.$ac_ext <<_ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 #include <AppKit/AppKit.h>
9668 if { (ac_try="$ac_cpp conftest.$ac_ext"
9670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9671 *) ac_try_echo
=$ac_try;;
9673 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9674 $as_echo "$ac_try_echo") >&5
9675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9677 grep -v '^ *+' conftest.er1
>conftest.err
9679 cat conftest.err
>&5
9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } >/dev
/null
&& {
9682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9685 ac_header_preproc
=yes
9687 $as_echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.
$ac_ext >&5
9690 ac_header_preproc
=no
9693 rm -f conftest.err conftest.
$ac_ext
9694 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 $as_echo "$ac_header_preproc" >&6; }
9697 # So? What about this header?
9698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9700 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9701 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9703 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc
=yes
9707 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9708 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9709 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9710 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9711 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9712 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9713 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9714 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9716 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9717 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9718 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9722 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9723 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9724 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9725 $as_echo_n "(cached) " >&6
9727 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9730 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9733 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9736 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9737 files are missing or cannot be compiled." >&5
9738 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9739 files are missing or cannot be compiled." >&2;}
9740 { (exit 1); exit 1; }; }
9744 NS_HAVE_NSINTEGER
=yes
9745 cat >conftest.
$ac_ext <<_ACEOF
9748 cat confdefs.h
>>conftest.
$ac_ext
9749 cat >>conftest.
$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 #include <Foundation/NSObjCRuntime.h>
9760 rm -f conftest.
$ac_objext
9761 if { (ac_try
="$ac_compile"
9763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768 (eval "$ac_compile") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest.$ac_objext; then
9778 ns_have_nsinteger=yes
9780 $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ns_have_nsinteger=no
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 if test $ns_have_nsinteger = no; then
9788 NS_HAVE_NSINTEGER=no
9791 if test "${HAVE_NS}" = yes; then
9792 window_system=nextstep
9794 # set up packaging dirs
9795 exec_prefix=${ns_appbindir}
9796 libexecdir=${ns_appbindir}/libexec
9797 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9798 prefix=${ns_appresdir}
9801 CFLAGS="$tmp_CFLAGS"
9802 CPPFLAGS="$tmp_CPPFLAGS"
9804 case "${window_system}" in
9808 case "${with_x_toolkit}" in
9809 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9810 motif ) USE_X_TOOLKIT=MOTIF ;;
9812 USE_X_TOOLKIT=none ;;
9813 no ) USE_X_TOOLKIT=none ;;
9814 * ) USE_X_TOOLKIT=maybe ;;
9824 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9825 # Extract the first word of "X", so it can be a program name with args.
9826 set dummy X; ac_word=$2
9827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9830 $as_echo_n "(cached) " >&6
9832 if test -n "$HAVE_XSERVER"; then
9833 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842 ac_cv_prog_HAVE_XSERVER="true"
9843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9853 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9854 if test -n "$HAVE_XSERVER"; then
9855 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9856 $as_echo "$HAVE_XSERVER" >&6; }
9858 { $as_echo "$as_me:$LINENO: result: no" >&5
9859 $as_echo "no" >&6; }
9863 if test "$HAVE_XSERVER" = true ||
9864 test -n "$DISPLAY" ||
9865 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9866 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9867 were found. You should install the relevant development files for X
9868 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9869 sure you have development files for image handling, i.e.
9870 tiff, gif, jpeg, png and xpm.
9871 If you are sure you want Emacs compiled without X window support, pass
9874 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9875 were found. You should install the relevant development files for X
9876 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9877 sure you have development files for image handling, i.e.
9878 tiff, gif, jpeg, png and xpm.
9879 If you are sure you want Emacs compiled without X window support, pass
9881 to configure." >&2;}
9882 { (exit 1); exit 1; }; }
9886 ### If we're using X11, we should use the X menu package.
9889 yes ) HAVE_MENUS=yes ;;
9892 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9893 # Assume not, until told otherwise.
9896 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9897 $as_echo_n "checking for malloc_get_state... " >&6; }
9898 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9899 $as_echo_n "(cached) " >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define malloc_get_state innocuous_malloc_get_state
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char malloc_get_state (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9917 # include <limits.h>
9919 # include <assert.h>
9922 #undef malloc_get_state
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9930 char malloc_get_state ();
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9941 return malloc_get_state ();
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9950 *) ac_try_echo
=$ac_try;;
9952 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_link") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1
>conftest.err
9958 cat conftest.err
>&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest
$ac_exeext && {
9964 test "$cross_compiling" = yes ||
9965 $as_test_x conftest
$ac_exeext
9967 ac_cv_func_malloc_get_state
=yes
9969 $as_echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.
$ac_ext >&5
9972 ac_cv_func_malloc_get_state
=no
9975 rm -rf conftest.dSYM
9976 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9977 conftest
$ac_exeext conftest.
$ac_ext
9979 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9980 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9981 if test $ac_cv_func_malloc_get_state = yes; then
9987 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9988 $as_echo_n "checking for malloc_set_state... " >&6; }
9989 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9990 $as_echo_n "(cached) " >&6
9992 cat >conftest.
$ac_ext <<_ACEOF
9995 cat confdefs.h
>>conftest.
$ac_ext
9996 cat >>conftest.
$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000 #define malloc_set_state innocuous_malloc_set_state
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char malloc_set_state (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10008 # include <limits.h>
10010 # include <assert.h>
10013 #undef malloc_set_state
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10021 char malloc_set_state ();
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10032 return malloc_set_state ();
10037 rm -f conftest.
$ac_objext conftest
$ac_exeext
10038 if { (ac_try
="$ac_link"
10039 case "(($ac_try" in
10040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10044 $as_echo "$ac_try_echo") >&5
10045 (eval "$ac_link") 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && {
10052 test -z "$ac_c_werror_flag" ||
10053 test ! -s conftest.err
10054 } && test -s conftest$ac_exeext && {
10055 test "$cross_compiling" = yes ||
10056 $as_test_x conftest$ac_exeext
10058 ac_cv_func_malloc_set_state=yes
10060 $as_echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_cv_func_malloc_set_state=no
10066 rm -rf conftest.dSYM
10067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10068 conftest$ac_exeext conftest.$ac_ext
10070 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10071 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10072 if test $ac_cv_func_malloc_set_state = yes; then
10078 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10079 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10080 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10081 $as_echo_n "(cached) " >&6
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 extern void (* __after_morecore_hook)();
10093 __after_morecore_hook = 0
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10102 *) ac_try_echo
=$ac_try;;
10104 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10105 $as_echo "$ac_try_echo") >&5
10106 (eval "$ac_link") 2>conftest.er1
10108 grep -v '^ *+' conftest.er1
>conftest.err
10110 cat conftest.err
>&5
10111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } && {
10113 test -z "$ac_c_werror_flag" ||
10114 test ! -s conftest.err
10115 } && test -s conftest
$ac_exeext && {
10116 test "$cross_compiling" = yes ||
10117 $as_test_x conftest
$ac_exeext
10119 emacs_cv_var___after_morecore_hook
=yes
10121 $as_echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.
$ac_ext >&5
10124 emacs_cv_var___after_morecore_hook
=no
10127 rm -rf conftest.dSYM
10128 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10129 conftest
$ac_exeext conftest.
$ac_ext
10131 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10132 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10133 if test $emacs_cv_var___after_morecore_hook = no
; then
10136 if test "${system_malloc}" = "yes"; then
10138 GNU_MALLOC_reason
="
10139 (The GNU allocators don't work with this system configuration.)"
10141 if test "$doug_lea_malloc" = "yes" ; then
10142 if test "$GNU_MALLOC" = yes ; then
10143 GNU_MALLOC_reason
="
10144 (Using Doug Lea's new malloc from the GNU C Library.)"
10147 cat >>confdefs.h
<<\_ACEOF
10148 #define DOUG_LEA_MALLOC 1
10153 if test x
"${REL_ALLOC}" = x
; then
10154 REL_ALLOC
=${GNU_MALLOC}
10160 for ac_header
in stdlib.h unistd.h
10162 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10163 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10165 $as_echo_n "checking for $ac_header... " >&6; }
10166 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10167 $as_echo_n "(cached) " >&6
10169 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10170 $as_echo "$as_val"'`
10171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10172 $as_echo "$ac_res" >&6; }
10174 # Is the header compilable?
10175 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10176 $as_echo_n "checking $ac_header usability... " >&6; }
10177 cat >conftest.
$ac_ext <<_ACEOF
10180 cat confdefs.h
>>conftest.
$ac_ext
10181 cat >>conftest.
$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10184 #include <$ac_header>
10186 rm -f conftest.
$ac_objext
10187 if { (ac_try
="$ac_compile"
10188 case "(($ac_try" in
10189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_compile") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest.$ac_objext; then
10204 ac_header_compiler=yes
10206 $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_header_compiler=no
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10214 $as_echo "$ac_header_compiler" >&6; }
10216 # Is the header present?
10217 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10218 $as_echo_n "checking $ac_header presence... " >&6; }
10219 cat >conftest.$ac_ext <<_ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <$ac_header>
10227 if { (ac_try="$ac_cpp conftest.$ac_ext"
10228 case "(($ac_try" in
10229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10230 *) ac_try_echo
=$ac_try;;
10232 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10233 $as_echo "$ac_try_echo") >&5
10234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1
>conftest.err
10238 cat conftest.err
>&5
10239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev
/null
&& {
10241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10244 ac_header_preproc
=yes
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.
$ac_ext >&5
10249 ac_header_preproc
=no
10252 rm -f conftest.err conftest.
$ac_ext
10253 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10254 $as_echo "$ac_header_preproc" >&6; }
10256 # So? What about this header?
10257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10260 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10263 ac_header_preproc
=yes
10266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10267 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10269 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10271 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10277 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10282 $as_echo_n "checking for $ac_header... " >&6; }
10283 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10284 $as_echo_n "(cached) " >&6
10286 eval "$as_ac_Header=\$ac_header_preproc"
10288 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10289 $as_echo "$as_val"'`
10290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10291 $as_echo "$ac_res" >&6; }
10294 if test `eval 'as_val=${'$as_ac_Header'}
10295 $as_echo "$as_val"'` = yes; then
10296 cat >>confdefs.h
<<_ACEOF
10297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10305 for ac_func
in getpagesize
10307 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10309 $as_echo_n "checking for $ac_func... " >&6; }
10310 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10311 $as_echo_n "(cached) " >&6
10313 cat >conftest.
$ac_ext <<_ACEOF
10316 cat confdefs.h
>>conftest.
$ac_ext
10317 cat >>conftest.
$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10321 #define $ac_func innocuous_$ac_func
10323 /* System header to define __stub macros and hopefully few prototypes,
10324 which can conflict with char $ac_func (); below.
10325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10326 <limits.h> exists even on freestanding compilers. */
10329 # include <limits.h>
10331 # include <assert.h>
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10343 /* The GNU C library defines this for functions which it implements
10344 to always fail with ENOSYS. Some functions are actually named
10345 something starting with __ and the normal name is an alias. */
10346 #if defined __stub_$ac_func || defined __stub___$ac_func
10353 return $ac_func ();
10358 rm -f conftest.
$ac_objext conftest
$ac_exeext
10359 if { (ac_try
="$ac_link"
10360 case "(($ac_try" in
10361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10365 $as_echo "$ac_try_echo") >&5
10366 (eval "$ac_link") 2>conftest.er1
10368 grep -v '^ *+' conftest.er1 >conftest.err
10370 cat conftest.err >&5
10371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && {
10373 test -z "$ac_c_werror_flag" ||
10374 test ! -s conftest.err
10375 } && test -s conftest$ac_exeext && {
10376 test "$cross_compiling" = yes ||
10377 $as_test_x conftest$ac_exeext
10379 eval "$as_ac_var=yes"
10381 $as_echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 eval "$as_ac_var=no"
10387 rm -rf conftest.dSYM
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389 conftest$ac_exeext conftest.$ac_ext
10391 ac_res=`eval 'as_val=${'$as_ac_var'}
10392 $as_echo "$as_val"'`
10393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10394 $as_echo "$ac_res" >&6; }
10395 if test `eval 'as_val=${'$as_ac_var'}
10396 $as_echo "$as_val"'` = yes; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10404 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10405 $as_echo_n "checking for working mmap... " >&6; }
10406 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10407 $as_echo_n "(cached) " >&6
10409 if test "$cross_compiling" = yes; then
10410 ac_cv_func_mmap_fixed_mapped=no
10412 cat >conftest.$ac_ext <<_ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10419 /* malloc might have been renamed as rpl_malloc. */
10422 /* Thanks to Mike Haertel and Jim Avera for this test.
10423 Here is a matrix of mmap possibilities:
10424 mmap private not fixed
10425 mmap private fixed at somewhere currently unmapped
10426 mmap private fixed at somewhere already mapped
10427 mmap shared not fixed
10428 mmap shared fixed at somewhere currently unmapped
10429 mmap shared fixed at somewhere already mapped
10430 For private mappings, we should verify that changes cannot be read()
10431 back from the file, nor mmap's back from the file at a different
10432 address. (There have been systems where private was not correctly
10433 implemented like the infamous i386 svr4.0, and systems where the
10434 VM page cache was not coherent with the file system buffer cache
10435 like early versions of FreeBSD and possibly contemporary NetBSD.)
10436 For shared mappings, we should conversely verify that changes get
10437 propagated back to all the places they're supposed to be.
10439 Grep wants private fixed already mapped.
10440 The main things grep needs to know about mmap are:
10441 * does it exist and is it safe to write into the mmap'd area
10442 * how to use it (BSD variants) */
10445 #include <sys/mman.h>
10447 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10451 /* This mess was copied from the GNU getpagesize.h. */
10452 #ifndef HAVE_GETPAGESIZE
10453 /* Assume that all systems that can run configure have sys/param.h. */
10454 # ifndef HAVE_SYS_PARAM_H
10455 # define HAVE_SYS_PARAM_H 1
10458 # ifdef _SC_PAGESIZE
10459 # define getpagesize() sysconf(_SC_PAGESIZE)
10460 # else /* no _SC_PAGESIZE */
10461 # ifdef HAVE_SYS_PARAM_H
10462 # include <sys/param.h>
10463 # ifdef EXEC_PAGESIZE
10464 # define getpagesize() EXEC_PAGESIZE
10465 # else /* no EXEC_PAGESIZE */
10467 # define getpagesize() NBPG * CLSIZE
10470 # endif /* no CLSIZE */
10471 # else /* no NBPG */
10473 # define getpagesize() NBPC
10474 # else /* no NBPC */
10476 # define getpagesize() PAGESIZE
10477 # endif /* PAGESIZE */
10478 # endif /* no NBPC */
10479 # endif /* no NBPG */
10480 # endif /* no EXEC_PAGESIZE */
10481 # else /* no HAVE_SYS_PARAM_H */
10482 # define getpagesize() 8192 /* punt totally */
10483 # endif /* no HAVE_SYS_PARAM_H */
10484 # endif /* no _SC_PAGESIZE */
10486 #endif /* no HAVE_GETPAGESIZE */
10491 char *data, *data2, *data3;
10495 pagesize = getpagesize ();
10497 /* First, make a file with some known garbage in it. */
10498 data = (char *) malloc (pagesize);
10501 for (i = 0; i < pagesize; ++i)
10502 *(data + i) = rand ();
10504 fd = creat ("conftest.mmap", 0600);
10507 if (write (fd, data, pagesize) != pagesize)
10511 /* Next, try to mmap the file at a fixed address which already has
10512 something else allocated at it. If we can, also make sure that
10513 we see the same garbage. */
10514 fd = open ("conftest.mmap", O_RDWR);
10517 data2 = (char *) malloc (2 * pagesize);
10520 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10521 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10522 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10524 for (i = 0; i < pagesize; ++i)
10525 if (*(data + i) != *(data2 + i))
10528 /* Finally, make sure that changes to the mapped area do not
10529 percolate back to the file as seen by read(). (This is a bug on
10530 some variants of i386 svr4.0.) */
10531 for (i = 0; i < pagesize; ++i)
10532 *(data2 + i) = *(data2 + i) + 1;
10533 data3 = (char *) malloc (pagesize);
10536 if (read (fd, data3, pagesize) != pagesize)
10538 for (i = 0; i < pagesize; ++i)
10539 if (*(data + i) != *(data3 + i))
10545 rm -f conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10549 *) ac_try_echo
=$ac_try;;
10551 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10552 $as_echo "$ac_try_echo") >&5
10553 (eval "$ac_link") 2>&5
10555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10557 { (case "(($ac_try" in
10558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10562 $as_echo "$ac_try_echo") >&5
10563 (eval "$ac_try") 2>&5
10565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_func_mmap_fixed_mapped=yes
10569 $as_echo "$as_me: program exited with status $ac_status" >&5
10570 $as_echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ( exit $ac_status )
10574 ac_cv_func_mmap_fixed_mapped=no
10576 rm -rf conftest.dSYM
10577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10582 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10583 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_MMAP 1
10591 rm -f conftest.mmap
10593 if test $use_mmap_for_buffers = yes; then
10597 LIBS="$libsrc_libs $LIBS"
10600 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10601 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10602 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10603 $as_echo_n "(cached) " >&6
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-ldnet $LIBS"
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10614 /* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
10624 return dnet_ntoa ();
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10633 *) ac_try_echo
=$ac_try;;
10635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10636 $as_echo "$ac_try_echo") >&5
10637 (eval "$ac_link") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1
>conftest.err
10641 cat conftest.err
>&5
10642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest
$ac_exeext && {
10647 test "$cross_compiling" = yes ||
10648 $as_test_x conftest
$ac_exeext
10650 ac_cv_lib_dnet_dnet_ntoa
=yes
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.
$ac_ext >&5
10655 ac_cv_lib_dnet_dnet_ntoa
=no
10658 rm -rf conftest.dSYM
10659 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10660 conftest
$ac_exeext conftest.
$ac_ext
10661 LIBS
=$ac_check_lib_save_LIBS
10663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10664 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10665 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10666 cat >>confdefs.h
<<_ACEOF
10667 #define HAVE_LIBDNET 1
10670 LIBS
="-ldnet $LIBS"
10675 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10676 $as_echo_n "checking for main in -lXbsd... " >&6; }
10677 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10678 $as_echo_n "(cached) " >&6
10680 ac_check_lib_save_LIBS
=$LIBS
10681 LIBS
="-lXbsd $LIBS"
10682 cat >conftest.
$ac_ext <<_ACEOF
10685 cat confdefs.h
>>conftest.
$ac_ext
10686 cat >>conftest.
$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10698 rm -f conftest.
$ac_objext conftest
$ac_exeext
10699 if { (ac_try
="$ac_link"
10700 case "(($ac_try" in
10701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10705 $as_echo "$ac_try_echo") >&5
10706 (eval "$ac_link") 2>conftest.er1
10708 grep -v '^ *+' conftest.er1 >conftest.err
10710 cat conftest.err >&5
10711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } && {
10713 test -z "$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 } && test -s conftest$ac_exeext && {
10716 test "$cross_compiling" = yes ||
10717 $as_test_x conftest$ac_exeext
10719 ac_cv_lib_Xbsd_main=yes
10721 $as_echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_cv_lib_Xbsd_main=no
10727 rm -rf conftest.dSYM
10728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10733 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10734 if test $ac_cv_lib_Xbsd_main = yes; then
10735 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10740 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10741 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10742 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10743 $as_echo_n "(cached) " >&6
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lpthreads $LIBS"
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10764 return cma_open ();
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10773 *) ac_try_echo
=$ac_try;;
10775 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1
>conftest.err
10781 cat conftest.err
>&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest
$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest
$ac_exeext
10790 ac_cv_lib_pthreads_cma_open
=yes
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.
$ac_ext >&5
10795 ac_cv_lib_pthreads_cma_open
=no
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10800 conftest
$ac_exeext conftest.
$ac_ext
10801 LIBS
=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10804 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10805 if test $ac_cv_lib_pthreads_cma_open = yes; then
10806 cat >>confdefs.h
<<_ACEOF
10807 #define HAVE_LIBPTHREADS 1
10810 LIBS
="-lpthreads $LIBS"
10818 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10819 $as_echo_n "checking for -bbigtoc option... " >&6; }
10820 if test "${gdb_cv_bigtoc+set}" = set; then
10821 $as_echo_n "(cached) " >&6
10825 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10826 *) gdb_cv_bigtoc
=-bbigtoc ;;
10829 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10830 cat >conftest.
$ac_ext <<_ACEOF
10833 cat confdefs.h
>>conftest.
$ac_ext
10834 cat >>conftest.
$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10845 rm -f conftest.
$ac_objext conftest
$ac_exeext
10846 if { (ac_try
="$ac_link"
10847 case "(($ac_try" in
10848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10852 $as_echo "$ac_try_echo") >&5
10853 (eval "$ac_link") 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest$ac_exeext && {
10863 test "$cross_compiling" = yes ||
10864 $as_test_x conftest$ac_exeext
10868 $as_echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10874 rm -rf conftest.dSYM
10875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10876 conftest$ac_exeext conftest.$ac_ext
10879 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10880 $as_echo "$gdb_cv_bigtoc" >&6; }
10884 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10885 # used for the tests that follow. We set them back to REAL_CFLAGS and
10886 # REAL_CPPFLAGS later on.
10888 REAL_CPPFLAGS="$CPPFLAGS"
10890 if test "${HAVE_X11}" = "yes"; then
10891 DEFS="$C_SWITCH_X_SITE $DEFS"
10892 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10894 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10895 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10897 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10898 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10899 # but it's more convenient here to set LD_RUN_PATH
10900 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10901 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10902 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10906 if test "${opsys}" = "gnu-linux"; then
10907 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10908 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10919 XOpenDisplay ("foo");
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10928 *) ac_try_echo
=$ac_try;;
10930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932 (eval "$ac_link") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1
>conftest.err
10936 cat conftest.err
>&5
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest
$ac_exeext && {
10942 test "$cross_compiling" = yes ||
10943 $as_test_x conftest
$ac_exeext
10945 xlinux_first_failure
=no
10947 $as_echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.
$ac_ext >&5
10950 xlinux_first_failure
=yes
10953 rm -rf conftest.dSYM
10954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10955 conftest
$ac_exeext conftest.
$ac_ext
10956 if test "${xlinux_first_failure}" = "yes"; then
10957 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10958 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10959 OLD_CPPFLAGS
="$CPPFLAGS"
10961 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10962 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10963 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10964 LIBS
="$LIBS -b i486-linuxaout"
10965 cat >conftest.
$ac_ext <<_ACEOF
10968 cat confdefs.h
>>conftest.
$ac_ext
10969 cat >>conftest.
$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10975 XOpenDisplay ("foo");
10980 rm -f conftest.
$ac_objext conftest
$ac_exeext
10981 if { (ac_try
="$ac_link"
10982 case "(($ac_try" in
10983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10987 $as_echo "$ac_try_echo") >&5
10988 (eval "$ac_link") 2>conftest.er1
10990 grep -v '^ *+' conftest.er1 >conftest.err
10992 cat conftest.err >&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest$ac_exeext && {
10998 test "$cross_compiling" = yes ||
10999 $as_test_x conftest$ac_exeext
11001 xlinux_second_failure=no
11003 $as_echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 xlinux_second_failure=yes
11009 rm -rf conftest.dSYM
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
11012 if test "${xlinux_second_failure}" = "yes"; then
11013 # If we get the same failure with -b, there is no use adding -b.
11014 # So take it out. This plays safe.
11015 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11016 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11017 CPPFLAGS="$OLD_CPPFLAGS"
11019 { $as_echo "$as_me:$LINENO: result: no" >&5
11020 $as_echo "no" >&6; }
11022 { $as_echo "$as_me:$LINENO: result: yes" >&5
11023 $as_echo "yes" >&6; }
11026 { $as_echo "$as_me:$LINENO: result: no" >&5
11027 $as_echo "no" >&6; }
11031 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11032 # header files included from there.
11033 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11034 $as_echo_n "checking for Xkb... " >&6; }
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #include <X11/Xlib.h>
11042 #include <X11/XKBlib.h>
11046 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11055 *) ac_try_echo
=$ac_try;;
11057 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11058 $as_echo "$ac_try_echo") >&5
11059 (eval "$ac_link") 2>conftest.er1
11061 grep -v '^ *+' conftest.er1
>conftest.err
11063 cat conftest.err
>&5
11064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest
$ac_exeext && {
11069 test "$cross_compiling" = yes ||
11070 $as_test_x conftest
$ac_exeext
11074 $as_echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.
$ac_ext >&5
11080 rm -rf conftest.dSYM
11081 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11082 conftest
$ac_exeext conftest.
$ac_ext
11083 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11084 $as_echo "$emacs_xkb" >&6; }
11085 if test $emacs_xkb = yes; then
11087 cat >>confdefs.h
<<\_ACEOF
11088 #define HAVE_XKBGETKEYBOARD 1
11097 for ac_func
in XrmSetDatabase XScreenResourceString \
11098 XScreenNumberOfScreen XSetWMProtocols
11100 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11102 $as_echo_n "checking for $ac_func... " >&6; }
11103 if { as_var
=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11114 #define $ac_func innocuous_$ac_func
11116 /* System header to define __stub macros and hopefully few prototypes,
11117 which can conflict with char $ac_func (); below.
11118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119 <limits.h> exists even on freestanding compilers. */
11122 # include <limits.h>
11124 # include <assert.h>
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11136 /* The GNU C library defines this for functions which it implements
11137 to always fail with ENOSYS. Some functions are actually named
11138 something starting with __ and the normal name is an alias. */
11139 #if defined __stub_$ac_func || defined __stub___$ac_func
11146 return $ac_func ();
11151 rm -f conftest.
$ac_objext conftest
$ac_exeext
11152 if { (ac_try
="$ac_link"
11153 case "(($ac_try" in
11154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158 $as_echo "$ac_try_echo") >&5
11159 (eval "$ac_link") 2>conftest.er1
11161 grep -v '^ *+' conftest.er1 >conftest.err
11163 cat conftest.err >&5
11164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest$ac_exeext && {
11169 test "$cross_compiling" = yes ||
11170 $as_test_x conftest$ac_exeext
11172 eval "$as_ac_var=yes"
11174 $as_echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 eval "$as_ac_var=no"
11180 rm -rf conftest.dSYM
11181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11182 conftest$ac_exeext conftest.$ac_ext
11184 ac_res=`eval 'as_val=${'$as_ac_var'}
11185 $as_echo "$as_val"'`
11186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11187 $as_echo "$ac_res" >&6; }
11188 if test `eval 'as_val=${'$as_ac_var'}
11189 $as_echo "$as_val"'` = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11199 if test "${window_system}" = "x11"; then
11200 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11201 $as_echo_n "checking X11 version 6... " >&6; }
11202 if test "${emacs_cv_x11_version_6+set}" = set; then
11203 $as_echo_n "(cached) " >&6
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <X11/Xlib.h>
11215 #if XlibSpecificationRelease < 6
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (ac_try="$ac_link"
11225 case "(($ac_try" in
11226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11227 *) ac_try_echo
=$ac_try;;
11229 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11230 $as_echo "$ac_try_echo") >&5
11231 (eval "$ac_link") 2>conftest.er1
11233 grep -v '^ *+' conftest.er1
>conftest.err
11235 cat conftest.err
>&5
11236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest
$ac_exeext && {
11241 test "$cross_compiling" = yes ||
11242 $as_test_x conftest
$ac_exeext
11244 emacs_cv_x11_version_6
=yes
11246 $as_echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.
$ac_ext >&5
11249 emacs_cv_x11_version_6
=no
11252 rm -rf conftest.dSYM
11253 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11254 conftest
$ac_exeext conftest.
$ac_ext
11257 if test $emacs_cv_x11_version_6 = yes; then
11258 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11259 $as_echo "6 or newer" >&6; }
11261 cat >>confdefs.h
<<\_ACEOF
11262 #define HAVE_X11R6 1
11266 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11267 $as_echo "before 6" >&6; }
11272 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11274 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11275 if test "${with_rsvg}" != "no"; then
11276 RSVG_REQUIRED
=2.11.0
11277 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11282 # Extract the first word of "pkg-config", so it can be a program name with args.
11283 set dummy pkg-config
; ac_word
=$2
11284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11287 $as_echo_n "(cached) " >&6
11289 case $PKG_CONFIG in
11291 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11295 for as_dir
in $PATH
11298 test -z "$as_dir" && as_dir
=.
11299 for ac_exec_ext
in '' $ac_executable_extensions; do
11300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11301 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11313 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11314 if test -n "$PKG_CONFIG"; then
11315 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11316 $as_echo "$PKG_CONFIG" >&6; }
11318 { $as_echo "$as_me:$LINENO: result: no" >&5
11319 $as_echo "no" >&6; }
11324 if test "$PKG_CONFIG" = "no" ; then
11327 PKG_CONFIG_MIN_VERSION
=0.9.0
11328 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11329 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11330 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11332 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11333 { $as_echo "$as_me:$LINENO: result: yes" >&5
11334 $as_echo "yes" >&6; }
11337 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11338 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11339 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11340 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11341 $as_echo "$RSVG_CFLAGS" >&6; }
11343 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11344 $as_echo_n "checking RSVG_LIBS... " >&6; }
11345 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11346 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11347 $as_echo "$RSVG_LIBS" >&6; }
11349 { $as_echo "$as_me:$LINENO: result: no" >&5
11350 $as_echo "no" >&6; }
11353 ## If we have a custom action on failure, don't print errors, but
11354 ## do set a variable so people can do so.
11355 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11362 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11363 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11367 if test $succeeded = yes; then
11376 if test ".${RSVG_CFLAGS}" != "."; then
11379 cat >>confdefs.h
<<\_ACEOF
11380 #define HAVE_RSVG 1
11383 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11384 LIBS
="$RSVG_LIBS $LIBS"
11391 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11394 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11399 # Extract the first word of "pkg-config", so it can be a program name with args.
11400 set dummy pkg-config
; ac_word
=$2
11401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11406 case $PKG_CONFIG in
11408 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11412 for as_dir
in $PATH
11415 test -z "$as_dir" && as_dir
=.
11416 for ac_exec_ext
in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11430 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11431 if test -n "$PKG_CONFIG"; then
11432 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11433 $as_echo "$PKG_CONFIG" >&6; }
11435 { $as_echo "$as_me:$LINENO: result: no" >&5
11436 $as_echo "no" >&6; }
11441 if test "$PKG_CONFIG" = "no" ; then
11444 PKG_CONFIG_MIN_VERSION
=0.9.0
11445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11446 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11447 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11449 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11450 { $as_echo "$as_me:$LINENO: result: yes" >&5
11451 $as_echo "yes" >&6; }
11454 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11455 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11456 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11457 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11458 $as_echo "$GTK_CFLAGS" >&6; }
11460 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11461 $as_echo_n "checking GTK_LIBS... " >&6; }
11462 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11463 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11464 $as_echo "$GTK_LIBS" >&6; }
11466 { $as_echo "$as_me:$LINENO: result: no" >&5
11467 $as_echo "no" >&6; }
11470 ## If we have a custom action on failure, don't print errors, but
11471 ## do set a variable so people can do so.
11472 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11479 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11480 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11484 if test $succeeded = yes; then
11490 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11491 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11492 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11493 { (exit 1); exit 1; }; }
11498 if test x
"$pkg_check_gtk" = xyes
; then
11502 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11503 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11504 LIBS
="$GTK_LIBS $LIBS"
11507 for ac_func
in gtk_main
11509 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11510 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11511 $as_echo_n "checking for $ac_func... " >&6; }
11512 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11513 $as_echo_n "(cached) " >&6
11515 cat >conftest.
$ac_ext <<_ACEOF
11518 cat confdefs.h
>>conftest.
$ac_ext
11519 cat >>conftest.
$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523 #define $ac_func innocuous_$ac_func
11525 /* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char $ac_func (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11531 # include <limits.h>
11533 # include <assert.h>
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11545 /* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548 #if defined __stub_$ac_func || defined __stub___$ac_func
11555 return $ac_func ();
11560 rm -f conftest.
$ac_objext conftest
$ac_exeext
11561 if { (ac_try
="$ac_link"
11562 case "(($ac_try" in
11563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_link") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest$ac_exeext && {
11578 test "$cross_compiling" = yes ||
11579 $as_test_x conftest$ac_exeext
11581 eval "$as_ac_var=yes"
11583 $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 eval "$as_ac_var=no"
11589 rm -rf conftest.dSYM
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11593 ac_res=`eval 'as_val=${'$as_ac_var'}
11594 $as_echo "$as_val"'`
11595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11596 $as_echo "$ac_res" >&6; }
11597 if test `eval 'as_val=${'$as_ac_var'}
11598 $as_echo "$as_val"'` = yes; then
11599 cat >>confdefs.h <<_ACEOF
11600 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11606 if test "${GTK_COMPILES}" != "yes"; then
11607 if test "$USE_X_TOOLKIT" != "maybe"; then
11608 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11609 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11610 { (exit 1); exit 1; }; };
11615 cat >>confdefs.h <<\_ACEOF
11620 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11623 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11624 closing open displays. This is no problem if you just use
11625 one display, but if you use more than one and close one of them
11626 Emacs may crash." >&5
11627 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11628 closing open displays. This is no problem if you just use
11629 one display, but if you use more than one and close one of them
11630 Emacs may crash." >&2;}
11638 if test "${HAVE_GTK}" = "yes"; then
11640 if test "$with_toolkit_scroll_bars" != no; then
11641 with_toolkit_scroll_bars=yes
11644 HAVE_GTK_MULTIDISPLAY=no
11646 for ac_func in gdk_display_open
11648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11649 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 $as_echo_n "checking for $ac_func... " >&6; }
11651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11652 $as_echo_n "(cached) " >&6
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11662 #define $ac_func innocuous_$ac_func
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func (); below.
11666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 <limits.h> exists even on freestanding compilers. */
11670 # include <limits.h>
11672 # include <assert.h>
11677 /* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
11684 /* The GNU C library defines this for functions which it implements
11685 to always fail with ENOSYS. Some functions are actually named
11686 something starting with __ and the normal name is an alias. */
11687 #if defined __stub_$ac_func || defined __stub___$ac_func
11694 return $ac_func ();
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (ac_try="$ac_link"
11701 case "(($ac_try" in
11702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11703 *) ac_try_echo
=$ac_try;;
11705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11706 $as_echo "$ac_try_echo") >&5
11707 (eval "$ac_link") 2>conftest.er1
11709 grep -v '^ *+' conftest.er1
>conftest.err
11711 cat conftest.err
>&5
11712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && {
11714 test -z "$ac_c_werror_flag" ||
11715 test ! -s conftest.err
11716 } && test -s conftest
$ac_exeext && {
11717 test "$cross_compiling" = yes ||
11718 $as_test_x conftest
$ac_exeext
11720 eval "$as_ac_var=yes"
11722 $as_echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.
$ac_ext >&5
11725 eval "$as_ac_var=no"
11728 rm -rf conftest.dSYM
11729 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11730 conftest
$ac_exeext conftest.
$ac_ext
11732 ac_res
=`eval 'as_val=${'$as_ac_var'}
11733 $as_echo "$as_val"'`
11734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11735 $as_echo "$ac_res" >&6; }
11736 if test `eval 'as_val=${'$as_ac_var'}
11737 $as_echo "$as_val"'` = yes; then
11738 cat >>confdefs.h
<<_ACEOF
11739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11741 HAVE_GTK_MULTIDISPLAY
=yes
11745 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11747 cat >>confdefs.h
<<\_ACEOF
11748 #define HAVE_GTK_MULTIDISPLAY 1
11753 HAVE_GTK_FILE_SELECTION
=no
11754 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11755 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11756 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11757 $as_echo_n "(cached) " >&6
11759 cat >conftest.
$ac_ext <<_ACEOF
11762 cat confdefs.h
>>conftest.
$ac_ext
11763 cat >>conftest.
$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11766 #include <gtk/gtk.h>
11771 #ifndef GTK_TYPE_FILE_SELECTION
11772 (void) GTK_TYPE_FILE_SELECTION;
11779 rm -f conftest.
$ac_objext
11780 if { (ac_try
="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11797 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11799 $as_echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11808 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11809 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11810 HAVE_GTK_FILE_SELECTION=yes
11812 HAVE_GTK_FILE_SELECTION=no
11815 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11817 for ac_func in gtk_file_selection_new
11819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11820 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11821 $as_echo_n "checking for $ac_func... " >&6; }
11822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11823 $as_echo_n "(cached) " >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11833 #define $ac_func innocuous_$ac_func
11835 /* System header to define __stub macros and hopefully few prototypes,
11836 which can conflict with char $ac_func (); below.
11837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 <limits.h> exists even on freestanding compilers. */
11841 # include <limits.h>
11843 # include <assert.h>
11848 /* Override any GCC internal prototype to avoid an error.
11849 Use char because int might match the return type of a GCC
11850 builtin and then its argument prototype would still apply. */
11855 /* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858 #if defined __stub_$ac_func || defined __stub___$ac_func
11865 return $ac_func ();
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11874 *) ac_try_echo
=$ac_try;;
11876 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878 (eval "$ac_link") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1
>conftest.err
11882 cat conftest.err
>&5
11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest
$ac_exeext && {
11888 test "$cross_compiling" = yes ||
11889 $as_test_x conftest
$ac_exeext
11891 eval "$as_ac_var=yes"
11893 $as_echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.
$ac_ext >&5
11896 eval "$as_ac_var=no"
11899 rm -rf conftest.dSYM
11900 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11901 conftest
$ac_exeext conftest.
$ac_ext
11903 ac_res
=`eval 'as_val=${'$as_ac_var'}
11904 $as_echo "$as_val"'`
11905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11906 $as_echo "$ac_res" >&6; }
11907 if test `eval 'as_val=${'$as_ac_var'}
11908 $as_echo "$as_val"'` = yes; then
11909 cat >>confdefs.h
<<_ACEOF
11910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11912 HAVE_GTK_FILE_SELECTION
=yes
11914 HAVE_GTK_FILE_SELECTION
=no
11920 HAVE_GTK_FILE_CHOOSER
=no
11921 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11922 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11923 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11924 $as_echo_n "(cached) " >&6
11926 cat >conftest.
$ac_ext <<_ACEOF
11929 cat confdefs.h
>>conftest.
$ac_ext
11930 cat >>conftest.
$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 $ac_includes_default
11933 #include <gtk/gtk.h>
11938 #ifndef GTK_TYPE_FILE_CHOOSER
11939 (void) GTK_TYPE_FILE_CHOOSER;
11946 rm -f conftest.
$ac_objext
11947 if { (ac_try
="$ac_compile"
11948 case "(($ac_try" in
11949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11964 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11966 $as_echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11975 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11976 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11977 HAVE_GTK_FILE_CHOOSER=yes
11979 HAVE_GTK_FILE_CHOOSER=no
11982 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11984 for ac_func in gtk_file_chooser_dialog_new
11986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11987 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 $as_echo_n "checking for $ac_func... " >&6; }
11989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990 $as_echo_n "(cached) " >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000 #define $ac_func innocuous_$ac_func
12002 /* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below.
12004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 <limits.h> exists even on freestanding compilers. */
12008 # include <limits.h>
12010 # include <assert.h>
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined __stub_$ac_func || defined __stub___$ac_func
12032 return $ac_func ();
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (ac_try="$ac_link"
12039 case "(($ac_try" in
12040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12041 *) ac_try_echo
=$ac_try;;
12043 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12044 $as_echo "$ac_try_echo") >&5
12045 (eval "$ac_link") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1
>conftest.err
12049 cat conftest.err
>&5
12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest
$ac_exeext && {
12055 test "$cross_compiling" = yes ||
12056 $as_test_x conftest
$ac_exeext
12058 eval "$as_ac_var=yes"
12060 $as_echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.
$ac_ext >&5
12063 eval "$as_ac_var=no"
12066 rm -rf conftest.dSYM
12067 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12068 conftest
$ac_exeext conftest.
$ac_ext
12070 ac_res
=`eval 'as_val=${'$as_ac_var'}
12071 $as_echo "$as_val"'`
12072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12073 $as_echo "$ac_res" >&6; }
12074 if test `eval 'as_val=${'$as_ac_var'}
12075 $as_echo "$as_val"'` = yes; then
12076 cat >>confdefs.h
<<_ACEOF
12077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079 HAVE_GTK_FILE_CHOOSER
=yes
12081 HAVE_GTK_FILE_CHOOSER
=no
12087 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12088 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12090 cat >>confdefs.h
<<\_ACEOF
12091 #define HAVE_GTK_FILE_BOTH 1
12096 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12097 HAVE_GTK_AND_PTHREAD
=no
12099 for ac_header
in pthread.h
12101 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12104 $as_echo_n "checking for $ac_header... " >&6; }
12105 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 $as_echo_n "(cached) " >&6
12108 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12109 $as_echo "$as_val"'`
12110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12111 $as_echo "$ac_res" >&6; }
12113 # Is the header compilable?
12114 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12115 $as_echo_n "checking $ac_header usability... " >&6; }
12116 cat >conftest.
$ac_ext <<_ACEOF
12119 cat confdefs.h
>>conftest.
$ac_ext
12120 cat >>conftest.
$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 $ac_includes_default
12123 #include <$ac_header>
12125 rm -f conftest.
$ac_objext
12126 if { (ac_try
="$ac_compile"
12127 case "(($ac_try" in
12128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12132 $as_echo "$ac_try_echo") >&5
12133 (eval "$ac_compile") 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } && {
12140 test -z "$ac_c_werror_flag" ||
12141 test ! -s conftest.err
12142 } && test -s conftest.$ac_objext; then
12143 ac_header_compiler=yes
12145 $as_echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_header_compiler=no
12151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12153 $as_echo "$ac_header_compiler" >&6; }
12155 # Is the header present?
12156 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12157 $as_echo_n "checking $ac_header presence... " >&6; }
12158 cat >conftest.$ac_ext <<_ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 #include <$ac_header>
12166 if { (ac_try="$ac_cpp conftest.$ac_ext"
12167 case "(($ac_try" in
12168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12169 *) ac_try_echo
=$ac_try;;
12171 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1
>conftest.err
12177 cat conftest.err
>&5
12178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev
/null
&& {
12180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12183 ac_header_preproc
=yes
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.
$ac_ext >&5
12188 ac_header_preproc
=no
12191 rm -f conftest.err conftest.
$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 $as_echo "$ac_header_preproc" >&6; }
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12199 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc
=yes
12205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12210 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12212 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12216 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 $as_echo_n "checking for $ac_header... " >&6; }
12222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12225 eval "$as_ac_Header=\$ac_header_preproc"
12227 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12228 $as_echo "$as_val"'`
12229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12230 $as_echo "$ac_res" >&6; }
12233 if test `eval 'as_val=${'$as_ac_Header'}
12234 $as_echo "$as_val"'` = yes; then
12235 cat >>confdefs.h
<<_ACEOF
12236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12243 if test "$ac_cv_header_pthread_h"; then
12244 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12245 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12246 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12249 ac_check_lib_save_LIBS
=$LIBS
12250 LIBS
="-lpthread $LIBS"
12251 cat >conftest.
$ac_ext <<_ACEOF
12254 cat confdefs.h
>>conftest.
$ac_ext
12255 cat >>conftest.
$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12264 char pthread_self ();
12268 return pthread_self ();
12273 rm -f conftest.
$ac_objext conftest
$ac_exeext
12274 if { (ac_try
="$ac_link"
12275 case "(($ac_try" in
12276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12280 $as_echo "$ac_try_echo") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext && {
12291 test "$cross_compiling" = yes ||
12292 $as_test_x conftest$ac_exeext
12294 ac_cv_lib_pthread_pthread_self=yes
12296 $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_pthread_pthread_self=no
12302 rm -rf conftest.dSYM
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12308 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12309 if test $ac_cv_lib_pthread_pthread_self = yes; then
12310 HAVE_GTK_AND_PTHREAD=yes
12314 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12315 case "${canonical}" in
12317 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12320 cat >>confdefs.h <<\_ACEOF
12321 #define HAVE_GTK_AND_PTHREAD 1
12329 if test "${with_dbus}" = "yes"; then
12333 # Extract the first word of "pkg-config", so it can be a program name with args.
12334 set dummy pkg-config; ac_word=$2
12335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12338 $as_echo_n "(cached) " >&6
12340 case $PKG_CONFIG in
12342 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12352 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12364 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12365 if test -n "$PKG_CONFIG"; then
12366 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12367 $as_echo "$PKG_CONFIG" >&6; }
12369 { $as_echo "$as_me:$LINENO: result: no" >&5
12370 $as_echo "no" >&6; }
12375 if test "$PKG_CONFIG" = "no" ; then
12378 PKG_CONFIG_MIN_VERSION=0.9.0
12379 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12380 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12381 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12383 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12384 { $as_echo "$as_me:$LINENO: result: yes" >&5
12385 $as_echo "yes" >&6; }
12388 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12389 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12390 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12391 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12392 $as_echo "$DBUS_CFLAGS" >&6; }
12394 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12395 $as_echo_n "checking DBUS_LIBS... " >&6; }
12396 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12397 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12398 $as_echo "$DBUS_LIBS" >&6; }
12400 { $as_echo "$as_me:$LINENO: result: no" >&5
12401 $as_echo "no" >&6; }
12404 ## If we have a custom action on failure, don't print errors, but
12405 ## do set a variable so people can do so.
12406 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12413 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12414 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12418 if test $succeeded = yes; then
12424 if test "$HAVE_DBUS" = yes; then
12425 LIBS="$LIBS $DBUS_LIBS"
12427 cat >>confdefs.h <<\_ACEOF
12428 #define HAVE_DBUS 1
12432 for ac_func in dbus_watch_get_unix_fd
12434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12435 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12436 $as_echo_n "checking for $ac_func... " >&6; }
12437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12438 $as_echo_n "(cached) " >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12448 #define $ac_func innocuous_$ac_func
12450 /* System header to define __stub macros and hopefully few prototypes,
12451 which can conflict with char $ac_func (); below.
12452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12453 <limits.h> exists even on freestanding compilers. */
12456 # include <limits.h>
12458 # include <assert.h>
12463 /* Override any GCC internal prototype to avoid an error.
12464 Use char because int might match the return type of a GCC
12465 builtin and then its argument prototype would still apply. */
12470 /* The GNU C library defines this for functions which it implements
12471 to always fail with ENOSYS. Some functions are actually named
12472 something starting with __ and the normal name is an alias. */
12473 #if defined __stub_$ac_func || defined __stub___$ac_func
12480 return $ac_func ();
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12489 *) ac_try_echo
=$ac_try;;
12491 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12492 $as_echo "$ac_try_echo") >&5
12493 (eval "$ac_link") 2>conftest.er1
12495 grep -v '^ *+' conftest.er1
>conftest.err
12497 cat conftest.err
>&5
12498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && {
12500 test -z "$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12502 } && test -s conftest
$ac_exeext && {
12503 test "$cross_compiling" = yes ||
12504 $as_test_x conftest
$ac_exeext
12506 eval "$as_ac_var=yes"
12508 $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.
$ac_ext >&5
12511 eval "$as_ac_var=no"
12514 rm -rf conftest.dSYM
12515 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12516 conftest
$ac_exeext conftest.
$ac_ext
12518 ac_res
=`eval 'as_val=${'$as_ac_var'}
12519 $as_echo "$as_val"'`
12520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12521 $as_echo "$ac_res" >&6; }
12522 if test `eval 'as_val=${'$as_ac_var'}
12523 $as_echo "$as_val"'` = yes; then
12524 cat >>confdefs.h
<<_ACEOF
12525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12535 if test "${with_gconf}" = "yes"; then
12539 # Extract the first word of "pkg-config", so it can be a program name with args.
12540 set dummy pkg-config
; ac_word
=$2
12541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12544 $as_echo_n "(cached) " >&6
12546 case $PKG_CONFIG in
12548 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12552 for as_dir
in $PATH
12555 test -z "$as_dir" && as_dir
=.
12556 for ac_exec_ext
in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12570 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12571 if test -n "$PKG_CONFIG"; then
12572 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12573 $as_echo "$PKG_CONFIG" >&6; }
12575 { $as_echo "$as_me:$LINENO: result: no" >&5
12576 $as_echo "no" >&6; }
12581 if test "$PKG_CONFIG" = "no" ; then
12584 PKG_CONFIG_MIN_VERSION
=0.9.0
12585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12586 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12587 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12589 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12590 { $as_echo "$as_me:$LINENO: result: yes" >&5
12591 $as_echo "yes" >&6; }
12594 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12595 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12596 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12597 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12598 $as_echo "$GCONF_CFLAGS" >&6; }
12600 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12601 $as_echo_n "checking GCONF_LIBS... " >&6; }
12602 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12603 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12604 $as_echo "$GCONF_LIBS" >&6; }
12606 { $as_echo "$as_me:$LINENO: result: no" >&5
12607 $as_echo "no" >&6; }
12610 ## If we have a custom action on failure, don't print errors, but
12611 ## do set a variable so people can do so.
12612 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12619 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12620 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12624 if test $succeeded = yes; then
12630 if test "$HAVE_GCONF" = yes; then
12632 cat >>confdefs.h
<<\_ACEOF
12633 #define HAVE_GCONF 1
12640 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12641 if test "$with_xaw3d" != no
; then
12642 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12643 $as_echo_n "checking for xaw3d... " >&6; }
12644 if test "${emacs_cv_xaw3d+set}" = set; then
12645 $as_echo_n "(cached) " >&6
12647 cat >conftest.
$ac_ext <<_ACEOF
12650 cat confdefs.h
>>conftest.
$ac_ext
12651 cat >>conftest.
$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 #include <X11/Intrinsic.h>
12655 #include <X11/Xaw3d/Simple.h>
12664 rm -f conftest.
$ac_objext conftest
$ac_exeext
12665 if { (ac_try
="$ac_link"
12666 case "(($ac_try" in
12667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12671 $as_echo "$ac_try_echo") >&5
12672 (eval "$ac_link") 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest$ac_exeext && {
12682 test "$cross_compiling" = yes ||
12683 $as_test_x conftest$ac_exeext
12687 $as_echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12693 rm -rf conftest.dSYM
12694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12695 conftest$ac_exeext conftest.$ac_ext
12701 if test $emacs_cv_xaw3d = yes; then
12702 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12703 $as_echo "yes; using Lucid toolkit" >&6; }
12704 USE_X_TOOLKIT=LUCID
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_XAW3D 1
12712 { $as_echo "$as_me:$LINENO: result: no" >&5
12713 $as_echo "no" >&6; }
12714 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12715 $as_echo_n "checking for libXaw... " >&6; }
12716 if test "${emacs_cv_xaw+set}" = set; then
12717 $as_echo_n "(cached) " >&6
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12726 #include <X11/Intrinsic.h>
12727 #include <X11/Xaw/Simple.h>
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (ac_try="$ac_link"
12738 case "(($ac_try" in
12739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12740 *) ac_try_echo
=$ac_try;;
12742 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12743 $as_echo "$ac_try_echo") >&5
12744 (eval "$ac_link") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1
>conftest.err
12748 cat conftest.err
>&5
12749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest
$ac_exeext && {
12754 test "$cross_compiling" = yes ||
12755 $as_test_x conftest
$ac_exeext
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.
$ac_ext >&5
12765 rm -rf conftest.dSYM
12766 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12767 conftest
$ac_exeext conftest.
$ac_ext
12770 if test $emacs_cv_xaw = yes; then
12771 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12772 $as_echo "yes; using Lucid toolkit" >&6; }
12773 USE_X_TOOLKIT
=LUCID
12774 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12775 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12776 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12777 { (exit 1); exit 1; }; }
12779 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12780 $as_echo "no; do not use toolkit by default" >&6; }
12786 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12788 if test "${USE_X_TOOLKIT}" != "none"; then
12789 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12790 $as_echo_n "checking X11 toolkit version... " >&6; }
12791 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12792 $as_echo_n "(cached) " >&6
12794 cat >conftest.
$ac_ext <<_ACEOF
12797 cat confdefs.h
>>conftest.
$ac_ext
12798 cat >>conftest.
$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <X11/Intrinsic.h>
12804 #if XtSpecificationRelease < 6
12812 rm -f conftest.
$ac_objext conftest
$ac_exeext
12813 if { (ac_try
="$ac_link"
12814 case "(($ac_try" in
12815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820 (eval "$ac_link") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest$ac_exeext && {
12830 test "$cross_compiling" = yes ||
12831 $as_test_x conftest$ac_exeext
12833 emacs_cv_x11_toolkit_version_6=yes
12835 $as_echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 emacs_cv_x11_toolkit_version_6=no
12841 rm -rf conftest.dSYM
12842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12843 conftest$ac_exeext conftest.$ac_ext
12846 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12847 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12848 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12849 $as_echo "6 or newer" >&6; }
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_X11XTR6 1
12856 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12857 $as_echo "before 6" >&6; }
12861 if test x$HAVE_X11XTR6 = xyes; then
12862 LIBS="-lXt -lSM -lICE $LIBS"
12867 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12868 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12869 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12870 $as_echo_n "(cached) " >&6
12872 ac_check_lib_save_LIBS=$LIBS
12874 cat >conftest.$ac_ext <<_ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12887 char XmuConvertStandardSelection ();
12891 return XmuConvertStandardSelection ();
12896 rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (ac_try="$ac_link"
12898 case "(($ac_try" in
12899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12900 *) ac_try_echo
=$ac_try;;
12902 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12903 $as_echo "$ac_try_echo") >&5
12904 (eval "$ac_link") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1
>conftest.err
12908 cat conftest.err
>&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest
$ac_exeext && {
12914 test "$cross_compiling" = yes ||
12915 $as_test_x conftest
$ac_exeext
12917 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12919 $as_echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.
$ac_ext >&5
12922 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12925 rm -rf conftest.dSYM
12926 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12927 conftest
$ac_exeext conftest.
$ac_ext
12928 LIBS
=$ac_check_lib_save_LIBS
12930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12931 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12932 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12933 cat >>confdefs.h
<<_ACEOF
12934 #define HAVE_LIBXMU 1
12941 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12944 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12945 if test "${HAVE_X11}" = "yes"; then
12946 if test "${USE_X_TOOLKIT}" != "none"; then
12948 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12949 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12950 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12951 $as_echo_n "(cached) " >&6
12953 ac_check_lib_save_LIBS
=$LIBS
12954 LIBS
="-lXext $LIBS"
12955 cat >conftest.
$ac_ext <<_ACEOF
12958 cat confdefs.h
>>conftest.
$ac_ext
12959 cat >>conftest.
$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12962 /* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12968 char XShapeQueryExtension ();
12972 return XShapeQueryExtension ();
12977 rm -f conftest.
$ac_objext conftest
$ac_exeext
12978 if { (ac_try
="$ac_link"
12979 case "(($ac_try" in
12980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12984 $as_echo "$ac_try_echo") >&5
12985 (eval "$ac_link") 2>conftest.er1
12987 grep -v '^ *+' conftest.er1 >conftest.err
12989 cat conftest.err >&5
12990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest$ac_exeext && {
12995 test "$cross_compiling" = yes ||
12996 $as_test_x conftest$ac_exeext
12998 ac_cv_lib_Xext_XShapeQueryExtension=yes
13000 $as_echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_cv_lib_Xext_XShapeQueryExtension=no
13006 rm -rf conftest.dSYM
13007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13008 conftest$ac_exeext conftest.$ac_ext
13009 LIBS=$ac_check_lib_save_LIBS
13011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13012 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13013 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_LIBXEXT 1
13018 LIBS="-lXext $LIBS"
13025 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13026 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13027 $as_echo_n "checking for Motif version 2.1... " >&6; }
13028 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13029 $as_echo_n "(cached) " >&6
13031 cat >conftest.$ac_ext <<_ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13041 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13044 Motif version prior to 2.1.
13050 rm -f conftest.$ac_objext
13051 if { (ac_try="$ac_compile"
13052 case "(($ac_try" in
13053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13054 *) ac_try_echo
=$ac_try;;
13056 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13057 $as_echo "$ac_try_echo") >&5
13058 (eval "$ac_compile") 2>conftest.er1
13060 grep -v '^ *+' conftest.er1
>conftest.err
13062 cat conftest.err
>&5
13063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } && {
13065 test -z "$ac_c_werror_flag" ||
13066 test ! -s conftest.err
13067 } && test -s conftest.
$ac_objext; then
13068 emacs_cv_motif_version_2_1
=yes
13070 $as_echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.
$ac_ext >&5
13073 emacs_cv_motif_version_2_1
=no
13076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13078 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13079 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13080 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
13081 if test $emacs_cv_motif_version_2_1 = yes; then
13084 cat >>confdefs.h
<<\_ACEOF
13085 #define HAVE_MOTIF_2_1 1
13088 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13089 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13090 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13091 $as_echo_n "(cached) " >&6
13093 ac_check_lib_save_LIBS
=$LIBS
13095 cat >conftest.
$ac_ext <<_ACEOF
13098 cat confdefs.h
>>conftest.
$ac_ext
13099 cat >>conftest.
$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13108 char XpCreateContext ();
13112 return XpCreateContext ();
13117 rm -f conftest.
$ac_objext conftest
$ac_exeext
13118 if { (ac_try
="$ac_link"
13119 case "(($ac_try" in
13120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124 $as_echo "$ac_try_echo") >&5
13125 (eval "$ac_link") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest$ac_exeext && {
13135 test "$cross_compiling" = yes ||
13136 $as_test_x conftest$ac_exeext
13138 ac_cv_lib_Xp_XpCreateContext=yes
13140 $as_echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_cv_lib_Xp_XpCreateContext=no
13146 rm -rf conftest.dSYM
13147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13148 conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13152 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13153 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13157 if test ${HAVE_LIBXP} = yes; then
13159 cat >>confdefs.h <<\_ACEOF
13160 #define HAVE_LIBXP 1
13165 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13166 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13167 if test "${emacs_cv_lesstif+set}" = set; then
13168 $as_echo_n "(cached) " >&6
13170 # We put this in CFLAGS temporarily to precede other -I options
13171 # that might be in CFLAGS temporarily.
13172 # We put this in CPPFLAGS where it precedes the other -I options.
13173 OLD_CPPFLAGS=$CPPFLAGS
13175 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13176 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13177 cat >conftest.$ac_ext <<_ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13196 *) ac_try_echo
=$ac_try;;
13198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1
>conftest.err
13204 cat conftest.err
>&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.
$ac_objext; then
13210 emacs_cv_lesstif
=yes
13212 $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.
$ac_ext >&5
13215 emacs_cv_lesstif
=no
13218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13220 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13221 $as_echo "$emacs_cv_lesstif" >&6; }
13222 if test $emacs_cv_lesstif = yes; then
13223 # Make sure this -I option remains in CPPFLAGS after it is set
13224 # back to REAL_CPPFLAGS.
13225 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13226 # have those other -I options anyway. Ultimately, having this
13227 # directory ultimately in CPPFLAGS will be enough.
13228 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13229 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13232 CPPFLAGS
=$OLD_CPPFLAGS
13239 USE_TOOLKIT_SCROLL_BARS
=no
13240 if test "${with_toolkit_scroll_bars}" != "no"; then
13241 if test "${USE_X_TOOLKIT}" != "none"; then
13242 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13243 cat >>confdefs.h
<<\_ACEOF
13244 #define USE_TOOLKIT_SCROLL_BARS 1
13248 USE_TOOLKIT_SCROLL_BARS
=yes
13249 elif test "${HAVE_XAW3D}" = "yes"; then
13250 cat >>confdefs.h
<<\_ACEOF
13251 #define USE_TOOLKIT_SCROLL_BARS 1
13254 USE_TOOLKIT_SCROLL_BARS
=yes
13256 elif test "${HAVE_GTK}" = "yes"; then
13257 cat >>confdefs.h
<<\_ACEOF
13258 #define USE_TOOLKIT_SCROLL_BARS 1
13261 USE_TOOLKIT_SCROLL_BARS
=yes
13262 elif test "${HAVE_NS}" = "yes"; then
13263 cat >>confdefs.h
<<\_ACEOF
13264 #define USE_TOOLKIT_SCROLL_BARS 1
13267 USE_TOOLKIT_SCROLL_BARS
=yes
13271 cat >conftest.
$ac_ext <<_ACEOF
13274 cat confdefs.h
>>conftest.
$ac_ext
13275 cat >>conftest.
$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 #include <X11/Xlib.h>
13279 #include <X11/Xresource.h>
13288 rm -f conftest.
$ac_objext
13289 if { (ac_try
="$ac_compile"
13290 case "(($ac_try" in
13291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13295 $as_echo "$ac_try_echo") >&5
13296 (eval "$ac_compile") 2>conftest.er1
13298 grep -v '^ *+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && {
13303 test -z "$ac_c_werror_flag" ||
13304 test ! -s conftest.err
13305 } && test -s conftest.$ac_objext; then
13308 cat >>confdefs.h <<\_ACEOF
13313 $as_echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 if test "${with_xim}" != "no"; then
13324 cat >>confdefs.h <<\_ACEOF
13331 if test "${HAVE_XIM}" != "no"; then
13332 late_CFLAGS=$CFLAGS
13333 if test "$GCC" = yes; then
13334 CFLAGS="$CFLAGS --pedantic-errors"
13336 cat >conftest.$ac_ext <<_ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13343 #include <X11/Xlib.h>
13344 #include <X11/Xresource.h>
13353 XPointer *client_data;
13355 /* If we're not using GCC, it's probably not XFree86, and this is
13356 probably right, but we can't use something like --pedantic-errors. */
13357 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13358 char*, XIMProc, XPointer*);
13360 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13366 rm -f conftest.$ac_objext
13367 if { (ac_try="$ac_compile"
13368 case "(($ac_try" in
13369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13370 *) ac_try_echo
=$ac_try;;
13372 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13373 $as_echo "$ac_try_echo") >&5
13374 (eval "$ac_compile") 2>conftest.er1
13376 grep -v '^ *+' conftest.er1
>conftest.err
13378 cat conftest.err
>&5
13379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } && {
13381 test -z "$ac_c_werror_flag" ||
13382 test ! -s conftest.err
13383 } && test -s conftest.
$ac_objext; then
13384 emacs_cv_arg6_star
=yes
13386 $as_echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.
$ac_ext >&5
13392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13394 if test "$emacs_cv_arg6_star" = yes; then
13395 cat >>confdefs.h
<<\_ACEOF
13396 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13400 cat >>confdefs.h
<<\_ACEOF
13401 #define XRegisterIMInstantiateCallback_arg6 XPointer
13405 CFLAGS
=$late_CFLAGS
13408 ### Start of font-backend (under any platform) section.
13409 # (nothing here yet -- this is a placeholder)
13410 ### End of font-backend (under any platform) section.
13412 ### Start of font-backend (under X11) section.
13413 if test "${HAVE_X11}" = "yes"; then
13417 # Extract the first word of "pkg-config", so it can be a program name with args.
13418 set dummy pkg-config
; ac_word
=$2
13419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13420 $as_echo_n "checking for $ac_word... " >&6; }
13421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13422 $as_echo_n "(cached) " >&6
13424 case $PKG_CONFIG in
13426 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13430 for as_dir
in $PATH
13433 test -z "$as_dir" && as_dir
=.
13434 for ac_exec_ext
in '' $ac_executable_extensions; do
13435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13436 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13448 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13449 if test -n "$PKG_CONFIG"; then
13450 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13451 $as_echo "$PKG_CONFIG" >&6; }
13453 { $as_echo "$as_me:$LINENO: result: no" >&5
13454 $as_echo "no" >&6; }
13459 if test "$PKG_CONFIG" = "no" ; then
13462 PKG_CONFIG_MIN_VERSION
=0.9.0
13463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13464 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13465 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13467 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13468 { $as_echo "$as_me:$LINENO: result: yes" >&5
13469 $as_echo "yes" >&6; }
13472 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13473 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13474 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13475 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13476 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13478 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13479 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13480 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13481 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13482 $as_echo "$FONTCONFIG_LIBS" >&6; }
13484 { $as_echo "$as_me:$LINENO: result: no" >&5
13485 $as_echo "no" >&6; }
13486 FONTCONFIG_CFLAGS
=""
13488 ## If we have a custom action on failure, don't print errors, but
13489 ## do set a variable so people can do so.
13490 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13497 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13498 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13502 if test $succeeded = yes; then
13509 ## Use -lXft if available, unless `--with-xft=no'.
13511 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13514 if test "x${with_xft}" != "xno"; then
13519 # Extract the first word of "pkg-config", so it can be a program name with args.
13520 set dummy pkg-config
; ac_word
=$2
13521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13522 $as_echo_n "checking for $ac_word... " >&6; }
13523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13524 $as_echo_n "(cached) " >&6
13526 case $PKG_CONFIG in
13528 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13532 for as_dir
in $PATH
13535 test -z "$as_dir" && as_dir
=.
13536 for ac_exec_ext
in '' $ac_executable_extensions; do
13537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13538 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13550 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13551 if test -n "$PKG_CONFIG"; then
13552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13553 $as_echo "$PKG_CONFIG" >&6; }
13555 { $as_echo "$as_me:$LINENO: result: no" >&5
13556 $as_echo "no" >&6; }
13561 if test "$PKG_CONFIG" = "no" ; then
13564 PKG_CONFIG_MIN_VERSION
=0.9.0
13565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13566 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13567 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13569 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13570 { $as_echo "$as_me:$LINENO: result: yes" >&5
13571 $as_echo "yes" >&6; }
13574 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13575 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13576 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13577 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13578 $as_echo "$XFT_CFLAGS" >&6; }
13580 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13581 $as_echo_n "checking XFT_LIBS... " >&6; }
13582 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13583 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13584 $as_echo "$XFT_LIBS" >&6; }
13586 { $as_echo "$as_me:$LINENO: result: no" >&5
13587 $as_echo "no" >&6; }
13590 ## If we have a custom action on failure, don't print errors, but
13591 ## do set a variable so people can do so.
13592 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13604 if test $succeeded = yes; then
13610 if test "$HAVE_XFT" != no
; then
13611 OLD_CPPFLAGS
="$CPPFLAGS"
13612 OLD_CFLAGS
="$CFLAGS"
13614 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13615 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13616 LIBS
="$XFT_LIBS $LIBS"
13617 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13618 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13619 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13620 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13621 $as_echo_n "(cached) " >&6
13623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13624 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13626 # Is the header compilable?
13627 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13628 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13629 cat >conftest.
$ac_ext <<_ACEOF
13632 cat confdefs.h
>>conftest.
$ac_ext
13633 cat >>conftest.
$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13636 #include <X11/Xft/Xft.h>
13638 rm -f conftest.
$ac_objext
13639 if { (ac_try
="$ac_compile"
13640 case "(($ac_try" in
13641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_compile") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest.$ac_objext; then
13656 ac_header_compiler=yes
13658 $as_echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 ac_header_compiler=no
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13666 $as_echo "$ac_header_compiler" >&6; }
13668 # Is the header present?
13669 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13670 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #include <X11/Xft/Xft.h>
13679 if { (ac_try="$ac_cpp conftest.$ac_ext"
13680 case "(($ac_try" in
13681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13682 *) ac_try_echo
=$ac_try;;
13684 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13685 $as_echo "$ac_try_echo") >&5
13686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1
>conftest.err
13690 cat conftest.err
>&5
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev
/null
&& {
13693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13696 ac_header_preproc
=yes
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.
$ac_ext >&5
13701 ac_header_preproc
=no
13704 rm -f conftest.err conftest.
$ac_ext
13705 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13706 $as_echo "$ac_header_preproc" >&6; }
13708 # So? What about this header?
13709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13711 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13712 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13713 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13714 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13715 ac_header_preproc
=yes
13718 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13719 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13720 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13721 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13722 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13723 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13724 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13725 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13726 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13727 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13728 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13729 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13733 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13734 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13735 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13736 $as_echo_n "(cached) " >&6
13738 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
13740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13741 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13744 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13745 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13746 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13747 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13748 $as_echo_n "(cached) " >&6
13750 ac_check_lib_save_LIBS
=$LIBS
13751 LIBS
="-lXft $XFT_LIBS $LIBS"
13752 cat >conftest.
$ac_ext <<_ACEOF
13755 cat confdefs.h
>>conftest.
$ac_ext
13756 cat >>conftest.
$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13765 char XftFontOpen ();
13769 return XftFontOpen ();
13774 rm -f conftest.
$ac_objext conftest
$ac_exeext
13775 if { (ac_try
="$ac_link"
13776 case "(($ac_try" in
13777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13781 $as_echo "$ac_try_echo") >&5
13782 (eval "$ac_link") 2>conftest.er1
13784 grep -v '^ *+' conftest.er1 >conftest.err
13786 cat conftest.err >&5
13787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && {
13789 test -z "$ac_c_werror_flag" ||
13790 test ! -s conftest.err
13791 } && test -s conftest$ac_exeext && {
13792 test "$cross_compiling" = yes ||
13793 $as_test_x conftest$ac_exeext
13795 ac_cv_lib_Xft_XftFontOpen=yes
13797 $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_cv_lib_Xft_XftFontOpen=no
13803 rm -rf conftest.dSYM
13804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13809 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13810 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13818 if test "${HAVE_XFT}" = "yes"; then
13820 cat >>confdefs.h <<\_ACEOF
13825 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13827 CPPFLAGS="$OLD_CPPFLAGS"
13828 CFLAGS="$OLD_CFLAGS"
13830 fi # "${HAVE_XFT}" = "yes"
13831 fi # "$HAVE_XFT" != no
13832 fi # "x${with_xft}" != "xno"
13834 if test "$HAVE_XFT" != "yes"; then
13840 ## We used to allow building with FreeType and without Xft.
13841 ## However, the ftx font backend driver is not in good shape.
13842 if test "${HAVE_XFT}" = "yes"; then
13849 if test "${HAVE_FREETYPE}" = "yes"; then
13851 cat >>confdefs.h <<\_ACEOF
13852 #define HAVE_FREETYPE 1
13855 if test "${with_libotf}" != "no"; then
13859 # Extract the first word of "pkg-config", so it can be a program name with args.
13860 set dummy pkg-config; ac_word=$2
13861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13864 $as_echo_n "(cached) " >&6
13866 case $PKG_CONFIG in
13868 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13878 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13886 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13891 if test -n "$PKG_CONFIG"; then
13892 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13893 $as_echo "$PKG_CONFIG" >&6; }
13895 { $as_echo "$as_me:$LINENO: result: no" >&5
13896 $as_echo "no" >&6; }
13901 if test "$PKG_CONFIG" = "no" ; then
13904 PKG_CONFIG_MIN_VERSION=0.9.0
13905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13906 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13907 $as_echo_n "checking for libotf... " >&6; }
13909 if $PKG_CONFIG --exists "libotf" 2>&5; then
13910 { $as_echo "$as_me:$LINENO: result: yes" >&5
13911 $as_echo "yes" >&6; }
13914 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13915 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13916 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|
sed -e 's,///*,/,g'`
13917 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13918 $as_echo "$LIBOTF_CFLAGS" >&6; }
13920 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13921 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13922 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|
sed -e 's,///*,/,g'`
13923 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13924 $as_echo "$LIBOTF_LIBS" >&6; }
13926 { $as_echo "$as_me:$LINENO: result: no" >&5
13927 $as_echo "no" >&6; }
13930 ## If we have a custom action on failure, don't print errors, but
13931 ## do set a variable so people can do so.
13932 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13939 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13940 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13944 if test $succeeded = yes; then
13950 if test "$HAVE_LIBOTF" = "yes"; then
13952 cat >>confdefs.h <<\_ACEOF
13953 #define HAVE_LIBOTF 1
13956 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13957 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13958 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13959 $as_echo_n "(cached) " >&6
13961 ac_check_lib_save_LIBS=$LIBS
13963 cat >conftest.$ac_ext <<_ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13970 /* Override any GCC internal prototype to avoid an error.
13971 Use char because int might match the return type of a GCC
13972 builtin and then its argument prototype would still apply. */
13976 char OTF_get_variation_glyphs ();
13980 return OTF_get_variation_glyphs ();
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (ac_try="$ac_link"
13987 case "(($ac_try" in
13988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13989 *) ac_try_echo
=$ac_try;;
13991 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13992 $as_echo "$ac_try_echo") >&5
13993 (eval "$ac_link") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1
>conftest.err
13997 cat conftest.err
>&5
13998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest
$ac_exeext && {
14003 test "$cross_compiling" = yes ||
14004 $as_test_x conftest
$ac_exeext
14006 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
14008 $as_echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.
$ac_ext >&5
14011 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
14014 rm -rf conftest.dSYM
14015 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14016 conftest
$ac_exeext conftest.
$ac_ext
14017 LIBS
=$ac_check_lib_save_LIBS
14019 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14020 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14021 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14022 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
14024 HAVE_OTF_GET_VARIATION_GLYPHS
=no
14027 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14029 cat >>confdefs.h
<<\_ACEOF
14030 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14039 if test "${HAVE_LIBOTF}" = yes; then
14040 if test "${with_m17n_flt}" != "no"; then
14044 # Extract the first word of "pkg-config", so it can be a program name with args.
14045 set dummy pkg-config
; ac_word
=$2
14046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14047 $as_echo_n "checking for $ac_word... " >&6; }
14048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14049 $as_echo_n "(cached) " >&6
14051 case $PKG_CONFIG in
14053 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14057 for as_dir
in $PATH
14060 test -z "$as_dir" && as_dir
=.
14061 for ac_exec_ext
in '' $ac_executable_extensions; do
14062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14063 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14071 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14075 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14076 if test -n "$PKG_CONFIG"; then
14077 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14078 $as_echo "$PKG_CONFIG" >&6; }
14080 { $as_echo "$as_me:$LINENO: result: no" >&5
14081 $as_echo "no" >&6; }
14086 if test "$PKG_CONFIG" = "no" ; then
14089 PKG_CONFIG_MIN_VERSION
=0.9.0
14090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14091 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14092 $as_echo_n "checking for m17n-flt... " >&6; }
14094 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14095 { $as_echo "$as_me:$LINENO: result: yes" >&5
14096 $as_echo "yes" >&6; }
14099 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14100 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14101 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14102 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14103 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14105 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14106 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14107 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14108 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14109 $as_echo "$M17N_FLT_LIBS" >&6; }
14111 { $as_echo "$as_me:$LINENO: result: no" >&5
14112 $as_echo "no" >&6; }
14115 ## If we have a custom action on failure, don't print errors, but
14116 ## do set a variable so people can do so.
14117 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14129 if test $succeeded = yes; then
14135 if test "$HAVE_M17N_FLT" = "yes"; then
14137 cat >>confdefs.h
<<\_ACEOF
14138 #define HAVE_M17N_FLT 1
14150 ### End of font-backend (under X11) section.
14161 ### Use -lXpm if available, unless `--with-xpm=no'.
14163 if test "${HAVE_X11}" = "yes"; then
14164 if test "${with_xpm}" != "no"; then
14165 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14166 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14167 $as_echo_n "checking for X11/xpm.h... " >&6; }
14168 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14169 $as_echo_n "(cached) " >&6
14171 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14172 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14174 # Is the header compilable?
14175 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14176 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14177 cat >conftest.
$ac_ext <<_ACEOF
14180 cat confdefs.h
>>conftest.
$ac_ext
14181 cat >>conftest.
$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 $ac_includes_default
14184 #include <X11/xpm.h>
14186 rm -f conftest.
$ac_objext
14187 if { (ac_try
="$ac_compile"
14188 case "(($ac_try" in
14189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14193 $as_echo "$ac_try_echo") >&5
14194 (eval "$ac_compile") 2>conftest.er1
14196 grep -v '^ *+' conftest.er1 >conftest.err
14198 cat conftest.err >&5
14199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } && {
14201 test -z "$ac_c_werror_flag" ||
14202 test ! -s conftest.err
14203 } && test -s conftest.$ac_objext; then
14204 ac_header_compiler=yes
14206 $as_echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 ac_header_compiler=no
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14214 $as_echo "$ac_header_compiler" >&6; }
14216 # Is the header present?
14217 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14218 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14219 cat >conftest.$ac_ext <<_ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 #include <X11/xpm.h>
14227 if { (ac_try="$ac_cpp conftest.$ac_ext"
14228 case "(($ac_try" in
14229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14230 *) ac_try_echo
=$ac_try;;
14232 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14233 $as_echo "$ac_try_echo") >&5
14234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14236 grep -v '^ *+' conftest.er1
>conftest.err
14238 cat conftest.err
>&5
14239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } >/dev
/null
&& {
14241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14242 test ! -s conftest.err
14244 ac_header_preproc
=yes
14246 $as_echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.
$ac_ext >&5
14249 ac_header_preproc
=no
14252 rm -f conftest.err conftest.
$ac_ext
14253 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14254 $as_echo "$ac_header_preproc" >&6; }
14256 # So? What about this header?
14257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14259 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14260 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14261 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14262 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14263 ac_header_preproc
=yes
14266 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14267 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14268 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14269 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14270 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14271 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14272 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14273 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14275 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14276 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14277 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14281 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14282 $as_echo_n "checking for X11/xpm.h... " >&6; }
14283 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14284 $as_echo_n "(cached) " >&6
14286 ac_cv_header_X11_xpm_h
=$ac_header_preproc
14288 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14289 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14292 if test $ac_cv_header_X11_xpm_h = yes; then
14293 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14294 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14295 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14296 $as_echo_n "(cached) " >&6
14298 ac_check_lib_save_LIBS
=$LIBS
14299 LIBS
="-lXpm -lX11 $LIBS"
14300 cat >conftest.
$ac_ext <<_ACEOF
14303 cat confdefs.h
>>conftest.
$ac_ext
14304 cat >>conftest.
$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14313 char XpmReadFileToPixmap ();
14317 return XpmReadFileToPixmap ();
14322 rm -f conftest.
$ac_objext conftest
$ac_exeext
14323 if { (ac_try
="$ac_link"
14324 case "(($ac_try" in
14325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14329 $as_echo "$ac_try_echo") >&5
14330 (eval "$ac_link") 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } && {
14337 test -z "$ac_c_werror_flag" ||
14338 test ! -s conftest.err
14339 } && test -s conftest$ac_exeext && {
14340 test "$cross_compiling" = yes ||
14341 $as_test_x conftest$ac_exeext
14343 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14345 $as_echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14351 rm -rf conftest.dSYM
14352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 conftest$ac_exeext conftest.$ac_ext
14354 LIBS=$ac_check_lib_save_LIBS
14356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14357 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14358 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14365 if test "${HAVE_XPM}" = "yes"; then
14366 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14367 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14368 cat >conftest.$ac_ext <<_ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include "X11/xpm.h"
14375 #ifndef XpmReturnAllocPixels
14376 no_return_alloc_pixels
14380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14381 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14389 if test "${HAVE_XPM}" = "yes"; then
14390 { $as_echo "$as_me:$LINENO: result: yes" >&5
14391 $as_echo "yes" >&6; }
14393 { $as_echo "$as_me:$LINENO: result: no" >&5
14394 $as_echo "no" >&6; }
14399 if test "${HAVE_XPM}" = "yes"; then
14401 cat >>confdefs.h <<\_ACEOF
14408 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
14410 if test "${HAVE_X11}" = "yes"; then
14411 if test "${with_jpeg}" != "no"; then
14412 if test "${ac_cv_header_jerror_h+set}" = set; then
14413 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14414 $as_echo_n "checking for jerror.h... " >&6; }
14415 if test "${ac_cv_header_jerror_h+set}" = set; then
14416 $as_echo_n "(cached) " >&6
14418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14419 $as_echo "$ac_cv_header_jerror_h" >&6; }
14421 # Is the header compilable?
14422 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14423 $as_echo_n "checking jerror.h usability... " >&6; }
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 $ac_includes_default
14431 #include <jerror.h>
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14440 $as_echo "$ac_try_echo") >&5
14441 (eval "$ac_compile") 2>conftest.er1
14443 grep -v '^
*+' conftest.er1 >conftest.err
14445 cat conftest.err >&5
14446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && {
14448 test -z "$ac_c_werror_flag" ||
14449 test ! -s conftest.err
14450 } && test -s conftest.$ac_objext; then
14451 ac_header_compiler=yes
14453 $as_echo "$as_me: failed program was:" >&5
14454 sed 's
/^
/|
/' conftest.$ac_ext >&5
14456 ac_header_compiler=no
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14461 $as_echo "$ac_header_compiler" >&6; }
14463 # Is the header present?
14464 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14465 $as_echo_n "checking jerror.h presence... " >&6; }
14466 cat >conftest.$ac_ext <<_ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <jerror.h>
14474 if { (ac_try="$ac_cpp conftest.$ac_ext"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14483 grep -v '^
*+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } >/dev/null && {
14488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14491 ac_header_preproc=yes
14493 $as_echo "$as_me: failed program was:" >&5
14494 sed 's
/^
/|
/' conftest.$ac_ext >&5
14496 ac_header_preproc=no
14499 rm -f conftest.err conftest.$ac_ext
14500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14501 $as_echo "$ac_header_preproc" >&6; }
14503 # So? What about this header?
14504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14506 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14507 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14508 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
14509 $as_echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
14510 ac_header_preproc=yes
14513 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14514 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14515 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14516 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14517 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14518 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14519 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14520 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14521 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
14522 $as_echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
14523 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14524 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14528 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14529 $as_echo_n "checking for jerror.h... " >&6; }
14530 if test "${ac_cv_header_jerror_h+set}" = set; then
14531 $as_echo_n "(cached) " >&6
14533 ac_cv_header_jerror_h=$ac_header_preproc
14535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14536 $as_echo "$ac_cv_header_jerror_h" >&6; }
14539 if test $ac_cv_header_jerror_h = yes; then
14540 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14541 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14542 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14543 $as_echo_n "(cached) " >&6
14545 ac_check_lib_save_LIBS=$LIBS
14546 LIBS="-ljpeg $LIBS"
14547 cat >conftest.$ac_ext <<_ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14560 char jpeg_destroy_compress ();
14564 return jpeg_destroy_compress ();
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577 (eval "$ac_link") 2>conftest.er1
14579 grep -v '^
*+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest$ac_exeext && {
14587 test "$cross_compiling" = yes ||
14588 $as_test_x conftest$ac_exeext
14590 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14592 $as_echo "$as_me: failed program was:" >&5
14593 sed 's
/^
/|
/' conftest.$ac_ext >&5
14595 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14598 rm -rf conftest.dSYM
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 conftest$ac_exeext conftest.$ac_ext
14601 LIBS=$ac_check_lib_save_LIBS
14603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14604 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14605 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14615 if test "${HAVE_JPEG}" = "yes"; then
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_JPEG 1
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <jpeglib.h>
14627 version=JPEG_LIB_VERSION
14630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14631 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14632 cat >>confdefs.h <<\_ACEOF
14633 #define HAVE_JPEG 1
14637 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14638 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14646 ### Use -lpng if available, unless `--with-png=no'.
14648 if test "${HAVE_X11}" = "yes"; then
14649 if test "${with_png}" != "no"; then
14650 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14651 # in /usr/include/libpng.
14654 for ac_header
in png.h libpng
/png.h
14656 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14659 $as_echo_n "checking for $ac_header... " >&6; }
14660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14661 $as_echo_n "(cached) " >&6
14663 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14664 $as_echo "$as_val"'`
14665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14666 $as_echo "$ac_res" >&6; }
14668 # Is the header compilable?
14669 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14670 $as_echo_n "checking $ac_header usability... " >&6; }
14671 cat >conftest.
$ac_ext <<_ACEOF
14674 cat confdefs.h
>>conftest.
$ac_ext
14675 cat >>conftest.
$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 $ac_includes_default
14678 #include <$ac_header>
14680 rm -f conftest.
$ac_objext
14681 if { (ac_try
="$ac_compile"
14682 case "(($ac_try" in
14683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14687 $as_echo "$ac_try_echo") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14690 grep -v '^ *+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest.$ac_objext; then
14698 ac_header_compiler=yes
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_header_compiler=no
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14708 $as_echo "$ac_header_compiler" >&6; }
14710 # Is the header present?
14711 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14712 $as_echo_n "checking $ac_header presence... " >&6; }
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #include <$ac_header>
14721 if { (ac_try="$ac_cpp conftest.$ac_ext"
14722 case "(($ac_try" in
14723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14724 *) ac_try_echo
=$ac_try;;
14726 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14727 $as_echo "$ac_try_echo") >&5
14728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14730 grep -v '^ *+' conftest.er1
>conftest.err
14732 cat conftest.err
>&5
14733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } >/dev
/null
&& {
14735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14738 ac_header_preproc
=yes
14740 $as_echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.
$ac_ext >&5
14743 ac_header_preproc
=no
14746 rm -f conftest.err conftest.
$ac_ext
14747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14748 $as_echo "$ac_header_preproc" >&6; }
14750 # So? What about this header?
14751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14754 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14757 ac_header_preproc
=yes
14760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14761 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14763 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14765 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14767 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14771 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14776 $as_echo_n "checking for $ac_header... " >&6; }
14777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14778 $as_echo_n "(cached) " >&6
14780 eval "$as_ac_Header=\$ac_header_preproc"
14782 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14783 $as_echo "$as_val"'`
14784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14785 $as_echo "$ac_res" >&6; }
14788 if test `eval 'as_val=${'$as_ac_Header'}
14789 $as_echo "$as_val"'` = yes; then
14790 cat >>confdefs.h
<<_ACEOF
14791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14798 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14799 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14800 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14801 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14802 $as_echo_n "(cached) " >&6
14804 ac_check_lib_save_LIBS
=$LIBS
14805 LIBS
="-lpng -lz -lm $LIBS"
14806 cat >conftest.
$ac_ext <<_ACEOF
14809 cat confdefs.h
>>conftest.
$ac_ext
14810 cat >>conftest.
$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14819 char png_get_channels ();
14823 return png_get_channels ();
14828 rm -f conftest.
$ac_objext conftest
$ac_exeext
14829 if { (ac_try
="$ac_link"
14830 case "(($ac_try" in
14831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835 $as_echo "$ac_try_echo") >&5
14836 (eval "$ac_link") 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext && {
14846 test "$cross_compiling" = yes ||
14847 $as_test_x conftest$ac_exeext
14849 ac_cv_lib_png_png_get_channels=yes
14851 $as_echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_cv_lib_png_png_get_channels=no
14857 rm -rf conftest.dSYM
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14863 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14864 if test $ac_cv_lib_png_png_get_channels = yes; then
14871 if test "${HAVE_PNG}" = "yes"; then
14873 cat >>confdefs.h <<\_ACEOF
14880 ### Use -ltiff if available, unless `--with-tiff=no
'.
14882 if test "${HAVE_X11}" = "yes"; then
14883 if test "${with_tiff}" != "no"; then
14884 if test "${ac_cv_header_tiffio_h+set}" = set; then
14885 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14886 $as_echo_n "checking for tiffio.h... " >&6; }
14887 if test "${ac_cv_header_tiffio_h+set}" = set; then
14888 $as_echo_n "(cached) " >&6
14890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14891 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14893 # Is the header compilable?
14894 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14895 $as_echo_n "checking tiffio.h usability... " >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 #include <tiffio.h>
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14912 $as_echo "$ac_try_echo") >&5
14913 (eval "$ac_compile") 2>conftest.er1
14915 grep -v '^
*+' conftest.er1 >conftest.err
14917 cat conftest.err >&5
14918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } && {
14920 test -z "$ac_c_werror_flag" ||
14921 test ! -s conftest.err
14922 } && test -s conftest.$ac_objext; then
14923 ac_header_compiler=yes
14925 $as_echo "$as_me: failed program was:" >&5
14926 sed 's
/^
/|
/' conftest.$ac_ext >&5
14928 ac_header_compiler=no
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933 $as_echo "$ac_header_compiler" >&6; }
14935 # Is the header present?
14936 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14937 $as_echo_n "checking tiffio.h presence... " >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <tiffio.h>
14946 if { (ac_try="$ac_cpp conftest.$ac_ext"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952 $as_echo "$ac_try_echo") >&5
14953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14955 grep -v '^
*+' conftest.er1 >conftest.err
14957 cat conftest.err >&5
14958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } >/dev/null && {
14960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14963 ac_header_preproc=yes
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's
/^
/|
/' conftest.$ac_ext >&5
14968 ac_header_preproc=no
14971 rm -f conftest.err conftest.$ac_ext
14972 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973 $as_echo "$ac_header_preproc" >&6; }
14975 # So? What about this header?
14976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14978 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14979 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14981 $as_echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14982 ac_header_preproc=yes
14985 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14986 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14987 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14988 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14989 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14990 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14991 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14992 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14994 $as_echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14995 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14996 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15000 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15001 $as_echo_n "checking for tiffio.h... " >&6; }
15002 if test "${ac_cv_header_tiffio_h+set}" = set; then
15003 $as_echo_n "(cached) " >&6
15005 ac_cv_header_tiffio_h=$ac_header_preproc
15007 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15008 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15011 if test $ac_cv_header_tiffio_h = yes; then
15013 # At least one tiff package requires the jpeg library.
15014 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15015 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15016 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15017 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15018 $as_echo_n "(cached) " >&6
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-ltiff $tifflibs $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15035 char TIFFGetVersion ();
15039 return TIFFGetVersion ();
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15054 grep -v '^
*+' conftest.er1 >conftest.err
15056 cat conftest.err >&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest$ac_exeext
15065 ac_cv_lib_tiff_TIFFGetVersion=yes
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's
/^
/|
/' conftest.$ac_ext >&5
15070 ac_cv_lib_tiff_TIFFGetVersion=no
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15078 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15079 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15080 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15089 if test "${HAVE_TIFF}" = "yes"; then
15091 cat >>confdefs.h <<\_ACEOF
15092 #define HAVE_TIFF 1
15098 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15100 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15101 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15102 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15103 $as_echo_n "checking for gif_lib.h... " >&6; }
15104 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15105 $as_echo_n "(cached) " >&6
15107 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15108 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15110 # Is the header compilable?
15111 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15112 $as_echo_n "checking gif_lib.h usability... " >&6; }
15113 cat >conftest.
$ac_ext <<_ACEOF
15116 cat confdefs.h
>>conftest.
$ac_ext
15117 cat >>conftest.
$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119 $ac_includes_default
15120 #include <gif_lib.h>
15122 rm -f conftest.
$ac_objext
15123 if { (ac_try
="$ac_compile"
15124 case "(($ac_try" in
15125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15129 $as_echo "$ac_try_echo") >&5
15130 (eval "$ac_compile") 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest.$ac_objext; then
15140 ac_header_compiler=yes
15142 $as_echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_compiler=no
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15150 $as_echo "$ac_header_compiler" >&6; }
15152 # Is the header present?
15153 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15154 $as_echo_n "checking gif_lib.h presence... " >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 #include <gif_lib.h>
15163 if { (ac_try="$ac_cpp conftest.$ac_ext"
15164 case "(($ac_try" in
15165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15166 *) ac_try_echo
=$ac_try;;
15168 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15169 $as_echo "$ac_try_echo") >&5
15170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15172 grep -v '^ *+' conftest.er1
>conftest.err
15174 cat conftest.err
>&5
15175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } >/dev
/null
&& {
15177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15178 test ! -s conftest.err
15180 ac_header_preproc
=yes
15182 $as_echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.
$ac_ext >&5
15185 ac_header_preproc
=no
15188 rm -f conftest.err conftest.
$ac_ext
15189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15190 $as_echo "$ac_header_preproc" >&6; }
15192 # So? What about this header?
15193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15195 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15196 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15197 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15198 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15199 ac_header_preproc
=yes
15202 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15203 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15204 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15205 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15206 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15207 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15208 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15209 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15210 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15211 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15212 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15213 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15217 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15218 $as_echo_n "checking for gif_lib.h... " >&6; }
15219 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15220 $as_echo_n "(cached) " >&6
15222 ac_cv_header_gif_lib_h
=$ac_header_preproc
15224 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15225 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15228 if test $ac_cv_header_gif_lib_h = yes; then
15229 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15230 # Earlier versions can crash Emacs.
15231 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15232 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15233 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15234 $as_echo_n "(cached) " >&6
15236 ac_check_lib_save_LIBS
=$LIBS
15238 cat >conftest.
$ac_ext <<_ACEOF
15241 cat confdefs.h
>>conftest.
$ac_ext
15242 cat >>conftest.
$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any GCC internal prototype to avoid an error.
15246 Use char because int might match the return type of a GCC
15247 builtin and then its argument prototype would still apply. */
15251 char EGifPutExtensionLast ();
15255 return EGifPutExtensionLast ();
15260 rm -f conftest.
$ac_objext conftest
$ac_exeext
15261 if { (ac_try
="$ac_link"
15262 case "(($ac_try" in
15263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext && {
15278 test "$cross_compiling" = yes ||
15279 $as_test_x conftest$ac_exeext
15281 ac_cv_lib_gif_EGifPutExtensionLast=yes
15283 $as_echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_cv_lib_gif_EGifPutExtensionLast=no
15289 rm -rf conftest.dSYM
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_check_lib_save_LIBS
15294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15295 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15296 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15306 if test "$HAVE_GIF" = yes; then
15307 ac_gif_lib_name="-lgif"
15310 # If gif_lib.h but no libgif, try libungif.
15311 if test x"$try_libungif" = xyes; then
15312 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15313 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15314 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15315 $as_echo_n "(cached) " >&6
15317 ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-lungif $LIBS"
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15326 /* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15332 char EGifPutExtensionLast ();
15336 return EGifPutExtensionLast ();
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15345 *) ac_try_echo
=$ac_try;;
15347 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15348 $as_echo "$ac_try_echo") >&5
15349 (eval "$ac_link") 2>conftest.er1
15351 grep -v '^ *+' conftest.er1
>conftest.err
15353 cat conftest.err
>&5
15354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } && {
15356 test -z "$ac_c_werror_flag" ||
15357 test ! -s conftest.err
15358 } && test -s conftest
$ac_exeext && {
15359 test "$cross_compiling" = yes ||
15360 $as_test_x conftest
$ac_exeext
15362 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
15364 $as_echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.
$ac_ext >&5
15367 ac_cv_lib_ungif_EGifPutExtensionLast
=no
15370 rm -rf conftest.dSYM
15371 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15372 conftest
$ac_exeext conftest.
$ac_ext
15373 LIBS
=$ac_check_lib_save_LIBS
15375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15376 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15377 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15382 if test "$HAVE_GIF" = yes; then
15384 cat >>confdefs.h
<<\_ACEOF
15385 #define LIBGIF -lungif
15388 ac_gif_lib_name
="-lungif"
15392 if test "${HAVE_GIF}" = "yes"; then
15394 cat >>confdefs.h
<<\_ACEOF
15401 if test "${HAVE_X11}" = "yes"; then
15404 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15405 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
15406 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15407 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
15408 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15409 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
15410 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15411 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
15412 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15413 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
15415 if test "X${MISSING}" != X
; then
15416 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15418 Maybe some development libraries/packages are missing?
15419 If you don't want to link with them give
15421 as options to configure" >&5
15422 $as_echo "$as_me: error: The following required libraries were not found:
15424 Maybe some development libraries/packages are missing?
15425 If you don't want to link with them give
15427 as options to configure" >&2;}
15428 { (exit 1); exit 1; }; }
15432 ### Use -lgpm if available, unless `--with-gpm=no'.
15434 if test "${with_gpm}" != "no"; then
15435 if test "${ac_cv_header_gpm_h+set}" = set; then
15436 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15437 $as_echo_n "checking for gpm.h... " >&6; }
15438 if test "${ac_cv_header_gpm_h+set}" = set; then
15439 $as_echo_n "(cached) " >&6
15441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15442 $as_echo "$ac_cv_header_gpm_h" >&6; }
15444 # Is the header compilable?
15445 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15446 $as_echo_n "checking gpm.h usability... " >&6; }
15447 cat >conftest.
$ac_ext <<_ACEOF
15450 cat confdefs.h
>>conftest.
$ac_ext
15451 cat >>conftest.
$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 $ac_includes_default
15456 rm -f conftest.
$ac_objext
15457 if { (ac_try
="$ac_compile"
15458 case "(($ac_try" in
15459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464 (eval "$ac_compile") 2>conftest.er1
15466 grep -v '^ *+' conftest.er1 >conftest.err
15468 cat conftest.err >&5
15469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest.$ac_objext; then
15474 ac_header_compiler=yes
15476 $as_echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_header_compiler=no
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15484 $as_echo "$ac_header_compiler" >&6; }
15486 # Is the header present?
15487 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15488 $as_echo_n "checking gpm.h presence... " >&6; }
15489 cat >conftest.$ac_ext <<_ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15497 if { (ac_try="$ac_cpp conftest.$ac_ext"
15498 case "(($ac_try" in
15499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15500 *) ac_try_echo
=$ac_try;;
15502 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15503 $as_echo "$ac_try_echo") >&5
15504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15506 grep -v '^ *+' conftest.er1
>conftest.err
15508 cat conftest.err
>&5
15509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } >/dev
/null
&& {
15511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15512 test ! -s conftest.err
15514 ac_header_preproc
=yes
15516 $as_echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.
$ac_ext >&5
15519 ac_header_preproc
=no
15522 rm -f conftest.err conftest.
$ac_ext
15523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15524 $as_echo "$ac_header_preproc" >&6; }
15526 # So? What about this header?
15527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15529 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15530 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15531 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15532 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15533 ac_header_preproc
=yes
15536 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15537 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15538 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15539 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15540 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15541 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15542 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15543 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15544 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15545 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15546 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15547 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15551 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15552 $as_echo_n "checking for gpm.h... " >&6; }
15553 if test "${ac_cv_header_gpm_h+set}" = set; then
15554 $as_echo_n "(cached) " >&6
15556 ac_cv_header_gpm_h
=$ac_header_preproc
15558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15559 $as_echo "$ac_cv_header_gpm_h" >&6; }
15562 if test $ac_cv_header_gpm_h = yes; then
15563 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15564 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15565 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15566 $as_echo_n "(cached) " >&6
15568 ac_check_lib_save_LIBS
=$LIBS
15570 cat >conftest.
$ac_ext <<_ACEOF
15573 cat confdefs.h
>>conftest.
$ac_ext
15574 cat >>conftest.
$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15577 /* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15587 return Gpm_Open ();
15592 rm -f conftest.
$ac_objext conftest
$ac_exeext
15593 if { (ac_try
="$ac_link"
15594 case "(($ac_try" in
15595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15599 $as_echo "$ac_try_echo") >&5
15600 (eval "$ac_link") 2>conftest.er1
15602 grep -v '^ *+' conftest.er1 >conftest.err
15604 cat conftest.err >&5
15605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } && {
15607 test -z "$ac_c_werror_flag" ||
15608 test ! -s conftest.err
15609 } && test -s conftest$ac_exeext && {
15610 test "$cross_compiling" = yes ||
15611 $as_test_x conftest$ac_exeext
15613 ac_cv_lib_gpm_Gpm_Open=yes
15615 $as_echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_cv_lib_gpm_Gpm_Open=no
15621 rm -rf conftest.dSYM
15622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15623 conftest$ac_exeext conftest.$ac_ext
15624 LIBS=$ac_check_lib_save_LIBS
15626 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15627 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15628 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15637 if test "${HAVE_GPM}" = "yes"; then
15639 cat >>confdefs.h <<\_ACEOF
15645 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15646 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15647 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15648 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15649 $as_echo_n "(cached) " >&6
15651 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15652 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15654 # Is the header compilable?
15655 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15656 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 #include <malloc/malloc.h>
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15670 *) ac_try_echo
=$ac_try;;
15672 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15673 $as_echo "$ac_try_echo") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1
>conftest.err
15678 cat conftest.err
>&5
15679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest.
$ac_objext; then
15684 ac_header_compiler
=yes
15686 $as_echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.
$ac_ext >&5
15689 ac_header_compiler
=no
15692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15694 $as_echo "$ac_header_compiler" >&6; }
15696 # Is the header present?
15697 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15698 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15699 cat >conftest.
$ac_ext <<_ACEOF
15702 cat confdefs.h
>>conftest.
$ac_ext
15703 cat >>conftest.
$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <malloc/malloc.h>
15707 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15708 case "(($ac_try" in
15709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15713 $as_echo "$ac_try_echo") >&5
15714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15716 grep -v '^ *+' conftest.er1 >conftest.err
15718 cat conftest.err >&5
15719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } >/dev/null && {
15721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15722 test ! -s conftest.err
15724 ac_header_preproc=yes
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ac_header_preproc=no
15732 rm -f conftest.err conftest.$ac_ext
15733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15734 $as_echo "$ac_header_preproc" >&6; }
15736 # So? What about this header?
15737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15739 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15740 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15741 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15742 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15743 ac_header_preproc=yes
15746 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15747 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15748 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15749 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15750 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15751 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15752 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15753 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15754 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15755 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15756 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15757 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15761 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15762 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15763 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15764 $as_echo_n "(cached) " >&6
15766 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15768 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15769 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15772 if test $ac_cv_header_malloc_malloc_h = yes; then
15774 cat >>confdefs.h <<\_ACEOF
15775 #define HAVE_MALLOC_MALLOC_H 1
15782 ### Use NeXTstep API to implement GUI.
15783 if test "${HAVE_NS}" = "yes"; then
15785 cat >>confdefs.h <<\_ACEOF
15789 if test "${NS_IMPL_COCOA}" = "yes"; then
15791 cat >>confdefs.h <<\_ACEOF
15792 #define NS_IMPL_COCOA 1
15797 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define NS_IMPL_GNUSTEP 1
15803 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15805 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15807 cat >>confdefs.h <<\_ACEOF
15808 #define NS_HAVE_NSINTEGER 1
15812 # We also have mouse menus.
15818 ### Use session management (-lSM -lICE) if available
15820 if test "${HAVE_X11}" = "yes"; then
15821 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15822 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15823 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15824 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15825 $as_echo_n "(cached) " >&6
15827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15828 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15830 # Is the header compilable?
15831 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15832 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15833 cat >conftest.$ac_ext <<_ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 $ac_includes_default
15840 #include <X11/SM/SMlib.h>
15842 rm -f conftest.$ac_objext
15843 if { (ac_try="$ac_compile"
15844 case "(($ac_try" in
15845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15846 *) ac_try_echo
=$ac_try;;
15848 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15849 $as_echo "$ac_try_echo") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15852 grep -v '^ *+' conftest.er1
>conftest.err
15854 cat conftest.err
>&5
15855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest.
$ac_objext; then
15860 ac_header_compiler
=yes
15862 $as_echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.
$ac_ext >&5
15865 ac_header_compiler
=no
15868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15870 $as_echo "$ac_header_compiler" >&6; }
15872 # Is the header present?
15873 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15874 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15875 cat >conftest.
$ac_ext <<_ACEOF
15878 cat confdefs.h
>>conftest.
$ac_ext
15879 cat >>conftest.
$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 #include <X11/SM/SMlib.h>
15883 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15884 case "(($ac_try" in
15885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15886 *) ac_try_echo=$ac_try;;
15888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15889 $as_echo "$ac_try_echo") >&5
15890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null && {
15897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15900 ac_header_preproc=yes
15902 $as_echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_header_preproc=no
15908 rm -f conftest.err conftest.$ac_ext
15909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15910 $as_echo "$ac_header_preproc" >&6; }
15912 # So? What about this header?
15913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15915 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15916 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15917 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15918 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15919 ac_header_preproc=yes
15922 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15923 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15924 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15925 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15926 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15927 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15928 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15929 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15930 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15931 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15932 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15933 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15937 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15938 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15939 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15940 $as_echo_n "(cached) " >&6
15942 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15944 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15945 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15948 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15949 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15950 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15951 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15952 $as_echo_n "(cached) " >&6
15954 ac_check_lib_save_LIBS=$LIBS
15955 LIBS="-lSM -lICE $LIBS"
15956 cat >conftest.$ac_ext <<_ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h. */
15963 /* Override any GCC internal prototype to avoid an error.
15964 Use char because int might match the return type of a GCC
15965 builtin and then its argument prototype would still apply. */
15969 char SmcOpenConnection ();
15973 return SmcOpenConnection ();
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15982 *) ac_try_echo
=$ac_try;;
15984 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15985 $as_echo "$ac_try_echo") >&5
15986 (eval "$ac_link") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1
>conftest.err
15990 cat conftest.err
>&5
15991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest
$ac_exeext && {
15996 test "$cross_compiling" = yes ||
15997 $as_test_x conftest
$ac_exeext
15999 ac_cv_lib_SM_SmcOpenConnection
=yes
16001 $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.
$ac_ext >&5
16004 ac_cv_lib_SM_SmcOpenConnection
=no
16007 rm -rf conftest.dSYM
16008 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16009 conftest
$ac_exeext conftest.
$ac_ext
16010 LIBS
=$ac_check_lib_save_LIBS
16012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16013 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16014 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16022 if test "${HAVE_X_SM}" = "yes"; then
16024 cat >>confdefs.h
<<\_ACEOF
16025 #define HAVE_X_SM 1
16030 *) LIBS
="-lSM -lICE $LIBS" ;;
16035 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16036 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16037 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16038 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16039 $as_echo_n "(cached) " >&6
16041 cat >conftest.
$ac_ext <<_ACEOF
16044 cat confdefs.h
>>conftest.
$ac_ext
16045 cat >>conftest.
$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16056 rm -f conftest.
$ac_objext conftest
$ac_exeext
16057 if { (ac_try
="$ac_link"
16058 case "(($ac_try" in
16059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16063 $as_echo "$ac_try_echo") >&5
16064 (eval "$ac_link") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest$ac_exeext && {
16074 test "$cross_compiling" = yes ||
16075 $as_test_x conftest$ac_exeext
16077 emacs_cv_netdb_declares_h_errno=yes
16079 $as_echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 emacs_cv_netdb_declares_h_errno=no
16085 rm -rf conftest.dSYM
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16089 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16090 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16091 if test $emacs_cv_netdb_declares_h_errno = yes; then
16093 cat >>confdefs.h <<\_ACEOF
16094 #define HAVE_H_ERRNO 1
16099 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16100 # for constant arguments. Useless!
16101 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16102 $as_echo_n "checking for working alloca.h... " >&6; }
16103 if test "${ac_cv_working_alloca_h+set}" = set; then
16104 $as_echo_n "(cached) " >&6
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <alloca.h>
16116 char *p = (char *) alloca (2 * sizeof (int));
16122 rm -f conftest.$ac_objext conftest$ac_exeext
16123 if { (ac_try="$ac_link"
16124 case "(($ac_try" in
16125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16126 *) ac_try_echo
=$ac_try;;
16128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16129 $as_echo "$ac_try_echo") >&5
16130 (eval "$ac_link") 2>conftest.er1
16132 grep -v '^ *+' conftest.er1
>conftest.err
16134 cat conftest.err
>&5
16135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } && {
16137 test -z "$ac_c_werror_flag" ||
16138 test ! -s conftest.err
16139 } && test -s conftest
$ac_exeext && {
16140 test "$cross_compiling" = yes ||
16141 $as_test_x conftest
$ac_exeext
16143 ac_cv_working_alloca_h
=yes
16145 $as_echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.
$ac_ext >&5
16148 ac_cv_working_alloca_h
=no
16151 rm -rf conftest.dSYM
16152 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16153 conftest
$ac_exeext conftest.
$ac_ext
16155 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16156 $as_echo "$ac_cv_working_alloca_h" >&6; }
16157 if test $ac_cv_working_alloca_h = yes; then
16159 cat >>confdefs.h
<<\_ACEOF
16160 #define HAVE_ALLOCA_H 1
16165 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16166 $as_echo_n "checking for alloca... " >&6; }
16167 if test "${ac_cv_func_alloca_works+set}" = set; then
16168 $as_echo_n "(cached) " >&6
16170 cat >conftest.
$ac_ext <<_ACEOF
16173 cat confdefs.h
>>conftest.
$ac_ext
16174 cat >>conftest.
$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16177 # define alloca __builtin_alloca
16180 # include <malloc.h>
16181 # define alloca _alloca
16183 # ifdef HAVE_ALLOCA_H
16184 # include <alloca.h>
16189 # ifndef alloca /* predefined by HP cc +Olibcalls */
16200 char *p = (char *) alloca (1);
16206 rm -f conftest.
$ac_objext conftest
$ac_exeext
16207 if { (ac_try
="$ac_link"
16208 case "(($ac_try" in
16209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16213 $as_echo "$ac_try_echo") >&5
16214 (eval "$ac_link") 2>conftest.er1
16216 grep -v '^ *+' conftest.er1 >conftest.err
16218 cat conftest.err >&5
16219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } && {
16221 test -z "$ac_c_werror_flag" ||
16222 test ! -s conftest.err
16223 } && test -s conftest$ac_exeext && {
16224 test "$cross_compiling" = yes ||
16225 $as_test_x conftest$ac_exeext
16227 ac_cv_func_alloca_works=yes
16229 $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_cv_func_alloca_works=no
16235 rm -rf conftest.dSYM
16236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16237 conftest$ac_exeext conftest.$ac_ext
16239 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16240 $as_echo "$ac_cv_func_alloca_works" >&6; }
16242 if test $ac_cv_func_alloca_works = yes; then
16244 cat >>confdefs.h <<\_ACEOF
16245 #define HAVE_ALLOCA 1
16249 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16250 # that cause trouble. Some versions do not even contain alloca or
16251 # contain a buggy version. If you still want to use their alloca,
16252 # use ar to extract alloca.o from them instead of compiling alloca.c.
16254 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16256 cat >>confdefs.h <<\_ACEOF
16261 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16262 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16263 if test "${ac_cv_os_cray+set}" = set; then
16264 $as_echo_n "(cached
) " >&6
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #if defined CRAY && ! defined CRAY2
16279 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16280 $EGREP "webecray
" >/dev/null 2>&1; then
16288 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16289 $as_echo "$ac_cv_os_cray" >&6; }
16290 if test $ac_cv_os_cray = yes; then
16291 for ac_func in _getb67 GETB67 getb67; do
16292 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16293 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16294 $as_echo_n "checking
for $ac_func...
" >&6; }
16295 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16296 $as_echo_n "(cached
) " >&6
16298 cat >conftest.$ac_ext <<_ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16306 #define $ac_func innocuous_$ac_func
16308 /* System header to define __stub macros and hopefully few prototypes,
16309 which can conflict with char $ac_func (); below.
16310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16311 <limits.h> exists even on freestanding compilers. */
16314 # include <limits.h>
16316 # include <assert.h>
16321 /* Override any GCC internal prototype to avoid an error.
16322 Use char because int might match the return type of a GCC
16323 builtin and then its argument prototype would still apply. */
16328 /* The GNU C library defines this for functions which it implements
16329 to always fail with ENOSYS. Some functions are actually named
16330 something starting with __ and the normal name is an alias. */
16331 #if defined __stub_$ac_func || defined __stub___$ac_func
16338 return $ac_func ();
16343 rm -f conftest.$ac_objext conftest$ac_exeext
16344 if { (ac_try="$ac_link"
16345 case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16350 $as_echo "$ac_try_echo") >&5
16351 (eval "$ac_link") 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16357 (exit $ac_status); } && {
16358 test -z "$ac_c_werror_flag" ||
16359 test ! -s conftest.err
16360 } && test -s conftest$ac_exeext && {
16361 test "$cross_compiling" = yes ||
16362 $as_test_x conftest$ac_exeext
16364 eval "$as_ac_var=yes"
16366 $as_echo "$as_me: failed program was
:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 eval "$as_ac_var=no
"
16372 rm -rf conftest.dSYM
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374 conftest$ac_exeext conftest.$ac_ext
16376 ac_res=`eval 'as_val=${'$as_ac_var'}
16377 $as_echo "$as_val"'`
16378 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16379 $as_echo "$ac_res" >&6; }
16380 if test `eval 'as_val=${'$as_ac_var'}
16381 $as_echo "$as_val"'` = yes; then
16383 cat >>confdefs.h <<_ACEOF
16384 #define CRAY_STACKSEG_END $ac_func
16393 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16394 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16395 if test "${ac_cv_c_stack_direction+set}" = set; then
16396 $as_echo_n "(cached
) " >&6
16398 if test "$cross_compiling" = yes; then
16399 ac_cv_c_stack_direction=0
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 $ac_includes_default
16409 find_stack_direction ()
16411 static char *addr = 0;
16416 return find_stack_direction ();
16419 return (&dummy > addr) ? 1 : -1;
16425 return find_stack_direction () < 0;
16428 rm -f conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16435 $as_echo "$ac_try_echo") >&5
16436 (eval "$ac_link") 2>&5
16438 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16445 $as_echo "$ac_try_echo") >&5
16446 (eval "$ac_try") 2>&5
16448 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_c_stack_direction=1
16452 $as_echo "$as_me: program exited with status
$ac_status" >&5
16453 $as_echo "$as_me: failed program was
:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ( exit $ac_status )
16457 ac_cv_c_stack_direction=-1
16459 rm -rf conftest.dSYM
16460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16465 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16466 $as_echo "$ac_cv_c_stack_direction" >&6; }
16468 cat >>confdefs.h <<_ACEOF
16469 #define STACK_DIRECTION $ac_cv_c_stack_direction
16476 if test x"$ac_cv_func_alloca_works" != xyes; then
16477 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16478 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16479 { (exit 1); exit 1; }; }
16482 # fmod, logb, and frexp are found in -lm on most systems.
16483 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16485 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16486 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16487 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16488 $as_echo_n "(cached
) " >&6
16490 ac_check_lib_save_LIBS=$LIBS
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16499 /* Override any GCC internal prototype to avoid an error.
16500 Use char because int might match the return type of a GCC
16501 builtin and then its argument prototype would still apply. */
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (ac_try="$ac_link"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16521 $as_echo "$ac_try_echo") >&5
16522 (eval "$ac_link") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext && {
16532 test "$cross_compiling" = yes ||
16533 $as_test_x conftest$ac_exeext
16535 ac_cv_lib_m_sqrt=yes
16537 $as_echo "$as_me: failed program was
:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 ac_cv_lib_m_sqrt=no
16543 rm -rf conftest.dSYM
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545 conftest$ac_exeext conftest.$ac_ext
16546 LIBS=$ac_check_lib_save_LIBS
16548 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16549 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16550 if test $ac_cv_lib_m_sqrt = yes; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_LIBM 1
16560 # Check for mail-locking functions in a "mail" library. Probably this should
16561 # have the same check as for liblockfile below.
16563 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16564 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16565 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16566 $as_echo_n "(cached
) " >&6
16568 ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lmail $LIBS"
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16587 return maillock ();
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16599 $as_echo "$ac_try_echo") >&5
16600 (eval "$ac_link") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest$ac_exeext && {
16610 test "$cross_compiling" = yes ||
16611 $as_test_x conftest$ac_exeext
16613 ac_cv_lib_mail_maillock=yes
16615 $as_echo "$as_me: failed program was
:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_cv_lib_mail_maillock=no
16621 rm -rf conftest.dSYM
16622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16623 conftest$ac_exeext conftest.$ac_ext
16624 LIBS=$ac_check_lib_save_LIBS
16626 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16627 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16628 if test $ac_cv_lib_mail_maillock = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630 #define HAVE_LIBMAIL 1
16633 LIBS="-lmail $LIBS"
16638 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16639 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16640 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16641 $as_echo_n "(cached
) " >&6
16643 ac_check_lib_save_LIBS=$LIBS
16644 LIBS="-llockfile $LIBS"
16645 cat >conftest.$ac_ext <<_ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 /* Override any GCC internal prototype to avoid an error.
16653 Use char because int might match the return type of a GCC
16654 builtin and then its argument prototype would still apply. */
16662 return maillock ();
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (ac_try="$ac_link"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16674 $as_echo "$ac_try_echo") >&5
16675 (eval "$ac_link") 2>conftest.er1
16677 grep -v '^ *+' conftest.er1 >conftest.err
16679 cat conftest.err >&5
16680 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest$ac_exeext && {
16685 test "$cross_compiling" = yes ||
16686 $as_test_x conftest$ac_exeext
16688 ac_cv_lib_lockfile_maillock=yes
16690 $as_echo "$as_me: failed program was
:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 ac_cv_lib_lockfile_maillock=no
16696 rm -rf conftest.dSYM
16697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16698 conftest$ac_exeext conftest.$ac_ext
16699 LIBS=$ac_check_lib_save_LIBS
16701 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16702 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16703 if test $ac_cv_lib_lockfile_maillock = yes; then
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_LIBLOCKFILE 1
16708 LIBS="-llockfile $LIBS"
16712 # If we have the shared liblockfile, assume we must use it for mail
16713 # locking (e.g. Debian). If we couldn't link against liblockfile
16714 # (no liblockfile.a installed), ensure that we don't need to.
16715 if test "$ac_cv_lib_lockfile_maillock" = no; then
16716 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16717 set dummy liblockfile.so; ac_word=$2
16718 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16719 $as_echo_n "checking
for $ac_word...
" >&6; }
16720 if test "${ac_cv_prog_liblockfile+set}" = set; then
16721 $as_echo_n "(cached
) " >&6
16723 if test -n "$liblockfile"; then
16724 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16728 for as_dir in $as_dummy
16731 test -z "$as_dir" && as_dir=.
16732 for ac_exec_ext in '' $ac_executable_extensions; do
16733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16734 ac_cv_prog_liblockfile="yes"
16735 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16742 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16745 liblockfile=$ac_cv_prog_liblockfile
16746 if test -n "$liblockfile"; then
16747 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
16748 $as_echo "$liblockfile" >&6; }
16750 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16751 $as_echo "no
" >&6; }
16755 if test $ac_cv_prog_liblockfile = yes; then
16756 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16757 This probably means that movemail could lose mail.
16758 There may be a \`development' package to
install containing liblockfile.
" >&5
16759 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16760 This probably means that movemail could lose mail.
16761 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16762 { (exit 1); exit 1; }; }
16767 for ac_func in touchlock
16769 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16770 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16771 $as_echo_n "checking
for $ac_func...
" >&6; }
16772 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16773 $as_echo_n "(cached
) " >&6
16775 cat >conftest.$ac_ext <<_ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16783 #define $ac_func innocuous_$ac_func
16785 /* System header to define __stub macros and hopefully few prototypes,
16786 which can conflict with char $ac_func (); below.
16787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16788 <limits.h> exists even on freestanding compilers. */
16791 # include <limits.h>
16793 # include <assert.h>
16798 /* Override any GCC internal prototype to avoid an error.
16799 Use char because int might match the return type of a GCC
16800 builtin and then its argument prototype would still apply. */
16805 /* The GNU C library defines this for functions which it implements
16806 to always fail with ENOSYS. Some functions are actually named
16807 something starting with __ and the normal name is an alias. */
16808 #if defined __stub_$ac_func || defined __stub___$ac_func
16815 return $ac_func ();
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (ac_try="$ac_link"
16822 case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16827 $as_echo "$ac_try_echo") >&5
16828 (eval "$ac_link") 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest$ac_exeext && {
16838 test "$cross_compiling" = yes ||
16839 $as_test_x conftest$ac_exeext
16841 eval "$as_ac_var=yes"
16843 $as_echo "$as_me: failed program was
:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 eval "$as_ac_var=no
"
16849 rm -rf conftest.dSYM
16850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16851 conftest$ac_exeext conftest.$ac_ext
16853 ac_res=`eval 'as_val=${'$as_ac_var'}
16854 $as_echo "$as_val"'`
16855 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16856 $as_echo "$ac_res" >&6; }
16857 if test `eval 'as_val=${'$as_ac_var'}
16858 $as_echo "$as_val"'` = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16867 for ac_header in maillock.h
16869 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16870 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16871 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
16872 $as_echo_n "checking
for $ac_header...
" >&6; }
16873 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16874 $as_echo_n "(cached
) " >&6
16876 ac_res=`eval 'as_val=${'$as_ac_Header'}
16877 $as_echo "$as_val"'`
16878 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16879 $as_echo "$ac_res" >&6; }
16881 # Is the header compilable?
16882 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16883 $as_echo_n "checking
$ac_header usability...
" >&6; }
16884 cat >conftest.$ac_ext <<_ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 $ac_includes_default
16891 #include <$ac_header>
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.$ac_objext; then
16911 ac_header_compiler=yes
16913 $as_echo "$as_me: failed program was
:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_header_compiler=no
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16921 $as_echo "$ac_header_compiler" >&6; }
16923 # Is the header present?
16924 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16925 $as_echo_n "checking
$ac_header presence...
" >&6; }
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 #include <$ac_header>
16934 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16935 case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16939 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16940 $as_echo "$ac_try_echo") >&5
16941 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16943 grep -v '^ *+' conftest.er1 >conftest.err
16945 cat conftest.err >&5
16946 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16947 (exit $ac_status); } >/dev/null && {
16948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16949 test ! -s conftest.err
16951 ac_header_preproc=yes
16953 $as_echo "$as_me: failed program was
:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16956 ac_header_preproc=no
16959 rm -f conftest.err conftest.$ac_ext
16960 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16961 $as_echo "$ac_header_preproc" >&6; }
16963 # So? What about this header?
16964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16966 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16967 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16968 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16969 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16970 ac_header_preproc=yes
16973 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16974 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16975 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16976 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16977 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16978 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16979 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16980 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16981 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16982 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16983 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16984 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16988 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
16989 $as_echo_n "checking
for $ac_header...
" >&6; }
16990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16991 $as_echo_n "(cached
) " >&6
16993 eval "$as_ac_Header=\
$ac_header_preproc"
16995 ac_res=`eval 'as_val=${'$as_ac_Header'}
16996 $as_echo "$as_val"'`
16997 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16998 $as_echo "$ac_res" >&6; }
17001 if test `eval 'as_val=${'$as_ac_Header'}
17002 $as_echo "$as_val"'` = yes; then
17003 cat >>confdefs.h <<_ACEOF
17004 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17083 for ac_func in gethostname getdomainname dup2 \
17084 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17085 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17086 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17087 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17088 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17089 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17090 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17091 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17092 cfmakeraw cfsetspeed
17094 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17095 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17096 $as_echo_n "checking
for $ac_func...
" >&6; }
17097 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17098 $as_echo_n "(cached
) " >&6
17100 cat >conftest.$ac_ext <<_ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17108 #define $ac_func innocuous_$ac_func
17110 /* System header to define __stub macros and hopefully few prototypes,
17111 which can conflict with char $ac_func (); below.
17112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17113 <limits.h> exists even on freestanding compilers. */
17116 # include <limits.h>
17118 # include <assert.h>
17123 /* Override any GCC internal prototype to avoid an error.
17124 Use char because int might match the return type of a GCC
17125 builtin and then its argument prototype would still apply. */
17130 /* The GNU C library defines this for functions which it implements
17131 to always fail with ENOSYS. Some functions are actually named
17132 something starting with __ and the normal name is an alias. */
17133 #if defined __stub_$ac_func || defined __stub___$ac_func
17140 return $ac_func ();
17145 rm -f conftest.$ac_objext conftest$ac_exeext
17146 if { (ac_try="$ac_link"
17147 case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17152 $as_echo "$ac_try_echo") >&5
17153 (eval "$ac_link") 2>conftest.er1
17155 grep -v '^ *+' conftest.er1 >conftest.err
17157 cat conftest.err >&5
17158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17159 (exit $ac_status); } && {
17160 test -z "$ac_c_werror_flag" ||
17161 test ! -s conftest.err
17162 } && test -s conftest$ac_exeext && {
17163 test "$cross_compiling" = yes ||
17164 $as_test_x conftest$ac_exeext
17166 eval "$as_ac_var=yes"
17168 $as_echo "$as_me: failed program was
:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 eval "$as_ac_var=no
"
17174 rm -rf conftest.dSYM
17175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17176 conftest$ac_exeext conftest.$ac_ext
17178 ac_res=`eval 'as_val=${'$as_ac_var'}
17179 $as_echo "$as_val"'`
17180 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17181 $as_echo "$ac_res" >&6; }
17182 if test `eval 'as_val=${'$as_ac_var'}
17183 $as_echo "$as_val"'` = yes; then
17184 cat >>confdefs.h <<_ACEOF
17185 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17193 for ac_header in sys/un.h
17195 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17196 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17197 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17198 $as_echo_n "checking
for $ac_header...
" >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17200 $as_echo_n "(cached
) " >&6
17202 ac_res=`eval 'as_val=${'$as_ac_Header'}
17203 $as_echo "$as_val"'`
17204 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17205 $as_echo "$ac_res" >&6; }
17207 # Is the header compilable?
17208 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17209 $as_echo_n "checking
$ac_header usability...
" >&6; }
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 $ac_includes_default
17217 #include <$ac_header>
17219 rm -f conftest.$ac_objext
17220 if { (ac_try="$ac_compile"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17226 $as_echo "$ac_try_echo") >&5
17227 (eval "$ac_compile") 2>conftest.er1
17229 grep -v '^ *+' conftest.er1 >conftest.err
17231 cat conftest.err >&5
17232 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest.$ac_objext; then
17237 ac_header_compiler=yes
17239 $as_echo "$as_me: failed program was
:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_header_compiler=no
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17247 $as_echo "$ac_header_compiler" >&6; }
17249 # Is the header present?
17250 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17251 $as_echo_n "checking
$ac_header presence...
" >&6; }
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 #include <$ac_header>
17260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17266 $as_echo "$ac_try_echo") >&5
17267 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17269 grep -v '^ *+' conftest.er1 >conftest.err
17271 cat conftest.err >&5
17272 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17273 (exit $ac_status); } >/dev/null && {
17274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17275 test ! -s conftest.err
17277 ac_header_preproc=yes
17279 $as_echo "$as_me: failed program was
:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_header_preproc=no
17285 rm -f conftest.err conftest.$ac_ext
17286 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17287 $as_echo "$ac_header_preproc" >&6; }
17289 # So? What about this header?
17290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17292 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17293 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17294 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17295 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17296 ac_header_preproc=yes
17299 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17300 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17301 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17302 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17303 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17304 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17305 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17306 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17307 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17309 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17310 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17314 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17315 $as_echo_n "checking
for $ac_header...
" >&6; }
17316 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17317 $as_echo_n "(cached
) " >&6
17319 eval "$as_ac_Header=\
$ac_header_preproc"
17321 ac_res=`eval 'as_val=${'$as_ac_Header'}
17322 $as_echo "$as_val"'`
17323 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17324 $as_echo "$ac_res" >&6; }
17327 if test `eval 'as_val=${'$as_ac_Header'}
17328 $as_echo "$as_val"'` = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17342 for ac_header in $ac_header_list
17344 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17345 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17346 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17347 $as_echo_n "checking
for $ac_header...
" >&6; }
17348 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17349 $as_echo_n "(cached
) " >&6
17351 ac_res=`eval 'as_val=${'$as_ac_Header'}
17352 $as_echo "$as_val"'`
17353 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17354 $as_echo "$ac_res" >&6; }
17356 # Is the header compilable?
17357 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17358 $as_echo_n "checking
$ac_header usability...
" >&6; }
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 $ac_includes_default
17366 #include <$ac_header>
17368 rm -f conftest.$ac_objext
17369 if { (ac_try="$ac_compile"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17374 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17375 $as_echo "$ac_try_echo") >&5
17376 (eval "$ac_compile") 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17382 (exit $ac_status); } && {
17383 test -z "$ac_c_werror_flag" ||
17384 test ! -s conftest.err
17385 } && test -s conftest.$ac_objext; then
17386 ac_header_compiler=yes
17388 $as_echo "$as_me: failed program was
:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ac_header_compiler=no
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17396 $as_echo "$ac_header_compiler" >&6; }
17398 # Is the header present?
17399 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17400 $as_echo_n "checking
$ac_header presence...
" >&6; }
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 #include <$ac_header>
17409 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17415 $as_echo "$ac_try_echo") >&5
17416 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17418 grep -v '^ *+' conftest.er1 >conftest.err
17420 cat conftest.err >&5
17421 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17422 (exit $ac_status); } >/dev/null && {
17423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17426 ac_header_preproc=yes
17428 $as_echo "$as_me: failed program was
:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_header_preproc=no
17434 rm -f conftest.err conftest.$ac_ext
17435 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17436 $as_echo "$ac_header_preproc" >&6; }
17438 # So? What about this header?
17439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17441 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17442 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17443 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17444 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17445 ac_header_preproc=yes
17448 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17449 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17450 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17451 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17452 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17453 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17454 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17455 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17456 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17458 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17459 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17463 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17464 $as_echo_n "checking
for $ac_header...
" >&6; }
17465 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17466 $as_echo_n "(cached
) " >&6
17468 eval "$as_ac_Header=\
$ac_header_preproc"
17470 ac_res=`eval 'as_val=${'$as_ac_Header'}
17471 $as_echo "$as_val"'`
17472 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17473 $as_echo "$ac_res" >&6; }
17476 if test `eval 'as_val=${'$as_ac_Header'}
17477 $as_echo "$as_val"'` = yes; then
17478 cat >>confdefs.h <<_ACEOF
17479 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17494 for ac_func in $ac_func_list
17496 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17497 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17498 $as_echo_n "checking
for $ac_func...
" >&6; }
17499 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17500 $as_echo_n "(cached
) " >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17510 #define $ac_func innocuous_$ac_func
17512 /* System header to define __stub macros and hopefully few prototypes,
17513 which can conflict with char $ac_func (); below.
17514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17515 <limits.h> exists even on freestanding compilers. */
17518 # include <limits.h>
17520 # include <assert.h>
17525 /* Override any GCC internal prototype to avoid an error.
17526 Use char because int might match the return type of a GCC
17527 builtin and then its argument prototype would still apply. */
17532 /* The GNU C library defines this for functions which it implements
17533 to always fail with ENOSYS. Some functions are actually named
17534 something starting with __ and the normal name is an alias. */
17535 #if defined __stub_$ac_func || defined __stub___$ac_func
17542 return $ac_func ();
17547 rm -f conftest.$ac_objext conftest$ac_exeext
17548 if { (ac_try="$ac_link"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17554 $as_echo "$ac_try_echo") >&5
17555 (eval "$ac_link") 2>conftest.er1
17557 grep -v '^ *+' conftest.er1 >conftest.err
17559 cat conftest.err >&5
17560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest$ac_exeext && {
17565 test "$cross_compiling" = yes ||
17566 $as_test_x conftest$ac_exeext
17568 eval "$as_ac_var=yes"
17570 $as_echo "$as_me: failed program was
:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 eval "$as_ac_var=no
"
17576 rm -rf conftest.dSYM
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17580 ac_res=`eval 'as_val=${'$as_ac_var'}
17581 $as_echo "$as_val"'`
17582 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17583 $as_echo "$ac_res" >&6; }
17584 if test `eval 'as_val=${'$as_ac_var'}
17585 $as_echo "$as_val"'` = yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17609 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17610 $as_echo_n "checking
for working mktime...
" >&6; }
17611 if test "${ac_cv_func_working_mktime+set}" = set; then
17612 $as_echo_n "(cached
) " >&6
17614 if test "$cross_compiling" = yes; then
17615 ac_cv_func_working_mktime=no
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* Test program from Paul Eggert and Tony Leneis. */
17624 #ifdef TIME_WITH_SYS_TIME
17625 # include <sys/time.h>
17628 # ifdef HAVE_SYS_TIME_H
17629 # include <sys/time.h>
17635 #include <limits.h>
17636 #include <stdlib.h>
17638 #ifdef HAVE_UNISTD_H
17639 # include <unistd.h>
17643 # define alarm(X) /* empty */
17646 /* Work around redefinition to rpl_putenv by other config tests. */
17649 static time_t time_t_max;
17650 static time_t time_t_min;
17652 /* Values we'll use to set the TZ environment variable. */
17653 static char *tz_strings[] = {
17654 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17655 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17657 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17659 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17660 Based on a problem report from Andreas Jaeger. */
17662 spring_forward_gap ()
17664 /* glibc (up to about 1998-10-07) failed this test. */
17667 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17668 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17669 on systems that don't support the Olson extension, or don't have the
17670 full zoneinfo tables installed. */
17671 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17680 return mktime (&tm) != (time_t) -1;
17688 return ! (lt = localtime (&now)) || mktime (lt) == now;
17695 return (mktime_test1 (now)
17696 && mktime_test1 ((time_t) (time_t_max - now))
17697 && mktime_test1 ((time_t) (time_t_min + now)));
17703 /* Based on code from Ariel Faigon. */
17713 return tm.tm_mon == 2 && tm.tm_mday == 31;
17722 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17723 now = mktime (&tm);
17724 if (now != (time_t) -1)
17726 struct tm *lt = localtime (&now);
17728 && lt->tm_year == tm.tm_year
17729 && lt->tm_mon == tm.tm_mon
17730 && lt->tm_mday == tm.tm_mday
17731 && lt->tm_hour == tm.tm_hour
17732 && lt->tm_min == tm.tm_min
17733 && lt->tm_sec == tm.tm_sec
17734 && lt->tm_yday == tm.tm_yday
17735 && lt->tm_wday == tm.tm_wday
17736 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17737 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17746 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17747 ignoring leap seconds. */
17748 unsigned long int answer = 2527315200UL;
17752 tm.tm_year = 2050 - 1900;
17755 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17758 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17759 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17760 on systems that don't support the Olson extension, or don't have the
17761 full zoneinfo tables installed. */
17762 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17766 /* Check that the result is either a failure, or close enough
17767 to the correct answer that we can assume the discrepancy is
17768 due to leap seconds. */
17769 return (t == (time_t) -1
17770 || (0 < t && answer - 120 <= t && t <= answer + 120));
17779 /* This test makes some buggy mktime implementations loop.
17780 Give up after 60 seconds; a mktime slower than that
17781 isn't worth using anyway. */
17786 t = (time_t_max << 1) + 1;
17787 if (t <= time_t_max)
17791 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17793 delta = time_t_max / 997; /* a suitable prime number */
17794 for (i = 0; i < N_STRINGS; i++)
17797 putenv (tz_strings[i]);
17799 for (t = 0; t <= time_t_max - delta; t += delta)
17800 if (! mktime_test (t))
17802 if (! (mktime_test ((time_t) 1)
17803 && mktime_test ((time_t) (60 * 60))
17804 && mktime_test ((time_t) (60 * 60 * 24))))
17807 for (j = 1; ; j <<= 1)
17808 if (! bigtime_test (j))
17810 else if (INT_MAX / 2 < j)
17812 if (! bigtime_test (INT_MAX))
17815 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17818 rm -f conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826 (eval "$ac_link") 2>&5
17828 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
17838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_cv_func_working_mktime=yes
17842 $as_echo "$as_me: program exited with status
$ac_status" >&5
17843 $as_echo "$as_me: failed program was
:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ( exit $ac_status )
17847 ac_cv_func_working_mktime=no
17849 rm -rf conftest.dSYM
17850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17855 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17856 $as_echo "$ac_cv_func_working_mktime" >&6; }
17857 if test $ac_cv_func_working_mktime = no; then
17858 case " $LIBOBJS " in
17859 *" mktime.
$ac_objext "* ) ;;
17860 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17866 if test "$ac_cv_func_working_mktime" = no; then
17868 cat >>confdefs.h <<\_ACEOF
17869 #define BROKEN_MKTIME 1
17874 ac_have_func=no # yes means we've found a way to get the load average.
17876 # Make sure getloadavg.c is where it belongs, at configure-time.
17877 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17878 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17879 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17880 { (exit 1); exit 1; }; }
17884 # Check for getloadavg, but be sure not to touch the cache variable.
17885 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17886 $as_echo_n "checking
for getloadavg...
" >&6; }
17887 if test "${ac_cv_func_getloadavg+set}" = set; then
17888 $as_echo_n "(cached
) " >&6
17890 cat >conftest.$ac_ext <<_ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17898 #define getloadavg innocuous_getloadavg
17900 /* System header to define __stub macros and hopefully few prototypes,
17901 which can conflict with char getloadavg (); below.
17902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17903 <limits.h> exists even on freestanding compilers. */
17906 # include <limits.h>
17908 # include <assert.h>
17913 /* Override any GCC internal prototype to avoid an error.
17914 Use char because int might match the return type of a GCC
17915 builtin and then its argument prototype would still apply. */
17919 char getloadavg ();
17920 /* The GNU C library defines this for functions which it implements
17921 to always fail with ENOSYS. Some functions are actually named
17922 something starting with __ and the normal name is an alias. */
17923 #if defined __stub_getloadavg || defined __stub___getloadavg
17930 return getloadavg ();
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (ac_try="$ac_link"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17942 $as_echo "$ac_try_echo") >&5
17943 (eval "$ac_link") 2>conftest.er1
17945 grep -v '^ *+' conftest.er1 >conftest.err
17947 cat conftest.err >&5
17948 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest$ac_exeext && {
17953 test "$cross_compiling" = yes ||
17954 $as_test_x conftest$ac_exeext
17956 ac_cv_func_getloadavg=yes
17958 $as_echo "$as_me: failed program was
:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_func_getloadavg=no
17964 rm -rf conftest.dSYM
17965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17966 conftest$ac_exeext conftest.$ac_ext
17968 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17969 $as_echo "$ac_cv_func_getloadavg" >&6; }
17970 if test $ac_cv_func_getloadavg = yes; then
17975 ) && ac_have_func=yes
17977 # On HPUX9, an unprivileged user can get load averages through this function.
17979 for ac_func in pstat_getdynamic
17981 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17982 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17983 $as_echo_n "checking
for $ac_func...
" >&6; }
17984 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17985 $as_echo_n "(cached
) " >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17995 #define $ac_func innocuous_$ac_func
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char $ac_func (); below.
17999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000 <limits.h> exists even on freestanding compilers. */
18003 # include <limits.h>
18005 # include <assert.h>
18010 /* Override any GCC internal prototype to avoid an error.
18011 Use char because int might match the return type of a GCC
18012 builtin and then its argument prototype would still apply. */
18017 /* The GNU C library defines this for functions which it implements
18018 to always fail with ENOSYS. Some functions are actually named
18019 something starting with __ and the normal name is an alias. */
18020 #if defined __stub_$ac_func || defined __stub___$ac_func
18027 return $ac_func ();
18032 rm -f conftest.$ac_objext conftest$ac_exeext
18033 if { (ac_try="$ac_link"
18034 case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18039 $as_echo "$ac_try_echo") >&5
18040 (eval "$ac_link") 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18046 (exit $ac_status); } && {
18047 test -z "$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 } && test -s conftest$ac_exeext && {
18050 test "$cross_compiling" = yes ||
18051 $as_test_x conftest$ac_exeext
18053 eval "$as_ac_var=yes"
18055 $as_echo "$as_me: failed program was
:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 eval "$as_ac_var=no
"
18061 rm -rf conftest.dSYM
18062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18063 conftest$ac_exeext conftest.$ac_ext
18065 ac_res=`eval 'as_val=${'$as_ac_var'}
18066 $as_echo "$as_val"'`
18067 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18068 $as_echo "$ac_res" >&6; }
18069 if test `eval 'as_val=${'$as_ac_var'}
18070 $as_echo "$as_val"'` = yes; then
18071 cat >>confdefs.h <<_ACEOF
18072 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18079 # Solaris has libkstat which does not require root.
18081 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18082 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18083 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18084 $as_echo_n "(cached
) " >&6
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lkstat $LIBS"
18088 cat >conftest.$ac_ext <<_ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18095 /* Override any GCC internal prototype to avoid an error.
18096 Use char because int might match the return type of a GCC
18097 builtin and then its argument prototype would still apply. */
18101 char kstat_open ();
18105 return kstat_open ();
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (ac_try="$ac_link"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18117 $as_echo "$ac_try_echo") >&5
18118 (eval "$ac_link") 2>conftest.er1
18120 grep -v '^ *+' conftest.er1 >conftest.err
18122 cat conftest.err >&5
18123 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18124 (exit $ac_status); } && {
18125 test -z "$ac_c_werror_flag" ||
18126 test ! -s conftest.err
18127 } && test -s conftest$ac_exeext && {
18128 test "$cross_compiling" = yes ||
18129 $as_test_x conftest$ac_exeext
18131 ac_cv_lib_kstat_kstat_open=yes
18133 $as_echo "$as_me: failed program was
:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_lib_kstat_kstat_open=no
18139 rm -rf conftest.dSYM
18140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18141 conftest$ac_exeext conftest.$ac_ext
18142 LIBS=$ac_check_lib_save_LIBS
18144 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18145 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18146 if test $ac_cv_lib_kstat_kstat_open = yes; then
18147 cat >>confdefs.h <<_ACEOF
18148 #define HAVE_LIBKSTAT 1
18151 LIBS="-lkstat $LIBS"
18155 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18157 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18158 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18159 # to get the right answer into the cache.
18160 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18161 if test $ac_have_func = no; then
18162 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18163 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18164 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18165 $as_echo_n "(cached
) " >&6
18167 ac_check_lib_save_LIBS=$LIBS
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18186 return elf_begin ();
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18198 $as_echo "$ac_try_echo") >&5
18199 (eval "$ac_link") 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18205 (exit $ac_status); } && {
18206 test -z "$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18208 } && test -s conftest$ac_exeext && {
18209 test "$cross_compiling" = yes ||
18210 $as_test_x conftest$ac_exeext
18212 ac_cv_lib_elf_elf_begin=yes
18214 $as_echo "$as_me: failed program was
:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18217 ac_cv_lib_elf_elf_begin=no
18220 rm -rf conftest.dSYM
18221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18222 conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18225 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18226 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18227 if test $ac_cv_lib_elf_elf_begin = yes; then
18232 if test $ac_have_func = no; then
18233 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18234 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18235 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18236 $as_echo_n "(cached
) " >&6
18238 ac_check_lib_save_LIBS=$LIBS
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18247 /* Override any GCC internal prototype to avoid an error.
18248 Use char because int might match the return type of a GCC
18249 builtin and then its argument prototype would still apply. */
18257 return kvm_open ();
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18269 $as_echo "$ac_try_echo") >&5
18270 (eval "$ac_link") 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18276 (exit $ac_status); } && {
18277 test -z "$ac_c_werror_flag" ||
18278 test ! -s conftest.err
18279 } && test -s conftest$ac_exeext && {
18280 test "$cross_compiling" = yes ||
18281 $as_test_x conftest$ac_exeext
18283 ac_cv_lib_kvm_kvm_open=yes
18285 $as_echo "$as_me: failed program was
:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_lib_kvm_kvm_open=no
18291 rm -rf conftest.dSYM
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18296 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18297 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18298 if test $ac_cv_lib_kvm_kvm_open = yes; then
18302 # Check for the 4.4BSD definition of getloadavg.
18303 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18304 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18305 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18306 $as_echo_n "(cached
) " >&6
18308 ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lutil $LIBS"
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18323 char getloadavg ();
18327 return getloadavg ();
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18339 $as_echo "$ac_try_echo") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext && {
18350 test "$cross_compiling" = yes ||
18351 $as_test_x conftest$ac_exeext
18353 ac_cv_lib_util_getloadavg=yes
18355 $as_echo "$as_me: failed program was
:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_lib_util_getloadavg=no
18361 rm -rf conftest.dSYM
18362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18363 conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18366 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18367 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18368 if test $ac_cv_lib_util_getloadavg = yes; then
18369 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18374 if test $ac_have_func = no; then
18375 # There is a commonly available library for RS/6000 AIX.
18376 # Since it is not a standard part of AIX, it might be installed locally.
18377 ac_getloadavg_LIBS=$LIBS
18378 LIBS="-L/usr
/local
/lib
$LIBS"
18379 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18380 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18381 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18382 $as_echo_n "(cached
) " >&6
18384 ac_check_lib_save_LIBS=$LIBS
18385 LIBS="-lgetloadavg $LIBS"
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18399 char getloadavg ();
18403 return getloadavg ();
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18415 $as_echo "$ac_try_echo") >&5
18416 (eval "$ac_link") 2>conftest.er1
18418 grep -v '^ *+' conftest.er1 >conftest.err
18420 cat conftest.err >&5
18421 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18422 (exit $ac_status); } && {
18423 test -z "$ac_c_werror_flag" ||
18424 test ! -s conftest.err
18425 } && test -s conftest$ac_exeext && {
18426 test "$cross_compiling" = yes ||
18427 $as_test_x conftest$ac_exeext
18429 ac_cv_lib_getloadavg_getloadavg=yes
18431 $as_echo "$as_me: failed program was
:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 ac_cv_lib_getloadavg_getloadavg=no
18437 rm -rf conftest.dSYM
18438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439 conftest$ac_exeext conftest.$ac_ext
18440 LIBS=$ac_check_lib_save_LIBS
18442 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18443 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18444 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18445 LIBS="-lgetloadavg $LIBS"
18447 LIBS=$ac_getloadavg_LIBS
18452 # Make sure it is really in the library, if we think we found it,
18453 # otherwise set up the replacement function.
18455 for ac_func in getloadavg
18457 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18458 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18459 $as_echo_n "checking
for $ac_func...
" >&6; }
18460 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18461 $as_echo_n "(cached
) " >&6
18463 cat >conftest.$ac_ext <<_ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18471 #define $ac_func innocuous_$ac_func
18473 /* System header to define __stub macros and hopefully few prototypes,
18474 which can conflict with char $ac_func (); below.
18475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476 <limits.h> exists even on freestanding compilers. */
18479 # include <limits.h>
18481 # include <assert.h>
18486 /* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18493 /* The GNU C library defines this for functions which it implements
18494 to always fail with ENOSYS. Some functions are actually named
18495 something starting with __ and the normal name is an alias. */
18496 #if defined __stub_$ac_func || defined __stub___$ac_func
18503 return $ac_func ();
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18515 $as_echo "$ac_try_echo") >&5
18516 (eval "$ac_link") 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_c_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext && {
18526 test "$cross_compiling" = yes ||
18527 $as_test_x conftest$ac_exeext
18529 eval "$as_ac_var=yes"
18531 $as_echo "$as_me: failed program was
:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 eval "$as_ac_var=no
"
18537 rm -rf conftest.dSYM
18538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18539 conftest$ac_exeext conftest.$ac_ext
18541 ac_res=`eval 'as_val=${'$as_ac_var'}
18542 $as_echo "$as_val"'`
18543 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18544 $as_echo "$ac_res" >&6; }
18545 if test `eval 'as_val=${'$as_ac_var'}
18546 $as_echo "$as_val"'` = yes; then
18547 cat >>confdefs.h <<_ACEOF
18548 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18552 case " $LIBOBJS " in
18553 *" getloadavg.
$ac_objext "* ) ;;
18554 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18559 cat >>confdefs.h <<\_ACEOF
18560 #define C_GETLOADAVG 1
18563 # Figure out what our getloadavg.c needs.
18565 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18566 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18567 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18568 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18569 $as_echo_n "(cached
) " >&6
18571 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18572 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18574 # Is the header compilable?
18575 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18576 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 $ac_includes_default
18584 #include <sys/dg_sys_info.h>
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18593 $as_echo "$ac_try_echo") >&5
18594 (eval "$ac_compile") 2>conftest.er1
18596 grep -v '^ *+' conftest.er1 >conftest.err
18598 cat conftest.err >&5
18599 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18600 (exit $ac_status); } && {
18601 test -z "$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18603 } && test -s conftest.$ac_objext; then
18604 ac_header_compiler=yes
18606 $as_echo "$as_me: failed program was
:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18609 ac_header_compiler=no
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18614 $as_echo "$ac_header_compiler" >&6; }
18616 # Is the header present?
18617 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18618 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18619 cat >conftest.$ac_ext <<_ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 #include <sys/dg_sys_info.h>
18627 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18628 case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18632 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18633 $as_echo "$ac_try_echo") >&5
18634 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18636 grep -v '^ *+' conftest.er1 >conftest.err
18638 cat conftest.err >&5
18639 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18640 (exit $ac_status); } >/dev/null && {
18641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18642 test ! -s conftest.err
18644 ac_header_preproc=yes
18646 $as_echo "$as_me: failed program was
:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_header_preproc=no
18652 rm -f conftest.err conftest.$ac_ext
18653 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18654 $as_echo "$ac_header_preproc" >&6; }
18656 # So? What about this header?
18657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18659 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18660 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18661 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18662 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18663 ac_header_preproc=yes
18666 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18667 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18668 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18669 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18670 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18671 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18672 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18673 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18674 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18675 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18676 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18677 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18681 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18682 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18683 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18684 $as_echo_n "(cached
) " >&6
18686 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18688 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18689 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18692 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18695 cat >>confdefs.h <<\_ACEOF
18700 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18701 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18702 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18703 $as_echo_n "(cached
) " >&6
18705 ac_check_lib_save_LIBS=$LIBS
18707 cat >conftest.$ac_ext <<_ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18714 /* Override any GCC internal prototype to avoid an error.
18715 Use char because int might match the return type of a GCC
18716 builtin and then its argument prototype would still apply. */
18720 char dg_sys_info ();
18724 return dg_sys_info ();
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18736 $as_echo "$ac_try_echo") >&5
18737 (eval "$ac_link") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest$ac_exeext && {
18747 test "$cross_compiling" = yes ||
18748 $as_test_x conftest$ac_exeext
18750 ac_cv_lib_dgc_dg_sys_info=yes
18752 $as_echo "$as_me: failed program was
:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 ac_cv_lib_dgc_dg_sys_info=no
18758 rm -rf conftest.dSYM
18759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18760 conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18763 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18764 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18765 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_LIBDGC 1
18778 if test "${ac_cv_header_locale_h+set}" = set; then
18779 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18780 $as_echo_n "checking
for locale.h...
" >&6; }
18781 if test "${ac_cv_header_locale_h+set}" = set; then
18782 $as_echo_n "(cached
) " >&6
18784 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18785 $as_echo "$ac_cv_header_locale_h" >&6; }
18787 # Is the header compilable?
18788 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
18789 $as_echo_n "checking locale.h usability...
" >&6; }
18790 cat >conftest.$ac_ext <<_ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 $ac_includes_default
18797 #include <locale.h>
18799 rm -f conftest.$ac_objext
18800 if { (ac_try="$ac_compile"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18806 $as_echo "$ac_try_echo") >&5
18807 (eval "$ac_compile") 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest.$ac_objext; then
18817 ac_header_compiler=yes
18819 $as_echo "$as_me: failed program was
:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_header_compiler=no
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18827 $as_echo "$ac_header_compiler" >&6; }
18829 # Is the header present?
18830 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
18831 $as_echo_n "checking locale.h presence...
" >&6; }
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <locale.h>
18840 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18846 $as_echo "$ac_try_echo") >&5
18847 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18853 (exit $ac_status); } >/dev/null && {
18854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18857 ac_header_preproc=yes
18859 $as_echo "$as_me: failed program was
:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_header_preproc=no
18865 rm -f conftest.err conftest.$ac_ext
18866 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18867 $as_echo "$ac_header_preproc" >&6; }
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18872 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18873 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18874 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18875 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18876 ac_header_preproc=yes
18879 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18880 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18881 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18882 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18883 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18884 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18886 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18887 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18888 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18889 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18890 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18894 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18895 $as_echo_n "checking
for locale.h...
" >&6; }
18896 if test "${ac_cv_header_locale_h+set}" = set; then
18897 $as_echo_n "(cached
) " >&6
18899 ac_cv_header_locale_h=$ac_header_preproc
18901 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18902 $as_echo "$ac_cv_header_locale_h" >&6; }
18908 for ac_func in setlocale
18910 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18911 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18912 $as_echo_n "checking
for $ac_func...
" >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18914 $as_echo_n "(cached
) " >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18932 # include <limits.h>
18934 # include <assert.h>
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18956 return $ac_func ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18968 $as_echo "$ac_try_echo") >&5
18969 (eval "$ac_link") 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18975 (exit $ac_status); } && {
18976 test -z "$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 } && test -s conftest$ac_exeext && {
18979 test "$cross_compiling" = yes ||
18980 $as_test_x conftest$ac_exeext
18982 eval "$as_ac_var=yes"
18984 $as_echo "$as_me: failed program was
:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 eval "$as_ac_var=no
"
18990 rm -rf conftest.dSYM
18991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18992 conftest$ac_exeext conftest.$ac_ext
18994 ac_res=`eval 'as_val=${'$as_ac_var'}
18995 $as_echo "$as_val"'`
18996 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18997 $as_echo "$ac_res" >&6; }
18998 if test `eval 'as_val=${'$as_ac_var'}
18999 $as_echo "$as_val"'` = yes; then
19000 cat >>confdefs.h <<_ACEOF
19001 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19008 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19009 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19010 # Irix 4.0.5F has the header but not the library.
19011 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19014 cat >>confdefs.h <<\_ACEOF
19020 if test $ac_have_func = no; then
19021 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19022 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19023 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19024 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19025 $as_echo_n "(cached
) " >&6
19027 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19028 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19030 # Is the header compilable?
19031 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19032 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 $ac_includes_default
19040 #include <inq_stats/cpustats.h>
19042 rm -f conftest.$ac_objext
19043 if { (ac_try="$ac_compile"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19048 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19049 $as_echo "$ac_try_echo") >&5
19050 (eval "$ac_compile") 2>conftest.er1
19052 grep -v '^ *+' conftest.er1 >conftest.err
19054 cat conftest.err >&5
19055 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19056 (exit $ac_status); } && {
19057 test -z "$ac_c_werror_flag" ||
19058 test ! -s conftest.err
19059 } && test -s conftest.$ac_objext; then
19060 ac_header_compiler=yes
19062 $as_echo "$as_me: failed program was
:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_header_compiler=no
19068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19070 $as_echo "$ac_header_compiler" >&6; }
19072 # Is the header present?
19073 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19074 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19075 cat >conftest.$ac_ext <<_ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 #include <inq_stats/cpustats.h>
19083 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19089 $as_echo "$ac_try_echo") >&5
19090 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19092 grep -v '^ *+' conftest.er1 >conftest.err
19094 cat conftest.err >&5
19095 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19096 (exit $ac_status); } >/dev/null && {
19097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19100 ac_header_preproc=yes
19102 $as_echo "$as_me: failed program was
:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_header_preproc=no
19108 rm -f conftest.err conftest.$ac_ext
19109 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19110 $as_echo "$ac_header_preproc" >&6; }
19112 # So? What about this header?
19113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19115 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19116 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19117 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19118 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19119 ac_header_preproc=yes
19122 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19123 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19124 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19125 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19126 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19127 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19128 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19129 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19130 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19131 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19132 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19133 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19137 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19138 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19139 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19140 $as_echo_n "(cached
) " >&6
19142 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19144 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19145 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19148 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19151 cat >>confdefs.h <<\_ACEOF
19156 cat >>confdefs.h <<\_ACEOF
19165 if test $ac_have_func = no; then
19166 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19167 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19168 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19169 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19170 $as_echo_n "(cached
) " >&6
19172 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19173 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19175 # Is the header compilable?
19176 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19177 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19178 cat >conftest.$ac_ext <<_ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 $ac_includes_default
19185 #include <sys/cpustats.h>
19187 rm -f conftest.$ac_objext
19188 if { (ac_try="$ac_compile"
19189 case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19194 $as_echo "$ac_try_echo") >&5
19195 (eval "$ac_compile") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest.$ac_objext; then
19205 ac_header_compiler=yes
19207 $as_echo "$as_me: failed program was
:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 ac_header_compiler=no
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19215 $as_echo "$ac_header_compiler" >&6; }
19217 # Is the header present?
19218 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19219 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19220 cat >conftest.$ac_ext <<_ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19226 #include <sys/cpustats.h>
19228 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19234 $as_echo "$ac_try_echo") >&5
19235 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19237 grep -v '^ *+' conftest.er1 >conftest.err
19239 cat conftest.err >&5
19240 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19241 (exit $ac_status); } >/dev/null && {
19242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19243 test ! -s conftest.err
19245 ac_header_preproc=yes
19247 $as_echo "$as_me: failed program was
:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 ac_header_preproc=no
19253 rm -f conftest.err conftest.$ac_ext
19254 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19255 $as_echo "$ac_header_preproc" >&6; }
19257 # So? What about this header?
19258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19260 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19261 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19262 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19263 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19264 ac_header_preproc=yes
19267 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19268 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19269 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19270 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19271 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19272 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19273 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19274 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19275 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19276 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19277 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19278 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19282 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19283 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19284 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19285 $as_echo_n "(cached
) " >&6
19287 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19289 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19290 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19293 if test $ac_cv_header_sys_cpustats_h = yes; then
19294 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19303 if test $ac_have_func = no; then
19305 for ac_header in mach/mach.h
19307 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19308 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19309 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19310 $as_echo_n "checking
for $ac_header...
" >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19312 $as_echo_n "(cached
) " >&6
19314 ac_res=`eval 'as_val=${'$as_ac_Header'}
19315 $as_echo "$as_val"'`
19316 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19317 $as_echo "$ac_res" >&6; }
19319 # Is the header compilable?
19320 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19321 $as_echo_n "checking
$ac_header usability...
" >&6; }
19322 cat >conftest.$ac_ext <<_ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h. */
19328 $ac_includes_default
19329 #include <$ac_header>
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19338 $as_echo "$ac_try_echo") >&5
19339 (eval "$ac_compile") 2>conftest.er1
19341 grep -v '^ *+' conftest.er1 >conftest.err
19343 cat conftest.err >&5
19344 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest.$ac_objext; then
19349 ac_header_compiler=yes
19351 $as_echo "$as_me: failed program was
:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_header_compiler=no
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19359 $as_echo "$ac_header_compiler" >&6; }
19361 # Is the header present?
19362 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19363 $as_echo_n "checking
$ac_header presence...
" >&6; }
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19370 #include <$ac_header>
19372 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19378 $as_echo "$ac_try_echo") >&5
19379 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19381 grep -v '^ *+' conftest.er1 >conftest.err
19383 cat conftest.err >&5
19384 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19385 (exit $ac_status); } >/dev/null && {
19386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19389 ac_header_preproc=yes
19391 $as_echo "$as_me: failed program was
:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_header_preproc=no
19397 rm -f conftest.err conftest.$ac_ext
19398 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19399 $as_echo "$ac_header_preproc" >&6; }
19401 # So? What about this header?
19402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19404 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19405 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19406 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19408 ac_header_preproc=yes
19411 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19412 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19413 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19414 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19415 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19416 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19417 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19418 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19419 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19421 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19422 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19426 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19427 $as_echo_n "checking
for $ac_header...
" >&6; }
19428 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19429 $as_echo_n "(cached
) " >&6
19431 eval "$as_ac_Header=\
$ac_header_preproc"
19433 ac_res=`eval 'as_val=${'$as_ac_Header'}
19434 $as_echo "$as_val"'`
19435 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19436 $as_echo "$ac_res" >&6; }
19439 if test `eval 'as_val=${'$as_ac_Header'}
19440 $as_echo "$as_val"'` = yes; then
19441 cat >>confdefs.h <<_ACEOF
19442 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19452 for ac_header in nlist.h
19454 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19455 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19456 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19457 $as_echo_n "checking
for $ac_header...
" >&6; }
19458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19459 $as_echo_n "(cached
) " >&6
19461 ac_res=`eval 'as_val=${'$as_ac_Header'}
19462 $as_echo "$as_val"'`
19463 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19464 $as_echo "$ac_res" >&6; }
19466 # Is the header compilable?
19467 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19468 $as_echo_n "checking
$ac_header usability...
" >&6; }
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 $ac_includes_default
19476 #include <$ac_header>
19478 rm -f conftest.$ac_objext
19479 if { (ac_try="$ac_compile"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19484 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19485 $as_echo "$ac_try_echo") >&5
19486 (eval "$ac_compile") 2>conftest.er1
19488 grep -v '^ *+' conftest.er1 >conftest.err
19490 cat conftest.err >&5
19491 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest.$ac_objext; then
19496 ac_header_compiler=yes
19498 $as_echo "$as_me: failed program was
:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_header_compiler=no
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19505 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19506 $as_echo "$ac_header_compiler" >&6; }
19508 # Is the header present?
19509 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19510 $as_echo_n "checking
$ac_header presence...
" >&6; }
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 #include <$ac_header>
19519 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19524 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19525 $as_echo "$ac_try_echo") >&5
19526 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19528 grep -v '^ *+' conftest.er1 >conftest.err
19530 cat conftest.err >&5
19531 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19532 (exit $ac_status); } >/dev/null && {
19533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19536 ac_header_preproc=yes
19538 $as_echo "$as_me: failed program was
:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ac_header_preproc=no
19544 rm -f conftest.err conftest.$ac_ext
19545 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19546 $as_echo "$ac_header_preproc" >&6; }
19548 # So? What about this header?
19549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19551 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19552 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19555 ac_header_preproc=yes
19558 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19559 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19560 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19561 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19562 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19563 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19564 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19565 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19566 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19567 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19568 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19569 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19573 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19574 $as_echo_n "checking
for $ac_header...
" >&6; }
19575 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19576 $as_echo_n "(cached
) " >&6
19578 eval "$as_ac_Header=\
$ac_header_preproc"
19580 ac_res=`eval 'as_val=${'$as_ac_Header'}
19581 $as_echo "$as_val"'`
19582 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19583 $as_echo "$ac_res" >&6; }
19586 if test `eval 'as_val=${'$as_ac_Header'}
19587 $as_echo "$as_val"'` = yes; then
19588 cat >>confdefs.h <<_ACEOF
19589 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19591 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19592 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19593 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19594 $as_echo_n "(cached
) " >&6
19596 cat >conftest.$ac_ext <<_ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19607 static struct nlist ac_aggr;
19608 if (ac_aggr.n_un.n_name)
19614 rm -f conftest.$ac_objext
19615 if { (ac_try="$ac_compile"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19621 $as_echo "$ac_try_echo") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.$ac_objext; then
19632 ac_cv_member_struct_nlist_n_un_n_name=yes
19634 $as_echo "$as_me: failed program was
:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 cat >conftest.$ac_ext <<_ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19648 static struct nlist ac_aggr;
19649 if (sizeof ac_aggr.n_un.n_name)
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19662 $as_echo "$ac_try_echo") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest.$ac_objext; then
19673 ac_cv_member_struct_nlist_n_un_n_name=yes
19675 $as_echo "$as_me: failed program was
:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_cv_member_struct_nlist_n_un_n_name=no
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19687 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19688 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19690 cat >>confdefs.h <<_ACEOF
19691 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19695 cat >>confdefs.h <<\_ACEOF
19696 #define NLIST_NAME_UNION 1
19710 # Some definitions of getloadavg require that the program be installed setgid.
19711 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19712 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19713 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19714 $as_echo_n "(cached
) " >&6
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19723 #ifdef LDAV_PRIVILEGED
19724 Yowza Am I SETGID yet
19727 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19728 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19729 ac_cv_func_getloadavg_setgid=yes
19731 ac_cv_func_getloadavg_setgid=no
19736 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19737 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19738 if test $ac_cv_func_getloadavg_setgid = yes; then
19741 cat >>confdefs.h <<\_ACEOF
19742 #define GETLOADAVG_PRIVILEGED 1
19749 if test $ac_cv_func_getloadavg_setgid = yes; then
19750 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19751 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
19752 if test "${ac_cv_group_kmem+set}" = set; then
19753 $as_echo_n "(cached
) " >&6
19755 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19756 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19757 # If we got an error (system does not support symlinks), try without -L.
19758 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19759 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19760 | sed -ne 's/[ ][ ]*/ /g;
19761 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19765 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19766 $as_echo "$ac_cv_group_kmem" >&6; }
19767 KMEM_GROUP=$ac_cv_group_kmem
19769 if test "x
$ac_save_LIBS" = x; then
19770 GETLOADAVG_LIBS=$LIBS
19772 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
19778 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19779 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
19780 if test "${ac_cv_sys_largefile_source+set}" = set; then
19781 $as_echo_n "(cached
) " >&6
19784 cat >conftest.$ac_ext <<_ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <sys/types.h> /* for off_t */
19795 int (*fp) (FILE *, off_t, int) = fseeko;
19796 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19801 rm -f conftest.$ac_objext conftest$ac_exeext
19802 if { (ac_try="$ac_link"
19803 case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19808 $as_echo "$ac_try_echo") >&5
19809 (eval "$ac_link") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext && {
19819 test "$cross_compiling" = yes ||
19820 $as_test_x conftest$ac_exeext
19822 ac_cv_sys_largefile_source=no; break
19824 $as_echo "$as_me: failed program was
:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19830 rm -rf conftest.dSYM
19831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19832 conftest$ac_exeext conftest.$ac_ext
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 #define _LARGEFILE_SOURCE 1
19840 #include <sys/types.h> /* for off_t */
19845 int (*fp) (FILE *, off_t, int) = fseeko;
19846 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19858 $as_echo "$ac_try_echo") >&5
19859 (eval "$ac_link") 2>conftest.er1
19861 grep -v '^ *+' conftest.er1 >conftest.err
19863 cat conftest.err >&5
19864 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19865 (exit $ac_status); } && {
19866 test -z "$ac_c_werror_flag" ||
19867 test ! -s conftest.err
19868 } && test -s conftest$ac_exeext && {
19869 test "$cross_compiling" = yes ||
19870 $as_test_x conftest$ac_exeext
19872 ac_cv_sys_largefile_source=1; break
19874 $as_echo "$as_me: failed program was
:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19880 rm -rf conftest.dSYM
19881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19882 conftest$ac_exeext conftest.$ac_ext
19883 ac_cv_sys_largefile_source=unknown
19887 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19888 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19889 case $ac_cv_sys_largefile_source in #(
19892 cat >>confdefs.h <<_ACEOF
19893 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19899 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19900 # in glibc 2.1.3, but that breaks too many other things.
19901 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19902 if test $ac_cv_sys_largefile_source != unknown; then
19904 cat >>confdefs.h <<\_ACEOF
19905 #define HAVE_FSEEKO 1
19911 # Configure getopt.
19912 # getopt.m4 serial 10
19914 # The getopt module assume you want GNU getopt, with getopt_long etc,
19915 # rather than vanilla POSIX getopt. This means your your code should
19916 # always include <getopt.h> for the getopt prototypes.
19928 # Prerequisites of lib/getopt*.
19935 for ac_header in getopt.h
19937 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19939 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19940 $as_echo_n "checking
for $ac_header...
" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19942 $as_echo_n "(cached
) " >&6
19944 ac_res=`eval 'as_val=${'$as_ac_Header'}
19945 $as_echo "$as_val"'`
19946 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19947 $as_echo "$ac_res" >&6; }
19949 # Is the header compilable?
19950 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19951 $as_echo_n "checking
$ac_header usability...
" >&6; }
19952 cat >conftest.$ac_ext <<_ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 $ac_includes_default
19959 #include <$ac_header>
19961 rm -f conftest.$ac_objext
19962 if { (ac_try="$ac_compile"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19967 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19968 $as_echo "$ac_try_echo") >&5
19969 (eval "$ac_compile") 2>conftest.er1
19971 grep -v '^ *+' conftest.er1 >conftest.err
19973 cat conftest.err >&5
19974 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest.$ac_objext; then
19979 ac_header_compiler=yes
19981 $as_echo "$as_me: failed program was
:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_header_compiler=no
19987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19988 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19989 $as_echo "$ac_header_compiler" >&6; }
19991 # Is the header present?
19992 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19993 $as_echo_n "checking
$ac_header presence...
" >&6; }
19994 cat >conftest.$ac_ext <<_ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 #include <$ac_header>
20002 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20007 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20015 (exit $ac_status); } >/dev/null && {
20016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20019 ac_header_preproc=yes
20021 $as_echo "$as_me: failed program was
:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_preproc=no
20027 rm -f conftest.err conftest.$ac_ext
20028 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20029 $as_echo "$ac_header_preproc" >&6; }
20031 # So? What about this header?
20032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20034 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20035 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20036 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20038 ac_header_preproc=yes
20041 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20042 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20043 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20044 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20045 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20046 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20047 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20048 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20049 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20051 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20052 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20056 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20057 $as_echo_n "checking
for $ac_header...
" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20059 $as_echo_n "(cached
) " >&6
20061 eval "$as_ac_Header=\
$ac_header_preproc"
20063 ac_res=`eval 'as_val=${'$as_ac_Header'}
20064 $as_echo "$as_val"'`
20065 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20066 $as_echo "$ac_res" >&6; }
20069 if test `eval 'as_val=${'$as_ac_Header'}
20070 $as_echo "$as_val"'` = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20081 if test -z "$GETOPT_H"; then
20083 for ac_func in getopt_long_only
20085 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20086 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20087 $as_echo_n "checking
for $ac_func...
" >&6; }
20088 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20089 $as_echo_n "(cached
) " >&6
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20099 #define $ac_func innocuous_$ac_func
20101 /* System header to define __stub macros and hopefully few prototypes,
20102 which can conflict with char $ac_func (); below.
20103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104 <limits.h> exists even on freestanding compilers. */
20107 # include <limits.h>
20109 # include <assert.h>
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20121 /* The GNU C library defines this for functions which it implements
20122 to always fail with ENOSYS. Some functions are actually named
20123 something starting with __ and the normal name is an alias. */
20124 #if defined __stub_$ac_func || defined __stub___$ac_func
20131 return $ac_func ();
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20143 $as_echo "$ac_try_echo") >&5
20144 (eval "$ac_link") 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest$ac_exeext && {
20154 test "$cross_compiling" = yes ||
20155 $as_test_x conftest$ac_exeext
20157 eval "$as_ac_var=yes"
20159 $as_echo "$as_me: failed program was
:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 eval "$as_ac_var=no
"
20165 rm -rf conftest.dSYM
20166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20167 conftest$ac_exeext conftest.$ac_ext
20169 ac_res=`eval 'as_val=${'$as_ac_var'}
20170 $as_echo "$as_val"'`
20171 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20172 $as_echo "$ac_res" >&6; }
20173 if test `eval 'as_val=${'$as_ac_var'}
20174 $as_echo "$as_val"'` = yes; then
20175 cat >>confdefs.h <<_ACEOF
20176 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20186 if test -z "$GETOPT_H"; then
20187 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20188 $as_echo_n "checking whether optreset is declared...
" >&6; }
20189 if test "${ac_cv_have_decl_optreset+set}" = set; then
20190 $as_echo_n "(cached
) " >&6
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 #include <getopt.h>
20211 rm -f conftest.$ac_objext
20212 if { (ac_try="$ac_compile"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20217 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20218 $as_echo "$ac_try_echo") >&5
20219 (eval "$ac_compile") 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest.$ac_objext; then
20229 ac_cv_have_decl_optreset=yes
20231 $as_echo "$as_me: failed program was
:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_have_decl_optreset=no
20237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20239 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20240 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20241 if test $ac_cv_have_decl_optreset = yes; then
20247 if test -z "$GETOPT_H"; then
20248 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20249 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20250 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20251 $as_echo_n "(cached
) " >&6
20253 if test "$cross_compiling" = yes; then
20254 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20255 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20256 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20257 $as_echo_n "(cached
) " >&6
20259 cat >conftest.$ac_ext <<_ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #include <getopt.h>
20270 #ifndef getopt_clip
20271 (void) getopt_clip;
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20285 $as_echo "$ac_try_echo") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.$ac_objext; then
20296 ac_cv_have_decl_getopt_clip=yes
20298 $as_echo "$as_me: failed program was
:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_cv_have_decl_getopt_clip=no
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20307 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20308 if test $ac_cv_have_decl_getopt_clip = yes; then
20309 gl_cv_func_gnu_getopt=no
20311 gl_cv_func_gnu_getopt=yes
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <getopt.h>
20327 myargv[0] = "conftest
";
20330 return getopt (2, myargv, "+a
") != '?';
20336 rm -f conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20342 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20343 $as_echo "$ac_try_echo") >&5
20344 (eval "$ac_link") 2>&5
20346 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20348 { (case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20353 $as_echo "$ac_try_echo") >&5
20354 (eval "$ac_try") 2>&5
20356 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 gl_cv_func_gnu_getopt=yes
20360 $as_echo "$as_me: program exited with status
$ac_status" >&5
20361 $as_echo "$as_me: failed program was
:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ( exit $ac_status )
20365 gl_cv_func_gnu_getopt=no
20367 rm -rf conftest.dSYM
20368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20373 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20374 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20375 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20382 if test -n "$GETOPT_H"; then
20387 cat >>confdefs.h <<\_ACEOF
20388 #define __GETOPT_PREFIX rpl_
20394 GETOPTOBJS='getopt.o getopt1.o'
20401 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20402 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20403 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20404 $as_echo_n "(cached
) " >&6
20406 # Use it with a single arg.
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 $ac_includes_default
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20429 $as_echo "$ac_try_echo") >&5
20430 (eval "$ac_compile") 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest.$ac_objext; then
20440 ac_cv_func_getpgrp_void=no
20442 $as_echo "$as_me: failed program was
:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 ac_cv_func_getpgrp_void=yes
20448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20452 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20453 if test $ac_cv_func_getpgrp_void = yes; then
20455 cat >>confdefs.h <<\_ACEOF
20456 #define GETPGRP_VOID 1
20463 for ac_func in strftime
20465 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20466 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20467 $as_echo_n "checking
for $ac_func...
" >&6; }
20468 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20469 $as_echo_n "(cached
) " >&6
20471 cat >conftest.$ac_ext <<_ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20479 #define $ac_func innocuous_$ac_func
20481 /* System header to define __stub macros and hopefully few prototypes,
20482 which can conflict with char $ac_func (); below.
20483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20484 <limits.h> exists even on freestanding compilers. */
20487 # include <limits.h>
20489 # include <assert.h>
20494 /* Override any GCC internal prototype to avoid an error.
20495 Use char because int might match the return type of a GCC
20496 builtin and then its argument prototype would still apply. */
20501 /* The GNU C library defines this for functions which it implements
20502 to always fail with ENOSYS. Some functions are actually named
20503 something starting with __ and the normal name is an alias. */
20504 #if defined __stub_$ac_func || defined __stub___$ac_func
20511 return $ac_func ();
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20522 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20523 $as_echo "$ac_try_echo") >&5
20524 (eval "$ac_link") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest$ac_exeext && {
20534 test "$cross_compiling" = yes ||
20535 $as_test_x conftest$ac_exeext
20537 eval "$as_ac_var=yes"
20539 $as_echo "$as_me: failed program was
:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 eval "$as_ac_var=no
"
20545 rm -rf conftest.dSYM
20546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20547 conftest$ac_exeext conftest.$ac_ext
20549 ac_res=`eval 'as_val=${'$as_ac_var'}
20550 $as_echo "$as_val"'`
20551 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20552 $as_echo "$ac_res" >&6; }
20553 if test `eval 'as_val=${'$as_ac_var'}
20554 $as_echo "$as_val"'` = yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20560 # strftime is in -lintl on SCO UNIX.
20561 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20562 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20563 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20564 $as_echo_n "(cached
) " >&6
20566 ac_check_lib_save_LIBS=$LIBS
20567 LIBS="-lintl $LIBS"
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20575 /* Override any GCC internal prototype to avoid an error.
20576 Use char because int might match the return type of a GCC
20577 builtin and then its argument prototype would still apply. */
20585 return strftime ();
20590 rm -f conftest.$ac_objext conftest$ac_exeext
20591 if { (ac_try="$ac_link"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20597 $as_echo "$ac_try_echo") >&5
20598 (eval "$ac_link") 2>conftest.er1
20600 grep -v '^ *+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest$ac_exeext && {
20608 test "$cross_compiling" = yes ||
20609 $as_test_x conftest$ac_exeext
20611 ac_cv_lib_intl_strftime=yes
20613 $as_echo "$as_me: failed program was
:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ac_cv_lib_intl_strftime=no
20619 rm -rf conftest.dSYM
20620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20621 conftest$ac_exeext conftest.$ac_ext
20622 LIBS=$ac_check_lib_save_LIBS
20624 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20625 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20626 if test $ac_cv_lib_intl_strftime = yes; then
20627 cat >>confdefs.h <<\_ACEOF
20628 #define HAVE_STRFTIME 1
20631 LIBS="-lintl $LIBS"
20640 for ac_func in grantpt
20642 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20643 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20644 $as_echo_n "checking
for $ac_func...
" >&6; }
20645 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20646 $as_echo_n "(cached
) " >&6
20648 cat >conftest.$ac_ext <<_ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20656 #define $ac_func innocuous_$ac_func
20658 /* System header to define __stub macros and hopefully few prototypes,
20659 which can conflict with char $ac_func (); below.
20660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20661 <limits.h> exists even on freestanding compilers. */
20664 # include <limits.h>
20666 # include <assert.h>
20671 /* Override any GCC internal prototype to avoid an error.
20672 Use char because int might match the return type of a GCC
20673 builtin and then its argument prototype would still apply. */
20678 /* The GNU C library defines this for functions which it implements
20679 to always fail with ENOSYS. Some functions are actually named
20680 something starting with __ and the normal name is an alias. */
20681 #if defined __stub_$ac_func || defined __stub___$ac_func
20688 return $ac_func ();
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20700 $as_echo "$ac_try_echo") >&5
20701 (eval "$ac_link") 2>conftest.er1
20703 grep -v '^ *+' conftest.er1 >conftest.err
20705 cat conftest.err >&5
20706 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20707 (exit $ac_status); } && {
20708 test -z "$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 } && test -s conftest$ac_exeext && {
20711 test "$cross_compiling" = yes ||
20712 $as_test_x conftest$ac_exeext
20714 eval "$as_ac_var=yes"
20716 $as_echo "$as_me: failed program was
:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 eval "$as_ac_var=no
"
20722 rm -rf conftest.dSYM
20723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20724 conftest$ac_exeext conftest.$ac_ext
20726 ac_res=`eval 'as_val=${'$as_ac_var'}
20727 $as_echo "$as_val"'`
20728 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20729 $as_echo "$ac_res" >&6; }
20730 if test `eval 'as_val=${'$as_ac_var'}
20731 $as_echo "$as_val"'` = yes; then
20732 cat >>confdefs.h <<_ACEOF
20733 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20740 # PTY-related GNU extensions.
20742 for ac_func in getpt
20744 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20745 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20746 $as_echo_n "checking
for $ac_func...
" >&6; }
20747 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20748 $as_echo_n "(cached
) " >&6
20750 cat >conftest.$ac_ext <<_ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20758 #define $ac_func innocuous_$ac_func
20760 /* System header to define __stub macros and hopefully few prototypes,
20761 which can conflict with char $ac_func (); below.
20762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20763 <limits.h> exists even on freestanding compilers. */
20766 # include <limits.h>
20768 # include <assert.h>
20773 /* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20780 /* The GNU C library defines this for functions which it implements
20781 to always fail with ENOSYS. Some functions are actually named
20782 something starting with __ and the normal name is an alias. */
20783 #if defined __stub_$ac_func || defined __stub___$ac_func
20790 return $ac_func ();
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20802 $as_echo "$ac_try_echo") >&5
20803 (eval "$ac_link") 2>conftest.er1
20805 grep -v '^ *+' conftest.er1 >conftest.err
20807 cat conftest.err >&5
20808 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest$ac_exeext && {
20813 test "$cross_compiling" = yes ||
20814 $as_test_x conftest$ac_exeext
20816 eval "$as_ac_var=yes"
20818 $as_echo "$as_me: failed program was
:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 eval "$as_ac_var=no
"
20824 rm -rf conftest.dSYM
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20828 ac_res=`eval 'as_val=${'$as_ac_var'}
20829 $as_echo "$as_val"'`
20830 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20831 $as_echo "$ac_res" >&6; }
20832 if test `eval 'as_val=${'$as_ac_var'}
20833 $as_echo "$as_val"'` = yes; then
20834 cat >>confdefs.h <<_ACEOF
20835 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20842 # Check this now, so that we will NOT find the above functions in ncurses.
20843 # That is because we have not set up to link ncurses in lib-src.
20844 # It's better to believe a function is not available
20845 # than to expect to find it in ncurses.
20847 { $as_echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20848 $as_echo_n "checking
for tparm
in -lncurses...
" >&6; }
20849 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20850 $as_echo_n "(cached
) " >&6
20852 ac_check_lib_save_LIBS=$LIBS
20853 LIBS="-lncurses $LIBS"
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20861 /* Override any GCC internal prototype to avoid an error.
20862 Use char because int might match the return type of a GCC
20863 builtin and then its argument prototype would still apply. */
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (ac_try="$ac_link"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20883 $as_echo "$ac_try_echo") >&5
20884 (eval "$ac_link") 2>conftest.er1
20886 grep -v '^ *+' conftest.er1 >conftest.err
20888 cat conftest.err >&5
20889 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20890 (exit $ac_status); } && {
20891 test -z "$ac_c_werror_flag" ||
20892 test ! -s conftest.err
20893 } && test -s conftest$ac_exeext && {
20894 test "$cross_compiling" = yes ||
20895 $as_test_x conftest$ac_exeext
20897 ac_cv_lib_ncurses_tparm=yes
20899 $as_echo "$as_me: failed program was
:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_cv_lib_ncurses_tparm=no
20905 rm -rf conftest.dSYM
20906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20907 conftest$ac_exeext conftest.$ac_ext
20908 LIBS=$ac_check_lib_save_LIBS
20910 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20911 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20912 if test $ac_cv_lib_ncurses_tparm = yes; then
20913 cat >>confdefs.h <<_ACEOF
20914 #define HAVE_LIBNCURSES 1
20917 LIBS="-lncurses $LIBS"
20922 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20925 cat >conftest.$ac_ext <<_ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 #include <netinet/in.h>
20932 #include <arpa/nameser.h>
20933 #include <resolv.h>
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20949 $as_echo "$ac_try_echo") >&5
20950 (eval "$ac_link") 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest$ac_exeext && {
20960 test "$cross_compiling" = yes ||
20961 $as_test_x conftest$ac_exeext
20965 $as_echo "$as_me: failed program was
:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20971 rm -rf conftest.dSYM
20972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20973 conftest$ac_exeext conftest.$ac_ext
20974 if test "$have_res_init" = no; then
20976 LIBS="$LIBS -lresolv"
20977 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20978 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 #include <netinet/in.h>
20986 #include <arpa/nameser.h>
20987 #include <resolv.h>
20996 rm -f conftest.$ac_objext conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21003 $as_echo "$ac_try_echo") >&5
21004 (eval "$ac_link") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest$ac_exeext && {
21014 test "$cross_compiling" = yes ||
21015 $as_test_x conftest$ac_exeext
21019 $as_echo "$as_me: failed program was
:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21025 rm -rf conftest.dSYM
21026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21027 conftest$ac_exeext conftest.$ac_ext
21028 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21029 $as_echo "$have_res_init" >&6; }
21030 if test "$have_res_init" = yes ; then
21036 if test "$have_res_init" = yes; then
21038 cat >>confdefs.h <<\_ACEOF
21039 #define HAVE_RES_INIT 1
21044 # Do we need the Hesiod library to provide the support routines?
21045 if test "$with_hesiod" != no ; then
21046 # Don't set $LIBS here -- see comments above.
21047 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21048 $as_echo_n "checking
for res_send...
" >&6; }
21049 if test "${ac_cv_func_res_send+set}" = set; then
21050 $as_echo_n "(cached
) " >&6
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21060 #define res_send innocuous_res_send
21062 /* System header to define __stub macros and hopefully few prototypes,
21063 which can conflict with char res_send (); below.
21064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21065 <limits.h> exists even on freestanding compilers. */
21068 # include <limits.h>
21070 # include <assert.h>
21075 /* Override any GCC internal prototype to avoid an error.
21076 Use char because int might match the return type of a GCC
21077 builtin and then its argument prototype would still apply. */
21082 /* The GNU C library defines this for functions which it implements
21083 to always fail with ENOSYS. Some functions are actually named
21084 something starting with __ and the normal name is an alias. */
21085 #if defined __stub_res_send || defined __stub___res_send
21092 return res_send ();
21097 rm -f conftest.$ac_objext conftest$ac_exeext
21098 if { (ac_try="$ac_link"
21099 case "(($ac_try" in
21100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101 *) ac_try_echo=$ac_try;;
21103 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21104 $as_echo "$ac_try_echo") >&5
21105 (eval "$ac_link") 2>conftest.er1
21107 grep -v '^ *+' conftest.er1 >conftest.err
21109 cat conftest.err >&5
21110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21111 (exit $ac_status); } && {
21112 test -z "$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 } && test -s conftest$ac_exeext && {
21115 test "$cross_compiling" = yes ||
21116 $as_test_x conftest$ac_exeext
21118 ac_cv_func_res_send=yes
21120 $as_echo "$as_me: failed program was
:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_cv_func_res_send=no
21126 rm -rf conftest.dSYM
21127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21128 conftest$ac_exeext conftest.$ac_ext
21130 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21131 $as_echo "$ac_cv_func_res_send" >&6; }
21132 if test $ac_cv_func_res_send = yes; then
21135 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21136 $as_echo_n "checking
for __res_send...
" >&6; }
21137 if test "${ac_cv_func___res_send+set}" = set; then
21138 $as_echo_n "(cached
) " >&6
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21148 #define __res_send innocuous___res_send
21150 /* System header to define __stub macros and hopefully few prototypes,
21151 which can conflict with char __res_send (); below.
21152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21153 <limits.h> exists even on freestanding compilers. */
21156 # include <limits.h>
21158 # include <assert.h>
21163 /* Override any GCC internal prototype to avoid an error.
21164 Use char because int might match the return type of a GCC
21165 builtin and then its argument prototype would still apply. */
21169 char __res_send ();
21170 /* The GNU C library defines this for functions which it implements
21171 to always fail with ENOSYS. Some functions are actually named
21172 something starting with __ and the normal name is an alias. */
21173 #if defined __stub___res_send || defined __stub_____res_send
21180 return __res_send ();
21185 rm -f conftest.$ac_objext conftest$ac_exeext
21186 if { (ac_try="$ac_link"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21191 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21192 $as_echo "$ac_try_echo") >&5
21193 (eval "$ac_link") 2>conftest.er1
21195 grep -v '^ *+' conftest.er1 >conftest.err
21197 cat conftest.err >&5
21198 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest$ac_exeext && {
21203 test "$cross_compiling" = yes ||
21204 $as_test_x conftest$ac_exeext
21206 ac_cv_func___res_send=yes
21208 $as_echo "$as_me: failed program was
:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_cv_func___res_send=no
21214 rm -rf conftest.dSYM
21215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21216 conftest$ac_exeext conftest.$ac_ext
21218 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21219 $as_echo "$ac_cv_func___res_send" >&6; }
21220 if test $ac_cv_func___res_send = yes; then
21223 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21224 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21225 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21226 $as_echo_n "(cached
) " >&6
21228 ac_check_lib_save_LIBS=$LIBS
21229 LIBS="-lresolv $LIBS"
21230 cat >conftest.$ac_ext <<_ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21237 /* Override any GCC internal prototype to avoid an error.
21238 Use char because int might match the return type of a GCC
21239 builtin and then its argument prototype would still apply. */
21247 return res_send ();
21252 rm -f conftest.$ac_objext conftest$ac_exeext
21253 if { (ac_try="$ac_link"
21254 case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21258 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21259 $as_echo "$ac_try_echo") >&5
21260 (eval "$ac_link") 2>conftest.er1
21262 grep -v '^ *+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest$ac_exeext && {
21270 test "$cross_compiling" = yes ||
21271 $as_test_x conftest$ac_exeext
21273 ac_cv_lib_resolv_res_send=yes
21275 $as_echo "$as_me: failed program was
:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_cv_lib_resolv_res_send=no
21281 rm -rf conftest.dSYM
21282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21283 conftest$ac_exeext conftest.$ac_ext
21284 LIBS=$ac_check_lib_save_LIBS
21286 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21287 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21288 if test $ac_cv_lib_resolv_res_send = yes; then
21291 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21292 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21293 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21294 $as_echo_n "(cached
) " >&6
21296 ac_check_lib_save_LIBS=$LIBS
21297 LIBS="-lresolv $LIBS"
21298 cat >conftest.$ac_ext <<_ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h. */
21305 /* Override any GCC internal prototype to avoid an error.
21306 Use char because int might match the return type of a GCC
21307 builtin and then its argument prototype would still apply. */
21311 char __res_send ();
21315 return __res_send ();
21320 rm -f conftest.$ac_objext conftest$ac_exeext
21321 if { (ac_try="$ac_link"
21322 case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21326 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21327 $as_echo "$ac_try_echo") >&5
21328 (eval "$ac_link") 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest$ac_exeext && {
21338 test "$cross_compiling" = yes ||
21339 $as_test_x conftest$ac_exeext
21341 ac_cv_lib_resolv___res_send=yes
21343 $as_echo "$as_me: failed program was
:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_cv_lib_resolv___res_send=no
21349 rm -rf conftest.dSYM
21350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21351 conftest$ac_exeext conftest.$ac_ext
21352 LIBS=$ac_check_lib_save_LIBS
21354 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21355 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21356 if test $ac_cv_lib_resolv___res_send = yes; then
21366 if test "$resolv" = yes ; then
21371 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21372 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21373 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21374 $as_echo_n "(cached
) " >&6
21376 cat >conftest.$ac_ext <<_ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21382 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21384 #define hes_getmailhost innocuous_hes_getmailhost
21386 /* System header to define __stub macros and hopefully few prototypes,
21387 which can conflict with char hes_getmailhost (); below.
21388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21389 <limits.h> exists even on freestanding compilers. */
21392 # include <limits.h>
21394 # include <assert.h>
21397 #undef hes_getmailhost
21399 /* Override any GCC internal prototype to avoid an error.
21400 Use char because int might match the return type of a GCC
21401 builtin and then its argument prototype would still apply. */
21405 char hes_getmailhost ();
21406 /* The GNU C library defines this for functions which it implements
21407 to always fail with ENOSYS. Some functions are actually named
21408 something starting with __ and the normal name is an alias. */
21409 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21416 return hes_getmailhost ();
21421 rm -f conftest.$ac_objext conftest$ac_exeext
21422 if { (ac_try="$ac_link"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21428 $as_echo "$ac_try_echo") >&5
21429 (eval "$ac_link") 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21435 (exit $ac_status); } && {
21436 test -z "$ac_c_werror_flag" ||
21437 test ! -s conftest.err
21438 } && test -s conftest$ac_exeext && {
21439 test "$cross_compiling" = yes ||
21440 $as_test_x conftest$ac_exeext
21442 ac_cv_func_hes_getmailhost=yes
21444 $as_echo "$as_me: failed program was
:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_cv_func_hes_getmailhost=no
21450 rm -rf conftest.dSYM
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452 conftest$ac_exeext conftest.$ac_ext
21454 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21455 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21456 if test $ac_cv_func_hes_getmailhost = yes; then
21459 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21460 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21461 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21462 $as_echo_n "(cached
) " >&6
21464 ac_check_lib_save_LIBS=$LIBS
21465 LIBS="-lhesiod $RESOLVLIB $LIBS"
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21473 /* Override any GCC internal prototype to avoid an error.
21474 Use char because int might match the return type of a GCC
21475 builtin and then its argument prototype would still apply. */
21479 char hes_getmailhost ();
21483 return hes_getmailhost ();
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21495 $as_echo "$ac_try_echo") >&5
21496 (eval "$ac_link") 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest$ac_exeext && {
21506 test "$cross_compiling" = yes ||
21507 $as_test_x conftest$ac_exeext
21509 ac_cv_lib_hesiod_hes_getmailhost=yes
21511 $as_echo "$as_me: failed program was
:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 ac_cv_lib_hesiod_hes_getmailhost=no
21517 rm -rf conftest.dSYM
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519 conftest$ac_exeext conftest.$ac_ext
21520 LIBS=$ac_check_lib_save_LIBS
21522 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21523 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21524 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21526 cat >>confdefs.h <<\_ACEOF
21527 #define HAVE_LIBHESIOD 1
21538 # Do we need libresolv (due to res_init or Hesiod)?
21539 if test "$resolv" = yes ; then
21541 cat >>confdefs.h <<\_ACEOF
21542 #define HAVE_LIBRESOLV 1
21547 # These tell us which Kerberos-related libraries to use.
21548 if test "${with_kerberos}" != no; then
21550 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21551 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21552 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21553 $as_echo_n "(cached
) " >&6
21555 ac_check_lib_save_LIBS=$LIBS
21556 LIBS="-lcom_err $LIBS"
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (ac_try="$ac_link"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21585 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21586 $as_echo "$ac_try_echo") >&5
21587 (eval "$ac_link") 2>conftest.er1
21589 grep -v '^ *+' conftest.er1 >conftest.err
21591 cat conftest.err >&5
21592 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest$ac_exeext && {
21597 test "$cross_compiling" = yes ||
21598 $as_test_x conftest$ac_exeext
21600 ac_cv_lib_com_err_com_err=yes
21602 $as_echo "$as_me: failed program was
:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_cv_lib_com_err_com_err=no
21608 rm -rf conftest.dSYM
21609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21610 conftest$ac_exeext conftest.$ac_ext
21611 LIBS=$ac_check_lib_save_LIBS
21613 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21614 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21615 if test $ac_cv_lib_com_err_com_err = yes; then
21616 cat >>confdefs.h <<_ACEOF
21617 #define HAVE_LIBCOM_ERR 1
21620 LIBS="-lcom_err $LIBS"
21625 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21626 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
21627 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21628 $as_echo_n "(cached
) " >&6
21630 ac_check_lib_save_LIBS=$LIBS
21631 LIBS="-lk5crypto $LIBS"
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 /* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21645 char mit_des_cbc_encrypt ();
21649 return mit_des_cbc_encrypt ();
21654 rm -f conftest.$ac_objext conftest$ac_exeext
21655 if { (ac_try="$ac_link"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21660 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21661 $as_echo "$ac_try_echo") >&5
21662 (eval "$ac_link") 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21668 (exit $ac_status); } && {
21669 test -z "$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 } && test -s conftest$ac_exeext && {
21672 test "$cross_compiling" = yes ||
21673 $as_test_x conftest$ac_exeext
21675 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21677 $as_echo "$as_me: failed program was
:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21683 rm -rf conftest.dSYM
21684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21685 conftest$ac_exeext conftest.$ac_ext
21686 LIBS=$ac_check_lib_save_LIBS
21688 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21689 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21690 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21691 cat >>confdefs.h <<_ACEOF
21692 #define HAVE_LIBK5CRYPTO 1
21695 LIBS="-lk5crypto $LIBS"
21700 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21701 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21702 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21703 $as_echo_n "(cached
) " >&6
21705 ac_check_lib_save_LIBS=$LIBS
21706 LIBS="-lcrypto $LIBS"
21707 cat >conftest.$ac_ext <<_ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21714 /* Override any GCC internal prototype to avoid an error.
21715 Use char because int might match the return type of a GCC
21716 builtin and then its argument prototype would still apply. */
21720 char mit_des_cbc_encrypt ();
21724 return mit_des_cbc_encrypt ();
21729 rm -f conftest.$ac_objext conftest$ac_exeext
21730 if { (ac_try="$ac_link"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21736 $as_echo "$ac_try_echo") >&5
21737 (eval "$ac_link") 2>conftest.er1
21739 grep -v '^ *+' conftest.er1 >conftest.err
21741 cat conftest.err >&5
21742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21743 (exit $ac_status); } && {
21744 test -z "$ac_c_werror_flag" ||
21745 test ! -s conftest.err
21746 } && test -s conftest$ac_exeext && {
21747 test "$cross_compiling" = yes ||
21748 $as_test_x conftest$ac_exeext
21750 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21752 $as_echo "$as_me: failed program was
:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21758 rm -rf conftest.dSYM
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760 conftest$ac_exeext conftest.$ac_ext
21761 LIBS=$ac_check_lib_save_LIBS
21763 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21764 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21765 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21766 cat >>confdefs.h <<_ACEOF
21767 #define HAVE_LIBCRYPTO 1
21770 LIBS="-lcrypto $LIBS"
21775 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
21776 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
21777 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21778 $as_echo_n "(cached
) " >&6
21780 ac_check_lib_save_LIBS=$LIBS
21781 LIBS="-lkrb5 $LIBS"
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21789 /* Override any GCC internal prototype to avoid an error.
21790 Use char because int might match the return type of a GCC
21791 builtin and then its argument prototype would still apply. */
21795 char krb5_init_context ();
21799 return krb5_init_context ();
21804 rm -f conftest.$ac_objext conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21810 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21811 $as_echo "$ac_try_echo") >&5
21812 (eval "$ac_link") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest$ac_exeext && {
21822 test "$cross_compiling" = yes ||
21823 $as_test_x conftest$ac_exeext
21825 ac_cv_lib_krb5_krb5_init_context=yes
21827 $as_echo "$as_me: failed program was
:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21830 ac_cv_lib_krb5_krb5_init_context=no
21833 rm -rf conftest.dSYM
21834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21835 conftest$ac_exeext conftest.$ac_ext
21836 LIBS=$ac_check_lib_save_LIBS
21838 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
21839 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21840 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21841 cat >>confdefs.h <<_ACEOF
21842 #define HAVE_LIBKRB5 1
21845 LIBS="-lkrb5 $LIBS"
21849 if test "${with_kerberos5}" = no; then
21851 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
21852 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
21853 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21854 $as_echo_n "(cached
) " >&6
21856 ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-ldes425 $LIBS"
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21865 /* Override any GCC internal prototype to avoid an error.
21866 Use char because int might match the return type of a GCC
21867 builtin and then its argument prototype would still apply. */
21871 char des_cbc_encrypt ();
21875 return des_cbc_encrypt ();
21880 rm -f conftest.$ac_objext conftest$ac_exeext
21881 if { (ac_try="$ac_link"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21886 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21887 $as_echo "$ac_try_echo") >&5
21888 (eval "$ac_link") 2>conftest.er1
21890 grep -v '^ *+' conftest.er1 >conftest.err
21892 cat conftest.err >&5
21893 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21894 (exit $ac_status); } && {
21895 test -z "$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 } && test -s conftest$ac_exeext && {
21898 test "$cross_compiling" = yes ||
21899 $as_test_x conftest$ac_exeext
21901 ac_cv_lib_des425_des_cbc_encrypt=yes
21903 $as_echo "$as_me: failed program was
:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ac_cv_lib_des425_des_cbc_encrypt=no
21909 rm -rf conftest.dSYM
21910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21911 conftest$ac_exeext conftest.$ac_ext
21912 LIBS=$ac_check_lib_save_LIBS
21914 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21915 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21916 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21917 cat >>confdefs.h <<_ACEOF
21918 #define HAVE_LIBDES425 1
21921 LIBS="-ldes425 $LIBS"
21925 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21926 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
21927 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21928 $as_echo_n "(cached
) " >&6
21930 ac_check_lib_save_LIBS=$LIBS
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21939 /* Override any GCC internal prototype to avoid an error.
21940 Use char because int might match the return type of a GCC
21941 builtin and then its argument prototype would still apply. */
21945 char des_cbc_encrypt ();
21949 return des_cbc_encrypt ();
21954 rm -f conftest.$ac_objext conftest$ac_exeext
21955 if { (ac_try="$ac_link"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21960 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21961 $as_echo "$ac_try_echo") >&5
21962 (eval "$ac_link") 2>conftest.er1
21964 grep -v '^ *+' conftest.er1 >conftest.err
21966 cat conftest.err >&5
21967 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21968 (exit $ac_status); } && {
21969 test -z "$ac_c_werror_flag" ||
21970 test ! -s conftest.err
21971 } && test -s conftest$ac_exeext && {
21972 test "$cross_compiling" = yes ||
21973 $as_test_x conftest$ac_exeext
21975 ac_cv_lib_des_des_cbc_encrypt=yes
21977 $as_echo "$as_me: failed program was
:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_cv_lib_des_des_cbc_encrypt=no
21983 rm -rf conftest.dSYM
21984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21985 conftest$ac_exeext conftest.$ac_ext
21986 LIBS=$ac_check_lib_save_LIBS
21988 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
21989 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21990 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21991 cat >>confdefs.h <<_ACEOF
21992 #define HAVE_LIBDES 1
22002 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22003 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22004 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22005 $as_echo_n "(cached
) " >&6
22007 ac_check_lib_save_LIBS=$LIBS
22008 LIBS="-lkrb4 $LIBS"
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 /* Override any GCC internal prototype to avoid an error.
22017 Use char because int might match the return type of a GCC
22018 builtin and then its argument prototype would still apply. */
22022 char krb_get_cred ();
22026 return krb_get_cred ();
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22038 $as_echo "$ac_try_echo") >&5
22039 (eval "$ac_link") 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest$ac_exeext && {
22049 test "$cross_compiling" = yes ||
22050 $as_test_x conftest$ac_exeext
22052 ac_cv_lib_krb4_krb_get_cred=yes
22054 $as_echo "$as_me: failed program was
:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22057 ac_cv_lib_krb4_krb_get_cred=no
22060 rm -rf conftest.dSYM
22061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22062 conftest$ac_exeext conftest.$ac_ext
22063 LIBS=$ac_check_lib_save_LIBS
22065 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22066 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22067 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22068 cat >>confdefs.h <<_ACEOF
22069 #define HAVE_LIBKRB4 1
22072 LIBS="-lkrb4 $LIBS"
22076 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22077 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22078 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22079 $as_echo_n "(cached
) " >&6
22081 ac_check_lib_save_LIBS=$LIBS
22083 cat >conftest.$ac_ext <<_ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22090 /* Override any GCC internal prototype to avoid an error.
22091 Use char because int might match the return type of a GCC
22092 builtin and then its argument prototype would still apply. */
22096 char krb_get_cred ();
22100 return krb_get_cred ();
22105 rm -f conftest.$ac_objext conftest$ac_exeext
22106 if { (ac_try="$ac_link"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22112 $as_echo "$ac_try_echo") >&5
22113 (eval "$ac_link") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest$ac_exeext && {
22123 test "$cross_compiling" = yes ||
22124 $as_test_x conftest$ac_exeext
22126 ac_cv_lib_krb_krb_get_cred=yes
22128 $as_echo "$as_me: failed program was
:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 ac_cv_lib_krb_krb_get_cred=no
22134 rm -rf conftest.dSYM
22135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22136 conftest$ac_exeext conftest.$ac_ext
22137 LIBS=$ac_check_lib_save_LIBS
22139 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22140 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22141 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143 #define HAVE_LIBKRB 1
22154 if test "${with_kerberos5}" != no; then
22156 for ac_header in krb5.h
22158 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22159 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22160 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22161 $as_echo_n "checking
for $ac_header...
" >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22163 $as_echo_n "(cached
) " >&6
22165 ac_res=`eval 'as_val=${'$as_ac_Header'}
22166 $as_echo "$as_val"'`
22167 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22168 $as_echo "$ac_res" >&6; }
22170 # Is the header compilable?
22171 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22172 $as_echo_n "checking
$ac_header usability...
" >&6; }
22173 cat >conftest.$ac_ext <<_ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 $ac_includes_default
22180 #include <$ac_header>
22182 rm -f conftest.$ac_objext
22183 if { (ac_try="$ac_compile"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22189 $as_echo "$ac_try_echo") >&5
22190 (eval "$ac_compile") 2>conftest.er1
22192 grep -v '^ *+' conftest.er1 >conftest.err
22194 cat conftest.err >&5
22195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22196 (exit $ac_status); } && {
22197 test -z "$ac_c_werror_flag" ||
22198 test ! -s conftest.err
22199 } && test -s conftest.$ac_objext; then
22200 ac_header_compiler=yes
22202 $as_echo "$as_me: failed program was
:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ac_header_compiler=no
22208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22209 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22210 $as_echo "$ac_header_compiler" >&6; }
22212 # Is the header present?
22213 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22214 $as_echo_n "checking
$ac_header presence...
" >&6; }
22215 cat >conftest.$ac_ext <<_ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 #include <$ac_header>
22223 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22224 case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22228 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22229 $as_echo "$ac_try_echo") >&5
22230 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22232 grep -v '^ *+' conftest.er1 >conftest.err
22234 cat conftest.err >&5
22235 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22236 (exit $ac_status); } >/dev/null && {
22237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22240 ac_header_preproc=yes
22242 $as_echo "$as_me: failed program was
:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_header_preproc=no
22248 rm -f conftest.err conftest.$ac_ext
22249 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22250 $as_echo "$ac_header_preproc" >&6; }
22252 # So? What about this header?
22253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22255 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22256 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22257 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22259 ac_header_preproc=yes
22262 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22263 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22264 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22265 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22266 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22267 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22268 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22269 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22270 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22272 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22273 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22277 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22278 $as_echo_n "checking
for $ac_header...
" >&6; }
22279 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22280 $as_echo_n "(cached
) " >&6
22282 eval "$as_ac_Header=\
$ac_header_preproc"
22284 ac_res=`eval 'as_val=${'$as_ac_Header'}
22285 $as_echo "$as_val"'`
22286 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22287 $as_echo "$ac_res" >&6; }
22290 if test `eval 'as_val=${'$as_ac_Header'}
22291 $as_echo "$as_val"'` = yes; then
22292 cat >>confdefs.h <<_ACEOF
22293 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22295 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22296 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22297 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22298 $as_echo_n "(cached
) " >&6
22300 cat >conftest.$ac_ext <<_ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22311 static krb5_error ac_aggr;
22318 rm -f conftest.$ac_objext
22319 if { (ac_try="$ac_compile"
22320 case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22325 $as_echo "$ac_try_echo") >&5
22326 (eval "$ac_compile") 2>conftest.er1
22328 grep -v '^ *+' conftest.er1 >conftest.err
22330 cat conftest.err >&5
22331 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22332 (exit $ac_status); } && {
22333 test -z "$ac_c_werror_flag" ||
22334 test ! -s conftest.err
22335 } && test -s conftest.$ac_objext; then
22336 ac_cv_member_krb5_error_text=yes
22338 $as_echo "$as_me: failed program was
:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22352 static krb5_error ac_aggr;
22353 if (sizeof ac_aggr.text)
22359 rm -f conftest.$ac_objext
22360 if { (ac_try="$ac_compile"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22366 $as_echo "$ac_try_echo") >&5
22367 (eval "$ac_compile") 2>conftest.er1
22369 grep -v '^ *+' conftest.er1 >conftest.err
22371 cat conftest.err >&5
22372 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22373 (exit $ac_status); } && {
22374 test -z "$ac_c_werror_flag" ||
22375 test ! -s conftest.err
22376 } && test -s conftest.$ac_objext; then
22377 ac_cv_member_krb5_error_text=yes
22379 $as_echo "$as_me: failed program was
:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ac_cv_member_krb5_error_text=no
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22391 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22392 if test $ac_cv_member_krb5_error_text = yes; then
22394 cat >>confdefs.h <<_ACEOF
22395 #define HAVE_KRB5_ERROR_TEXT 1
22400 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22401 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22402 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22403 $as_echo_n "(cached
) " >&6
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22416 static krb5_error ac_aggr;
22417 if (ac_aggr.e_text)
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22429 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22430 $as_echo "$ac_try_echo") >&5
22431 (eval "$ac_compile") 2>conftest.er1
22433 grep -v '^ *+' conftest.er1 >conftest.err
22435 cat conftest.err >&5
22436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22437 (exit $ac_status); } && {
22438 test -z "$ac_c_werror_flag" ||
22439 test ! -s conftest.err
22440 } && test -s conftest.$ac_objext; then
22441 ac_cv_member_krb5_error_e_text=yes
22443 $as_echo "$as_me: failed program was
:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 cat >conftest.$ac_ext <<_ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22457 static krb5_error ac_aggr;
22458 if (sizeof ac_aggr.e_text)
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22471 $as_echo "$ac_try_echo") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 ac_cv_member_krb5_error_e_text=yes
22484 $as_echo "$as_me: failed program was
:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_cv_member_krb5_error_e_text=no
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22496 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22497 if test $ac_cv_member_krb5_error_e_text = yes; then
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_KRB5_ERROR_E_TEXT 1
22512 for ac_header in des.h
22514 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22515 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22516 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22517 $as_echo_n "checking
for $ac_header...
" >&6; }
22518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22519 $as_echo_n "(cached
) " >&6
22521 ac_res=`eval 'as_val=${'$as_ac_Header'}
22522 $as_echo "$as_val"'`
22523 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22524 $as_echo "$ac_res" >&6; }
22526 # Is the header compilable?
22527 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22528 $as_echo_n "checking
$ac_header usability...
" >&6; }
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 $ac_includes_default
22536 #include <$ac_header>
22538 rm -f conftest.$ac_objext
22539 if { (ac_try="$ac_compile"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22544 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22545 $as_echo "$ac_try_echo") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_header_compiler=yes
22558 $as_echo "$as_me: failed program was
:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_header_compiler=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22566 $as_echo "$ac_header_compiler" >&6; }
22568 # Is the header present?
22569 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22570 $as_echo_n "checking
$ac_header presence...
" >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 #include <$ac_header>
22579 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22580 case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22584 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22585 $as_echo "$ac_try_echo") >&5
22586 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22588 grep -v '^ *+' conftest.er1 >conftest.err
22590 cat conftest.err >&5
22591 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22592 (exit $ac_status); } >/dev/null && {
22593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22594 test ! -s conftest.err
22596 ac_header_preproc=yes
22598 $as_echo "$as_me: failed program was
:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22601 ac_header_preproc=no
22604 rm -f conftest.err conftest.$ac_ext
22605 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22606 $as_echo "$ac_header_preproc" >&6; }
22608 # So? What about this header?
22609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22611 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22612 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22613 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22615 ac_header_preproc=yes
22618 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22619 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22620 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22621 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22622 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22623 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22624 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22625 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22626 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22628 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22629 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22633 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22634 $as_echo_n "checking
for $ac_header...
" >&6; }
22635 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22636 $as_echo_n "(cached
) " >&6
22638 eval "$as_ac_Header=\
$ac_header_preproc"
22640 ac_res=`eval 'as_val=${'$as_ac_Header'}
22641 $as_echo "$as_val"'`
22642 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22643 $as_echo "$ac_res" >&6; }
22646 if test `eval 'as_val=${'$as_ac_Header'}
22647 $as_echo "$as_val"'` = yes; then
22648 cat >>confdefs.h <<_ACEOF
22649 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22654 for ac_header in kerberosIV/des.h
22656 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22658 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22659 $as_echo_n "checking
for $ac_header...
" >&6; }
22660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22661 $as_echo_n "(cached
) " >&6
22663 ac_res=`eval 'as_val=${'$as_ac_Header'}
22664 $as_echo "$as_val"'`
22665 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22666 $as_echo "$ac_res" >&6; }
22668 # Is the header compilable?
22669 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22670 $as_echo_n "checking
$ac_header usability...
" >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 #include <$ac_header>
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22686 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22687 $as_echo "$ac_try_echo") >&5
22688 (eval "$ac_compile") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest.$ac_objext; then
22698 ac_header_compiler=yes
22700 $as_echo "$as_me: failed program was
:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22703 ac_header_compiler=no
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22708 $as_echo "$ac_header_compiler" >&6; }
22710 # Is the header present?
22711 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22712 $as_echo_n "checking
$ac_header presence...
" >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <$ac_header>
22721 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22722 case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22726 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22727 $as_echo "$ac_try_echo") >&5
22728 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22730 grep -v '^ *+' conftest.er1 >conftest.err
22732 cat conftest.err >&5
22733 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22734 (exit $ac_status); } >/dev/null && {
22735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22738 ac_header_preproc=yes
22740 $as_echo "$as_me: failed program was
:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22743 ac_header_preproc=no
22746 rm -f conftest.err conftest.$ac_ext
22747 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22748 $as_echo "$ac_header_preproc" >&6; }
22750 # So? What about this header?
22751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22753 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22754 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22755 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22757 ac_header_preproc=yes
22760 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22761 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22762 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22763 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22764 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22765 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22766 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22767 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22768 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22770 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22771 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22775 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22776 $as_echo_n "checking
for $ac_header...
" >&6; }
22777 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22778 $as_echo_n "(cached
) " >&6
22780 eval "$as_ac_Header=\
$ac_header_preproc"
22782 ac_res=`eval 'as_val=${'$as_ac_Header'}
22783 $as_echo "$as_val"'`
22784 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22785 $as_echo "$ac_res" >&6; }
22788 if test `eval 'as_val=${'$as_ac_Header'}
22789 $as_echo "$as_val"'` = yes; then
22790 cat >>confdefs.h <<_ACEOF
22791 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22796 for ac_header in kerberos/des.h
22798 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22799 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22800 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22801 $as_echo_n "checking
for $ac_header...
" >&6; }
22802 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22803 $as_echo_n "(cached
) " >&6
22805 ac_res=`eval 'as_val=${'$as_ac_Header'}
22806 $as_echo "$as_val"'`
22807 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22808 $as_echo "$ac_res" >&6; }
22810 # Is the header compilable?
22811 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22812 $as_echo_n "checking
$ac_header usability...
" >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 $ac_includes_default
22820 #include <$ac_header>
22822 rm -f conftest.$ac_objext
22823 if { (ac_try="$ac_compile"
22824 case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22828 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22829 $as_echo "$ac_try_echo") >&5
22830 (eval "$ac_compile") 2>conftest.er1
22832 grep -v '^ *+' conftest.er1 >conftest.err
22834 cat conftest.err >&5
22835 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22836 (exit $ac_status); } && {
22837 test -z "$ac_c_werror_flag" ||
22838 test ! -s conftest.err
22839 } && test -s conftest.$ac_objext; then
22840 ac_header_compiler=yes
22842 $as_echo "$as_me: failed program was
:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_header_compiler=no
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22850 $as_echo "$ac_header_compiler" >&6; }
22852 # Is the header present?
22853 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22854 $as_echo_n "checking
$ac_header presence...
" >&6; }
22855 cat >conftest.$ac_ext <<_ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 #include <$ac_header>
22863 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22864 case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22868 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22869 $as_echo "$ac_try_echo") >&5
22870 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22872 grep -v '^ *+' conftest.er1 >conftest.err
22874 cat conftest.err >&5
22875 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22876 (exit $ac_status); } >/dev/null && {
22877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22878 test ! -s conftest.err
22880 ac_header_preproc=yes
22882 $as_echo "$as_me: failed program was
:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22885 ac_header_preproc=no
22888 rm -f conftest.err conftest.$ac_ext
22889 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22890 $as_echo "$ac_header_preproc" >&6; }
22892 # So? What about this header?
22893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22895 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22896 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22897 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22899 ac_header_preproc=yes
22902 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22903 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22904 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22905 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22906 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22907 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22908 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22909 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22910 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22912 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22913 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22917 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22918 $as_echo_n "checking
for $ac_header...
" >&6; }
22919 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22920 $as_echo_n "(cached
) " >&6
22922 eval "$as_ac_Header=\
$ac_header_preproc"
22924 ac_res=`eval 'as_val=${'$as_ac_Header'}
22925 $as_echo "$as_val"'`
22926 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22927 $as_echo "$ac_res" >&6; }
22930 if test `eval 'as_val=${'$as_ac_Header'}
22931 $as_echo "$as_val"'` = yes; then
22932 cat >>confdefs.h <<_ACEOF
22933 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22949 for ac_header in krb.h
22951 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22952 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22953 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22954 $as_echo_n "checking
for $ac_header...
" >&6; }
22955 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22956 $as_echo_n "(cached
) " >&6
22958 ac_res=`eval 'as_val=${'$as_ac_Header'}
22959 $as_echo "$as_val"'`
22960 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22961 $as_echo "$ac_res" >&6; }
22963 # Is the header compilable?
22964 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22965 $as_echo_n "checking
$ac_header usability...
" >&6; }
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 $ac_includes_default
22973 #include <$ac_header>
22975 rm -f conftest.$ac_objext
22976 if { (ac_try="$ac_compile"
22977 case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22981 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22982 $as_echo "$ac_try_echo") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22995 $as_echo "$as_me: failed program was
:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23003 $as_echo "$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23007 $as_echo_n "checking
$ac_header presence...
" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <$ac_header>
23016 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23022 $as_echo "$ac_try_echo") >&5
23023 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23025 grep -v '^ *+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23029 (exit $ac_status); } >/dev/null && {
23030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23031 test ! -s conftest.err
23033 ac_header_preproc=yes
23035 $as_echo "$as_me: failed program was
:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23038 ac_header_preproc=no
23041 rm -f conftest.err conftest.$ac_ext
23042 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23043 $as_echo "$ac_header_preproc" >&6; }
23045 # So? What about this header?
23046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23048 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23049 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23050 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23051 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23052 ac_header_preproc=yes
23055 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23056 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23057 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23058 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23059 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23060 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23061 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23062 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23063 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23066 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23070 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23071 $as_echo_n "checking
for $ac_header...
" >&6; }
23072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23073 $as_echo_n "(cached
) " >&6
23075 eval "$as_ac_Header=\
$ac_header_preproc"
23077 ac_res=`eval 'as_val=${'$as_ac_Header'}
23078 $as_echo "$as_val"'`
23079 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23080 $as_echo "$ac_res" >&6; }
23083 if test `eval 'as_val=${'$as_ac_Header'}
23084 $as_echo "$as_val"'` = yes; then
23085 cat >>confdefs.h <<_ACEOF
23086 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23091 for ac_header in kerberosIV/krb.h
23093 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23094 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23095 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23096 $as_echo_n "checking
for $ac_header...
" >&6; }
23097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23098 $as_echo_n "(cached
) " >&6
23100 ac_res=`eval 'as_val=${'$as_ac_Header'}
23101 $as_echo "$as_val"'`
23102 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23103 $as_echo "$ac_res" >&6; }
23105 # Is the header compilable?
23106 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23107 $as_echo_n "checking
$ac_header usability...
" >&6; }
23108 cat >conftest.$ac_ext <<_ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h. */
23114 $ac_includes_default
23115 #include <$ac_header>
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23124 $as_echo "$ac_try_echo") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 ac_header_compiler=yes
23137 $as_echo "$as_me: failed program was
:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_header_compiler=no
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23145 $as_echo "$ac_header_compiler" >&6; }
23147 # Is the header present?
23148 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23149 $as_echo_n "checking
$ac_header presence...
" >&6; }
23150 cat >conftest.$ac_ext <<_ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23156 #include <$ac_header>
23158 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23163 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23164 $as_echo "$ac_try_echo") >&5
23165 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23167 grep -v '^ *+' conftest.er1 >conftest.err
23169 cat conftest.err >&5
23170 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23171 (exit $ac_status); } >/dev/null && {
23172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23175 ac_header_preproc=yes
23177 $as_echo "$as_me: failed program was
:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_header_preproc=no
23183 rm -f conftest.err conftest.$ac_ext
23184 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23185 $as_echo "$ac_header_preproc" >&6; }
23187 # So? What about this header?
23188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23190 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23191 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23194 ac_header_preproc=yes
23197 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23198 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23200 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23201 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23202 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23204 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23207 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23208 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23212 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23213 $as_echo_n "checking
for $ac_header...
" >&6; }
23214 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23215 $as_echo_n "(cached
) " >&6
23217 eval "$as_ac_Header=\
$ac_header_preproc"
23219 ac_res=`eval 'as_val=${'$as_ac_Header'}
23220 $as_echo "$as_val"'`
23221 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23222 $as_echo "$ac_res" >&6; }
23225 if test `eval 'as_val=${'$as_ac_Header'}
23226 $as_echo "$as_val"'` = yes; then
23227 cat >>confdefs.h <<_ACEOF
23228 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23233 for ac_header in kerberos/krb.h
23235 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23237 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23238 $as_echo_n "checking
for $ac_header...
" >&6; }
23239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23240 $as_echo_n "(cached
) " >&6
23242 ac_res=`eval 'as_val=${'$as_ac_Header'}
23243 $as_echo "$as_val"'`
23244 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23245 $as_echo "$ac_res" >&6; }
23247 # Is the header compilable?
23248 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23249 $as_echo_n "checking
$ac_header usability...
" >&6; }
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 $ac_includes_default
23257 #include <$ac_header>
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23266 $as_echo "$ac_try_echo") >&5
23267 (eval "$ac_compile") 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest.$ac_objext; then
23277 ac_header_compiler=yes
23279 $as_echo "$as_me: failed program was
:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_header_compiler=no
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23286 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23287 $as_echo "$ac_header_compiler" >&6; }
23289 # Is the header present?
23290 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23291 $as_echo_n "checking
$ac_header presence...
" >&6; }
23292 cat >conftest.$ac_ext <<_ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23298 #include <$ac_header>
23300 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23301 case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23305 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23306 $as_echo "$ac_try_echo") >&5
23307 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23309 grep -v '^ *+' conftest.er1 >conftest.err
23311 cat conftest.err >&5
23312 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23313 (exit $ac_status); } >/dev/null && {
23314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23315 test ! -s conftest.err
23317 ac_header_preproc=yes
23319 $as_echo "$as_me: failed program was
:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ac_header_preproc=no
23325 rm -f conftest.err conftest.$ac_ext
23326 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23327 $as_echo "$ac_header_preproc" >&6; }
23329 # So? What about this header?
23330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23332 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23333 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23334 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23336 ac_header_preproc=yes
23339 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23340 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23341 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23342 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23343 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23344 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23345 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23346 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23347 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23349 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23350 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23354 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23355 $as_echo_n "checking
for $ac_header...
" >&6; }
23356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23357 $as_echo_n "(cached
) " >&6
23359 eval "$as_ac_Header=\
$ac_header_preproc"
23361 ac_res=`eval 'as_val=${'$as_ac_Header'}
23362 $as_echo "$as_val"'`
23363 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23364 $as_echo "$ac_res" >&6; }
23367 if test `eval 'as_val=${'$as_ac_Header'}
23368 $as_echo "$as_val"'` = yes; then
23369 cat >>confdefs.h <<_ACEOF
23370 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23387 for ac_header in com_err.h
23389 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23391 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23392 $as_echo_n "checking
for $ac_header...
" >&6; }
23393 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23394 $as_echo_n "(cached
) " >&6
23396 ac_res=`eval 'as_val=${'$as_ac_Header'}
23397 $as_echo "$as_val"'`
23398 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23399 $as_echo "$ac_res" >&6; }
23401 # Is the header compilable?
23402 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23403 $as_echo_n "checking
$ac_header usability...
" >&6; }
23404 cat >conftest.$ac_ext <<_ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23410 $ac_includes_default
23411 #include <$ac_header>
23413 rm -f conftest.$ac_objext
23414 if { (ac_try="$ac_compile"
23415 case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23419 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23420 $as_echo "$ac_try_echo") >&5
23421 (eval "$ac_compile") 2>conftest.er1
23423 grep -v '^ *+' conftest.er1 >conftest.err
23425 cat conftest.err >&5
23426 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23427 (exit $ac_status); } && {
23428 test -z "$ac_c_werror_flag" ||
23429 test ! -s conftest.err
23430 } && test -s conftest.$ac_objext; then
23431 ac_header_compiler=yes
23433 $as_echo "$as_me: failed program was
:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ac_header_compiler=no
23439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23441 $as_echo "$ac_header_compiler" >&6; }
23443 # Is the header present?
23444 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23445 $as_echo_n "checking
$ac_header presence...
" >&6; }
23446 cat >conftest.$ac_ext <<_ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 #include <$ac_header>
23454 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 2>conftest.er1
23463 grep -v '^ *+' conftest.er1 >conftest.err
23465 cat conftest.err >&5
23466 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23467 (exit $ac_status); } >/dev/null && {
23468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23471 ac_header_preproc=yes
23473 $as_echo "$as_me: failed program was
:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_header_preproc=no
23479 rm -f conftest.err conftest.$ac_ext
23480 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23481 $as_echo "$ac_header_preproc" >&6; }
23483 # So? What about this header?
23484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23486 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23487 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23490 ac_header_preproc=yes
23493 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23494 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23495 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23496 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23497 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23498 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23499 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23500 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23502 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23504 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23508 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23509 $as_echo_n "checking
for $ac_header...
" >&6; }
23510 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23511 $as_echo_n "(cached
) " >&6
23513 eval "$as_ac_Header=\
$ac_header_preproc"
23515 ac_res=`eval 'as_val=${'$as_ac_Header'}
23516 $as_echo "$as_val"'`
23517 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23518 $as_echo "$ac_res" >&6; }
23521 if test `eval 'as_val=${'$as_ac_Header'}
23522 $as_echo "$as_val"'` = yes; then
23523 cat >>confdefs.h <<_ACEOF
23524 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23533 # Solaris requires -lintl if you want strerror (which calls dgettext)
23534 # to return localized messages.
23536 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23537 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23538 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23539 $as_echo_n "(cached
) " >&6
23541 ac_check_lib_save_LIBS=$LIBS
23542 LIBS="-lintl $LIBS"
23543 cat >conftest.$ac_ext <<_ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23550 /* Override any GCC internal prototype to avoid an error.
23551 Use char because int might match the return type of a GCC
23552 builtin and then its argument prototype would still apply. */
23560 return dgettext ();
23565 rm -f conftest.$ac_objext conftest$ac_exeext
23566 if { (ac_try="$ac_link"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23571 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23572 $as_echo "$ac_try_echo") >&5
23573 (eval "$ac_link") 2>conftest.er1
23575 grep -v '^ *+' conftest.er1 >conftest.err
23577 cat conftest.err >&5
23578 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23579 (exit $ac_status); } && {
23580 test -z "$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 } && test -s conftest$ac_exeext && {
23583 test "$cross_compiling" = yes ||
23584 $as_test_x conftest$ac_exeext
23586 ac_cv_lib_intl_dgettext=yes
23588 $as_echo "$as_me: failed program was
:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 ac_cv_lib_intl_dgettext=no
23594 rm -rf conftest.dSYM
23595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23596 conftest$ac_exeext conftest.$ac_ext
23597 LIBS=$ac_check_lib_save_LIBS
23599 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23600 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23601 if test $ac_cv_lib_intl_dgettext = yes; then
23602 cat >>confdefs.h <<_ACEOF
23603 #define HAVE_LIBINTL 1
23606 LIBS="-lintl $LIBS"
23611 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23612 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23613 if test "${emacs_cv_localtime_cache+set}" = set; then
23614 $as_echo_n "(cached
) " >&6
23616 if test x$ac_cv_func_tzset = xyes; then
23617 if test "$cross_compiling" = yes; then
23618 # If we have tzset, assume the worst when cross-compiling.
23619 emacs_cv_localtime_cache=yes
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23628 extern char **environ;
23632 for (to = from = environ; (*to = *from); from++)
23633 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23636 char TZ_GMT0[] = "TZ
=GMT0
";
23637 char TZ_PST8[] = "TZ
=PST8
";
23640 time_t now = time ((time_t *) 0);
23641 int hour_GMT0, hour_unset;
23642 if (putenv (TZ_GMT0) != 0)
23644 hour_GMT0 = localtime (&now)->tm_hour;
23646 hour_unset = localtime (&now)->tm_hour;
23647 if (putenv (TZ_PST8) != 0)
23649 if (localtime (&now)->tm_hour == hour_GMT0)
23652 if (localtime (&now)->tm_hour != hour_unset)
23657 rm -f conftest$ac_exeext
23658 if { (ac_try="$ac_link"
23659 case "(($ac_try" in
23660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661 *) ac_try_echo=$ac_try;;
23663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23664 $as_echo "$ac_try_echo") >&5
23665 (eval "$ac_link") 2>&5
23667 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23669 { (case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23674 $as_echo "$ac_try_echo") >&5
23675 (eval "$ac_try") 2>&5
23677 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23678 (exit $ac_status); }; }; then
23679 emacs_cv_localtime_cache=no
23681 $as_echo "$as_me: program exited with status
$ac_status" >&5
23682 $as_echo "$as_me: failed program was
:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 ( exit $ac_status )
23686 emacs_cv_localtime_cache=yes
23688 rm -rf conftest.dSYM
23689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23694 # If we lack tzset, report that localtime does not cache TZ,
23695 # since we can't invalidate the cache if we don't have tzset.
23696 emacs_cv_localtime_cache=no
23699 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
23700 $as_echo "$emacs_cv_localtime_cache" >&6; }
23701 if test $emacs_cv_localtime_cache = yes; then
23703 cat >>confdefs.h <<\_ACEOF
23704 #define LOCALTIME_CACHE 1
23709 if test "x
$HAVE_TIMEVAL" = xyes; then
23711 for ac_func in gettimeofday
23713 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23714 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
23715 $as_echo_n "checking
for $ac_func...
" >&6; }
23716 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23717 $as_echo_n "(cached
) " >&6
23719 cat >conftest.$ac_ext <<_ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23727 #define $ac_func innocuous_$ac_func
23729 /* System header to define __stub macros and hopefully few prototypes,
23730 which can conflict with char $ac_func (); below.
23731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23732 <limits.h> exists even on freestanding compilers. */
23735 # include <limits.h>
23737 # include <assert.h>
23742 /* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23749 /* The GNU C library defines this for functions which it implements
23750 to always fail with ENOSYS. Some functions are actually named
23751 something starting with __ and the normal name is an alias. */
23752 #if defined __stub_$ac_func || defined __stub___$ac_func
23759 return $ac_func ();
23764 rm -f conftest.$ac_objext conftest$ac_exeext
23765 if { (ac_try="$ac_link"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23770 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23771 $as_echo "$ac_try_echo") >&5
23772 (eval "$ac_link") 2>conftest.er1
23774 grep -v '^ *+' conftest.er1 >conftest.err
23776 cat conftest.err >&5
23777 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23778 (exit $ac_status); } && {
23779 test -z "$ac_c_werror_flag" ||
23780 test ! -s conftest.err
23781 } && test -s conftest$ac_exeext && {
23782 test "$cross_compiling" = yes ||
23783 $as_test_x conftest$ac_exeext
23785 eval "$as_ac_var=yes"
23787 $as_echo "$as_me: failed program was
:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23790 eval "$as_ac_var=no
"
23793 rm -rf conftest.dSYM
23794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23795 conftest$ac_exeext conftest.$ac_ext
23797 ac_res=`eval 'as_val=${'$as_ac_var'}
23798 $as_echo "$as_val"'`
23799 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23800 $as_echo "$ac_res" >&6; }
23801 if test `eval 'as_val=${'$as_ac_var'}
23802 $as_echo "$as_val"'` = yes; then
23803 cat >>confdefs.h <<_ACEOF
23804 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23810 if test $ac_cv_func_gettimeofday = yes; then
23811 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
23812 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
23813 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23814 $as_echo_n "(cached
) " >&6
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23823 #ifdef TIME_WITH_SYS_TIME
23824 #include <sys/time.h>
23827 #ifdef HAVE_SYS_TIME_H
23828 #include <sys/time.h>
23836 struct timeval time;
23837 gettimeofday (&time, 0);
23842 rm -f conftest.$ac_objext
23843 if { (ac_try="$ac_compile"
23844 case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23848 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23849 $as_echo "$ac_try_echo") >&5
23850 (eval "$ac_compile") 2>conftest.er1
23852 grep -v '^ *+' conftest.er1 >conftest.err
23854 cat conftest.err >&5
23855 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23856 (exit $ac_status); } && {
23857 test -z "$ac_c_werror_flag" ||
23858 test ! -s conftest.err
23859 } && test -s conftest.$ac_objext; then
23860 emacs_cv_gettimeofday_two_arguments=yes
23862 $as_echo "$as_me: failed program was
:" >&5
23863 sed 's/^/| /' conftest.$ac_ext >&5
23865 emacs_cv_gettimeofday_two_arguments=no
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
23871 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23872 if test $emacs_cv_gettimeofday_two_arguments = no; then
23874 cat >>confdefs.h <<\_ACEOF
23875 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23883 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
23884 $as_echo_n "checking
for socket...
" >&6; }
23885 if test "${ac_cv_func_socket+set}" = set; then
23886 $as_echo_n "(cached
) " >&6
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23896 #define socket innocuous_socket
23898 /* System header to define __stub macros and hopefully few prototypes,
23899 which can conflict with char socket (); below.
23900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23901 <limits.h> exists even on freestanding compilers. */
23904 # include <limits.h>
23906 # include <assert.h>
23911 /* Override any GCC internal prototype to avoid an error.
23912 Use char because int might match the return type of a GCC
23913 builtin and then its argument prototype would still apply. */
23918 /* The GNU C library defines this for functions which it implements
23919 to always fail with ENOSYS. Some functions are actually named
23920 something starting with __ and the normal name is an alias. */
23921 #if defined __stub_socket || defined __stub___socket
23933 rm -f conftest.$ac_objext conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23939 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23940 $as_echo "$ac_try_echo") >&5
23941 (eval "$ac_link") 2>conftest.er1
23943 grep -v '^ *+' conftest.er1 >conftest.err
23945 cat conftest.err >&5
23946 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23947 (exit $ac_status); } && {
23948 test -z "$ac_c_werror_flag" ||
23949 test ! -s conftest.err
23950 } && test -s conftest$ac_exeext && {
23951 test "$cross_compiling" = yes ||
23952 $as_test_x conftest$ac_exeext
23954 ac_cv_func_socket=yes
23956 $as_echo "$as_me: failed program was
:" >&5
23957 sed 's/^/| /' conftest.$ac_ext >&5
23959 ac_cv_func_socket=no
23962 rm -rf conftest.dSYM
23963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23964 conftest$ac_exeext conftest.$ac_ext
23966 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
23967 $as_echo "$ac_cv_func_socket" >&6; }
23968 if test $ac_cv_func_socket = yes; then
23974 if test $ok_so_far = yes; then
23975 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23976 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
23977 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
23978 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23979 $as_echo_n "(cached
) " >&6
23981 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
23982 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23984 # Is the header compilable?
23985 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
23986 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
23987 cat >conftest.$ac_ext <<_ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23993 $ac_includes_default
23994 #include <netinet/in.h>
23996 rm -f conftest.$ac_objext
23997 if { (ac_try="$ac_compile"
23998 case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24003 $as_echo "$ac_try_echo") >&5
24004 (eval "$ac_compile") 2>conftest.er1
24006 grep -v '^ *+' conftest.er1 >conftest.err
24008 cat conftest.err >&5
24009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24010 (exit $ac_status); } && {
24011 test -z "$ac_c_werror_flag" ||
24012 test ! -s conftest.err
24013 } && test -s conftest.$ac_objext; then
24014 ac_header_compiler=yes
24016 $as_echo "$as_me: failed program was
:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24019 ac_header_compiler=no
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24024 $as_echo "$ac_header_compiler" >&6; }
24026 # Is the header present?
24027 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24028 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 #include <netinet/in.h>
24037 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24043 $as_echo "$ac_try_echo") >&5
24044 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24046 grep -v '^ *+' conftest.er1 >conftest.err
24048 cat conftest.err >&5
24049 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24050 (exit $ac_status); } >/dev/null && {
24051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24052 test ! -s conftest.err
24054 ac_header_preproc=yes
24056 $as_echo "$as_me: failed program was
:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059 ac_header_preproc=no
24062 rm -f conftest.err conftest.$ac_ext
24063 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24064 $as_echo "$ac_header_preproc" >&6; }
24066 # So? What about this header?
24067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24069 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24070 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24072 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24073 ac_header_preproc=yes
24076 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24077 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24078 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24079 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24080 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24081 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24083 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24084 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24085 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24086 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24087 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24091 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24092 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24093 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24094 $as_echo_n "(cached
) " >&6
24096 ac_cv_header_netinet_in_h=$ac_header_preproc
24098 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24099 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24102 if test $ac_cv_header_netinet_in_h = yes; then
24110 if test $ok_so_far = yes; then
24111 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24112 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24113 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24114 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24115 $as_echo_n "(cached
) " >&6
24117 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24118 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24120 # Is the header compilable?
24121 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24122 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24123 cat >conftest.$ac_ext <<_ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h. */
24129 $ac_includes_default
24130 #include <arpa/inet.h>
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24138 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24139 $as_echo "$ac_try_echo") >&5
24140 (eval "$ac_compile") 2>conftest.er1
24142 grep -v '^ *+' conftest.er1 >conftest.err
24144 cat conftest.err >&5
24145 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24146 (exit $ac_status); } && {
24147 test -z "$ac_c_werror_flag" ||
24148 test ! -s conftest.err
24149 } && test -s conftest.$ac_objext; then
24150 ac_header_compiler=yes
24152 $as_echo "$as_me: failed program was
:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 ac_header_compiler=no
24158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24160 $as_echo "$ac_header_compiler" >&6; }
24162 # Is the header present?
24163 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24164 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24165 cat >conftest.$ac_ext <<_ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 #include <arpa/inet.h>
24173 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24174 case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24178 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24179 $as_echo "$ac_try_echo") >&5
24180 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24182 grep -v '^ *+' conftest.er1 >conftest.err
24184 cat conftest.err >&5
24185 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24186 (exit $ac_status); } >/dev/null && {
24187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24190 ac_header_preproc=yes
24192 $as_echo "$as_me: failed program was
:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ac_header_preproc=no
24198 rm -f conftest.err conftest.$ac_ext
24199 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24200 $as_echo "$ac_header_preproc" >&6; }
24202 # So? What about this header?
24203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24205 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24206 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24207 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24208 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24209 ac_header_preproc=yes
24212 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24213 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24214 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24215 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24216 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24217 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24218 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24219 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24220 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24221 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24222 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24223 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24227 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24228 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24229 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24230 $as_echo_n "(cached
) " >&6
24232 ac_cv_header_arpa_inet_h=$ac_header_preproc
24234 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24235 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24238 if test $ac_cv_header_arpa_inet_h = yes; then
24246 if test $ok_so_far = yes; then
24248 cat >>confdefs.h <<\_ACEOF
24249 #define HAVE_INET_SOCKETS 1
24255 for ac_header in sys/ioctl.h
24257 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24259 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24260 $as_echo_n "checking
for $ac_header...
" >&6; }
24261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24262 $as_echo_n "(cached
) " >&6
24264 ac_res=`eval 'as_val=${'$as_ac_Header'}
24265 $as_echo "$as_val"'`
24266 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24267 $as_echo "$ac_res" >&6; }
24269 # Is the header compilable?
24270 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24271 $as_echo_n "checking
$ac_header usability...
" >&6; }
24272 cat >conftest.$ac_ext <<_ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 $ac_includes_default
24279 #include <$ac_header>
24281 rm -f conftest.$ac_objext
24282 if { (ac_try="$ac_compile"
24283 case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24287 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24288 $as_echo "$ac_try_echo") >&5
24289 (eval "$ac_compile") 2>conftest.er1
24291 grep -v '^ *+' conftest.er1 >conftest.err
24293 cat conftest.err >&5
24294 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest.$ac_objext; then
24299 ac_header_compiler=yes
24301 $as_echo "$as_me: failed program was
:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24304 ac_header_compiler=no
24307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24308 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24309 $as_echo "$ac_header_compiler" >&6; }
24311 # Is the header present?
24312 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24313 $as_echo_n "checking
$ac_header presence...
" >&6; }
24314 cat >conftest.$ac_ext <<_ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 #include <$ac_header>
24322 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24327 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24328 $as_echo "$ac_try_echo") >&5
24329 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24335 (exit $ac_status); } >/dev/null && {
24336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24337 test ! -s conftest.err
24339 ac_header_preproc=yes
24341 $as_echo "$as_me: failed program was
:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24344 ac_header_preproc=no
24347 rm -f conftest.err conftest.$ac_ext
24348 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24349 $as_echo "$ac_header_preproc" >&6; }
24351 # So? What about this header?
24352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24354 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24355 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24358 ac_header_preproc=yes
24361 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24362 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24363 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24364 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24365 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24366 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24367 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24368 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24369 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24371 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24372 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24376 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24377 $as_echo_n "checking
for $ac_header...
" >&6; }
24378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24379 $as_echo_n "(cached
) " >&6
24381 eval "$as_ac_Header=\
$ac_header_preproc"
24383 ac_res=`eval 'as_val=${'$as_ac_Header'}
24384 $as_echo "$as_val"'`
24385 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24386 $as_echo "$ac_res" >&6; }
24389 if test `eval 'as_val=${'$as_ac_Header'}
24390 $as_echo "$as_val"'` = yes; then
24391 cat >>confdefs.h <<_ACEOF
24392 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24400 if test -f /usr/lpp/X11/bin/smt.exp; then
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_AIX_SMT_EXP 1
24408 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24409 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24410 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24411 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24412 $as_echo "yes" >&6; }
24414 cat >>confdefs.h <<\_ACEOF
24415 #define HAVE_DEV_PTMX 1
24419 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24420 $as_echo "no
" >&6; }
24423 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24424 $as_echo_n "checking
for pid_t...
" >&6; }
24425 if test "${ac_cv_type_pid_t+set}" = set; then
24426 $as_echo_n "(cached
) " >&6
24428 ac_cv_type_pid_t=no
24429 cat >conftest.$ac_ext <<_ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 $ac_includes_default
24439 if (sizeof (pid_t))
24445 rm -f conftest.$ac_objext
24446 if { (ac_try="$ac_compile"
24447 case "(($ac_try" in
24448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24449 *) ac_try_echo=$ac_try;;
24451 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24452 $as_echo "$ac_try_echo") >&5
24453 (eval "$ac_compile") 2>conftest.er1
24455 grep -v '^ *+' conftest.er1 >conftest.err
24457 cat conftest.err >&5
24458 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24459 (exit $ac_status); } && {
24460 test -z "$ac_c_werror_flag" ||
24461 test ! -s conftest.err
24462 } && test -s conftest.$ac_objext; then
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 $ac_includes_default
24473 if (sizeof ((pid_t)))
24479 rm -f conftest.$ac_objext
24480 if { (ac_try="$ac_compile"
24481 case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24485 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24486 $as_echo "$ac_try_echo") >&5
24487 (eval "$ac_compile") 2>conftest.er1
24489 grep -v '^ *+' conftest.er1 >conftest.err
24491 cat conftest.err >&5
24492 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24493 (exit $ac_status); } && {
24494 test -z "$ac_c_werror_flag" ||
24495 test ! -s conftest.err
24496 } && test -s conftest.$ac_objext; then
24499 $as_echo "$as_me: failed program was
:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24502 ac_cv_type_pid_t=yes
24505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24507 $as_echo "$as_me: failed program was
:" >&5
24508 sed 's/^/| /' conftest.$ac_ext >&5
24513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24516 $as_echo "$ac_cv_type_pid_t" >&6; }
24517 if test $ac_cv_type_pid_t = yes; then
24521 cat >>confdefs.h <<_ACEOF
24528 for ac_header in vfork.h
24530 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24531 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24532 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24533 $as_echo_n "checking
for $ac_header...
" >&6; }
24534 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24535 $as_echo_n "(cached
) " >&6
24537 ac_res=`eval 'as_val=${'$as_ac_Header'}
24538 $as_echo "$as_val"'`
24539 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24540 $as_echo "$ac_res" >&6; }
24542 # Is the header compilable?
24543 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24544 $as_echo_n "checking
$ac_header usability...
" >&6; }
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 $ac_includes_default
24552 #include <$ac_header>
24554 rm -f conftest.$ac_objext
24555 if { (ac_try="$ac_compile"
24556 case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24560 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24561 $as_echo "$ac_try_echo") >&5
24562 (eval "$ac_compile") 2>conftest.er1
24564 grep -v '^ *+' conftest.er1 >conftest.err
24566 cat conftest.err >&5
24567 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24568 (exit $ac_status); } && {
24569 test -z "$ac_c_werror_flag" ||
24570 test ! -s conftest.err
24571 } && test -s conftest.$ac_objext; then
24572 ac_header_compiler=yes
24574 $as_echo "$as_me: failed program was
:" >&5
24575 sed 's/^/| /' conftest.$ac_ext >&5
24577 ac_header_compiler=no
24580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24582 $as_echo "$ac_header_compiler" >&6; }
24584 # Is the header present?
24585 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24586 $as_echo_n "checking
$ac_header presence...
" >&6; }
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 #include <$ac_header>
24595 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24600 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24601 $as_echo "$ac_try_echo") >&5
24602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24604 grep -v '^ *+' conftest.er1 >conftest.err
24606 cat conftest.err >&5
24607 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24608 (exit $ac_status); } >/dev/null && {
24609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24612 ac_header_preproc=yes
24614 $as_echo "$as_me: failed program was
:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_header_preproc=no
24620 rm -f conftest.err conftest.$ac_ext
24621 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24622 $as_echo "$ac_header_preproc" >&6; }
24624 # So? What about this header?
24625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24628 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24629 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24631 ac_header_preproc=yes
24634 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24635 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24636 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24637 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24638 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24639 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24640 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24641 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24642 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24644 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24645 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24649 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24650 $as_echo_n "checking
for $ac_header...
" >&6; }
24651 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24652 $as_echo_n "(cached
) " >&6
24654 eval "$as_ac_Header=\
$ac_header_preproc"
24656 ac_res=`eval 'as_val=${'$as_ac_Header'}
24657 $as_echo "$as_val"'`
24658 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24659 $as_echo "$ac_res" >&6; }
24662 if test `eval 'as_val=${'$as_ac_Header'}
24663 $as_echo "$as_val"'` = yes; then
24664 cat >>confdefs.h <<_ACEOF
24665 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24674 for ac_func in fork vfork
24676 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24677 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24678 $as_echo_n "checking
for $ac_func...
" >&6; }
24679 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24680 $as_echo_n "(cached
) " >&6
24682 cat >conftest.$ac_ext <<_ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24690 #define $ac_func innocuous_$ac_func
24692 /* System header to define __stub macros and hopefully few prototypes,
24693 which can conflict with char $ac_func (); below.
24694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24695 <limits.h> exists even on freestanding compilers. */
24698 # include <limits.h>
24700 # include <assert.h>
24705 /* Override any GCC internal prototype to avoid an error.
24706 Use char because int might match the return type of a GCC
24707 builtin and then its argument prototype would still apply. */
24712 /* The GNU C library defines this for functions which it implements
24713 to always fail with ENOSYS. Some functions are actually named
24714 something starting with __ and the normal name is an alias. */
24715 #if defined __stub_$ac_func || defined __stub___$ac_func
24722 return $ac_func ();
24727 rm -f conftest.$ac_objext conftest$ac_exeext
24728 if { (ac_try="$ac_link"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24733 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24734 $as_echo "$ac_try_echo") >&5
24735 (eval "$ac_link") 2>conftest.er1
24737 grep -v '^ *+' conftest.er1 >conftest.err
24739 cat conftest.err >&5
24740 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24741 (exit $ac_status); } && {
24742 test -z "$ac_c_werror_flag" ||
24743 test ! -s conftest.err
24744 } && test -s conftest$ac_exeext && {
24745 test "$cross_compiling" = yes ||
24746 $as_test_x conftest$ac_exeext
24748 eval "$as_ac_var=yes"
24750 $as_echo "$as_me: failed program was
:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 eval "$as_ac_var=no
"
24756 rm -rf conftest.dSYM
24757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24758 conftest$ac_exeext conftest.$ac_ext
24760 ac_res=`eval 'as_val=${'$as_ac_var'}
24761 $as_echo "$as_val"'`
24762 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24763 $as_echo "$ac_res" >&6; }
24764 if test `eval 'as_val=${'$as_ac_var'}
24765 $as_echo "$as_val"'` = yes; then
24766 cat >>confdefs.h <<_ACEOF
24767 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24773 if test "x
$ac_cv_func_fork" = xyes; then
24774 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
24775 $as_echo_n "checking
for working fork...
" >&6; }
24776 if test "${ac_cv_func_fork_works+set}" = set; then
24777 $as_echo_n "(cached
) " >&6
24779 if test "$cross_compiling" = yes; then
24780 ac_cv_func_fork_works=cross
24782 cat >conftest.$ac_ext <<_ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h. */
24788 $ac_includes_default
24793 /* By Ruediger Kuhlmann. */
24794 return fork () < 0;
24800 rm -f conftest$ac_exeext
24801 if { (ac_try="$ac_link"
24802 case "(($ac_try" in
24803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804 *) ac_try_echo=$ac_try;;
24806 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808 (eval "$ac_link") 2>&5
24810 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812 { (case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24816 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24817 $as_echo "$ac_try_echo") >&5
24818 (eval "$ac_try") 2>&5
24820 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 ac_cv_func_fork_works=yes
24824 $as_echo "$as_me: program exited with status
$ac_status" >&5
24825 $as_echo "$as_me: failed program was
:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 ( exit $ac_status )
24829 ac_cv_func_fork_works=no
24831 rm -rf conftest.dSYM
24832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24837 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
24838 $as_echo "$ac_cv_func_fork_works" >&6; }
24841 ac_cv_func_fork_works=$ac_cv_func_fork
24843 if test "x
$ac_cv_func_fork_works" = xcross; then
24845 *-*-amigaos* | *-*-msdosdjgpp*)
24846 # Override, as these systems have only a dummy fork() stub
24847 ac_cv_func_fork_works=no
24850 ac_cv_func_fork_works=yes
24853 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
24854 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
24856 ac_cv_func_vfork_works=$ac_cv_func_vfork
24857 if test "x
$ac_cv_func_vfork" = xyes; then
24858 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
24859 $as_echo_n "checking
for working vfork...
" >&6; }
24860 if test "${ac_cv_func_vfork_works+set}" = set; then
24861 $as_echo_n "(cached
) " >&6
24863 if test "$cross_compiling" = yes; then
24864 ac_cv_func_vfork_works=cross
24866 cat >conftest.$ac_ext <<_ACEOF
24869 cat confdefs.h >>conftest.$ac_ext
24870 cat >>conftest.$ac_ext <<_ACEOF
24871 /* end confdefs.h. */
24872 /* Thanks to Paul Eggert for this test. */
24873 $ac_includes_default
24874 #include <sys/wait.h>
24875 #ifdef HAVE_VFORK_H
24876 # include <vfork.h>
24878 /* On some sparc systems, changes by the child to local and incoming
24879 argument registers are propagated back to the parent. The compiler
24880 is told about this with #include <vfork.h>, but some compilers
24881 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24882 static variable whose address is put into a register that is
24883 clobbered by the vfork. */
24886 sparc_address_test (int arg)
24888 sparc_address_test (arg) int arg;
24891 static pid_t child;
24909 pid_t parent = getpid ();
24912 sparc_address_test (0);
24917 /* Here is another test for sparc vfork register problems. This
24918 test uses lots of local variables, at least as many local
24919 variables as main has allocated so far including compiler
24920 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24921 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24922 reuse the register of parent for one of the local variables,
24923 since it will think that parent can't possibly be used any more
24924 in this routine. Assigning to the local variable will thus
24925 munge parent in the parent process. */
24927 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24928 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24929 /* Convince the compiler that p..p7 are live; otherwise, it might
24930 use the same hardware register for all 8 local variables. */
24931 if (p != p1 || p != p2 || p != p3 || p != p4
24932 || p != p5 || p != p6 || p != p7)
24935 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24936 from child file descriptors. If the child closes a descriptor
24937 before it execs or exits, this munges the parent's descriptor
24938 as well. Test for this by closing stdout in the child. */
24939 _exit(close(fileno(stdout)) != 0);
24944 while (wait(&status) != child)
24947 /* Was there some problem with vforking? */
24950 /* Did the child fail? (This shouldn't happen.) */
24953 /* Did the vfork/compiler bug occur? */
24954 || parent != getpid()
24956 /* Did the file descriptor bug occur? */
24957 || fstat(fileno(stdout), &st) != 0
24962 rm -f conftest$ac_exeext
24963 if { (ac_try="$ac_link"
24964 case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24968 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24969 $as_echo "$ac_try_echo") >&5
24970 (eval "$ac_link") 2>&5
24972 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24974 { (case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24978 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24979 $as_echo "$ac_try_echo") >&5
24980 (eval "$ac_try") 2>&5
24982 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24983 (exit $ac_status); }; }; then
24984 ac_cv_func_vfork_works=yes
24986 $as_echo "$as_me: program exited with status
$ac_status" >&5
24987 $as_echo "$as_me: failed program was
:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24990 ( exit $ac_status )
24991 ac_cv_func_vfork_works=no
24993 rm -rf conftest.dSYM
24994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24999 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25000 $as_echo "$ac_cv_func_vfork_works" >&6; }
25003 if test "x
$ac_cv_func_fork_works" = xcross; then
25004 ac_cv_func_vfork_works=$ac_cv_func_vfork
25005 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25006 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25009 if test "x
$ac_cv_func_vfork_works" = xyes; then
25011 cat >>confdefs.h <<\_ACEOF
25012 #define HAVE_WORKING_VFORK 1
25017 cat >>confdefs.h <<\_ACEOF
25022 if test "x
$ac_cv_func_fork_works" = xyes; then
25024 cat >>confdefs.h <<\_ACEOF
25025 #define HAVE_WORKING_FORK 1
25031 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25032 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25033 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25034 $as_echo_n "(cached
) " >&6
25036 cat >conftest.$ac_ext <<_ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042 #include <langinfo.h>
25046 char* cs = nl_langinfo(CODESET);
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (ac_try="$ac_link"
25053 case "(($ac_try" in
25054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055 *) ac_try_echo=$ac_try;;
25057 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25058 $as_echo "$ac_try_echo") >&5
25059 (eval "$ac_link") 2>conftest.er1
25061 grep -v '^ *+' conftest.er1 >conftest.err
25063 cat conftest.err >&5
25064 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25065 (exit $ac_status); } && {
25066 test -z "$ac_c_werror_flag" ||
25067 test ! -s conftest.err
25068 } && test -s conftest$ac_exeext && {
25069 test "$cross_compiling" = yes ||
25070 $as_test_x conftest$ac_exeext
25072 emacs_cv_langinfo_codeset=yes
25074 $as_echo "$as_me: failed program was
:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25077 emacs_cv_langinfo_codeset=no
25080 rm -rf conftest.dSYM
25081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25082 conftest$ac_exeext conftest.$ac_ext
25085 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25086 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25087 if test $emacs_cv_langinfo_codeset = yes; then
25089 cat >>confdefs.h <<\_ACEOF
25090 #define HAVE_LANGINFO_CODESET 1
25095 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25096 $as_echo_n "checking
for size_t...
" >&6; }
25097 if test "${ac_cv_type_size_t+set}" = set; then
25098 $as_echo_n "(cached
) " >&6
25100 ac_cv_type_size_t=no
25101 cat >conftest.$ac_ext <<_ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107 $ac_includes_default
25111 if (sizeof (size_t))
25117 rm -f conftest.$ac_objext
25118 if { (ac_try="$ac_compile"
25119 case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25123 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25124 $as_echo "$ac_try_echo") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25127 grep -v '^ *+' conftest.er1 >conftest.err
25129 cat conftest.err >&5
25130 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25135 cat >conftest.$ac_ext <<_ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25141 $ac_includes_default
25145 if (sizeof ((size_t)))
25151 rm -f conftest.$ac_objext
25152 if { (ac_try="$ac_compile"
25153 case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25157 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25158 $as_echo "$ac_try_echo") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.$ac_objext; then
25171 $as_echo "$as_me: failed program was
:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_cv_type_size_t=yes
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 $as_echo "$as_me: failed program was
:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25188 $as_echo "$ac_cv_type_size_t" >&6; }
25189 if test $ac_cv_type_size_t = yes; then
25191 cat >>confdefs.h <<_ACEOF
25192 #define HAVE_SIZE_T 1
25199 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25200 $as_echo_n "checking
for mbstate_t...
" >&6; }
25201 if test "${ac_cv_type_mbstate_t+set}" = set; then
25202 $as_echo_n "(cached
) " >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 $ac_includes_default
25211 # include <wchar.h>
25215 mbstate_t x; return sizeof x;
25220 rm -f conftest.$ac_objext
25221 if { (ac_try="$ac_compile"
25222 case "(($ac_try" in
25223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224 *) ac_try_echo=$ac_try;;
25226 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25227 $as_echo "$ac_try_echo") >&5
25228 (eval "$ac_compile") 2>conftest.er1
25230 grep -v '^ *+' conftest.er1 >conftest.err
25232 cat conftest.err >&5
25233 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25234 (exit $ac_status); } && {
25235 test -z "$ac_c_werror_flag" ||
25236 test ! -s conftest.err
25237 } && test -s conftest.$ac_objext; then
25238 ac_cv_type_mbstate_t=yes
25240 $as_echo "$as_me: failed program was
:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25243 ac_cv_type_mbstate_t=no
25246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25248 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25249 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25250 if test $ac_cv_type_mbstate_t = yes; then
25252 cat >>confdefs.h <<\_ACEOF
25253 #define HAVE_MBSTATE_T 1
25258 cat >>confdefs.h <<\_ACEOF
25259 #define mbstate_t int
25264 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25265 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25266 if test "${emacs_cv_c_restrict+set}" = set; then
25267 $as_echo_n "(cached
) " >&6
25269 cat >conftest.$ac_ext <<_ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 void fred (int *restrict x);
25284 rm -f conftest.$ac_objext
25285 if { (ac_try="$ac_compile"
25286 case "(($ac_try" in
25287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288 *) ac_try_echo=$ac_try;;
25290 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25291 $as_echo "$ac_try_echo") >&5
25292 (eval "$ac_compile") 2>conftest.er1
25294 grep -v '^ *+' conftest.er1 >conftest.err
25296 cat conftest.err >&5
25297 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25298 (exit $ac_status); } && {
25299 test -z "$ac_c_werror_flag" ||
25300 test ! -s conftest.err
25301 } && test -s conftest.$ac_objext; then
25302 emacs_cv_c_restrict=yes
25304 $as_echo "$as_me: failed program was
:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25307 cat >conftest.$ac_ext <<_ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 void fred (int *__restrict x);
25322 rm -f conftest.$ac_objext
25323 if { (ac_try="$ac_compile"
25324 case "(($ac_try" in
25325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326 *) ac_try_echo=$ac_try;;
25328 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25329 $as_echo "$ac_try_echo") >&5
25330 (eval "$ac_compile") 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25336 (exit $ac_status); } && {
25337 test -z "$ac_c_werror_flag" ||
25338 test ! -s conftest.err
25339 } && test -s conftest.$ac_objext; then
25340 emacs_cv_c_restrict=__restrict
25342 $as_echo "$as_me: failed program was
:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 emacs_cv_c_restrict=no
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25354 $as_echo "$emacs_cv_c_restrict" >&6; }
25355 case "$emacs_cv_c_restrict" in
25356 yes) emacs_restrict=restrict;;
25357 no) emacs_restrict="";;
25358 *) emacs_restrict="$emacs_cv_c_restrict";;
25360 if test "$emacs_restrict" != __restrict; then
25362 cat >>confdefs.h <<_ACEOF
25363 #define __restrict $emacs_restrict
25368 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25369 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25370 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25371 $as_echo_n "(cached
) " >&6
25373 cat >conftest.$ac_ext <<_ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h. */
25379 void fred (int x[__restrict]);
25388 rm -f conftest.$ac_objext
25389 if { (ac_try="$ac_compile"
25390 case "(($ac_try" in
25391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392 *) ac_try_echo=$ac_try;;
25394 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25395 $as_echo "$ac_try_echo") >&5
25396 (eval "$ac_compile") 2>conftest.er1
25398 grep -v '^ *+' conftest.er1 >conftest.err
25400 cat conftest.err >&5
25401 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25402 (exit $ac_status); } && {
25403 test -z "$ac_c_werror_flag" ||
25404 test ! -s conftest.err
25405 } && test -s conftest.$ac_objext; then
25406 emacs_cv_c_restrict_arr=yes
25408 $as_echo "$as_me: failed program was
:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25411 emacs_cv_c_restrict_arr=no
25414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25417 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25418 if test "$emacs_cv_c_restrict_arr" = yes; then
25420 cat >>confdefs.h <<\_ACEOF
25421 #define __restrict_arr __restrict
25428 # Set up the CFLAGS for real compilation, so we can substitute it.
25429 CFLAGS="$REAL_CFLAGS"
25430 CPPFLAGS="$REAL_CPPFLAGS"
25432 #### Find out which version of Emacs this is.
25433 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25434 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25435 if test x"${version}" = x; then
25436 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25437 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25438 { (exit 1); exit 1; }; }
25440 if test x"${version}" != x"$PACKAGE_VERSION"; then
25441 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25442 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25445 ### Specify what sort of things we'll be editing into Makefile and config.h.
25446 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25491 cat >>confdefs.h
<<_ACEOF
25492 #define EMACS_CONFIGURATION "${canonical}"
25496 cat >>confdefs.h
<<_ACEOF
25497 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25501 cat >>confdefs.h
<<_ACEOF
25502 #define config_machfile "${machfile}"
25506 cat >>confdefs.h
<<_ACEOF
25507 #define config_opsysfile "${opsysfile}"
25511 cat >>confdefs.h
<<_ACEOF
25512 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25516 cat >>confdefs.h
<<_ACEOF
25517 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25521 cat >>confdefs.h
<<_ACEOF
25522 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25526 cat >>confdefs.h
<<_ACEOF
25527 #define UNEXEC_SRC ${UNEXEC_SRC}
25531 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25533 cat >>confdefs.h
<<\_ACEOF
25534 #define HAVE_X_WINDOWS 1
25538 if test "${USE_X_TOOLKIT}" != "none" ; then
25540 cat >>confdefs.h
<<\_ACEOF
25541 #define USE_X_TOOLKIT 1
25544 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25546 cat >>confdefs.h
<<\_ACEOF
25547 #define USE_LUCID 1
25550 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25552 cat >>confdefs.h
<<\_ACEOF
25553 #define USE_MOTIF 1
25558 if test "${HAVE_X11}" = "yes" ; then
25560 cat >>confdefs.h
<<\_ACEOF
25565 if test "${HAVE_MENUS}" = "yes" ; then
25567 cat >>confdefs.h
<<\_ACEOF
25568 #define HAVE_MENUS 1
25572 if test "${GNU_MALLOC}" = "yes" ; then
25574 cat >>confdefs.h
<<\_ACEOF
25575 #define GNU_MALLOC 1
25579 if test "${REL_ALLOC}" = "yes" ; then
25581 cat >>confdefs.h
<<\_ACEOF
25582 #define REL_ALLOC 1
25592 #### Report on what we decided to do.
25593 #### Report GTK as a toolkit, even if it doesn't use Xt.
25594 #### It makes printing result more understandable as using GTK sets
25595 #### toolkit_scroll_bars to yes by default.
25596 if test "${HAVE_GTK}" = "yes"; then
25601 Configured for \`${canonical}'.
25603 Where should the build process find the source code? ${srcdir}
25604 What operating system and machine description files should Emacs use?
25605 \`${opsysfile}' and \`${machfile}'
25606 What compiler should emacs be built with? ${CC} ${CFLAGS}
25607 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25608 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25609 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25610 What window system should Emacs use? ${window_system}
25611 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25613 if test -n "${x_includes}"; then
25614 echo " Where do we find X Windows header files? ${x_includes}"
25616 echo " Where do we find X Windows header files? Standard dirs"
25618 if test -n "${x_libraries}"; then
25619 echo " Where do we find X Windows libraries? ${x_libraries}"
25621 echo " Where do we find X Windows libraries? Standard dirs"
25624 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25625 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25626 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25627 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25628 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25629 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25630 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25631 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25632 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25633 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25635 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25636 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25637 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25638 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25640 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25643 if test $USE_XASSERTS = yes; then
25644 echo " Compiling with asserts turned on."
25645 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25650 if test "$USE_X_TOOLKIT" = GTK
; then
25651 case "$canonical" in
25653 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25654 will probably get a crash on startup. If this happens, please use another
25655 toolkit for Emacs. See etc/PROBLEMS for more information."
25660 if test "$HAVE_NS" = "yes"; then
25662 echo "You must run \"make install\" in order to test the built application.
25663 The installed application will go to nextstep/Emacs.app and can be
25664 run or moved from there."
25665 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25666 echo "The application will be fully self-contained."
25668 echo "The lisp resources for the application will be installed under ${prefix}.
25669 You may need to run \"make install\" with sudo. The application will fail
25670 to run if these resources are not installed."
25675 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25676 echo "D-Bus integration has been tested for GNU/Linux only."
25681 # Remove any trailing slashes in these variables.
25682 test "${prefix}" != NONE
&&
25683 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25684 test "${exec_prefix}" != NONE
&&
25685 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25687 # Now get this: Some word that is part of the ${srcdir} directory name
25688 # or the ${configuration} value might, just might, happen to be an
25689 # identifier like `sun4' or `i386' or something, and be predefined by
25690 # the C preprocessor to some helpful value like 1, or maybe the empty
25691 # string. Needless to say consequent macro substitutions are less
25692 # than conducive to the makefile finding the correct directory.
25693 cpp_undefs
="`echo $srcdir $configuration $canonical |
25694 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25695 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25697 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25698 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25699 ## from Makefile.c can correctly provide the arg `-traditional' to the
25702 cat >conftest.
$ac_ext <<_ACEOF
25705 cat confdefs.h
>>conftest.
$ac_ext
25706 cat >>conftest.
$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25711 $EGREP "yes..yes" >/dev
/null
2>&1; then
25712 CPP_NEED_TRADITIONAL
=no
25714 CPP_NEED_TRADITIONAL
=yes
25719 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"
25721 ac_config_commands
="$ac_config_commands default"
25723 cat >confcache
<<\_ACEOF
25724 # This file is a shell script that caches the results of configure
25725 # tests run on this system so they can be shared between configure
25726 # scripts and configure runs, see configure's option --config-cache.
25727 # It is not useful on other systems. If it contains results you don't
25728 # want to keep, you may remove or edit it.
25730 # config.status only pays attention to the cache file if you give it
25731 # the --recheck option to rerun configure.
25733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25735 # following values.
25739 # The following way of writing the cache mishandles newlines in values,
25740 # but we know of no workaround that is simple, portable, and efficient.
25741 # So, we kill variables containing newlines.
25742 # Ultrix sh set writes to stderr and can't be redirected directly,
25743 # and sets the high bit in the cache file unless we assign to the vars.
25745 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25746 eval ac_val
=\$
$ac_var
25750 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25751 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25754 _ | IFS | as_nl
) ;; #(
25755 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25756 *) $as_unset $ac_var ;;
25762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25763 *${as_nl}ac_space
=\
*)
25764 # `set' does not quote correctly, so add quotes (double-quote
25765 # substitution turns \\\\ into \\, and sed turns \\ into \).
25768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25771 # `set' quotes correctly as required by POSIX, so do not add quotes.
25772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25785 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25786 if test -w "$cache_file"; then
25787 test "x$cache_file" != "x/dev/null" &&
25788 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25789 $as_echo "$as_me: updating cache $cache_file" >&6;}
25790 cat confcache
>$cache_file
25792 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25793 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25798 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25799 # Let make expand exec_prefix.
25800 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25802 DEFS
=-DHAVE_CONFIG_H
25806 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25807 # 1. Remove the extension, and $U if already installed.
25808 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25809 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25811 # will be set to the directory where LIBOBJS objects are built.
25812 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25813 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25815 LIBOBJS
=$ac_libobjs
25817 LTLIBOBJS
=$ac_ltlibobjs
25821 : ${CONFIG_STATUS=./config.status}
25823 ac_clean_files_save
=$ac_clean_files
25824 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25825 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25827 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25829 # Generated by $as_me.
25830 # Run this file to recreate the current configuration.
25831 # Compiler output produced by configure, useful for debugging
25832 # configure, is in config.log if it exists.
25835 ac_cs_recheck=false
25837 SHELL=\${CONFIG_SHELL-$SHELL}
25840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25841 ## --------------------- ##
25842 ## M4sh Initialization. ##
25843 ## --------------------- ##
25845 # Be more Bourne compatible
25846 DUALCASE
=1; export DUALCASE
# for MKS sh
25847 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25851 # is contrary to our usage. Disable this feature.
25852 alias -g '${1+"$@"}'='"$@"'
25853 setopt NO_GLOB_SUBST
25855 case `(set -o) 2>/dev/null` in
25856 *posix
*) set -o posix
;;
25865 # Avoid depending upon Character Ranges.
25866 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25867 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25868 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25869 as_cr_digits
='0123456789'
25870 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25876 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25879 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25880 as_echo='printf %s
\n'
25881 as_echo_n='printf %s
'
25883 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25884 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25885 as_echo_n='/usr
/ucb
/echo -n'
25887 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25888 as_echo_n_body='eval
25892 expr "X$arg" : "X\\(.*\\)$as_nl";
25893 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25895 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25897 export as_echo_n_body
25898 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25900 export as_echo_body
25901 as_echo='sh
-c $as_echo_body as_echo
'
25904 # The user is always right.
25905 if test "${PATH_SEPARATOR+set}" != set; then
25907 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25908 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25913 # Support unset when possible.
25914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25922 # We need space, tab and new line, in precisely that order. Quoting is
25923 # there to prevent editors from complaining about space-tab.
25924 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25925 # splitting by setting IFS to empty value.)
25928 # Find who we are. Look in the path if we contain no directory separator.
25930 *[\\/]* ) as_myself=$0 ;;
25931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25932 for as_dir in $PATH
25935 test -z "$as_dir" && as_dir=.
25936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25942 # We did not find ourselves, most probably we were run as `sh COMMAND'
25943 # in which case we are not to be found in the path.
25944 if test "x$as_myself" = x
; then
25947 if test ! -f "$as_myself"; then
25948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25949 { (exit 1); exit 1; }
25952 # Work around bugs in pre-3.0 UWIN ksh.
25953 for as_var
in ENV MAIL MAILPATH
25954 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25966 # Required to use basename.
25967 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25968 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25974 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25975 as_basename
=basename
25981 # Name of the executable.
25982 as_me
=`$as_basename -- "$0" ||
25983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25984 X"$0" : 'X\(//\)$' \| \
25985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25987 sed '/^.*\/\([^/][^/]*\)\/*$/{
26006 as_lineno_1
=$LINENO
26007 as_lineno_2
=$LINENO
26008 test "x$as_lineno_1" != "x$as_lineno_2" &&
26009 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26011 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26012 # uniformly replaced by the line number. The first 'sed' inserts a
26013 # line-number line after each line using $LINENO; the second 'sed'
26014 # does the real work. The second script uses 'N' to pair each
26015 # line-number line with the line containing $LINENO, and appends
26016 # trailing '-' during substitution so that $LINENO is not a special
26017 # case at line end.
26018 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26019 # scripts with optimization help from Paolo Bonzini. Blame Lee
26020 # E. McMahon (1931-1989) for sed's syntax. :-)
26032 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26035 ' >$as_me.lineno
&&
26036 chmod +x
"$as_me.lineno" ||
26037 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26038 { (exit 1); exit 1; }; }
26040 # Don't try to exec as it changes $[0], causing all sort of problems
26041 # (the dirname of $[0] is not the place where we might find the
26042 # original and so on. Autoconf is especially sensitive to this).
26043 .
"./$as_me.lineno"
26044 # Exit status is that of the last command.
26049 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26055 ECHO_C
= ECHO_N
= ECHO_T
=
26056 case `echo -n x` in
26058 case `echo 'x\c'` in
26059 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26065 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26066 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26072 rm -f conf$$ conf$$.exe conf$$.
file
26073 if test -d conf$$.dir
; then
26074 rm -f conf$$.dir
/conf$$.
file
26077 mkdir conf$$.dir
2>/dev
/null
26079 if (echo >conf$$.
file) 2>/dev
/null
; then
26080 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26082 # ... but there are two gotchas:
26083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26085 # In both cases, we have to default to `cp -p'.
26086 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26088 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26096 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26097 rmdir conf$$.dir
2>/dev
/null
26099 if mkdir
-p .
2>/dev
/null
; then
26102 test -d .
/-p && rmdir .
/-p
26106 if test -x / >/dev
/null
2>&1; then
26107 as_test_x
='test -x'
26109 if ls -dL / >/dev
/null
2>&1; then
26116 if test -d "$1"; then
26122 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26123 ???[sx]*):;;*)false;;esac;fi
26127 as_executable_p
=$as_test_x
26129 # Sed expression to map a string onto a valid CPP name.
26130 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26132 # Sed expression to map a string onto a valid variable name.
26133 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26138 # Save the log message, to keep $[0] and so on meaningful, and to
26139 # report actual input values of CONFIG_FILES etc. instead of their
26140 # values after options handling.
26142 This file was extended by emacs $as_me 23.1.50, which was
26143 generated by GNU Autoconf 2.62. Invocation command line was
26145 CONFIG_FILES = $CONFIG_FILES
26146 CONFIG_HEADERS = $CONFIG_HEADERS
26147 CONFIG_LINKS = $CONFIG_LINKS
26148 CONFIG_COMMANDS = $CONFIG_COMMANDS
26151 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26157 # Files that config.status was made for.
26158 config_files="$ac_config_files"
26159 config_headers="$ac_config_headers"
26160 config_commands="$ac_config_commands"
26164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26166 \`$as_me' instantiates files from templates according to the
26167 current configuration.
26169 Usage: $0 [OPTIONS] [FILE]...
26171 -h, --help print this help, then exit
26172 -V, --version print version number and configuration settings, then exit
26173 -q, --quiet do not print progress messages
26174 -d, --debug don't remove temporary files
26175 --recheck update $as_me by reconfiguring in the same conditions
26176 --file=FILE[:TEMPLATE]
26177 instantiate the configuration file FILE
26178 --header=FILE[:TEMPLATE]
26179 instantiate the configuration header FILE
26181 Configuration files:
26184 Configuration headers:
26187 Configuration commands:
26190 Report bugs to <bug-autoconf@gnu.org>."
26193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26195 emacs config.status 23.1.50
26196 configured by $0, generated by GNU Autoconf 2.62,
26197 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26199 Copyright (C) 2008 Free Software Foundation, Inc.
26200 This config.status script is free software; the Free Software Foundation
26201 gives unlimited permission to copy, distribute and modify it."
26206 test -n "\$AWK" || AWK=awk
26209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26210 # The default lists apply if the user does not specify any file.
26216 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26217 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26228 # Handling of the options.
26229 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26231 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26232 $as_echo "$ac_cs_version"; exit ;;
26233 --debug |
--debu |
--deb |
--de |
--d |
-d )
26235 --file |
--fil |
--fi |
--f )
26238 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26240 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26241 ac_need_defaults
=false
;;
26242 --header |
--heade |
--head |
--hea )
26245 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26247 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26248 ac_need_defaults
=false
;;
26250 # Conflict between --help and --header
26251 { $as_echo "$as_me: error: ambiguous option: $1
26252 Try \`$0 --help' for more information." >&2
26253 { (exit 1); exit 1; }; };;
26254 --help |
--hel |
-h )
26255 $as_echo "$ac_cs_usage"; exit ;;
26256 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26257 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26260 # This is an error.
26261 -*) { $as_echo "$as_me: error: unrecognized option: $1
26262 Try \`$0 --help' for more information." >&2
26263 { (exit 1); exit 1; }; } ;;
26265 *) ac_config_targets
="$ac_config_targets $1"
26266 ac_need_defaults
=false
;;
26272 ac_configure_extra_args
=
26274 if $ac_cs_silent; then
26276 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26281 if \$ac_cs_recheck; then
26282 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26284 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26285 CONFIG_SHELL='$SHELL'
26286 export CONFIG_SHELL
26291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26296 ## Running $as_me. ##
26302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26306 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26312 # Handling of arguments.
26313 for ac_config_target
in $ac_config_targets
26315 case $ac_config_target in
26316 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26317 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26318 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26319 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26320 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26321 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26322 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26323 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26324 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26325 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26326 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26327 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26328 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26330 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26331 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26332 { (exit 1); exit 1; }; };;
26337 # If the user did not use the arguments to specify the items to instantiate,
26338 # then the envvar interface is used. Set only those that are not.
26339 # We use the long form for the default assignment because of an extremely
26340 # bizarre bug on SunOS 4.1.3.
26341 if $ac_need_defaults; then
26342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26347 # Have a temporary directory for convenience. Make it in the build tree
26348 # simply because there is no reason against having it here, and in addition,
26349 # creating and moving files from /tmp can sometimes cause problems.
26350 # Hook for its removal unless debugging.
26351 # Note that there is a small window in which the directory will not be cleaned:
26352 # after its creation but before its name has been assigned to `$tmp'.
26356 trap 'exit_status=$?
26357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26359 trap '{ (exit 1); exit 1; }' 1 2 13 15
26361 # Create a (secure) tmp directory for tmp files.
26364 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26365 test -n "$tmp" && test -d "$tmp"
26368 tmp
=.
/conf$$
-$RANDOM
26369 (umask 077 && mkdir
"$tmp")
26372 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26373 { (exit 1); exit 1; }
26376 # Set up the scripts for CONFIG_FILES section.
26377 # No need to generate them if there are no CONFIG_FILES.
26378 # This happens for instance with `./config.status config.h'.
26379 if test -n "$CONFIG_FILES"; then
26383 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26384 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26387 ac_cs_awk_cr
=$ac_cr
26390 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26395 echo "cat >conf$$subs.awk <<_ACEOF" &&
26396 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26398 } >conf$$subs.sh ||
26399 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26400 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26401 { (exit 1); exit 1; }; }
26402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26404 for ac_last_try in false false false false false :; do
26405 . ./conf$$subs.sh ||
26406 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26407 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26408 { (exit 1); exit 1; }; }
26410 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26412 elif $ac_last_try; then
26413 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26414 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26415 { (exit 1); exit 1; }; }
26417 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26420 rm -f conf$$subs.sh
26422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26423 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26427 s/^/S["/; s
/!.
*/"]=/
26437 s/\(.\{148\}\).*/\1/
26439 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26444 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26451 s/\(.\{148\}\).*/\1/
26453 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26457 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26462 ' <conf$$subs.awk | sed '
26467 ' >>$CONFIG_STATUS || ac_write_fail=1
26468 rm -f conf$$subs.awk
26469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26471 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26472 for (key in S) S_is_set[key] = 1
26478 nfields = split(line, field, "@
")
26480 len = length(field[1])
26481 for (i = 2; i < nfields; i++) {
26483 keylen = length(key)
26484 if (S_is_set[key]) {
26486 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26487 len += length(value) + length(field[++i])
26498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26499 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26500 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26503 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26504 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26505 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26506 { (exit 1); exit 1; }; }
26509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26511 # trailing colons and then remove the whole line if VPATH becomes empty
26512 # (actually we leave an empty line to preserve line numbers).
26513 if test "x
$srcdir" = x.; then
26514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26515 s/:*\$(srcdir):*/:/
26516 s/:*\${srcdir}:*/:/
26518 s/^\([^=]*=[ ]*\):*/\1/
26524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26525 fi # test -n "$CONFIG_FILES"
26527 # Set up the scripts for CONFIG_HEADERS section.
26528 # No need to generate them if there are no CONFIG_HEADERS.
26529 # This happens for instance with `./config.status Makefile'.
26530 if test -n "$CONFIG_HEADERS"; then
26531 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26535 # Transform confdefs.h into an awk script `defines.awk', embedded as
26536 # here-document in config.status, that substitutes the proper values into
26537 # config.h.in to produce config.h.
26539 # Create a delimiter string that does not exist in confdefs.h, to ease
26540 # handling of long lines.
26542 for ac_last_try in false false :; do
26543 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26544 if test -z "$ac_t"; then
26546 elif $ac_last_try; then
26547 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26548 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26549 { (exit 1); exit 1; }; }
26551 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26555 # For the awk script, D is an array of macro values keyed by name,
26556 # likewise P contains macro parameters if any. Preserve backslash
26557 # newline sequences.
26559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26561 s/.\{148\}/&'"$ac_delim"'/g
26564 s/^[ ]*#[ ]*define[ ][ ]*/ /
26571 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26573 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26578 D["\
1"]=" \
3\\\\\\n
"\\/p
26580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26585 s/.\{148\}/&'"$ac_delim"'/g
26590 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26593 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26595 ' <confdefs.h | sed '
26596 s/'"$ac_delim"'/"\\\
26597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26600 for (key in D) D_is_set[key] = 1
26603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26605 split(line, arg, " ")
26606 if (arg[1] == "#") {
26610 defundef
= substr
(arg
[1], 2)
26613 split(mac1
, mac2
, "(") #)
26615 if (D_is_set
[macro
]) {
26616 # Preserve the white space surrounding the "#".
26617 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26618 print prefix
"define", macro P
[macro
] D
[macro
]
26621 # Replace #undef with comments. This is necessary, for example,
26622 # in the case of _POSIX_SOURCE, which is predefined and required
26623 # on some systems where configure will not decide to define it.
26624 if (defundef
== "undef") {
26625 print
"/*", line
, "*/"
26633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26634 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26635 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26636 { (exit 1); exit 1; }; }
26637 fi # test -n "$CONFIG_HEADERS"
26640 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26645 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26647 case $ac_mode$ac_tag in
26649 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26650 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26651 { (exit 1); exit 1; }; };;
26652 :[FH
]-) ac_tag
=-:-;;
26653 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26670 -) ac_f
="$tmp/stdin";;
26671 *) # Look for the file first in the build tree, then in the source tree
26672 # (if the path is not absolute). The absolute path cannot be DOS-style,
26673 # because $ac_f cannot contain `:'.
26677 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26679 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26680 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26681 { (exit 1); exit 1; }; };;
26683 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26684 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26687 # Let's still pretend it is `configure' which instantiates (i.e., don't
26688 # use $as_me), people would be surprised to read:
26689 # /* config.h. Generated by config.status. */
26690 configure_input
='Generated from '`
26691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26693 if test x
"$ac_file" != x-
; then
26694 configure_input
="$ac_file. $configure_input"
26695 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26696 $as_echo "$as_me: creating $ac_file" >&6;}
26698 # Neutralize special characters interpreted by sed in replacement strings.
26699 case $configure_input in #(
26700 *\
&* |
*\|
* |
*\\* )
26701 ac_sed_conf_input
=`$as_echo "$configure_input" |
26702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26703 *) ac_sed_conf_input
=$configure_input;;
26707 *:-:* |
*:-) cat >"$tmp/stdin" \
26708 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26710 { (exit 1); exit 1; }; } ;;
26715 ac_dir
=`$as_dirname -- "$ac_file" ||
26716 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26717 X"$ac_file" : 'X\(//\)[^/]' \| \
26718 X"$ac_file" : 'X\(//\)$' \| \
26719 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26720 $as_echo X"$ac_file" |
26721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26725 /^X\(\/\/\)[^/].*/{
26740 -*) as_dir
=.
/$as_dir;;
26742 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26746 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26747 *) as_qdir
=$as_dir;;
26749 as_dirs
="'$as_qdir' $as_dirs"
26750 as_dir
=`$as_dirname -- "$as_dir" ||
26751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26752 X"$as_dir" : 'X\(//\)[^/]' \| \
26753 X"$as_dir" : 'X\(//\)$' \| \
26754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26755 $as_echo X"$as_dir" |
26756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26760 /^X\(\/\/\)[^/].*/{
26773 test -d "$as_dir" && break
26775 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26776 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26777 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26778 { (exit 1); exit 1; }; }; }
26782 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26784 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26785 # A ".." for each directory in $ac_dir_suffix.
26786 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26787 case $ac_top_builddir_sub in
26788 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26789 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26792 ac_abs_top_builddir
=$ac_pwd
26793 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26794 # for backward compatibility:
26795 ac_top_builddir
=$ac_top_build_prefix
26798 .
) # We are building in place.
26800 ac_top_srcdir
=$ac_top_builddir_sub
26801 ac_abs_top_srcdir
=$ac_pwd ;;
26802 [\\/]* | ?
:[\\/]* ) # Absolute name.
26803 ac_srcdir
=$srcdir$ac_dir_suffix;
26804 ac_top_srcdir
=$srcdir
26805 ac_abs_top_srcdir
=$srcdir ;;
26806 *) # Relative name.
26807 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26808 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26809 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26811 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26821 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26822 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26827 # If the template does not know about datarootdir, expand it.
26828 # FIXME: This hack should be removed a few years after 2.60.
26829 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26843 *datarootdir
*) ac_datarootdir_seen
=yes;;
26844 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26845 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26849 ac_datarootdir_hack='
26850 s&@datadir@&$datadir&g
26851 s&@docdir@&$docdir&g
26852 s&@infodir@&$infodir&g
26853 s&@localedir@&$localedir&g
26854 s&@mandir@&$mandir&g
26855 s&\\\${datarootdir}&$datarootdir&g' ;;
26859 # Neutralize VPATH when `$srcdir' = `.'.
26860 # Shell code in configure.ac might set extrasub.
26861 # FIXME: do we really want to maintain this feature?
26862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26863 ac_sed_extra="$ac_vpsub
26866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26868 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26869 s|@configure_input@|
$ac_sed_conf_input|
;t t
26870 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26871 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26872 s
&@srcdir@
&$ac_srcdir&;t t
26873 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26874 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26875 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26876 s
&@builddir@
&$ac_builddir&;t t
26877 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26878 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26879 s
&@INSTALL@
&$ac_INSTALL&;t t
26880 $ac_datarootdir_hack
26882 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26883 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26884 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26885 { (exit 1); exit 1; }; }
26887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26888 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26890 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26891 which seems to be undefined. Please make sure it is defined." >&5
26892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26893 which seems to be undefined. Please make sure it is defined." >&2;}
26897 -) cat "$tmp/out" && rm -f "$tmp/out";;
26898 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26900 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26901 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26902 { (exit 1); exit 1; }; }
26908 if test x"$ac_file" != x-; then
26910 $as_echo "/* $configure_input */" \
26911 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26912 } >"$tmp/config.h" \
26913 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26914 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26915 { (exit 1); exit 1; }; }
26916 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26917 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26918 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26921 mv "$tmp/config.h" "$ac_file" \
26922 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26923 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26924 { (exit 1); exit 1; }; }
26927 $as_echo "/* $configure_input */" \
26928 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26929 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26930 $as_echo "$as_me: error: could not create -" >&2;}
26931 { (exit 1); exit 1; }; }
26935 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26936 $as_echo "$as_me: executing $ac_file commands" >&6;}
26941 case $ac_file$ac_mode in
26944 ### Make the necessary directories, if they don't exist.
26945 for dir
in etc lisp
; do
26946 test -d ${dir} || mkdir
${dir}
26949 # Build src/Makefile from ${srcdir}/src/Makefile.c
26950 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26951 # This must be done after src/config.h is built, since we rely on that file.
26953 echo creating src
/epaths.h
26954 ${MAKE-make} epaths-force
26956 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26957 # `..' to `. .' unless invoked with -traditional
26959 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26960 CPPFLAGS
="$CPPFLAGS -traditional"
26963 echo creating lib-src
/Makefile
26965 rm -f junk.c junk1.c junk2.c
26966 sed -e '/start of cpp stuff/q' \
26967 < Makefile.c
> junk1.c
26968 sed -e '1,/start of cpp stuff/d'\
26969 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26970 < Makefile.c
> junk.c
26971 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26972 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26973 cat junk1.c junk2.c
> Makefile.new
26974 rm -f junk.c junk1.c junk2.c
26975 chmod 444 Makefile.new
26976 mv -f Makefile.new Makefile
26979 echo creating src
/Makefile
26981 rm -f junk.c junk1.c junk2.c
26982 sed -e '/start of cpp stuff/q' \
26983 < Makefile.c
> junk1.c
26984 sed -e '1,/start of cpp stuff/d'\
26985 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26986 < Makefile.c
> junk.c
26987 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26988 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26989 cat junk1.c junk2.c
> Makefile.new
26990 rm -f junk.c junk1.c junk2.c
26991 chmod 444 Makefile.new
26992 mv -f Makefile.new Makefile
26995 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26996 echo creating src
/.gdbinit
26997 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27006 { (exit 0); exit 0; }
27008 chmod +x
$CONFIG_STATUS
27009 ac_clean_files
=$ac_clean_files_save
27011 test $ac_write_fail = 0 ||
27012 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27013 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27014 { (exit 1); exit 1; }; }
27017 # configure is writing to config.log, and then calls config.status.
27018 # config.status does its own redirection, appending to config.log.
27019 # Unfortunately, on DOS this fails, as config.log is still kept open
27020 # by configure, so config.status won't be able to write to it; its
27021 # output is simply discarded. So we exec the FD to /dev/null,
27022 # effectively closing config.log, so it can be properly (re)opened and
27023 # appended to by config.status. When coming back to configure, we
27024 # need to make the FD available again.
27025 if test "$no_create" != yes; then
27027 ac_config_status_args
=
27028 test "$silent" = yes &&
27029 ac_config_status_args
="$ac_config_status_args --quiet"
27031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27034 # would make configure fail if this is the last instruction.
27035 $ac_cs_success ||
{ (exit 1); exit 1; }
27037 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27038 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27039 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}