2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
760 x_default_search_path
779 GNUSTEP_SYSTEM_HEADERS
780 GNUSTEP_SYSTEM_LIBRARIES
782 LIB_SRC_EXTRA_INSTALLABLES
787 enable_option_checking
807 with_toolkit_scroll_bars
819 enable_ns_self_contained
821 enable_maintainer_mode
829 ac_precious_vars
='build_alias
841 # Initialize some variables set by options.
843 ac_init_version
=false
844 ac_unrecognized_opts
=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
855 program_transform_name
=s
,x
,x
,
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir
='${exec_prefix}/bin'
870 sbindir
='${exec_prefix}/sbin'
871 libexecdir
='${exec_prefix}/libexec'
872 datarootdir
='${prefix}/share'
873 datadir
='${datarootdir}'
874 sysconfdir
='${prefix}/etc'
875 sharedstatedir
='${prefix}/com'
876 localstatedir
='${prefix}/var'
877 includedir
='${prefix}/include'
878 oldincludedir
='/usr/include'
879 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir
='${datarootdir}/info'
885 libdir
='${exec_prefix}/lib'
886 localedir
='${datarootdir}/locale'
887 mandir
='${datarootdir}/man'
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\
$ac_option
901 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
913 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
916 -build |
--build |
--buil |
--bui |
--bu)
917 ac_prev
=build_alias
;;
918 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
919 build_alias
=$ac_optarg ;;
921 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
922 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
923 ac_prev
=cache_file
;;
924 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
925 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
926 cache_file
=$ac_optarg ;;
929 cache_file
=config.cache
;;
931 -datadir |
--datadir |
--datadi |
--datad)
933 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
934 datadir
=$ac_optarg ;;
936 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
937 |
--dataroo |
--dataro |
--datar)
938 ac_prev
=datarootdir
;;
939 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
940 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
941 datarootdir
=$ac_optarg ;;
943 -disable-* |
--disable-*)
944 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig
=$ac_useropt
950 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep
=', ';;
958 eval enable_
$ac_useropt=no
;;
960 -docdir |
--docdir |
--docdi |
--doc |
--do)
962 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
965 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
967 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
970 -enable-* |
--enable-*)
971 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=\
$ac_optarg ;;
987 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
988 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
989 |
--exec |
--exe |
--ex)
990 ac_prev
=exec_prefix
;;
991 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
992 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
993 |
--exec=* |
--exe=* |
--ex=*)
994 exec_prefix
=$ac_optarg ;;
996 -gas |
--gas |
--ga |
--g)
997 # Obsolete; use --with-gas.
1000 -help |
--help |
--hel |
--he |
-h)
1001 ac_init_help
=long
;;
1002 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1003 ac_init_help
=recursive
;;
1004 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1005 ac_init_help
=short
;;
1007 -host |
--host |
--hos |
--ho)
1008 ac_prev
=host_alias
;;
1009 -host=* |
--host=* |
--hos=* |
--ho=*)
1010 host_alias
=$ac_optarg ;;
1012 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1014 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1016 htmldir
=$ac_optarg ;;
1018 -includedir |
--includedir |
--includedi |
--included |
--include \
1019 |
--includ |
--inclu |
--incl |
--inc)
1020 ac_prev
=includedir
;;
1021 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1022 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1023 includedir
=$ac_optarg ;;
1025 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1027 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1028 infodir
=$ac_optarg ;;
1030 -libdir |
--libdir |
--libdi |
--libd)
1032 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1033 libdir
=$ac_optarg ;;
1035 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1036 |
--libexe |
--libex |
--libe)
1037 ac_prev
=libexecdir
;;
1038 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1039 |
--libexe=* |
--libex=* |
--libe=*)
1040 libexecdir
=$ac_optarg ;;
1042 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1043 ac_prev
=localedir
;;
1044 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1045 localedir
=$ac_optarg ;;
1047 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1048 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1049 ac_prev
=localstatedir
;;
1050 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1051 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1052 localstatedir
=$ac_optarg ;;
1054 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1056 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1057 mandir
=$ac_optarg ;;
1059 -nfp |
--nfp |
--nf)
1060 # Obsolete; use --without-fp.
1063 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1064 |
--no-cr |
--no-c |
-n)
1067 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1068 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1071 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1072 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1073 |
--oldin |
--oldi |
--old |
--ol |
--o)
1074 ac_prev
=oldincludedir
;;
1075 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1076 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1077 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1078 oldincludedir
=$ac_optarg ;;
1080 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1082 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1083 prefix
=$ac_optarg ;;
1085 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1086 |
--program-pre |
--program-pr |
--program-p)
1087 ac_prev
=program_prefix
;;
1088 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1089 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1090 program_prefix
=$ac_optarg ;;
1092 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1093 |
--program-suf |
--program-su |
--program-s)
1094 ac_prev
=program_suffix
;;
1095 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1096 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1097 program_suffix
=$ac_optarg ;;
1099 -program-transform-name |
--program-transform-name \
1100 |
--program-transform-nam |
--program-transform-na \
1101 |
--program-transform-n |
--program-transform- \
1102 |
--program-transform |
--program-transfor \
1103 |
--program-transfo |
--program-transf \
1104 |
--program-trans |
--program-tran \
1105 |
--progr-tra |
--program-tr |
--program-t)
1106 ac_prev
=program_transform_name
;;
1107 -program-transform-name=* |
--program-transform-name=* \
1108 |
--program-transform-nam=* |
--program-transform-na=* \
1109 |
--program-transform-n=* |
--program-transform-=* \
1110 |
--program-transform=* |
--program-transfor=* \
1111 |
--program-transfo=* |
--program-transf=* \
1112 |
--program-trans=* |
--program-tran=* \
1113 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1114 program_transform_name
=$ac_optarg ;;
1116 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1118 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1119 pdfdir
=$ac_optarg ;;
1121 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1123 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1127 |
-silent |
--silent |
--silen |
--sile |
--sil)
1130 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1132 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1134 sbindir
=$ac_optarg ;;
1136 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1137 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1138 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1140 ac_prev
=sharedstatedir
;;
1141 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1142 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1143 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1145 sharedstatedir
=$ac_optarg ;;
1147 -site |
--site |
--sit)
1149 -site=* |
--site=* |
--sit=*)
1152 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1154 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1155 srcdir
=$ac_optarg ;;
1157 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1158 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1159 ac_prev
=sysconfdir
;;
1160 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1161 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1162 sysconfdir
=$ac_optarg ;;
1164 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1165 ac_prev
=target_alias
;;
1166 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1167 target_alias
=$ac_optarg ;;
1169 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1172 -version |
--version |
--versio |
--versi |
--vers |
-V)
1173 ac_init_version
=: ;;
1176 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=\
$ac_optarg ;;
1192 -without-* |
--without-*)
1193 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval with_
$ac_useropt=no
;;
1210 # Obsolete; use --with-x.
1213 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1214 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1215 ac_prev
=x_includes
;;
1216 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1217 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1218 x_includes
=$ac_optarg ;;
1220 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1221 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1222 ac_prev
=x_libraries
;;
1223 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1224 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1225 x_libraries
=$ac_optarg ;;
1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1233 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\
$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 if test -n "$ac_prev"; then
1253 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val
=\$
$ac_var
1274 # Remove trailing slashes.
1277 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\
$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$
]* | ?
:[\\/]* ) continue;;
1283 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target
=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x
; then
1298 if test "x$build_alias" = x
; then
1299 cross_compiling
=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1310 test "$silent" = yes && exec 6>/dev
/null
1313 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di
=`ls -di .` &&
1315 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1316 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted
=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir
=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted
=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var
in $ac_precious_vars; do
1378 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1380 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1454 --x-includes=DIR X include files are
in DIR
1455 --x-libraries=DIR X library files are
in DIR
1458 --build=BUILD configure
for building on BUILD
[guessed
]
1459 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1470 --disable-option-checking ignore unrecognized
--enable/--with options
1471 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1472 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1473 --disable-ns-self-contained
1474 disable self contained build under NeXTstep
1475 --enable-asserts compile code with asserts enabled
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful
(and
1478 sometimes confusing
) to the casual installer
1479 --enable-locallisppath=PATH
1480 directories Emacs should search
for lisp files
1481 specific to this site
1482 --enable-checking[=LIST
]
1483 enable expensive run-time checks. With LIST
, enable
1484 only specific categories of checks. Categories are
:
1485 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1486 stringfreelist
, xmallocoverrun
, conslist
1487 --enable-profiling build emacs with profiling support. This might not
1488 work on all platforms
1489 --enable-autodepend automatically generate dependencies to .h-files.
1490 Requires GNU Make and Gcc. Enabled
if GNU Make and
1492 --disable-largefile omit support
for large files
1495 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1496 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1497 --without-pop don
't support POP mail retrieval with movemail
1498 --with-kerberos support Kerberos-authenticated POP
1499 --with-kerberos5 support Kerberos version 5 authenticated POP
1500 --with-hesiod support Hesiod to get the POP server host
1501 --with-mmdf support MMDF mailboxes
1502 --with-mail-unlink unlink, rather than empty, mail spool after reading
1503 --with-mailhost=HOSTNAME
1504 string giving default POP mail host
1505 --without-sound don't compile with sound support
1506 --without-sync-input process async input synchronously
1507 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1509 --without-xpm don
't compile with XPM image support
1510 --without-jpeg don't compile with JPEG image support
1511 --without-tiff don
't compile with TIFF image support
1512 --without-gif don't compile with GIF image support
1513 --without-png don
't compile with PNG image support
1514 --without-rsvg don't compile with SVG image support
1515 --without-xft don
't use XFT for anti aliased fonts
1516 --without-libotf don't use libotf
for OpenType font support
1517 --without-m17n-flt don
't use m17n-flt for text shaping
1518 --without-toolkit-scroll-bars
1519 don't use Motif or Xaw3d scroll bars
1520 --without-xaw3d don
't use Xaw3d
1521 --without-xim don't use X11 XIM
1522 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1523 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1525 --without-dbus don't compile with D-Bus support
1526 --without-gconf don
't compile with GConf support
1527 --without-makeinfo don't require makeinfo
for building manuals
1529 --with-pkg-config-prog=PATH
1530 path to pkg-config
for finding GTK and librsvg
1531 --with-gnustep-conf=PATH
1532 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1533 or
/etc
/GNUstep
/GNUstep.conf
1534 --with-x use the X Window System
1536 Some influential environment variables
:
1537 CC C compiler
command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1540 nonstandard directory
<lib dir
>
1541 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1542 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1543 you have headers
in a nonstandard directory
<include dir
>
1545 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1547 Use these variables to override the choices made by
`configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 emacs configure 24.0.50
1613 generated by GNU Autoconf 2.62
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1622 cat >config.log <<_ACEOF
1623 This file contains any messages produced by compilers while
1624 running configure, to aid debugging if configure makes a mistake.
1626 It was created by emacs $as_me 24.0.50, which was
1627 generated by GNU Autoconf 2.62. Invocation command line was
1639 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1640 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1641 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1642 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1643 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1645 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1646 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1648 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1649 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1650 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1651 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1652 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1653 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1654 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 $as_echo "PATH: $as_dir"
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1687 ac_must_keep_next=false
1693 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695 | -silent | --silent | --silen | --sile | --sil)
1698 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1701 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1704 if test $ac_must_keep_next = true; then
1705 ac_must_keep_next=false # Got value, back to normal.
1708 *=* | --config-cache | -C | -disable-* | --disable-* \
1709 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711 | -with-* | --with-* | -without-* | --without-* | --x)
1712 case "$ac_configure_args0 " in
1713 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1716 -* ) ac_must_keep_next=true ;;
1719 ac_configure_args="$ac_configure_args '$ac_arg'"
1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log. We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733 # Save into config.log some information that might help in debugging.
1738 ## ---------------- ##
1739 ## Cache variables. ##
1740 ## ---------------- ##
1743 # The following way of writing the cache mishandles newlines in values,
1745 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1746 eval ac_val=\$$ac_var
1750 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1751 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1754 _ | IFS | as_nl) ;; #(
1755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1756 *) $as_unset $ac_var ;;
1761 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1781 for ac_var in $ac_subst_vars
1783 eval ac_val=\$$ac_var
1785 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 $as_echo "$ac_var='\''$ac_val'\''"
1791 if test -n "$ac_subst_files"; then
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1798 for ac_var in $ac_subst_files
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 $as_echo "$ac_var='\''$ac_val'\''"
1809 if test -s confdefs.h; then
1819 test "$ac_signal" != 0 &&
1820 $as_echo "$as_me: caught signal $ac_signal"
1821 $as_echo "$as_me: exit $exit_status"
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1827 for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1835 # Predefined preprocessor variables.
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer an explicitly selected file to automatically selected ones.
1866 if test -n "$CONFIG_SITE"; then
1867 ac_site_file1=$CONFIG_SITE
1868 elif test "x$prefix" != xNONE; then
1869 ac_site_file1=$prefix/share/config.site
1870 ac_site_file2=$prefix/etc/config.site
1872 ac_site_file1=$ac_default_prefix/share/config.site
1873 ac_site_file2=$ac_default_prefix/etc/config.site
1875 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1877 test "x$ac_site_file" = xNONE && continue
1878 if test -r "$ac_site_file"; then
1879 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1881 sed 's/^/| /' "$ac_site_file" >&5
1886 if test -r "$cache_file"; then
1887 # Some versions of bash will fail to source /dev/null (special
1888 # files actually), so we avoid doing that.
1889 if test -f "$cache_file"; then
1890 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 $as_echo "$as_me: loading cache $cache_file" >&6;}
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894 *) . "./$cache_file";;
1898 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 $as_echo "$as_me: creating cache $cache_file" >&6;}
1903 ac_header_list="$ac_header_list sys/time.h"
1904 ac_header_list="$ac_header_list unistd.h"
1905 ac_func_list="$ac_func_list alarm"
1906 # Check that the precious variables saved in the cache have kept the same
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1917 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1921 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 # differences in whitespace do not lead to failure.
1927 ac_old_val_w=`echo x
$ac_old_val`
1928 ac_new_val_w=`echo x
$ac_new_val`
1929 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1932 ac_cache_corrupted=:
1934 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1935 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1936 eval $ac_var=\$ac_old_val
1938 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1939 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1940 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1944 # Pass precious variables to config.status.
1945 if test "$ac_new_set" = set; then
1947 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1948 *) ac_arg=$ac_var=$ac_new_val ;;
1950 case " $ac_configure_args " in
1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956 if $ac_cache_corrupted; then
1957 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1958 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1959 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1960 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1961 { (exit 1); exit 1; }; }
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1999 test "$program_prefix" != NONE &&
2000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2001 # Use a double $ so make ignores it.
2002 test "$program_suffix" != NONE &&
2003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2004 # Double any \ or $.
2005 # By default was `s
,x
,x
', remove it if useless.
2006 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2007 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2010 lispdir='${datadir}/emacs
/${version}/lisp
'
2011 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2012 '${datadir}/emacs
/site-lisp
'
2013 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2014 etcdir='${datadir}/emacs
/${version}/etc
'
2015 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2016 docdir='${datadir}/emacs
/${version}/etc
'
2017 gamedir='${localstatedir}/games
/emacs
'
2024 # Check whether --with-pop was given.
2025 if test "${with_pop+set}" = set; then
2031 if test "$with_pop" = yes; then
2032 cat >>confdefs.h <<\_ACEOF
2033 #define MAIL_USE_POP 1
2040 # Check whether --with-kerberos was given.
2041 if test "${with_kerberos+set}" = set; then
2042 withval=$with_kerberos;
2047 if test "$with_kerberos" != no; then
2048 cat >>confdefs.h <<\_ACEOF
2056 # Check whether --with-kerberos5 was given.
2057 if test "${with_kerberos5+set}" = set; then
2058 withval=$with_kerberos5;
2063 if test "${with_kerberos5}" != no; then
2064 if test "${with_kerberos}" = no; then
2066 cat >>confdefs.h <<\_ACEOF
2072 cat >>confdefs.h <<\_ACEOF
2079 # Check whether --with-hesiod was given.
2080 if test "${with_hesiod+set}" = set; then
2081 withval=$with_hesiod;
2086 if test "$with_hesiod" != no; then
2088 cat >>confdefs.h <<\_ACEOF
2095 # Check whether --with-mmdf was given.
2096 if test "${with_mmdf+set}" = set; then
2102 if test "$with_mmdf" != no; then
2104 cat >>confdefs.h <<\_ACEOF
2105 #define MAIL_USE_MMDF 1
2111 # Check whether --with-mail-unlink was given.
2112 if test "${with_mail_unlink+set}" = set; then
2113 withval=$with_mail_unlink;
2118 if test "$with_mail_unlink" != no; then
2120 cat >>confdefs.h <<\_ACEOF
2121 #define MAIL_UNLINK_SPOOL 1
2127 # Check whether --with-mailhost was given.
2128 if test "${with_mailhost+set}" = set; then
2129 withval=$with_mailhost;
2130 cat >>confdefs.h <<_ACEOF
2131 #define MAILHOST "$withval"
2138 # Check whether --with-sound was given.
2139 if test "${with_sound+set}" = set; then
2140 withval=$with_sound;
2147 # Check whether --with-sync-input was given.
2148 if test "${with_sync_input+set}" = set; then
2149 withval=$with_sync_input;
2154 if test "$with_sync_input" = yes; then
2156 cat >>confdefs.h <<\_ACEOF
2157 #define SYNC_INPUT 1
2163 # Check whether --with-x-toolkit was given.
2164 if test "${with_x_toolkit+set}" = set; then
2165 withval=$with_x_toolkit; case "${withval}" in
2166 y | ye | yes ) val=gtk ;;
2168 l | lu | luc | luci | lucid ) val=lucid ;;
2169 a | at | ath | athe | athen | athena ) val=athena ;;
2170 m | mo | mot | moti | motif ) val=motif ;;
2171 g | gt | gtk ) val=gtk ;;
2173 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
2174 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2175 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
2176 $as_echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
2177 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2178 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
2179 { (exit 1); exit 1; }; }
2188 # Check whether --with-xpm was given.
2189 if test "${with_xpm+set}" = set; then
2196 # Check whether --with-jpeg was given.
2197 if test "${with_jpeg+set}" = set; then
2204 # Check whether --with-tiff was given.
2205 if test "${with_tiff+set}" = set; then
2212 # Check whether --with-gif was given.
2213 if test "${with_gif+set}" = set; then
2220 # Check whether --with-png was given.
2221 if test "${with_png+set}" = set; then
2228 # Check whether --with-rsvg was given.
2229 if test "${with_rsvg+set}" = set; then
2237 # Check whether --with-xft was given.
2238 if test "${with_xft+set}" = set; then
2245 # Check whether --with-libotf was given.
2246 if test "${with_libotf+set}" = set; then
2247 withval=$with_libotf;
2253 # Check whether --with-m17n-flt was given.
2254 if test "${with_m17n_flt+set}" = set; then
2255 withval=$with_m17n_flt;
2262 # Check whether --with-toolkit-scroll-bars was given.
2263 if test "${with_toolkit_scroll_bars+set}" = set; then
2264 withval=$with_toolkit_scroll_bars;
2266 with_toolkit_scroll_bars=yes
2270 # Check whether --with-xaw3d was given.
2271 if test "${with_xaw3d+set}" = set; then
2272 withval=$with_xaw3d;
2278 # Check whether --with-xim was given.
2279 if test "${with_xim+set}" = set; then
2286 # Check whether --with-ns was given.
2287 if test "${with_ns+set}" = set; then
2295 # Check whether --with-gpm was given.
2296 if test "${with_gpm+set}" = set; then
2303 # Check whether --with-dbus was given.
2304 if test "${with_dbus+set}" = set; then
2311 # Check whether --with-gconf was given.
2312 if test "${with_gconf+set}" = set; then
2313 withval=$with_gconf;
2319 ## For the times when you want to build Emacs but don't have
2320 ## a suitable makeinfo, and can live without the manuals.
2322 # Check whether --with-makeinfo was given.
2323 if test "${with_makeinfo+set}" = set; then
2324 withval
=$with_makeinfo;
2331 # Check whether --with-gtk was given.
2332 if test "${with_gtk+set}" = set; then
2333 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2334 specify a toolkit." >&5
2335 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2336 specify a toolkit." >&2;}
2337 { (exit 1); exit 1; }; }
2342 # Check whether --with-gcc was given.
2343 if test "${with_gcc+set}" = set; then
2344 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2345 variable to specify a compiler." >&5
2346 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2347 variable to specify a compiler." >&2;}
2348 { (exit 1); exit 1; }; }
2353 # Check whether --with-pkg-config-prog was given.
2354 if test "${with_pkg_config_prog+set}" = set; then
2355 withval
=$with_pkg_config_prog;
2358 if test "X${with_pkg_config_prog}" != X
; then
2359 if test "${with_pkg_config_prog}" != yes; then
2360 PKG_CONFIG
="${with_pkg_config_prog}"
2365 # Check whether --with-gnustep-conf was given.
2366 if test "${with_gnustep_conf+set}" = set; then
2367 withval
=$with_gnustep_conf;
2370 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2371 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2372 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2373 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2375 # Check whether --enable-ns-self-contained was given.
2376 if test "${enable_ns_self_contained+set}" = set; then
2377 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2379 EN_NS_SELF_CONTAINED
=yes
2383 # Check whether --enable-asserts was given.
2384 if test "${enable_asserts+set}" = set; then
2385 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2391 # Check whether --enable-maintainer-mode was given.
2392 if test "${enable_maintainer_mode+set}" = set; then
2393 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2395 USE_MAINTAINER_MODE
=no
2398 if test $USE_MAINTAINER_MODE = yes; then
2405 # Check whether --enable-locallisppath was given.
2406 if test "${enable_locallisppath+set}" = set; then
2407 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2409 elif test "${enableval}" != "yes"; then
2410 locallisppath
=${enableval}
2415 # Check whether --enable-checking was given.
2416 if test "${enable_checking+set}" = set; then
2417 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2420 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2421 for check
in $ac_checking_flags
2424 # these set all the flags to specific states
2425 yes) ac_enable_checking
=1 ;;
2426 no
) ac_enable_checking
= ;
2427 ac_gc_check_stringbytes
= ;
2428 ac_gc_check_string_overrun
= ;
2429 ac_gc_check_string_free_list
= ;
2430 ac_xmalloc_overrun
= ;
2431 ac_gc_check_cons_list
= ;;
2432 all
) ac_enable_checking
=1 ;
2433 ac_gc_check_stringbytes
=1 ;
2434 ac_gc_check_string_overrun
=1 ;
2435 ac_gc_check_string_free_list
=1 ;
2436 ac_xmalloc_overrun
=1 ;
2437 ac_gc_check_cons_list
=1 ;;
2438 # these enable particular checks
2439 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2440 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2441 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2442 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2443 conslist
) ac_gc_check_cons_list
=1 ;;
2444 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2445 $as_echo "$as_me: error: unknown check category $check" >&2;}
2446 { (exit 1); exit 1; }; } ;;
2451 if test x
$ac_enable_checking != x
; then
2453 cat >>confdefs.h
<<\_ACEOF
2454 #define ENABLE_CHECKING 1
2458 if test x
$ac_gc_check_stringbytes != x
; then
2460 cat >>confdefs.h
<<\_ACEOF
2461 #define GC_CHECK_STRING_BYTES 1
2465 if test x
$ac_gc_check_stringoverrun != x
; then
2467 cat >>confdefs.h
<<\_ACEOF
2468 #define GC_CHECK_STRING_OVERRUN 1
2472 if test x
$ac_gc_check_string_free_list != x
; then
2474 cat >>confdefs.h
<<\_ACEOF
2475 #define GC_CHECK_STRING_FREE_LIST 1
2479 if test x
$ac_xmalloc_overrun != x
; then
2481 cat >>confdefs.h
<<\_ACEOF
2482 #define XMALLOC_OVERRUN_CHECK 1
2486 if test x
$ac_gc_check_cons_list != x
; then
2488 cat >>confdefs.h
<<\_ACEOF
2489 #define GC_CHECK_CONS_LIST 1
2494 # Check whether --enable-profiling was given.
2495 if test "${enable_profiling+set}" = set; then
2496 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2499 if test x
$ac_enable_profiling != x
; then
2500 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2501 PROFILING_LDFLAGS
="-pg"
2507 # Check whether --enable-autodepend was given.
2508 if test "${enable_autodepend+set}" = set; then
2509 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2511 ac_enable_autodepend
=yes
2515 #### Make srcdir absolute, if it isn't already. It's important to
2516 #### avoid running the path through pwd unnecessarily, since pwd can
2517 #### give you automounter prefixes, which can go away. We do all this
2518 #### so Emacs can find its files when run uninstalled.
2519 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2524 ## We may be able to use the $PWD environment variable to make this
2525 ## absolute. But sometimes PWD is inaccurate.
2526 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2527 ## but that tested only for a well-formed and valid PWD,
2528 ## it did not object when PWD was well-formed and valid but just wrong.
2529 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2533 srcdir
="`(cd ${srcdir}; pwd)`"
2536 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2539 #### Check if the source directory already has a configured system in it.
2540 if test `pwd` != `(cd ${srcdir} && pwd)` \
2541 && test -f "${srcdir}/src/config.h" ; then
2542 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2543 as a build directory right now; it has been configured in its own
2544 right. To configure in another directory as well, you MUST
2545 use GNU make. If you do not have GNU make, then you must
2546 now do \`make distclean' in ${srcdir},
2547 and then run $0 again." >&5
2548 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2549 as a build directory right now; it has been configured in its own
2550 right. To configure in another directory as well, you MUST
2551 use GNU make. If you do not have GNU make, then you must
2552 now do \`make distclean' in ${srcdir},
2553 and then run $0 again." >&2;}
2556 #### Given the configuration name, set machfile and opsysfile to the
2557 #### names of the m/*.h and s/*.h files we should use.
2559 ### Canonicalize the configuration name.
2562 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563 if test -f "$ac_dir/install-sh"; then
2565 ac_install_sh
="$ac_aux_dir/install-sh -c"
2567 elif test -f "$ac_dir/install.sh"; then
2569 ac_install_sh
="$ac_aux_dir/install.sh -c"
2571 elif test -f "$ac_dir/shtool"; then
2573 ac_install_sh
="$ac_aux_dir/shtool install -c"
2577 if test -z "$ac_aux_dir"; then
2578 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2579 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2580 { (exit 1); exit 1; }; }
2583 # These three variables are undocumented and unsupported,
2584 # and are intended to be withdrawn in a future Autoconf release.
2585 # They can cause serious problems if a builder's source tree is in a directory
2586 # whose full name contains unusual characters.
2587 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2588 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2589 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2592 # Make sure we can run config.sub.
2593 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2595 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2596 { (exit 1); exit 1; }; }
2598 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2599 $as_echo_n "checking build system type... " >&6; }
2600 if test "${ac_cv_build+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2603 ac_build_alias
=$build_alias
2604 test "x$ac_build_alias" = x
&&
2605 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2606 test "x$ac_build_alias" = x
&&
2607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2610 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2612 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2613 { (exit 1); exit 1; }; }
2616 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2617 $as_echo "$ac_cv_build" >&6; }
2618 case $ac_cv_build in
2620 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2625 ac_save_IFS
=$IFS; IFS
='-'
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2635 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2639 $as_echo_n "checking host system type... " >&6; }
2640 if test "${ac_cv_host+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2643 if test "x$host_alias" = x
; then
2644 ac_cv_host
=$ac_cv_build
2646 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2648 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2653 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2657 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2662 ac_save_IFS
=$IFS; IFS
='-'
2668 # Remember, the first character of IFS is used to create $*,
2669 # except with old shells:
2672 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676 configuration
=${host_alias-${build_alias-$host}}
2680 ### If you add support for a new configuration, add code to this
2681 ### switch statement to recognize your configuration name and select
2682 ### the appropriate operating system and machine description files.
2684 ### You would hope that you could choose an m/*.h file pretty much
2685 ### based on the machine portion of the configuration name, and an s-
2686 ### file based on the operating system portion. However, it turns out
2687 ### that each m/*.h file is pretty manufacturer-specific - for
2688 ### example mips.h is MIPS
2689 ### So we basically have to have a special case for each
2690 ### configuration name.
2692 ### As far as handling version numbers on operating systems is
2693 ### concerned, make sure things will fail in a fixable way. If
2694 ### /etc/MACHINES doesn't say anything about version numbers, be
2695 ### prepared to handle anything reasonably. If version numbers
2696 ### matter, be sure /etc/MACHINES says something about it.
2698 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2699 ### "System V Release 4"; he writes, "The old convention encouraged
2700 ### confusion between `system' and `release' levels'."
2702 machine
='' opsys
='' unported
=no
2703 case "${canonical}" in
2708 case "${canonical}" in
2709 alpha
*-*-freebsd*) machine
=alpha
;;
2710 arm
*-*-freebsd*) machine
=arm
;;
2711 ia64-
*-freebsd*) machine
=ia64
;;
2712 sparc-
*-freebsd*) machine
=sparc
;;
2713 sparc64-
*-freebsd*) machine
=sparc
;;
2714 powerpc-
*-freebsd*) machine
=macppc
;;
2715 i
[3456]86-*-freebsd*) machine
=intel386
;;
2716 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2720 ## FreeBSD kernel + glibc based userland
2723 case "${canonical}" in
2724 alpha
*-*-kfreebsd*) machine
=alpha
;;
2725 ia64-
*-kfreebsd*) machine
=ia64
;;
2726 sparc-
*-kfreebsd*) machine
=sparc
;;
2727 sparc64-
*-kfreebsd*) machine
=sparc
;;
2728 powerpc-
*-kfreebsd*) machine
=macppc
;;
2729 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2730 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2737 if test -f /usr
/lib
/crti.o
; then
2739 cat >>confdefs.h
<<\_ACEOF
2740 #define HAVE_CRTIN /**/
2745 case "${canonical}" in
2746 alpha
*-*-netbsd*) machine
=alpha
;;
2747 i
[3456]86-*-netbsd*) machine
=intel386
;;
2748 mips-
*-netbsd*) machine
=mips
;;
2749 mipsel-
*-netbsd*) machine
=mips
;;
2750 mipseb-
*-netbsd*) machine
=mips
;;
2751 powerpc-
*-netbsd*) machine
=macppc
;;
2752 sparc
*-*-netbsd*) machine
=sparc
;;
2753 vax-
*-netbsd*) machine
=vax
;;
2754 arm-
*-netbsd*) machine
=arm
;;
2755 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2756 hppa-
*-netbsd*) machine
=hp800
;;
2757 m68k-
*-netbsd*) machine
=m68k
;;
2764 case "${canonical}" in
2765 alpha
*-*-openbsd*) machine
=alpha
;;
2766 arm-
*-openbsd*) machine
=arm
;;
2767 i386-
*-openbsd*) machine
=intel386
;;
2768 powerpc-
*-openbsd*) machine
=macppc
;;
2769 sparc
*-*-openbsd*) machine
=sparc
;;
2770 vax-
*-openbsd*) machine
=vax
;;
2771 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2772 hppa-
*-openbsd*) machine
=hp800
;;
2779 case "${canonical}" in
2780 i
[3456]86-*-lynxos*) machine
=intel386
;;
2781 powerpc-
*-lynxos*) machine
=powerpc
;;
2785 alpha
*-*-linux-gnu* )
2786 machine
=alpha opsys
=gnu-linux
2790 machine
=arm opsys
=gnu-linux
2793 ## Apple Darwin / Mac OS X
2795 case "${canonical}" in
2796 i
[3456]86-* ) machine
=intel386
;;
2797 powerpc-
* ) machine
=macppc
;;
2798 x86_64-
* ) machine
=amdx86-64
;;
2802 # Define CPP as follows to make autoconf work correctly.
2803 CPP
="${CC-cc} -E -no-cpp-precomp"
2804 # Use fink packages if available.
2805 if test -d /sw
/include
&& test -d /sw
/lib
; then
2806 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2807 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2808 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2812 ## HP 9000 series 700 and 800, running HP/UX
2813 hppa
*-hp-hpux10.2
* )
2814 machine
=hp800 opsys
=hpux10-20
2816 hppa
*-hp-hpux1[1-9]* )
2817 machine
=hp800 opsys
=hpux11
2818 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2821 hppa
*-*-linux-gnu* )
2822 machine
=hp800 opsys
=gnu-linux
2827 machine
=ibms390 opsys
=gnu-linux
2829 s390x-
*-linux-gnu* )
2830 machine
=ibms390x opsys
=gnu-linux
2832 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2833 machine
=ibmrs6000 opsys
=aix4-2
2835 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2836 machine
=ibmrs6000 opsys
=aix4-2
2838 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2839 machine
=ibmrs6000 opsys
=aix4-2
2841 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2842 machine
=ibmrs6000 opsys
=aix4-2
2845 ## Macintosh PowerPC
2846 powerpc
*-*-linux-gnu* )
2847 machine
=macppc opsys
=gnu-linux
2850 ## Silicon Graphics machines
2853 machine
=iris4d opsys
=irix6-5
2854 # Without defining _LANGUAGE_C, things get masked out in the headers
2855 # so that, for instance, grepping for `free' in stdlib.h fails and
2856 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2857 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2858 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2862 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2863 machine
=sparc opsys
=gnu-linux
2867 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2868 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2869 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2870 case "${canonical}" in
2871 i
[3456]86-*-* ) machine
=intel386
;;
2872 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2873 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2874 sparc
* ) machine
=sparc
;;
2877 case "${canonical}" in
2878 *-sunos5.3
* |
*-solaris2.3
* )
2880 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2882 *-sunos5.4
* |
*-solaris2.4
* )
2884 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2887 *-sunos5.5
* |
*-solaris2.5
* )
2889 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2892 *-sunos5.6
* |
*-solaris2.6
* )
2894 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2897 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2899 emacs_check_sunpro_c
=yes
2900 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2902 *-sunos5* |
*-solaris* )
2904 emacs_check_sunpro_c
=yes
2905 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2908 ## Watch out for a compiler that we know will not work.
2909 case "${canonical}" in
2910 *-solaris* |
*-sunos5* )
2911 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2912 ## /usr/ucb/cc doesn't work;
2913 ## we should find some other compiler that does work.
2923 machine
=ia64 opsys
=gnu-linux
2926 ## Intel 386 machines where we don't care about the manufacturer
2929 case "${canonical}" in
2930 *-cygwin ) opsys
=cygwin
;;
2931 *-darwin* ) opsys
=darwin
2932 CPP
="${CC-cc} -E -no-cpp-precomp"
2934 *-linux-gnu* ) opsys
=gnu-linux
;;
2935 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2936 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2937 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2938 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2942 ## m68k Linux-based GNU system
2944 machine
=m68k opsys
=gnu-linux
2947 ## Mips Linux-based GNU system
2948 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2949 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2950 machine
=mips opsys
=gnu-linux
2953 ## AMD x86-64 Linux-based GNU system
2954 x86_64-
*-linux-gnu* )
2955 machine
=amdx86-64 opsys
=gnu-linux
2958 ## Tensilica Xtensa Linux-based GNU system
2959 xtensa
*-*-linux-gnu* )
2960 machine
=xtensa opsys
=gnu-linux
2963 ## SuperH Linux-based GNU system
2964 sh
[34]*-*-linux-gnu* )
2965 machine
=sh3 opsys
=gnu-linux
2973 ### If the code above didn't choose an operating system, just choose
2974 ### an operating system based on the configuration name. You really
2975 ### only want to use this when you have no idea what the right
2976 ### operating system is; if you know what operating systems a machine
2977 ### runs, it's cleaner to make it explicit in the case statement
2979 if test x
"${opsys}" = x
; then
2980 case "${canonical}" in
2981 *-gnu* ) opsys
=gnu
;;
2982 *-sysv4.2uw
* ) opsys
=unixware
;;
2983 *-sysv5uw* ) opsys
=unixware
;;
2984 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2985 *-sysv4.1
* |
*-sysvr4.1
* )
2986 NON_GNU_CPP
=/usr
/lib
/cpp
2988 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2989 if [ x
$NON_GNU_CPP = x
]; then
2990 if [ -f /usr
/ccs
/lib
/cpp
]; then
2991 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2993 NON_GNU_CPP
=/lib
/cpp
2997 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3006 if test $unported = yes; then
3007 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3008 Check \`etc/MACHINES' for recognized configuration names." >&5
3009 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3010 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3011 { (exit 1); exit 1; }; }
3014 machfile
="m/${machine}.h"
3015 opsysfile
="s/${opsys}.h"
3018 #### Choose a compiler.
3019 test -n "$CC" && cc_specified
=yes
3021 # Save the value of CFLAGS that the user specified.
3022 SPECIFIED_CFLAGS
="$CFLAGS"
3025 ac_cpp
='$CPP $CPPFLAGS'
3026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC
="$CC" # Let the user override the test.
3040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir
=.
3045 for ac_exec_ext
in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$ac_cv_prog_CC"; then
3070 # Extract the first word of "gcc", so it can be a program name with args.
3071 set dummy gcc
; ac_word
=$2
3072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir
=.
3085 for ac_exec_ext
in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_CC
="gcc"
3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3103 $as_echo "no" >&6; }
3106 if test "x$ac_ct_CC" = x
; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&5
3114 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3117 ac_tool_warned
=yes ;;
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3128 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC
="$CC" # Let the user override the test.
3137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir
=.
3142 for ac_exec_ext
in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3159 { $as_echo "$as_me:$LINENO: result: no" >&5
3160 $as_echo "no" >&6; }
3166 if test -z "$CC"; then
3167 # Extract the first word of "cc", so it can be a program name with args.
3168 set dummy cc
; ac_word
=$2
3169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC
="$CC" # Let the user override the test.
3178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir
=.
3183 for ac_exec_ext
in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3186 ac_prog_rejected
=yes
3190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 if test $ac_prog_rejected = yes; then
3198 # We found a bogon in the path, so make sure we never use it.
3199 set dummy
$ac_cv_prog_CC
3201 if test $# != 0; then
3202 # We chose a different compiler from the bogus one.
3203 # However, it has the same basename, so the bogon will be chosen
3204 # first if we set CC to just the basename; use the full file name.
3206 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog
in cl.exe
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC
="$CC" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$CC" && break
3266 if test -z "$CC"; then
3268 for ac_prog
in cl.exe
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy
$ac_prog; ac_word
=$2
3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir
=.
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_ac_ct_CC
="$ac_prog"
3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$ac_ct_CC" && break
3310 if test "x$ac_ct_CC" = x
; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3316 whose name does not start with the host triplet. If you think this
3317 configuration is useful to you, please write to autoconf@gnu.org." >&5
3318 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3321 ac_tool_warned
=yes ;;
3330 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." >&5
3332 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3336 # Provide some information about the compiler.
3337 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3340 { (ac_try
="$ac_compiler --version >&5"
3342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler --version >&5") 2>&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351 { (ac_try="$ac_compiler -v >&5"
3353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3354 *) ac_try_echo
=$ac_try;;
3356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -v >&5") 2>&5
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try
="$ac_compiler -V >&5"
3364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368 $as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -V >&5") 2>&5
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3389 ac_clean_files_save=$ac_clean_files
3390 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391 # Try to create an executable without -o first, disregard a.out.
3392 # It will help us diagnose broken compilers, and finding out an intuition
3394 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3396 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3398 # The possible output files:
3399 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3402 for ac_file in $ac_files
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3411 if { (ac_try="$ac_link_default"
3413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3414 *) ac_try_echo
=$ac_try;;
3416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_link_default") 2>&5
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; then
3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3425 # so that the user can short-circuit this test for compilers unknown to
3427 for ac_file
in $ac_files ''
3429 test -f "$ac_file" ||
continue
3431 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3434 # We found the default executable, but exeext='' is most
3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3440 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 # We set ac_cv_exeext here because the later test for it is not
3443 # safe: cross compilers may not add the suffix if given an `-o'
3444 # argument, so we may need to know it at that point already.
3445 # Even if this section looks crufty: it has the advantage of
3452 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3458 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3459 $as_echo "$ac_file" >&6; }
3460 if test -z "$ac_file"; then
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.
$ac_ext >&5
3464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: C compiler cannot create executables
3467 See \`config.log' for more details." >&2;}
3468 { (exit 77); exit 77; }; }
3471 ac_exeext
=$ac_cv_exeext
3473 # Check that the compiler produces executables we can run. If not, either
3474 # the compiler is broken, or we cross compile.
3475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3478 # If not cross compiling, check that we can run a simple program.
3479 if test "$cross_compiling" != yes; then
3480 if { ac_try
='./$ac_file'
3481 { (case "(($ac_try" in
3482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_try") 2>&5
3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3493 if test "$cross_compiling" = maybe; then
3496 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details.
" >&5
3499 $as_echo "$as_me: error
: cannot run C compiled programs.
3500 If you meant to cross compile
, use \
`--host'.
3501 See \`config.log
' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3506 { $as_echo "$as_me:$LINENO: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510 ac_clean_files=$ac_clean_files_save
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3518 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3519 $as_echo_n "checking for suffix of executables... " >&6; }
3520 if { (ac_try="$ac_link"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_link") 2>&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; then
3531 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3532 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3533 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3535 for ac_file
in conftest.exe conftest conftest.
*; do
3536 test -f "$ac_file" ||
continue
3538 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3539 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&5
3547 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3552 rm -f conftest
$ac_cv_exeext
3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3554 $as_echo "$ac_cv_exeext" >&6; }
3556 rm -f conftest.
$ac_ext
3557 EXEEXT
=$ac_cv_exeext
3559 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3560 $as_echo_n "checking for suffix of object files... " >&6; }
3561 if test "${ac_cv_objext+set}" = set; then
3562 $as_echo_n "(cached) " >&6
3564 cat >conftest.
$ac_ext <<_ACEOF
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3579 rm -f conftest.o conftest.obj
3580 if { (ac_try
="$ac_compile"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587 (eval "$ac_compile") 2>&5
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; then
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log
' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details.
" >&2;}
3607 { (exit 1); exit 1; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 $as_echo_n "(cached
) " >&6
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3659 $as_echo "$as_me: failed program was
:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3679 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681 $as_echo_n "(cached
) " >&6
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3722 $as_echo "$as_me: failed program was
:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3761 $as_echo "$as_me: failed program was
:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3801 $as_echo "$as_me: failed program was
:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3827 if test "$GCC" = yes; then
3833 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3834 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached
) " >&6
3838 ac_cv_prog_cc_c89=no
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3864 s = g (p, va_arg (v,int));
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3921 $as_echo "$as_me: failed program was
:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3930 rm -f conftest.$ac_ext
3935 case "x
$ac_cv_prog_cc_c89" in
3937 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3938 $as_echo "none needed
" >&6; } ;;
3940 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3941 $as_echo "unsupported
" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 # On Suns, sometimes $CPP names a directory.
3957 if test -n "$CPP" && test -d "$CPP"; then
3961 ## If not using gcc, and on Solaris, and no CPP specified, see if
3962 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3963 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3964 test x"$CPP" = x; then
3965 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3966 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3968 if test "${emacs_cv_sunpro_c+set}" = set; then
3969 $as_echo_n "(cached
) " >&6
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3996 $as_echo "$ac_try_echo") >&5
3997 (eval "$ac_link") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest$ac_exeext && {
4007 test "$cross_compiling" = yes ||
4008 $as_test_x conftest$ac_exeext
4010 emacs_cv_sunpro_c=yes
4012 $as_echo "$as_me: failed program was
:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 emacs_cv_sunpro_c=no
4018 rm -rf conftest.dSYM
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4023 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4024 $as_echo "$emacs_cv_sunpro_c" >&6; }
4026 if test x"$emacs_cv_sunpro_c" = xyes; then
4027 NON_GNU_CPP="$CC -E -Xs"
4031 #### Some systems specify a CPP to use unless we are using GCC.
4032 #### Now that we know whether we are using GCC, we can decide whether
4033 #### to use that one.
4034 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4039 #### Some systems specify a CC to use unless we are using GCC.
4040 #### Now that we know whether we are using GCC, we can decide whether
4041 #### to use that one.
4042 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4043 test x$cc_specified != xyes
4048 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4050 CC="$CC $GCC_TEST_OPTIONS"
4053 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4055 CC="$CC $NON_GCC_TEST_OPTIONS"
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4064 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4065 # On Suns, sometimes $CPP names a directory.
4066 if test -n "$CPP" && test -d "$CPP"; then
4069 if test -z "$CPP"; then
4070 if test "${ac_cv_prog_CPP+set}" = set; then
4071 $as_echo_n "(cached
) " >&6
4073 # Double quotes because CPP needs to be expanded
4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4077 for ac_c_preproc_warn_flag in '' yes
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error
" is here to catch this case.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4092 # include <limits.h>
4094 # include <assert.h>
4098 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4117 $as_echo "$as_me: failed program was
:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 # Broken: fails on valid input.
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4136 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4153 # Broken: success on invalid input.
4156 $as_echo "$as_me: failed program was
:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Passes both tests.
4164 rm -f conftest.err conftest.$ac_ext
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4181 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4182 $as_echo "$CPP" >&6; }
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error
" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4199 # include <limits.h>
4201 # include <assert.h>
4205 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4211 $as_echo "$ac_try_echo") >&5
4212 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4224 $as_echo "$as_me: failed program was
:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Broken: fails on valid input.
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4249 $as_echo "$ac_try_echo") >&5
4250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4260 # Broken: success on invalid input.
4263 $as_echo "$as_me: failed program was
:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Passes both tests.
4271 rm -f conftest.err conftest.$ac_ext
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then
4279 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4280 See \
`config.log' for more details." >&5
4281 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log
' for more details." >&2;}
4283 { (exit 1); exit 1; }; }
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4289 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295 if test "${ac_cv_path_GREP+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4298 if test -z "$GREP"; then
4299 ac_path_GREP_found=false
4300 # Loop through the user's path and
test for each of PROGNAME-LIST
4301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4305 test -z "$as_dir" && as_dir
=.
4306 for ac_prog
in grep ggrep
; do
4307 for ac_exec_ext
in '' $ac_executable_extensions; do
4308 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4310 # Check for GNU ac_path_GREP and select it if it is found.
4311 # Check for GNU $ac_path_GREP
4312 case `"$ac_path_GREP" --version 2>&1` in
4314 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4317 $as_echo_n 0123456789 >"conftest.in"
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'GREP' >> "conftest.nl"
4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4325 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4326 ac_count
=`expr $ac_count + 1`
4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP
="$ac_path_GREP"
4330 ac_path_GREP_max
=$ac_count
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4335 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4338 $ac_path_GREP_found && break 3
4343 if test -z "$ac_cv_path_GREP"; then
4344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4345 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4346 { (exit 1); exit 1; }; }
4349 ac_cv_path_GREP
=$GREP
4353 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP
="$ac_cv_path_GREP"
4358 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then
4361 $as_echo_n "(cached) " >&6
4363 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4364 then ac_cv_path_EGREP
="$GREP -E"
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found
=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4370 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_prog
in egrep; do
4375 for ac_exec_ext
in '' $ac_executable_extensions; do
4376 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4382 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4385 $as_echo_n 0123456789 >"conftest.in"
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4393 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4394 ac_count
=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP
="$ac_path_EGREP"
4398 ac_path_EGREP_max
=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4403 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4406 $ac_path_EGREP_found && break 3
4411 if test -z "$ac_cv_path_EGREP"; then
4412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4417 ac_cv_path_EGREP
=$EGREP
4422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4423 $as_echo "$ac_cv_path_EGREP" >&6; }
4424 EGREP
="$ac_cv_path_EGREP"
4427 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4428 $as_echo_n "checking for ANSI C header files... " >&6; }
4429 if test "${ac_cv_header_stdc+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4432 cat >conftest.
$ac_ext <<_ACEOF
4435 cat confdefs.h
>>conftest.
$ac_ext
4436 cat >>conftest.
$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4451 rm -f conftest.
$ac_objext
4452 if { (ac_try
="$ac_compile"
4454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 ac_cv_header_stdc=yes
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_cv_header_stdc=no
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 if test $ac_cv_header_stdc = yes; then
4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "free" >/dev/null 2>&1; then
4515 ac_cv_header_stdc=no
4521 if test $ac_cv_header_stdc = yes; then
4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4523 if test "$cross_compiling" = yes; then
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4534 #if ((' ' & 0x0FF) == 0x020)
4535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4538 # define ISLOWER(c) \
4539 (('a' <= (c) && (c) <= 'i') \
4540 || ('j' <= (c) && (c) <= 'r') \
4541 || ('s' <= (c) && (c) <= 'z'))
4542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4550 for (i = 0; i < 256; i++)
4551 if (XOR (islower (i), ISLOWER (i))
4552 || toupper (i) != TOUPPER (i))
4557 rm -f conftest$ac_exeext
4558 if { (ac_try="$ac_link"
4560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4561 *) ac_try_echo
=$ac_try;;
4563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4564 $as_echo "$ac_try_echo") >&5
4565 (eval "$ac_link") 2>&5
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_try") 2>&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4581 $as_echo "$as_me: program exited with status $ac_status" >&5
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_cv_header_stdc=no
4588 rm -rf conftest.dSYM
4589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4596 $as_echo "$ac_cv_header_stdc" >&6; }
4597 if test $ac_cv_header_stdc = yes; then
4599 cat >>confdefs.h <<\_ACEOF
4600 #define STDC_HEADERS 1
4605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616 inttypes.h stdint.h unistd.h
4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 $as_echo_n "checking for $ac_header... " >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 $as_echo_n "(cached) " >&6
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4632 #include <$ac_header>
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4638 *) ac_try_echo
=$ac_try;;
4640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.
$ac_objext; then
4652 eval "$as_ac_Header=yes"
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.
$ac_ext >&5
4657 eval "$as_ac_Header=no"
4660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4662 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4663 $as_echo "$as_val"'`
4664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if test `eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'` = yes; then
4668 cat >>confdefs.h
<<_ACEOF
4669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 if test "${ac_cv_header_minix_config_h+set}" = set; then
4679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4680 $as_echo_n "checking for minix/config.h... " >&6; }
4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4687 # Is the header compilable?
4688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4689 $as_echo_n "checking minix/config.h usability... " >&6; }
4690 cat >conftest.
$ac_ext <<_ACEOF
4693 cat confdefs.h
>>conftest.
$ac_ext
4694 cat >>conftest.
$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 #include <minix/config.h>
4699 rm -f conftest.
$ac_objext
4700 if { (ac_try
="$ac_compile"
4702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_header_compiler=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727 $as_echo "$ac_header_compiler" >&6; }
4729 # Is the header present?
4730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4731 $as_echo_n "checking minix/config.h presence... " >&6; }
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <minix/config.h>
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4743 *) ac_try_echo
=$ac_try;;
4745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4749 grep -v '^ *+' conftest.er1
>conftest.err
4751 cat conftest.err
>&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev
/null
&& {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4757 ac_header_preproc
=yes
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.
$ac_ext >&5
4762 ac_header_preproc
=no
4765 rm -f conftest.err conftest.
$ac_ext
4766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767 $as_echo "$ac_header_preproc" >&6; }
4769 # So? What about this header?
4770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc
=yes
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795 $as_echo_n "checking for minix/config.h... " >&6; }
4796 if test "${ac_cv_header_minix_config_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4799 ac_cv_header_minix_config_h
=$ac_header_preproc
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4805 if test $ac_cv_header_minix_config_h = yes; then
4812 if test "$MINIX" = yes; then
4814 cat >>confdefs.h
<<\_ACEOF
4815 #define _POSIX_SOURCE 1
4819 cat >>confdefs.h
<<\_ACEOF
4820 #define _POSIX_1_SOURCE 2
4824 cat >>confdefs.h
<<\_ACEOF
4832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4835 $as_echo_n "(cached) " >&6
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # define __EXTENSIONS__ 1
4845 $ac_includes_default
4854 rm -f conftest.
$ac_objext
4855 if { (ac_try
="$ac_compile"
4857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_safe_to_define___extensions__=yes
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_safe_to_define___extensions__=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4884 test $ac_cv_safe_to_define___extensions__ = yes &&
4885 cat >>confdefs.h <<\_ACEOF
4886 #define __EXTENSIONS__ 1
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _ALL_SOURCE 1
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _GNU_SOURCE 1
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _POSIX_PTHREAD_SEMANTICS 1
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _TANDEM_SOURCE 1
4907 ### Use -Wno-pointer-sign if the compiler supports it
4908 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4909 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4910 SAVE_CFLAGS="$CFLAGS"
4911 CFLAGS="$CFLAGS -Wno-pointer-sign"
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4931 *) ac_try_echo
=$ac_try;;
4933 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.
$ac_objext; then
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4954 if test $has_option = yes; then
4955 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4957 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4958 $as_echo "$has_option" >&6; }
4959 CFLAGS
="$SAVE_CFLAGS"
4963 ### Use -Wdeclaration-after-statement if the compiler supports it
4964 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4965 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4966 SAVE_CFLAGS
="$CFLAGS"
4967 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4968 cat >conftest.
$ac_ext <<_ACEOF
4971 cat confdefs.h
>>conftest.
$ac_ext
4972 cat >>conftest.
$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4983 rm -f conftest.
$ac_objext
4984 if { (ac_try
="$ac_compile"
4986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
5003 $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 if test $has_option = yes; then
5011 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5013 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5014 $as_echo "$has_option" >&6; }
5015 CFLAGS="$SAVE_CFLAGS"
5019 #### Some other nice autoconf tests.
5021 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5022 $as_echo_n "checking whether ln -s works... " >&6; }
5024 if test "$LN_S" = "ln -s"; then
5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
5026 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5029 $as_echo "no, using $LN_S" >&6; }
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5039 # On Suns, sometimes $CPP names a directory.
5040 if test -n "$CPP" && test -d "$CPP"; then
5043 if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5066 # include <limits.h>
5068 # include <assert.h>
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5075 *) ac_try_echo
=$ac_try;;
5077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 grep -v '^ *+' conftest.er1
>conftest.err
5083 cat conftest.err
>&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev
/null
&& {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.
$ac_ext >&5
5094 # Broken: fails on valid input.
5098 rm -f conftest.err conftest.
$ac_ext
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat >conftest.
$ac_ext <<_ACEOF
5105 cat confdefs.h
>>conftest.
$ac_ext
5106 cat >>conftest.
$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5110 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5127 # Broken: success on invalid input.
5130 $as_echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Passes both tests.
5138 rm -f conftest.err conftest.$ac_ext
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.
$ac_ext
5143 if $ac_preproc_ok; then
5155 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5156 $as_echo "$CPP" >&6; }
5158 for ac_c_preproc_warn_flag
in '' yes
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.
$ac_ext <<_ACEOF
5169 cat confdefs.h
>>conftest.
$ac_ext
5170 cat >>conftest.
$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5173 # include <limits.h>
5175 # include <assert.h>
5179 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 # Broken: fails on valid input.
5205 rm -f conftest.err conftest.$ac_ext
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5217 if { (ac_try="$ac_cpp conftest.$ac_ext"
5219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5220 *) ac_try_echo
=$ac_try;;
5222 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev
/null
&& {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5234 # Broken: success on invalid input.
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.
$ac_ext >&5
5240 # Passes both tests.
5245 rm -f conftest.err conftest.
$ac_ext
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.
$ac_ext
5250 if $ac_preproc_ok; then
5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&5
5255 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5261 ac_cpp
='$CPP $CPPFLAGS'
5262 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5266 # Find a good install program. We prefer a C program (faster),
5267 # so one script is as good as another. But avoid the broken or
5268 # incompatible versions:
5269 # SysV /etc/install, /usr/sbin/install
5270 # SunOS /usr/etc/install
5271 # IRIX /sbin/install
5273 # AmigaOS /C/install, which installs bootblocks on floppy discs
5274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5277 # OS/2's system install, which has a completely different semantic
5278 # ./install, which can be erroneously created by make from ./install.sh.
5279 # Reject install programs that cannot install multiple files.
5280 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5282 if test -z "$INSTALL"; then
5283 if test "${ac_cv_path_install+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir
=.
5291 # Account for people who put trailing slashes in PATH elements.
5293 .
/ | .
// |
/cC
/* | \
5294 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5295 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5298 # OSF1 and SCO ODT 3.0 have their own names for install.
5299 # Don't use installbsd from OSF since it installs stuff as root
5301 for ac_prog
in ginstall scoinst
install; do
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5304 if test $ac_prog = install &&
5305 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5306 # AIX install. It has an incompatible calling convention.
5308 elif test $ac_prog = install &&
5309 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5310 # program-specific install script used by HP pwplus--don't use.
5313 rm -rf conftest.one conftest.two conftest.dir
5314 echo one
> conftest.one
5315 echo two
> conftest.two
5317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5318 test -s conftest.one
&& test -s conftest.two
&&
5319 test -s conftest.dir
/conftest.one
&&
5320 test -s conftest.dir
/conftest.two
5322 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5335 rm -rf conftest.one conftest.two conftest.dir
5338 if test "${ac_cv_path_install+set}" = set; then
5339 INSTALL
=$ac_cv_path_install
5341 # As a last resort, use the slow shell script. Don't cache a
5342 # value for INSTALL within a source directory, because that will
5343 # break other packages using the cache if that directory is
5344 # removed, or if the value is a relative name.
5345 INSTALL
=$ac_install_sh
5348 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5349 $as_echo "$INSTALL" >&6; }
5351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5352 # It thinks the first close brace ends the variable substitution.
5353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5357 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5359 if test "x$RANLIB" = x
; then
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5362 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_RANLIB+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5368 if test -n "$RANLIB"; then
5369 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 RANLIB
=$ac_cv_prog_RANLIB
5389 if test -n "$RANLIB"; then
5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5391 $as_echo "$RANLIB" >&6; }
5393 { $as_echo "$as_me:$LINENO: result: no" >&5
5394 $as_echo "no" >&6; }
5399 if test -z "$ac_cv_prog_RANLIB"; then
5400 ac_ct_RANLIB
=$RANLIB
5401 # Extract the first word of "ranlib", so it can be a program name with args.
5402 set dummy ranlib
; ac_word
=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$ac_ct_RANLIB"; then
5409 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir
=.
5416 for ac_exec_ext
in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5429 if test -n "$ac_ct_RANLIB"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5431 $as_echo "$ac_ct_RANLIB" >&6; }
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_ct_RANLIB" = x
; then
5440 case $cross_compiling:$ac_tool_warned in
5442 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&5
5445 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5448 ac_tool_warned
=yes ;;
5450 RANLIB
=$ac_ct_RANLIB
5453 RANLIB
="$ac_cv_prog_RANLIB"
5457 # Extract the first word of "install-info", so it can be a program name with args.
5458 set dummy install-info
; ac_word
=$2
5459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 case $INSTALL_INFO in
5466 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir
=.
5474 for ac_exec_ext
in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5488 if test -n "$INSTALL_INFO"; then
5489 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5490 $as_echo "$INSTALL_INFO" >&6; }
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493 $as_echo "no" >&6; }
5497 # Extract the first word of "install-info", so it can be a program name with args.
5498 set dummy install-info
; ac_word
=$2
5499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5502 $as_echo_n "(cached) " >&6
5504 case $INSTALL_INFO in
5506 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5510 for as_dir
in /usr
/sbin
5513 test -z "$as_dir" && as_dir
=.
5514 for ac_exec_ext
in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5528 if test -n "$INSTALL_INFO"; then
5529 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5530 $as_echo "$INSTALL_INFO" >&6; }
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533 $as_echo "no" >&6; }
5537 # Extract the first word of "install-info", so it can be a program name with args.
5538 set dummy install-info
; ac_word
=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 case $INSTALL_INFO in
5546 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir
=.
5554 for ac_exec_ext
in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5568 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5569 if test -n "$INSTALL_INFO"; then
5570 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5571 $as_echo "$INSTALL_INFO" >&6; }
5573 { $as_echo "$as_me:$LINENO: result: no" >&5
5574 $as_echo "no" >&6; }
5578 # Extract the first word of "gzip", so it can be a program name with args.
5579 set dummy
gzip; ac_word
=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5587 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir
=.
5595 for ac_exec_ext
in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5609 if test -n "$GZIP_PROG"; then
5610 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5611 $as_echo "$GZIP_PROG" >&6; }
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5620 ## Need makeinfo >= 4.6 (?) to build the manuals.
5621 # Extract the first word of "makeinfo", so it can be a program name with args.
5622 set dummy makeinfo
; ac_word
=$2
5623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5630 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_exec_ext
in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5652 MAKEINFO
=$ac_cv_path_MAKEINFO
5653 if test -n "$MAKEINFO"; then
5654 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5655 $as_echo "$MAKEINFO" >&6; }
5657 { $as_echo "$as_me:$LINENO: result: no" >&5
5658 $as_echo "no" >&6; }
5662 if test "$MAKEINFO" != "no" && \
5663 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
5667 ## Makeinfo is unusual. For a released Emacs, the manuals are
5668 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5669 ## therefore in the category of "special tools" not normally required, which
5670 ## configure does not have to check for (eg autoconf itself).
5671 ## In a Bazaar checkout on the other hand, the manuals are not included.
5672 ## So makeinfo is a requirement to build from Bazaar, and configure
5673 ## should test for it as it does for any other build requirement.
5674 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5675 ## with pre-built manuals, from a Bazaar checkout.
5676 if test "$MAKEINFO" = "no"; then
5677 if test "x${with_makeinfo}" = "xno"; then
5679 elif ! test -e $srcdir/info
/emacs
; then
5680 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5681 source tree does not seem to have pre-built manuals in the \`info' directory.
5682 Either install a suitable version of makeinfo, or re-run configure
5683 with the \`--without-makeinfo' option to build without the manuals. " >&5
5684 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5685 source tree does not seem to have pre-built manuals in the \`info' directory.
5686 Either install a suitable version of makeinfo, or re-run configure
5687 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5688 { (exit 1); exit 1; }; }
5693 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5695 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5698 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5700 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5704 late_LDFLAGS
=$LDFLAGS
5705 if test "$GCC" = yes; then
5706 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5708 LDFLAGS
="$LDFLAGS -znocombreloc"
5711 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5712 $as_echo_n "checking for -znocombreloc... " >&6; }
5713 cat >conftest.
$ac_ext <<_ACEOF
5716 rm -f conftest.
$ac_objext conftest
$ac_exeext
5717 if { (ac_try
="$ac_link"
5719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724 (eval "$ac_link") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext && {
5734 test "$cross_compiling" = yes ||
5735 $as_test_x conftest$ac_exeext
5737 { $as_echo "$as_me:$LINENO: result: yes" >&5
5738 $as_echo "yes" >&6; }
5740 $as_echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 LDFLAGS=$late_LDFLAGS
5744 { $as_echo "$as_me:$LINENO: result: no" >&5
5745 $as_echo "no" >&6; }
5748 rm -rf conftest.dSYM
5749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5750 conftest$ac_exeext conftest.$ac_ext
5752 #### Extract some information from the operating system and machine files.
5754 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5755 - which libraries the lib-src programs will want, and
5756 - whether the GNU malloc routines are usable..." >&5
5757 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5758 - which libraries the lib-src programs will want, and
5759 - whether the GNU malloc routines are usable..." >&6;}
5761 ### First figure out CFLAGS (which we use for running the compiler here)
5762 ### and REAL_CFLAGS (which we use for real compilation).
5763 ### The two are the same except on a few systems, where they are made
5764 ### different to work around various lossages. For example,
5765 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5766 ### as implying static linking.
5768 ### If the CFLAGS env var is specified, we use that value
5769 ### instead of the default.
5771 ### It's not important that this name contain the PID; you can't run
5772 ### two configures in the same directory and have anything work
5774 tempcname="conftest.c"
5777 #include "'${srcdir}'/src/'${opsysfile}'"
5778 #include "'${srcdir}'/src/'${machfile}'"
5779 #ifndef LIBS_MACHINE
5780 #define LIBS_MACHINE
5785 #ifndef C_SWITCH_SYSTEM
5786 #define C_SWITCH_SYSTEM
5788 #ifndef C_SWITCH_MACHINE
5789 #define C_SWITCH_MACHINE
5791 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5792 configure___ c_switch_system=C_SWITCH_SYSTEM
5793 configure___ c_switch_machine=C_SWITCH_MACHINE
5796 #define LIB_X11_LIB -lX11
5799 #ifndef LIBX11_SYSTEM
5800 #define LIBX11_SYSTEM
5802 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5805 configure___ unexec=UNEXEC
5807 configure___ unexec=unexec.o
5810 #ifdef SYSTEM_MALLOC
5811 configure___ system_malloc=yes
5813 configure___ system_malloc=no
5816 #ifdef USE_MMAP_FOR_BUFFERS
5817 configure___ use_mmap_for_buffers=yes
5819 configure___ use_mmap_for_buffers=no
5822 #ifndef C_DEBUG_SWITCH
5823 #define C_DEBUG_SWITCH -g
5826 #ifndef C_OPTIMIZE_SWITCH
5828 #define C_OPTIMIZE_SWITCH -O2
5830 #define C_OPTIMIZE_SWITCH -O
5834 #ifndef C_WARNINGS_SWITCH
5835 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5838 #ifndef LD_SWITCH_MACHINE
5839 #define LD_SWITCH_MACHINE
5842 #ifndef LD_SWITCH_SYSTEM
5843 #define LD_SWITCH_SYSTEM
5846 #ifndef LD_SWITCH_X_SITE_AUX
5847 #define LD_SWITCH_X_SITE_AUX
5850 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5851 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5853 #ifdef THIS_IS_CONFIGURE
5855 /* Get the CFLAGS for tests in configure. */
5857 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5859 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5862 #else /* not THIS_IS_CONFIGURE */
5864 /* Get the CFLAGS for real compilation. */
5866 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5868 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5871 #endif /* not THIS_IS_CONFIGURE */
5874 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5876 # The value of CPP is a quoted variable reference, so we need to do this
5877 # to get its actual value...
5878 CPP=`eval "echo $CPP"`
5879 eval `${CPP} -Isrc ${tempcname} \
5880 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5881 if test "x$SPECIFIED_CFLAGS" = x; then
5882 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5883 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5885 REAL_CFLAGS="$CFLAGS"
5889 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5891 ### Make sure subsequent tests use flags consistent with the build flags.
5893 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5894 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5896 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5901 # Check whether --enable-largefile was given.
5902 if test "${enable_largefile+set}" = set; then
5903 enableval=$enable_largefile;
5906 if test "$enable_largefile" != no; then
5908 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5909 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5910 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5911 $as_echo_n "(cached) " >&6
5913 ac_cv_sys_largefile_CC=no
5914 if test "$GCC" != yes; then
5917 # IRIX 6.2 and later do not support large files by default,
5918 # so use the C compiler's -n32 option if that helps.
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #include <sys/types.h>
5926 /* Check that off_t can represent 2**63 - 1 correctly.
5927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5928 since some C++ compilers masquerading as C compilers
5929 incorrectly reject 9223372036854775807. */
5930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5932 && LARGE_OFF_T % 2147483647 == 1)
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5946 *) ac_try_echo
=$ac_try;;
5948 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5949 $as_echo "$ac_try_echo") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5952 grep -v '^ *+' conftest.er1
>conftest.err
5954 cat conftest.err
>&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.
$ac_objext; then
5962 $as_echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.
$ac_ext >&5
5968 rm -f core conftest.err conftest.
$ac_objext
5970 rm -f conftest.
$ac_objext
5971 if { (ac_try
="$ac_compile"
5973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 ac_cv_sys_largefile_CC=' -n32'; break
5990 $as_echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5996 rm -f core conftest.err conftest.$ac_objext
6000 rm -f conftest.$ac_ext
6003 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6004 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6005 if test "$ac_cv_sys_largefile_CC" != no; then
6006 CC=$CC$ac_cv_sys_largefile_CC
6009 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6010 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6011 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6012 $as_echo_n "(cached) " >&6
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 /* Check that off_t can represent 2**63 - 1 correctly.
6023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6024 since some C++ compilers masquerading as C compilers
6025 incorrectly reject 9223372036854775807. */
6026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6028 && LARGE_OFF_T % 2147483647 == 1)
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6042 *) ac_try_echo
=$ac_try;;
6044 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6045 $as_echo "$ac_try_echo") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6048 grep -v '^ *+' conftest.er1
>conftest.err
6050 cat conftest.err
>&5
6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.
$ac_objext; then
6056 ac_cv_sys_file_offset_bits
=no
; break
6058 $as_echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.
$ac_ext >&5
6064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6065 cat >conftest.
$ac_ext <<_ACEOF
6068 cat confdefs.h
>>conftest.
$ac_ext
6069 cat >>conftest.
$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #define _FILE_OFFSET_BITS 64
6072 #include <sys/types.h>
6073 /* Check that off_t can represent 2**63 - 1 correctly.
6074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6075 since some C++ compilers masquerading as C compilers
6076 incorrectly reject 9223372036854775807. */
6077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6079 && LARGE_OFF_T % 2147483647 == 1)
6089 rm -f conftest.
$ac_objext
6090 if { (ac_try
="$ac_compile"
6092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6107 ac_cv_sys_file_offset_bits=64; break
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 ac_cv_sys_file_offset_bits=unknown
6120 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6121 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6122 case $ac_cv_sys_file_offset_bits in #(
6125 cat >>confdefs.h <<_ACEOF
6126 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6131 if test $ac_cv_sys_file_offset_bits = unknown; then
6132 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6133 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6134 if test "${ac_cv_sys_large_files+set}" = set; then
6135 $as_echo_n "(cached) " >&6
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <sys/types.h>
6145 /* Check that off_t can represent 2**63 - 1 correctly.
6146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6147 since some C++ compilers masquerading as C compilers
6148 incorrectly reject 9223372036854775807. */
6149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6151 && LARGE_OFF_T % 2147483647 == 1)
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6165 *) ac_try_echo
=$ac_try;;
6167 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6168 $as_echo "$ac_try_echo") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6171 grep -v '^ *+' conftest.er1
>conftest.err
6173 cat conftest.err
>&5
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && {
6176 test -z "$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 } && test -s conftest.
$ac_objext; then
6179 ac_cv_sys_large_files
=no
; break
6181 $as_echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.
$ac_ext >&5
6187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6188 cat >conftest.
$ac_ext <<_ACEOF
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #define _LARGE_FILES 1
6195 #include <sys/types.h>
6196 /* Check that off_t can represent 2**63 - 1 correctly.
6197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6198 since some C++ compilers masquerading as C compilers
6199 incorrectly reject 9223372036854775807. */
6200 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6202 && LARGE_OFF_T % 2147483647 == 1)
6212 rm -f conftest.
$ac_objext
6213 if { (ac_try
="$ac_compile"
6215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6230 ac_cv_sys_large_files=1; break
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 ac_cv_sys_large_files=unknown
6243 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6244 $as_echo "$ac_cv_sys_large_files" >&6; }
6245 case $ac_cv_sys_large_files in #(
6248 cat >>confdefs.h <<_ACEOF
6249 #define _LARGE_FILES $ac_cv_sys_large_files
6259 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6260 ### be located in either /usr/lib64 or /usr/lib.
6261 ### In some rare cases, /usr/lib64 exists but does not contain the
6262 ### relevant files (bug#1287). Hence test for crtn.o.
6263 case "${canonical}" in
6264 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6265 if test -e /usr/lib64/crtn.o; then
6267 cat >>confdefs.h <<\_ACEOF
6268 #define HAVE_LIB64_DIR 1
6277 if test "${with_sound}" != "no"; then
6278 # Sound support for GNU/Linux and the free BSDs.
6282 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6287 $as_echo_n "checking for $ac_header... " >&6; }
6288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6289 $as_echo_n "(cached) " >&6
6291 ac_res=`eval 'as_val=${'$as_ac_Header'}
6292 $as_echo "$as_val"'`
6293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6294 $as_echo "$ac_res" >&6; }
6296 # Is the header compilable?
6297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6298 $as_echo_n "checking $ac_header usability... " >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6306 #include <$ac_header>
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6312 *) ac_try_echo
=$ac_try;;
6314 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6315 $as_echo "$ac_try_echo") >&5
6316 (eval "$ac_compile") 2>conftest.er1
6318 grep -v '^ *+' conftest.er1
>conftest.err
6320 cat conftest.err
>&5
6321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest.
$ac_objext; then
6326 ac_header_compiler
=yes
6328 $as_echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.
$ac_ext >&5
6331 ac_header_compiler
=no
6334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336 $as_echo "$ac_header_compiler" >&6; }
6338 # Is the header present?
6339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340 $as_echo_n "checking $ac_header presence... " >&6; }
6341 cat >conftest.
$ac_ext <<_ACEOF
6344 cat confdefs.h
>>conftest.
$ac_ext
6345 cat >>conftest.
$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <$ac_header>
6349 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6355 $as_echo "$ac_try_echo") >&5
6356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev/null && {
6363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6366 ac_header_preproc=yes
6368 $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 ac_header_preproc=no
6374 rm -f conftest.err conftest.$ac_ext
6375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 $as_echo "$ac_header_preproc" >&6; }
6378 # So? What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 $as_echo_n "checking for $ac_header... " >&6; }
6405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6406 $as_echo_n "(cached) " >&6
6408 eval "$as_ac_Header=\$ac_header_preproc"
6410 ac_res=`eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'`
6412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6413 $as_echo "$ac_res" >&6; }
6416 if test `eval 'as_val=${'$as_ac_Header'}
6417 $as_echo "$as_val"'` = yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6426 # Emulation library used on NetBSD.
6427 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6428 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6429 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6430 $as_echo_n "(cached) " >&6
6432 ac_check_lib_save_LIBS=$LIBS
6433 LIBS="-lossaudio $LIBS"
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6441 /* Override any GCC internal prototype to avoid an error.
6442 Use char because int might match the return type of a GCC
6443 builtin and then its argument prototype would still apply. */
6451 return _oss_ioctl ();
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (ac_try="$ac_link"
6459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6460 *) ac_try_echo
=$ac_try;;
6462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6463 $as_echo "$ac_try_echo") >&5
6464 (eval "$ac_link") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1
>conftest.err
6468 cat conftest.err
>&5
6469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest
$ac_exeext && {
6474 test "$cross_compiling" = yes ||
6475 $as_test_x conftest
$ac_exeext
6477 ac_cv_lib_ossaudio__oss_ioctl
=yes
6479 $as_echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6482 ac_cv_lib_ossaudio__oss_ioctl
=no
6485 rm -rf conftest.dSYM
6486 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6487 conftest
$ac_exeext conftest.
$ac_ext
6488 LIBS
=$ac_check_lib_save_LIBS
6490 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6491 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6492 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6501 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6505 # Extract the first word of "pkg-config", so it can be a program name with args.
6506 set dummy pkg-config
; ac_word
=$2
6507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6510 $as_echo_n "(cached) " >&6
6514 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir
=.
6522 for ac_exec_ext
in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6536 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6537 if test -n "$PKG_CONFIG"; then
6538 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6539 $as_echo "$PKG_CONFIG" >&6; }
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542 $as_echo "no" >&6; }
6547 if test "$PKG_CONFIG" = "no" ; then
6550 PKG_CONFIG_MIN_VERSION
=0.9.0
6551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6552 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6553 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6555 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6556 { $as_echo "$as_me:$LINENO: result: yes" >&5
6557 $as_echo "yes" >&6; }
6560 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6561 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6562 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6563 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6564 $as_echo "$ALSA_CFLAGS" >&6; }
6566 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6567 $as_echo_n "checking ALSA_LIBS... " >&6; }
6568 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6569 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6570 $as_echo "$ALSA_LIBS" >&6; }
6572 { $as_echo "$as_me:$LINENO: result: no" >&5
6573 $as_echo "no" >&6; }
6576 ## If we have a custom action on failure, don't print errors, but
6577 ## do set a variable so people can do so.
6578 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6590 if test $succeeded = yes; then
6596 if test $HAVE_ALSA = yes; then
6597 SAVE_CFLAGS
="$CFLAGS"
6598 SAVE_LDFLAGS
="$LDFLAGS"
6599 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6600 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6601 cat >conftest.
$ac_ext <<_ACEOF
6604 cat confdefs.h
>>conftest.
$ac_ext
6605 cat >>conftest.
$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <asoundlib.h>
6611 snd_lib_error_set_handler (0);
6616 rm -f conftest.
$ac_objext
6617 if { (ac_try
="$ac_compile"
6619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623 $as_echo "$ac_try_echo") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6634 emacs_alsa_normal=yes
6636 $as_echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 emacs_alsa_normal=no
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 if test "$emacs_alsa_normal" != yes; then
6644 cat >conftest.$ac_ext <<_ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <alsa/asoundlib.h>
6654 snd_lib_error_set_handler (0);
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6663 *) ac_try_echo
=$ac_try;;
6665 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6666 $as_echo "$ac_try_echo") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6669 grep -v '^ *+' conftest.er1
>conftest.err
6671 cat conftest.err
>&5
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.
$ac_objext; then
6677 emacs_alsa_subdir
=yes
6679 $as_echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.
$ac_ext >&5
6682 emacs_alsa_subdir
=no
6685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6686 if test "$emacs_alsa_subdir" != yes; then
6687 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6688 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6689 { (exit 1); exit 1; }; }
6691 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6694 CFLAGS
="$SAVE_CFLAGS"
6695 LDFLAGS
="$SAVE_LDFLAGS"
6696 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6697 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6699 cat >>confdefs.h
<<\_ACEOF
6732 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6733 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6734 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6735 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6736 sys
/utsname.h
pwd.h utmp.h
6738 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6741 $as_echo_n "checking for $ac_header... " >&6; }
6742 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6743 $as_echo_n "(cached) " >&6
6745 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6746 $as_echo "$as_val"'`
6747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6748 $as_echo "$ac_res" >&6; }
6750 # Is the header compilable?
6751 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6752 $as_echo_n "checking $ac_header usability... " >&6; }
6753 cat >conftest.
$ac_ext <<_ACEOF
6756 cat confdefs.h
>>conftest.
$ac_ext
6757 cat >>conftest.
$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 $ac_includes_default
6760 #include <$ac_header>
6762 rm -f conftest.
$ac_objext
6763 if { (ac_try
="$ac_compile"
6765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769 $as_echo "$ac_try_echo") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6772 grep -v '^ *+' conftest.er1 >conftest.err
6774 cat conftest.err >&5
6775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_header_compiler=yes
6782 $as_echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ac_header_compiler=no
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790 $as_echo "$ac_header_compiler" >&6; }
6792 # Is the header present?
6793 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794 $as_echo_n "checking $ac_header presence... " >&6; }
6795 cat >conftest.$ac_ext <<_ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <$ac_header>
6803 if { (ac_try="$ac_cpp conftest.$ac_ext"
6805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6806 *) ac_try_echo
=$ac_try;;
6808 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6812 grep -v '^ *+' conftest.er1
>conftest.err
6814 cat conftest.err
>&5
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev
/null
&& {
6817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6820 ac_header_preproc
=yes
6822 $as_echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.
$ac_ext >&5
6825 ac_header_preproc
=no
6828 rm -f conftest.err conftest.
$ac_ext
6829 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 $as_echo "$ac_header_preproc" >&6; }
6832 # So? What about this header?
6833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6839 ac_header_preproc
=yes
6842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6843 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6845 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6847 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6849 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6853 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6858 $as_echo_n "checking for $ac_header... " >&6; }
6859 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6860 $as_echo_n "(cached) " >&6
6862 eval "$as_ac_Header=\$ac_header_preproc"
6864 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'`
6866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6867 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_ac_Header'}
6871 $as_echo "$as_val"'` = yes; then
6872 cat >>confdefs.h
<<_ACEOF
6873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6881 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6882 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6883 cat >conftest.
$ac_ext <<_ACEOF
6886 cat confdefs.h
>>conftest.
$ac_ext
6887 cat >>conftest.
$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <sys/personality.h>
6893 personality (PER_LINUX32)
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 emacs_cv_personality_linux32=yes
6918 $as_echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 emacs_cv_personality_linux32=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6926 $as_echo "$emacs_cv_personality_linux32" >&6; }
6928 if test $emacs_cv_personality_linux32 = yes; then
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_PERSONALITY_LINUX32 1
6937 for ac_header in term.h
6939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 $as_echo_n "checking for $ac_header... " >&6; }
6942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943 $as_echo_n "(cached) " >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 #include <$ac_header>
6953 if { (ac_try="$ac_cpp conftest.$ac_ext"
6955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6956 *) ac_try_echo
=$ac_try;;
6958 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1
>conftest.err
6964 cat conftest.err
>&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev
/null
&& {
6967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6970 eval "$as_ac_Header=yes"
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.
$ac_ext >&5
6975 eval "$as_ac_Header=no"
6978 rm -f conftest.err conftest.
$ac_ext
6980 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6981 $as_echo "$as_val"'`
6982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6983 $as_echo "$ac_res" >&6; }
6984 if test `eval 'as_val=${'$as_ac_Header'}
6985 $as_echo "$as_val"'` = yes; then
6986 cat >>confdefs.h
<<_ACEOF
6987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6994 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6995 $as_echo_n "checking for ANSI C header files... " >&6; }
6996 if test "${ac_cv_header_stdc+set}" = set; then
6997 $as_echo_n "(cached) " >&6
6999 cat >conftest.
$ac_ext <<_ACEOF
7002 cat confdefs.h
>>conftest.
$ac_ext
7003 cat >>conftest.
$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7018 rm -f conftest.
$ac_objext
7019 if { (ac_try
="$ac_compile"
7021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 ac_cv_header_stdc=yes
7038 $as_echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 ac_cv_header_stdc=no
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 if test $ac_cv_header_stdc = yes; then
7047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7058 $EGREP "memchr" >/dev/null 2>&1; then
7061 ac_cv_header_stdc=no
7067 if test $ac_cv_header_stdc = yes; then
7068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7079 $EGREP "free" >/dev/null 2>&1; then
7082 ac_cv_header_stdc=no
7088 if test $ac_cv_header_stdc = yes; then
7089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7090 if test "$cross_compiling" = yes; then
7093 cat >conftest.$ac_ext <<_ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7101 #if ((' ' & 0x0FF) == 0x020)
7102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7105 # define ISLOWER(c) \
7106 (('a' <= (c) && (c) <= 'i') \
7107 || ('j' <= (c) && (c) <= 'r') \
7108 || ('s' <= (c) && (c) <= 'z'))
7109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7117 for (i = 0; i < 256; i++)
7118 if (XOR (islower (i), ISLOWER (i))
7119 || toupper (i) != TOUPPER (i))
7124 rm -f conftest$ac_exeext
7125 if { (ac_try="$ac_link"
7127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7128 *) ac_try_echo
=$ac_try;;
7130 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7131 $as_echo "$ac_try_echo") >&5
7132 (eval "$ac_link") 2>&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7136 { (case "(($ac_try" in
7137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_try") 2>&5
7144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7148 $as_echo "$as_me: program exited with status $ac_status" >&5
7149 $as_echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7153 ac_cv_header_stdc=no
7155 rm -rf conftest.dSYM
7156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7163 $as_echo "$ac_cv_header_stdc" >&6; }
7164 if test $ac_cv_header_stdc = yes; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define STDC_HEADERS 1
7172 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7173 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7174 if test "${ac_cv_header_time+set}" = set; then
7175 $as_echo_n "(cached) " >&6
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7184 #include <sys/time.h>
7190 if ((struct tm *) 0)
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7200 *) ac_try_echo
=$ac_try;;
7202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7206 grep -v '^ *+' conftest.er1
>conftest.err
7208 cat conftest.err
>&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.
$ac_objext; then
7214 ac_cv_header_time
=yes
7216 $as_echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.
$ac_ext >&5
7219 ac_cv_header_time
=no
7222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7225 $as_echo "$ac_cv_header_time" >&6; }
7226 if test $ac_cv_header_time = yes; then
7228 cat >>confdefs.h
<<\_ACEOF
7229 #define TIME_WITH_SYS_TIME 1
7234 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7235 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7236 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7237 $as_echo_n "(cached) " >&6
7239 cat >conftest.
$ac_ext <<_ACEOF
7242 cat confdefs.h
>>conftest.
$ac_ext
7243 cat >>conftest.
$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7257 rm -f conftest.
$ac_objext
7258 if { (ac_try
="$ac_compile"
7260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7264 $as_echo "$ac_try_echo") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_have_decl_sys_siglist=yes
7277 $as_echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_have_decl_sys_siglist=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7286 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7287 if test $ac_cv_have_decl_sys_siglist = yes; then
7289 cat >>confdefs.h <<_ACEOF
7290 #define HAVE_DECL_SYS_SIGLIST 1
7295 cat >>confdefs.h <<_ACEOF
7296 #define HAVE_DECL_SYS_SIGLIST 0
7303 if test $ac_cv_have_decl_sys_siglist != yes; then
7304 # For Tru64, at least:
7305 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7306 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7307 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7308 $as_echo_n "(cached) " >&6
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7320 #ifndef __sys_siglist
7321 (void) __sys_siglist;
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7332 *) ac_try_echo
=$ac_try;;
7334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7335 $as_echo "$ac_try_echo") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7338 grep -v '^ *+' conftest.er1
>conftest.err
7340 cat conftest.err
>&5
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.
$ac_objext; then
7346 ac_cv_have_decl___sys_siglist
=yes
7348 $as_echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.
$ac_ext >&5
7351 ac_cv_have_decl___sys_siglist
=no
7354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7356 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7357 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7358 if test $ac_cv_have_decl___sys_siglist = yes; then
7360 cat >>confdefs.h
<<_ACEOF
7361 #define HAVE_DECL___SYS_SIGLIST 1
7366 cat >>confdefs.h
<<_ACEOF
7367 #define HAVE_DECL___SYS_SIGLIST 0
7374 if test $ac_cv_have_decl___sys_siglist = yes; then
7376 cat >>confdefs.h
<<\_ACEOF
7377 #define sys_siglist __sys_siglist
7382 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7383 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7384 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7385 $as_echo_n "(cached) " >&6
7387 cat >conftest.
$ac_ext <<_ACEOF
7390 cat confdefs.h
>>conftest.
$ac_ext
7391 cat >>conftest.
$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 #include <sys/types.h>
7394 #include <sys/wait.h>
7396 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7399 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7412 rm -f conftest.
$ac_objext
7413 if { (ac_try
="$ac_compile"
7415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419 $as_echo "$ac_try_echo") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 ac_cv_header_sys_wait_h=yes
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_header_sys_wait_h=no
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7441 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7442 if test $ac_cv_header_sys_wait_h = yes; then
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_SYS_WAIT_H 1
7451 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7452 $as_echo_n "checking for struct utimbuf... " >&6; }
7453 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7454 $as_echo_n "(cached) " >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #ifdef TIME_WITH_SYS_TIME
7463 #include <sys/time.h>
7466 #ifdef HAVE_SYS_TIME_H
7467 #include <sys/time.h>
7478 static struct utimbuf x; x.actime = x.modtime;
7483 rm -f conftest.$ac_objext
7484 if { (ac_try="$ac_compile"
7486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7487 *) ac_try_echo
=$ac_try;;
7489 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7493 grep -v '^ *+' conftest.er1
>conftest.err
7495 cat conftest.err
>&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.
$ac_objext; then
7501 emacs_cv_struct_utimbuf
=yes
7503 $as_echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.
$ac_ext >&5
7506 emacs_cv_struct_utimbuf
=no
7509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7511 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7512 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7513 if test $emacs_cv_struct_utimbuf = yes; then
7515 cat >>confdefs.h
<<\_ACEOF
7516 #define HAVE_STRUCT_UTIMBUF 1
7521 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7522 $as_echo_n "checking return type of signal handlers... " >&6; }
7523 if test "${ac_cv_type_signal+set}" = set; then
7524 $as_echo_n "(cached) " >&6
7526 cat >conftest.
$ac_ext <<_ACEOF
7529 cat confdefs.h
>>conftest.
$ac_ext
7530 cat >>conftest.
$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 #include <sys/types.h>
7538 return *(signal (0, 0)) (0) == 1;
7543 rm -f conftest.
$ac_objext
7544 if { (ac_try
="$ac_compile"
7546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550 $as_echo "$ac_try_echo") >&5
7551 (eval "$ac_compile") 2>conftest.er1
7553 grep -v '^ *+' conftest.er1 >conftest.err
7555 cat conftest.err >&5
7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && {
7558 test -z "$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7560 } && test -s conftest.$ac_objext; then
7561 ac_cv_type_signal=int
7563 $as_echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_cv_type_signal=void
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7572 $as_echo "$ac_cv_type_signal" >&6; }
7574 cat >>confdefs.h <<_ACEOF
7575 #define RETSIGTYPE $ac_cv_type_signal
7580 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7581 $as_echo_n "checking for speed_t... " >&6; }
7582 if test "${emacs_cv_speed_t+set}" = set; then
7583 $as_echo_n "(cached) " >&6
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 #include <termios.h>
7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7604 *) ac_try_echo
=$ac_try;;
7606 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7607 $as_echo "$ac_try_echo") >&5
7608 (eval "$ac_compile") 2>conftest.er1
7610 grep -v '^ *+' conftest.er1
>conftest.err
7612 cat conftest.err
>&5
7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.
$ac_objext; then
7618 emacs_cv_speed_t
=yes
7620 $as_echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.
$ac_ext >&5
7626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7628 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7629 $as_echo "$emacs_cv_speed_t" >&6; }
7630 if test $emacs_cv_speed_t = yes; then
7632 cat >>confdefs.h
<<\_ACEOF
7633 #define HAVE_SPEED_T 1
7638 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7639 $as_echo_n "checking for struct timeval... " >&6; }
7640 if test "${emacs_cv_struct_timeval+set}" = set; then
7641 $as_echo_n "(cached) " >&6
7643 cat >conftest.
$ac_ext <<_ACEOF
7646 cat confdefs.h
>>conftest.
$ac_ext
7647 cat >>conftest.
$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #ifdef TIME_WITH_SYS_TIME
7650 #include <sys/time.h>
7653 #ifdef HAVE_SYS_TIME_H
7654 #include <sys/time.h>
7662 static struct timeval x; x.tv_sec = x.tv_usec;
7667 rm -f conftest.
$ac_objext
7668 if { (ac_try
="$ac_compile"
7670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7674 $as_echo "$ac_try_echo") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 emacs_cv_struct_timeval=yes
7687 $as_echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 emacs_cv_struct_timeval=no
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7696 $as_echo "$emacs_cv_struct_timeval" >&6; }
7697 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7698 if test $emacs_cv_struct_timeval = yes; then
7700 cat >>confdefs.h <<\_ACEOF
7701 #define HAVE_TIMEVAL 1
7706 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7707 $as_echo_n "checking for struct exception... " >&6; }
7708 if test "${emacs_cv_struct_exception+set}" = set; then
7709 $as_echo_n "(cached) " >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7721 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7730 *) ac_try_echo
=$ac_try;;
7732 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734 (eval "$ac_compile") 2>conftest.er1
7736 grep -v '^ *+' conftest.er1
>conftest.err
7738 cat conftest.err
>&5
7739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.
$ac_objext; then
7744 emacs_cv_struct_exception
=yes
7746 $as_echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7749 emacs_cv_struct_exception
=no
7752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7754 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7755 $as_echo "$emacs_cv_struct_exception" >&6; }
7756 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7757 if test $emacs_cv_struct_exception != yes; then
7759 cat >>confdefs.h
<<\_ACEOF
7760 #define NO_MATHERR 1
7766 for ac_header
in sys
/socket.h
7768 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 $as_echo_n "checking for $ac_header... " >&6; }
7772 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 $as_echo_n "(cached) " >&6
7775 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7776 $as_echo "$as_val"'`
7777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7778 $as_echo "$ac_res" >&6; }
7780 # Is the header compilable?
7781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782 $as_echo_n "checking $ac_header usability... " >&6; }
7783 cat >conftest.
$ac_ext <<_ACEOF
7786 cat confdefs.h
>>conftest.
$ac_ext
7787 cat >>conftest.
$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 #include <$ac_header>
7792 rm -f conftest.
$ac_objext
7793 if { (ac_try
="$ac_compile"
7795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_header_compiler=yes
7812 $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_header_compiler=no
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7820 $as_echo "$ac_header_compiler" >&6; }
7822 # Is the header present?
7823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7824 $as_echo_n "checking $ac_header presence... " >&6; }
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 #include <$ac_header>
7833 if { (ac_try="$ac_cpp conftest.$ac_ext"
7835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7836 *) ac_try_echo
=$ac_try;;
7838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7839 $as_echo "$ac_try_echo") >&5
7840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7842 grep -v '^ *+' conftest.er1
>conftest.err
7844 cat conftest.err
>&5
7845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } >/dev
/null
&& {
7847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7850 ac_header_preproc
=yes
7852 $as_echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.
$ac_ext >&5
7855 ac_header_preproc
=no
7858 rm -f conftest.err conftest.
$ac_ext
7859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7860 $as_echo "$ac_header_preproc" >&6; }
7862 # So? What about this header?
7863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7869 ac_header_preproc
=yes
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7888 $as_echo_n "checking for $ac_header... " >&6; }
7889 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7890 $as_echo_n "(cached) " >&6
7892 eval "$as_ac_Header=\$ac_header_preproc"
7894 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7895 $as_echo "$as_val"'`
7896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7897 $as_echo "$ac_res" >&6; }
7900 if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
7902 cat >>confdefs.h
<<_ACEOF
7903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 for ac_header
in net
/if.h
7913 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 $as_echo_n "checking for $ac_header... " >&6; }
7916 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917 $as_echo_n "(cached) " >&6
7919 cat >conftest.
$ac_ext <<_ACEOF
7922 cat confdefs.h
>>conftest.
$ac_ext
7923 cat >>conftest.
$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 $ac_includes_default
7926 #if HAVE_SYS_SOCKET_H
7927 #include <sys/socket.h>
7930 #include <$ac_header>
7932 rm -f conftest.
$ac_objext
7933 if { (ac_try
="$ac_compile"
7935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7939 $as_echo "$ac_try_echo") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
7950 eval "$as_ac_Header=yes"
7952 $as_echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 eval "$as_ac_Header=no"
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 ac_res=`eval 'as_val=${'$as_ac_Header'}
7961 $as_echo "$as_val"'`
7962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7963 $as_echo "$ac_res" >&6; }
7964 if test `eval 'as_val=${'$as_ac_Header'}
7965 $as_echo "$as_val"'` = yes; then
7966 cat >>confdefs.h <<_ACEOF
7967 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7975 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7976 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7977 if test "${ac_cv_struct_tm+set}" = set; then
7978 $as_echo_n "(cached) " >&6
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7993 int *p = &tm.tm_sec;
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8003 *) ac_try_echo
=$ac_try;;
8005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8006 $as_echo "$ac_try_echo") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1
>conftest.err
8011 cat conftest.err
>&5
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.
$ac_objext; then
8017 ac_cv_struct_tm
=time.h
8019 $as_echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.
$ac_ext >&5
8022 ac_cv_struct_tm
=sys
/time.h
8025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8027 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8028 $as_echo "$ac_cv_struct_tm" >&6; }
8029 if test $ac_cv_struct_tm = sys
/time.h
; then
8031 cat >>confdefs.h
<<\_ACEOF
8032 #define TM_IN_SYS_TIME 1
8037 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8038 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8039 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8040 $as_echo_n "(cached) " >&6
8042 cat >conftest.
$ac_ext <<_ACEOF
8045 cat confdefs.h
>>conftest.
$ac_ext
8046 cat >>conftest.
$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <sys/types.h>
8049 #include <$ac_cv_struct_tm>
8055 static struct tm ac_aggr;
8056 if (ac_aggr.tm_zone)
8062 rm -f conftest.
$ac_objext
8063 if { (ac_try
="$ac_compile"
8065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_member_struct_tm_tm_zone=yes
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <sys/types.h>
8092 #include <$ac_cv_struct_tm>
8098 static struct tm ac_aggr;
8099 if (sizeof ac_aggr.tm_zone)
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8109 *) ac_try_echo
=$ac_try;;
8111 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8112 $as_echo "$ac_try_echo") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1
>conftest.err
8117 cat conftest.err
>&5
8118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.
$ac_objext; then
8123 ac_cv_member_struct_tm_tm_zone
=yes
8125 $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.
$ac_ext >&5
8128 ac_cv_member_struct_tm_tm_zone
=no
8131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8136 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8137 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8138 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8140 cat >>confdefs.h
<<_ACEOF
8141 #define HAVE_STRUCT_TM_TM_ZONE 1
8147 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8149 cat >>confdefs.h
<<\_ACEOF
8150 #define HAVE_TM_ZONE 1
8154 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8155 $as_echo_n "checking whether tzname is declared... " >&6; }
8156 if test "${ac_cv_have_decl_tzname+set}" = set; then
8157 $as_echo_n "(cached) " >&6
8159 cat >conftest.
$ac_ext <<_ACEOF
8162 cat confdefs.h
>>conftest.
$ac_ext
8163 cat >>conftest.
$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8178 rm -f conftest.
$ac_objext
8179 if { (ac_try
="$ac_compile"
8181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_have_decl_tzname=yes
8198 $as_echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_cv_have_decl_tzname=no
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8207 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8208 if test $ac_cv_have_decl_tzname = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_DECL_TZNAME 1
8216 cat >>confdefs.h <<_ACEOF
8217 #define HAVE_DECL_TZNAME 0
8224 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8225 $as_echo_n "checking for tzname... " >&6; }
8226 if test "${ac_cv_var_tzname+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8236 #if !HAVE_DECL_TZNAME
8237 extern char *tzname[];
8243 return tzname[0][0];
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8252 *) ac_try_echo
=$ac_try;;
8254 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256 (eval "$ac_link") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1
>conftest.err
8260 cat conftest.err
>&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest
$ac_exeext && {
8266 test "$cross_compiling" = yes ||
8267 $as_test_x conftest
$ac_exeext
8269 ac_cv_var_tzname
=yes
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.
$ac_ext >&5
8277 rm -rf conftest.dSYM
8278 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8279 conftest
$ac_exeext conftest.
$ac_ext
8281 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8282 $as_echo "$ac_cv_var_tzname" >&6; }
8283 if test $ac_cv_var_tzname = yes; then
8285 cat >>confdefs.h
<<\_ACEOF
8286 #define HAVE_TZNAME 1
8292 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8293 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8294 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8297 cat >conftest.
$ac_ext <<_ACEOF
8300 cat confdefs.h
>>conftest.
$ac_ext
8301 cat >>conftest.
$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8308 static struct tm ac_aggr;
8309 if (ac_aggr.tm_gmtoff)
8315 rm -f conftest.
$ac_objext
8316 if { (ac_try
="$ac_compile"
8318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8322 $as_echo "$ac_try_echo") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_tm_tm_gmtoff=yes
8335 $as_echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8349 static struct tm ac_aggr;
8350 if (sizeof ac_aggr.tm_gmtoff)
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8360 *) ac_try_echo
=$ac_try;;
8362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8363 $as_echo "$ac_try_echo") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8366 grep -v '^ *+' conftest.er1
>conftest.err
8368 cat conftest.err
>&5
8369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.
$ac_objext; then
8374 ac_cv_member_struct_tm_tm_gmtoff
=yes
8376 $as_echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.
$ac_ext >&5
8379 ac_cv_member_struct_tm_tm_gmtoff
=no
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8387 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8388 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8389 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8391 cat >>confdefs.h
<<\_ACEOF
8392 #define HAVE_TM_GMTOFF 1
8397 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8398 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8399 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8402 cat >conftest.
$ac_ext <<_ACEOF
8405 cat confdefs.h
>>conftest.
$ac_ext
8406 cat >>conftest.
$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
8409 #if HAVE_SYS_SOCKET_H
8410 #include <sys/socket.h>
8419 static struct ifreq ac_aggr;
8420 if (ac_aggr.ifr_flags)
8426 rm -f conftest.
$ac_objext
8427 if { (ac_try
="$ac_compile"
8429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_member_struct_ifreq_ifr_flags=yes
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 #if HAVE_SYS_SOCKET_H
8457 #include <sys/socket.h>
8466 static struct ifreq ac_aggr;
8467 if (sizeof ac_aggr.ifr_flags)
8473 rm -f conftest.$ac_objext
8474 if { (ac_try="$ac_compile"
8476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8477 *) ac_try_echo
=$ac_try;;
8479 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8480 $as_echo "$ac_try_echo") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8483 grep -v '^ *+' conftest.er1
>conftest.err
8485 cat conftest.err
>&5
8486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.
$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_flags
=yes
8493 $as_echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.
$ac_ext >&5
8496 ac_cv_member_struct_ifreq_ifr_flags
=no
8499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8504 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8505 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8506 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8508 cat >>confdefs.h
<<_ACEOF
8509 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8514 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8515 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8516 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8517 $as_echo_n "(cached) " >&6
8519 cat >conftest.
$ac_ext <<_ACEOF
8522 cat confdefs.h
>>conftest.
$ac_ext
8523 cat >>conftest.
$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 $ac_includes_default
8526 #if HAVE_SYS_SOCKET_H
8527 #include <sys/socket.h>
8536 static struct ifreq ac_aggr;
8537 if (ac_aggr.ifr_hwaddr)
8543 rm -f conftest.
$ac_objext
8544 if { (ac_try
="$ac_compile"
8546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
8561 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8563 $as_echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 #if HAVE_SYS_SOCKET_H
8574 #include <sys/socket.h>
8583 static struct ifreq ac_aggr;
8584 if (sizeof ac_aggr.ifr_hwaddr)
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8594 *) ac_try_echo
=$ac_try;;
8596 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8597 $as_echo "$ac_try_echo") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1
>conftest.err
8602 cat conftest.err
>&5
8603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.
$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.
$ac_ext >&5
8613 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8621 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8622 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8623 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8625 cat >>confdefs.h
<<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8631 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8632 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8633 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8634 $as_echo_n "(cached) " >&6
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #if HAVE_SYS_SOCKET_H
8644 #include <sys/socket.h>
8653 static struct ifreq ac_aggr;
8654 if (ac_aggr.ifr_netmask)
8660 rm -f conftest.
$ac_objext
8661 if { (ac_try
="$ac_compile"
8663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_netmask=yes
8680 $as_echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #if HAVE_SYS_SOCKET_H
8691 #include <sys/socket.h>
8700 static struct ifreq ac_aggr;
8701 if (sizeof ac_aggr.ifr_netmask)
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8711 *) ac_try_echo
=$ac_try;;
8713 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8714 $as_echo "$ac_try_echo") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8717 grep -v '^ *+' conftest.er1
>conftest.err
8719 cat conftest.err
>&5
8720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest.
$ac_objext; then
8725 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.
$ac_ext >&5
8730 ac_cv_member_struct_ifreq_ifr_netmask
=no
8733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8739 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8740 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8742 cat >>confdefs.h
<<_ACEOF
8743 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8748 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8749 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8750 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8751 $as_echo_n "(cached) " >&6
8753 cat >conftest.
$ac_ext <<_ACEOF
8756 cat confdefs.h
>>conftest.
$ac_ext
8757 cat >>conftest.
$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #if HAVE_SYS_SOCKET_H
8761 #include <sys/socket.h>
8770 static struct ifreq ac_aggr;
8771 if (ac_aggr.ifr_broadaddr)
8777 rm -f conftest.
$ac_objext
8778 if { (ac_try
="$ac_compile"
8780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8784 $as_echo "$ac_try_echo") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8797 $as_echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8807 #if HAVE_SYS_SOCKET_H
8808 #include <sys/socket.h>
8817 static struct ifreq ac_aggr;
8818 if (sizeof ac_aggr.ifr_broadaddr)
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8828 *) ac_try_echo
=$ac_try;;
8830 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8831 $as_echo "$ac_try_echo") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1
>conftest.err
8836 cat conftest.err
>&5
8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.
$ac_objext; then
8842 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8844 $as_echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.
$ac_ext >&5
8847 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8856 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8857 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8859 cat >>confdefs.h
<<_ACEOF
8860 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8865 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8866 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8867 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8868 $as_echo_n "(cached) " >&6
8870 cat >conftest.
$ac_ext <<_ACEOF
8873 cat confdefs.h
>>conftest.
$ac_ext
8874 cat >>conftest.
$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 $ac_includes_default
8877 #if HAVE_SYS_SOCKET_H
8878 #include <sys/socket.h>
8887 static struct ifreq ac_aggr;
8888 if (ac_aggr.ifr_addr)
8894 rm -f conftest.
$ac_objext
8895 if { (ac_try
="$ac_compile"
8897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 ac_cv_member_struct_ifreq_ifr_addr=yes
8914 $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 $ac_includes_default
8924 #if HAVE_SYS_SOCKET_H
8925 #include <sys/socket.h>
8934 static struct ifreq ac_aggr;
8935 if (sizeof ac_aggr.ifr_addr)
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8945 *) ac_try_echo
=$ac_try;;
8947 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8948 $as_echo "$ac_try_echo") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8951 grep -v '^ *+' conftest.er1
>conftest.err
8953 cat conftest.err
>&5
8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest.
$ac_objext; then
8959 ac_cv_member_struct_ifreq_ifr_addr
=yes
8961 $as_echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.
$ac_ext >&5
8964 ac_cv_member_struct_ifreq_ifr_addr
=no
8967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8972 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8973 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8974 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8976 cat >>confdefs.h
<<_ACEOF
8977 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8985 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8986 $as_echo_n "checking for function prototypes... " >&6; }
8987 if test "$ac_cv_prog_cc_c89" != no
; then
8988 { $as_echo "$as_me:$LINENO: result: yes" >&5
8989 $as_echo "yes" >&6; }
8991 cat >>confdefs.h
<<\_ACEOF
8992 #define PROTOTYPES 1
8996 cat >>confdefs.h
<<\_ACEOF
8997 #define __PROTOTYPES 1
9001 { $as_echo "$as_me:$LINENO: result: no" >&5
9002 $as_echo "no" >&6; }
9005 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9006 $as_echo_n "checking for working volatile... " >&6; }
9007 if test "${ac_cv_c_volatile+set}" = set; then
9008 $as_echo_n "(cached) " >&6
9010 cat >conftest.
$ac_ext <<_ACEOF
9013 cat confdefs.h
>>conftest.
$ac_ext
9014 cat >>conftest.
$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9022 int * volatile y = (int *) 0;
9028 rm -f conftest.
$ac_objext
9029 if { (ac_try
="$ac_compile"
9031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 ac_cv_c_volatile=yes
9048 $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9057 $as_echo "$ac_cv_c_volatile" >&6; }
9058 if test $ac_cv_c_volatile = no; then
9060 cat >>confdefs.h <<\_ACEOF
9061 #define volatile /**/
9066 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9067 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9068 if test "${ac_cv_c_const+set}" = set; then
9069 $as_echo_n "(cached) " >&6
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9081 /* FIXME: Include the comments suggested by Paul. */
9083 /* Ultrix mips cc rejects this. */
9084 typedef int charset[2];
9086 /* SunOS 4.1.1 cc rejects this. */
9087 char const *const *pcpcc;
9089 /* NEC SVR4.0.2 mips cc rejects this. */
9090 struct point {int x, y;};
9091 static struct point const zero = {0,0};
9092 /* AIX XL C 1.02.0.0 rejects this.
9093 It does not let you subtract one const X* pointer from another in
9094 an arm of an if-expression whose if-part is not a constant
9096 const char *g = "string";
9097 pcpcc = &g + (g ? g-g : 0);
9098 /* HPUX 7.0 cc rejects these. */
9100 ppc = (char**) pcpcc;
9101 pcpcc = (char const *const *) ppc;
9102 { /* SCO 3.2v4 cc rejects this. */
9104 char const *s = 0 ? (char *) 0 : (char const *) 0;
9109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9111 const int *foo = &x[0];
9114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9115 typedef const int *iptr;
9119 { /* AIX XL C 1.02.0.0 rejects this saying
9120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9121 struct s { int j; const int *ap[3]; };
9122 struct s *b; b->j = 5;
9124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9128 return !cs[0] && !zero.x;
9135 rm -f conftest.$ac_objext
9136 if { (ac_try="$ac_compile"
9138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9139 *) ac_try_echo
=$ac_try;;
9141 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9142 $as_echo "$ac_try_echo") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9145 grep -v '^ *+' conftest.er1
>conftest.err
9147 cat conftest.err
>&5
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.
$ac_objext; then
9155 $as_echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.
$ac_ext >&5
9161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9164 $as_echo "$ac_cv_c_const" >&6; }
9165 if test $ac_cv_c_const = no
; then
9167 cat >>confdefs.h
<<\_ACEOF
9173 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9174 $as_echo_n "checking for void * support... " >&6; }
9175 if test "${emacs_cv_void_star+set}" = set; then
9176 $as_echo_n "(cached) " >&6
9178 cat >conftest.
$ac_ext <<_ACEOF
9181 cat confdefs.h
>>conftest.
$ac_ext
9182 cat >>conftest.
$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9193 rm -f conftest.
$ac_objext
9194 if { (ac_try
="$ac_compile"
9196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9200 $as_echo "$ac_try_echo") >&5
9201 (eval "$ac_compile") 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest.$ac_objext; then
9211 emacs_cv_void_star=yes
9213 $as_echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 emacs_cv_void_star=no
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9222 $as_echo "$emacs_cv_void_star" >&6; }
9223 if test $emacs_cv_void_star = yes; then
9224 cat >>confdefs.h <<\_ACEOF
9225 #define POINTER_TYPE void
9229 cat >>confdefs.h <<\_ACEOF
9230 #define POINTER_TYPE char
9239 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9242 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9243 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9244 $as_echo_n "(cached) " >&6
9246 cat >conftest.make <<\_ACEOF
9249 @echo '@@@%%%=$(MAKE)=@@@%%%'
9251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9252 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9254 eval ac_cv_prog_make_${ac_make}_set=yes;;
9256 eval ac_cv_prog_make_${ac_make}_set=no;;
9260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9261 { $as_echo "$as_me:$LINENO: result: yes" >&5
9262 $as_echo "yes" >&6; }
9265 { $as_echo "$as_me:$LINENO: result: no" >&5
9266 $as_echo "no" >&6; }
9267 SET_MAKE="MAKE=${MAKE-make}"
9271 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9272 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9273 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9275 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9276 if test "x$testval" != x; then
9279 ac_enable_autodepend=no
9281 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9282 $as_echo "$HAVE_GNU_MAKE" >&6; }
9283 if test $HAVE_GNU_MAKE = yes; then
9284 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9285 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9286 SAVE_CFLAGS="$CFLAGS"
9287 CFLAGS="$CFLAGS -MMD -MF deps.d"
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9303 rm -f conftest.$ac_objext
9304 if { (ac_try="$ac_compile"
9306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9307 *) ac_try_echo
=$ac_try;;
9309 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9310 $as_echo "$ac_try_echo") >&5
9311 (eval "$ac_compile") 2>conftest.er1
9313 grep -v '^ *+' conftest.er1
>conftest.err
9315 cat conftest.err
>&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.
$ac_objext; then
9323 $as_echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9326 ac_enable_autodepend
=no
9329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9330 CFLAGS
="$SAVE_CFLAGS"
9331 test -f deps.d || ac_enable_autodepend
=no
9333 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9334 $as_echo "$ac_enable_autodepend" >&6; }
9336 if test $ac_enable_autodepend = yes; then
9338 cat >>confdefs.h
<<\_ACEOF
9339 #define AUTO_DEPEND 1
9345 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9346 $as_echo_n "checking for long file names... " >&6; }
9347 if test "${ac_cv_sys_long_file_names+set}" = set; then
9348 $as_echo_n "(cached) " >&6
9350 ac_cv_sys_long_file_names
=yes
9351 # Test for long file names in all the places we know might matter:
9352 # . the current directory, where building will happen
9353 # $prefix/lib where we will be installing things
9354 # $exec_prefix/lib likewise
9355 # $TMPDIR if set, where it might want to write temporary files
9356 # /tmp where it might want to write temporary files
9359 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9360 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9361 # in the usual case where exec_prefix is '${prefix}'.
9363 . |
/* | ?
:[\\/]*) ;; #(
9366 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9367 ac_xdir
=$ac_dir/cf$$
9368 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9369 ac_tf1
=$ac_xdir/conftest9012345
9370 ac_tf2
=$ac_xdir/conftest9012346
9371 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9372 ac_cv_sys_long_file_names
=no
9373 rm -f -r "$ac_xdir" 2>/dev
/null
9374 test $ac_cv_sys_long_file_names = no
&& break
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9378 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9379 if test $ac_cv_sys_long_file_names = yes; then
9381 cat >>confdefs.h
<<\_ACEOF
9382 #define HAVE_LONG_FILE_NAMES 1
9388 #### Choose a window system.
9390 { $as_echo "$as_me:$LINENO: checking for X" >&5
9391 $as_echo_n "checking for X... " >&6; }
9394 # Check whether --with-x was given.
9395 if test "${with_x+set}" = set; then
9399 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9400 if test "x$with_x" = xno
; then
9401 # The user explicitly disabled X.
9404 case $x_includes,$x_libraries in #(
9405 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9406 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9407 { (exit 1); exit 1; }; };; #(
9408 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9409 $as_echo_n "(cached) " >&6
9411 # One or both of the vars are not set, and there is no cached value.
9412 ac_x_includes
=no ac_x_libraries
=no
9413 rm -f -r conftest.dir
9414 if mkdir conftest.dir
; then
9416 cat >Imakefile
<<'_ACEOF'
9418 @echo incroot='${INCROOT}'
9420 @echo usrlibdir='${USRLIBDIR}'
9422 @echo libdir='${LIBDIR}'
9424 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9426 for ac_var
in incroot usrlibdir libdir
; do
9427 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9429 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9430 for ac_extension
in a so sl dylib la dll
; do
9431 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9432 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9433 ac_im_usrlibdir
=$ac_im_libdir; break
9436 # Screen out bogus values from the imake configuration. They are
9437 # bogus both because they are the default anyway, and because
9438 # using them would break gcc on systems where it needs fixed includes.
9439 case $ac_im_incroot in
9440 /usr
/include
) ac_x_includes
= ;;
9441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9443 case $ac_im_usrlibdir in
9445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9449 rm -f -r conftest.dir
9452 # Standard set of common directories for X headers.
9453 # Check X11 before X11Rn because it is often a symlink to the current release.
9465 /usr/local/X11/include
9466 /usr/local/X11R6/include
9467 /usr/local/X11R5/include
9468 /usr/local/X11R4/include
9470 /usr/local/include/X11
9471 /usr/local/include/X11R6
9472 /usr/local/include/X11R5
9473 /usr/local/include/X11R4
9477 /usr/XFree86/include/X11
9481 /usr/unsupported/include
9483 /usr/local/x11r5/include
9484 /usr/lpp/Xamples/include
9486 /usr/openwin/include
9487 /usr/openwin/share/include'
9489 if test "$ac_x_includes" = no
; then
9490 # Guess where to find include files, by looking for Xlib.h.
9491 # First, try using that file with no special directory specified.
9492 cat >conftest.
$ac_ext <<_ACEOF
9495 cat confdefs.h
>>conftest.
$ac_ext
9496 cat >>conftest.
$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 #include <X11/Xlib.h>
9500 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9506 $as_echo "$ac_try_echo") >&5
9507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9509 grep -v '^ *+' conftest.er1 >conftest.err
9511 cat conftest.err >&5
9512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } >/dev/null && {
9514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9517 # We can compile using X headers with no special include directory.
9520 $as_echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 for ac_dir in $ac_x_header_dirs; do
9524 if test -r "$ac_dir/X11/Xlib.h"; then
9525 ac_x_includes=$ac_dir
9531 rm -f conftest.err conftest.$ac_ext
9532 fi # $ac_x_includes = no
9534 if test "$ac_x_libraries" = no; then
9535 # Check for the libraries.
9536 # See if we find them without any special options.
9537 # Don't add to $LIBS permanently.
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 #include <X11/Xlib.h>
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (ac_try="$ac_link"
9558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9559 *) ac_try_echo
=$ac_try;;
9561 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9562 $as_echo "$ac_try_echo") >&5
9563 (eval "$ac_link") 2>conftest.er1
9565 grep -v '^ *+' conftest.er1
>conftest.err
9567 cat conftest.err
>&5
9568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && {
9570 test -z "$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest
$ac_exeext && {
9573 test "$cross_compiling" = yes ||
9574 $as_test_x conftest
$ac_exeext
9577 # We can link X programs with no special library path.
9580 $as_echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.
$ac_ext >&5
9584 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9586 # Don't even attempt the hair of trying to link an X program!
9587 for ac_extension
in a so sl dylib la dll
; do
9588 if test -r "$ac_dir/libX11.$ac_extension"; then
9589 ac_x_libraries
=$ac_dir
9596 rm -rf conftest.dSYM
9597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9598 conftest
$ac_exeext conftest.
$ac_ext
9599 fi # $ac_x_libraries = no
9601 case $ac_x_includes,$ac_x_libraries in #(
9603 # Didn't find X, or a directory has "'" in its name.
9604 ac_cv_have_x
="have_x=no";; #(
9606 # Record where we found X for the cache.
9607 ac_cv_have_x
="have_x=yes\
9608 ac_x_includes='$ac_x_includes'\
9609 ac_x_libraries='$ac_x_libraries'"
9615 eval "$ac_cv_have_x"
9618 if test "$have_x" != yes; then
9619 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9620 $as_echo "$have_x" >&6; }
9623 # If each of the values was on the command line, it overrides each guess.
9624 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9625 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9626 # Update the cache value to reflect the command line values.
9627 ac_cv_have_x
="have_x=yes\
9628 ac_x_includes='$x_includes'\
9629 ac_x_libraries='$x_libraries'"
9630 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9631 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9634 if test "$no_x" = yes; then
9640 ## Workaround for bug in autoconf <= 2.62.
9641 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9642 ## No need to do anything special for these standard directories.
9643 ## This is an experiment, take it out if it causes problems.
9644 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9646 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9650 if test "${x_libraries}" != NONE
; then
9651 if test -n "${x_libraries}"; then
9652 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9653 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9655 x_default_search_path
=""
9656 x_search_path
=${x_libraries}
9657 if test -z "${x_search_path}"; then
9658 x_search_path
=/usr
/lib
9660 for x_library
in `echo ${x_search_path}: | \
9661 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9663 ${x_library}/X11/%L/%T/%N%C%S:\
9664 ${x_library}/X11/%l/%T/%N%C%S:\
9665 ${x_library}/X11/%T/%N%C%S:\
9666 ${x_library}/X11/%L/%T/%N%S:\
9667 ${x_library}/X11/%l/%T/%N%S:\
9668 ${x_library}/X11/%T/%N%S"
9669 if test x
"${x_default_search_path}" = x
; then
9670 x_default_search_path
=${x_search_path}
9672 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9676 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9677 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9680 if test x
"${x_includes}" = x
; then
9681 bitmapdir
=/usr
/include
/X11
/bitmaps
9683 # accumulate include directories that have X11 bitmap subdirectories
9685 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9686 if test -d "${bmd}/X11/bitmaps"; then
9687 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9689 if test -d "${bmd}/bitmaps"; then
9690 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9693 if test ${bmd_acc} != "dummyval"; then
9694 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9701 tmp_CPPFLAGS
="$CPPFLAGS"
9702 tmp_CFLAGS
="$CFLAGS"
9703 CPPFLAGS
="$CPPFLAGS -x objective-c"
9704 CFLAGS
="$CFLAGS -x objective-c"
9705 if test "${with_ns}" != no
; then
9706 if test "${opsys}" = darwin
; then
9708 ns_appdir
=`pwd`/nextstep
/Emacs.app
9709 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9710 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9711 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9712 elif test -f $GNUSTEP_CONFIG_FILE; then
9714 ns_appdir
=`pwd`/nextstep
/Emacs.app
9715 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9716 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9717 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9718 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9719 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9720 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9721 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9722 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9723 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9724 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9726 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9727 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9728 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9729 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9730 $as_echo_n "(cached) " >&6
9732 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9733 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9735 # Is the header compilable?
9736 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9737 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9738 cat >conftest.
$ac_ext <<_ACEOF
9741 cat confdefs.h
>>conftest.
$ac_ext
9742 cat >>conftest.
$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 #include <AppKit/AppKit.h>
9747 rm -f conftest.
$ac_objext
9748 if { (ac_try
="$ac_compile"
9750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9767 $as_echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 $as_echo "$ac_header_compiler" >&6; }
9777 # Is the header present?
9778 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9779 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <AppKit/AppKit.h>
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
9790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9791 *) ac_try_echo
=$ac_try;;
9793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9797 grep -v '^ *+' conftest.er1
>conftest.err
9799 cat conftest.err
>&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev
/null
&& {
9802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9805 ac_header_preproc
=yes
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.
$ac_ext >&5
9810 ac_header_preproc
=no
9813 rm -f conftest.err conftest.
$ac_ext
9814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 $as_echo "$ac_header_preproc" >&6; }
9817 # So? What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9820 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9821 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9823 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc
=yes
9827 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9828 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9830 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9832 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9833 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9834 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9836 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9838 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9842 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9843 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9844 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9845 $as_echo_n "(cached) " >&6
9847 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9850 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9853 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9856 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9857 files are missing or cannot be compiled." >&5
9858 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9859 files are missing or cannot be compiled." >&2;}
9860 { (exit 1); exit 1; }; }
9864 NS_HAVE_NSINTEGER
=yes
9865 cat >conftest.
$ac_ext <<_ACEOF
9868 cat confdefs.h
>>conftest.
$ac_ext
9869 cat >>conftest.
$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 #include <Foundation/NSObjCRuntime.h>
9880 rm -f conftest.
$ac_objext
9881 if { (ac_try
="$ac_compile"
9883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887 $as_echo "$ac_try_echo") >&5
9888 (eval "$ac_compile") 2>conftest.er1
9890 grep -v '^ *+' conftest.er1 >conftest.err
9892 cat conftest.err >&5
9893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest.$ac_objext; then
9898 ns_have_nsinteger=yes
9900 $as_echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ns_have_nsinteger=no
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 if test $ns_have_nsinteger = no; then
9908 NS_HAVE_NSINTEGER=no
9911 if test "${HAVE_NS}" = yes; then
9912 window_system=nextstep
9914 # set up packaging dirs
9915 exec_prefix=${ns_appbindir}
9916 libexecdir=${ns_appbindir}/libexec
9917 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9918 prefix=${ns_appresdir}
9921 CFLAGS="$tmp_CFLAGS"
9922 CPPFLAGS="$tmp_CPPFLAGS"
9924 case "${window_system}" in
9928 case "${with_x_toolkit}" in
9929 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9930 motif ) USE_X_TOOLKIT=MOTIF ;;
9932 USE_X_TOOLKIT=none ;;
9933 no ) USE_X_TOOLKIT=none ;;
9934 * ) USE_X_TOOLKIT=maybe ;;
9944 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9945 # Extract the first word of "X", so it can be a program name with args.
9946 set dummy X; ac_word=$2
9947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9950 $as_echo_n "(cached) " >&6
9952 if test -n "$HAVE_XSERVER"; then
9953 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9962 ac_cv_prog_HAVE_XSERVER="true"
9963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9973 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9974 if test -n "$HAVE_XSERVER"; then
9975 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9976 $as_echo "$HAVE_XSERVER" >&6; }
9978 { $as_echo "$as_me:$LINENO: result: no" >&5
9979 $as_echo "no" >&6; }
9983 if test "$HAVE_XSERVER" = true ||
9984 test -n "$DISPLAY" ||
9985 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9986 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9987 were found. You should install the relevant development files for X
9988 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9989 sure you have development files for image handling, i.e.
9990 tiff, gif, jpeg, png and xpm.
9991 If you are sure you want Emacs compiled without X window support, pass
9994 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9995 were found. You should install the relevant development files for X
9996 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9997 sure you have development files for image handling, i.e.
9998 tiff, gif, jpeg, png and xpm.
9999 If you are sure you want Emacs compiled without X window support, pass
10001 to configure." >&2;}
10002 { (exit 1); exit 1; }; }
10006 ### If we're using X11, we should use the X menu package.
10008 case ${HAVE_X11} in
10009 yes ) HAVE_MENUS=yes ;;
10012 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10013 # Assume not, until told otherwise.
10015 doug_lea_malloc=yes
10016 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10017 $as_echo_n "checking for malloc_get_state... " >&6; }
10018 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10019 $as_echo_n "(cached) " >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029 #define malloc_get_state innocuous_malloc_get_state
10031 /* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char malloc_get_state (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10037 # include <limits.h>
10039 # include <assert.h>
10042 #undef malloc_get_state
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10050 char malloc_get_state ();
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10061 return malloc_get_state ();
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10070 *) ac_try_echo
=$ac_try;;
10072 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10073 $as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1
>conftest.err
10078 cat conftest.err
>&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest
$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest
$ac_exeext
10087 ac_cv_func_malloc_get_state
=yes
10089 $as_echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.
$ac_ext >&5
10092 ac_cv_func_malloc_get_state
=no
10095 rm -rf conftest.dSYM
10096 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10097 conftest
$ac_exeext conftest.
$ac_ext
10099 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10100 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10101 if test $ac_cv_func_malloc_get_state = yes; then
10107 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10108 $as_echo_n "checking for malloc_set_state... " >&6; }
10109 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10110 $as_echo_n "(cached) " >&6
10112 cat >conftest.
$ac_ext <<_ACEOF
10115 cat confdefs.h
>>conftest.
$ac_ext
10116 cat >>conftest.
$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10120 #define malloc_set_state innocuous_malloc_set_state
10122 /* System header to define __stub macros and hopefully few prototypes,
10123 which can conflict with char malloc_set_state (); below.
10124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125 <limits.h> exists even on freestanding compilers. */
10128 # include <limits.h>
10130 # include <assert.h>
10133 #undef malloc_set_state
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10141 char malloc_set_state ();
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10152 return malloc_set_state ();
10157 rm -f conftest.
$ac_objext conftest
$ac_exeext
10158 if { (ac_try
="$ac_link"
10159 case "(($ac_try" in
10160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165 (eval "$ac_link") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest$ac_exeext && {
10175 test "$cross_compiling" = yes ||
10176 $as_test_x conftest$ac_exeext
10178 ac_cv_func_malloc_set_state=yes
10180 $as_echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_func_malloc_set_state=no
10186 rm -rf conftest.dSYM
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10190 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10191 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10192 if test $ac_cv_func_malloc_set_state = yes; then
10198 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10199 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10200 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10201 $as_echo_n "(cached) " >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 extern void (* __after_morecore_hook)();
10213 __after_morecore_hook = 0
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10222 *) ac_try_echo
=$ac_try;;
10224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10228 grep -v '^ *+' conftest.er1
>conftest.err
10230 cat conftest.err
>&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest
$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest
$ac_exeext
10239 emacs_cv_var___after_morecore_hook
=yes
10241 $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.
$ac_ext >&5
10244 emacs_cv_var___after_morecore_hook
=no
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10249 conftest
$ac_exeext conftest.
$ac_ext
10251 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10252 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10253 if test $emacs_cv_var___after_morecore_hook = no
; then
10256 if test "${system_malloc}" = "yes"; then
10258 GNU_MALLOC_reason
="
10259 (The GNU allocators don't work with this system configuration.)"
10261 if test "$doug_lea_malloc" = "yes" ; then
10262 if test "$GNU_MALLOC" = yes ; then
10263 GNU_MALLOC_reason
="
10264 (Using Doug Lea's new malloc from the GNU C Library.)"
10267 cat >>confdefs.h
<<\_ACEOF
10268 #define DOUG_LEA_MALLOC 1
10273 if test x
"${REL_ALLOC}" = x
; then
10274 REL_ALLOC
=${GNU_MALLOC}
10280 for ac_header
in stdlib.h unistd.h
10282 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10283 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10285 $as_echo_n "checking for $ac_header... " >&6; }
10286 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10287 $as_echo_n "(cached) " >&6
10289 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10290 $as_echo "$as_val"'`
10291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10292 $as_echo "$ac_res" >&6; }
10294 # Is the header compilable?
10295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10296 $as_echo_n "checking $ac_header usability... " >&6; }
10297 cat >conftest.
$ac_ext <<_ACEOF
10300 cat confdefs.h
>>conftest.
$ac_ext
10301 cat >>conftest.
$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 $ac_includes_default
10304 #include <$ac_header>
10306 rm -f conftest.
$ac_objext
10307 if { (ac_try
="$ac_compile"
10308 case "(($ac_try" in
10309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_compile") 2>conftest.er1
10316 grep -v '^ *+' conftest.er1 >conftest.err
10318 cat conftest.err >&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
10324 ac_header_compiler=yes
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_header_compiler=no
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334 $as_echo "$ac_header_compiler" >&6; }
10336 # Is the header present?
10337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338 $as_echo_n "checking $ac_header presence... " >&6; }
10339 cat >conftest.$ac_ext <<_ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <$ac_header>
10347 if { (ac_try="$ac_cpp conftest.$ac_ext"
10348 case "(($ac_try" in
10349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10350 *) ac_try_echo
=$ac_try;;
10352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10353 $as_echo "$ac_try_echo") >&5
10354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10356 grep -v '^ *+' conftest.er1
>conftest.err
10358 cat conftest.err
>&5
10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev
/null
&& {
10361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10364 ac_header_preproc
=yes
10366 $as_echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.
$ac_ext >&5
10369 ac_header_preproc
=no
10372 rm -f conftest.err conftest.
$ac_ext
10373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374 $as_echo "$ac_header_preproc" >&6; }
10376 # So? What about this header?
10377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc
=yes
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10393 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10402 $as_echo_n "checking for $ac_header... " >&6; }
10403 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10404 $as_echo_n "(cached) " >&6
10406 eval "$as_ac_Header=\$ac_header_preproc"
10408 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10409 $as_echo "$as_val"'`
10410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10411 $as_echo "$ac_res" >&6; }
10414 if test `eval 'as_val=${'$as_ac_Header'}
10415 $as_echo "$as_val"'` = yes; then
10416 cat >>confdefs.h
<<_ACEOF
10417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 for ac_func
in getpagesize
10427 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10428 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10429 $as_echo_n "checking for $ac_func... " >&6; }
10430 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10431 $as_echo_n "(cached) " >&6
10433 cat >conftest.
$ac_ext <<_ACEOF
10436 cat confdefs.h
>>conftest.
$ac_ext
10437 cat >>conftest.
$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10441 #define $ac_func innocuous_$ac_func
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char $ac_func (); below.
10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446 <limits.h> exists even on freestanding compilers. */
10449 # include <limits.h>
10451 # include <assert.h>
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10463 /* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466 #if defined __stub_$ac_func || defined __stub___$ac_func
10473 return $ac_func ();
10478 rm -f conftest.
$ac_objext conftest
$ac_exeext
10479 if { (ac_try
="$ac_link"
10480 case "(($ac_try" in
10481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10499 eval "$as_ac_var=yes"
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 eval "$as_ac_var=no"
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10511 ac_res=`eval 'as_val=${'$as_ac_var'}
10512 $as_echo "$as_val"'`
10513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10514 $as_echo "$ac_res" >&6; }
10515 if test `eval 'as_val=${'$as_ac_var'}
10516 $as_echo "$as_val"'` = yes; then
10517 cat >>confdefs.h <<_ACEOF
10518 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10524 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10525 $as_echo_n "checking for working mmap... " >&6; }
10526 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10527 $as_echo_n "(cached) " >&6
10529 if test "$cross_compiling" = yes; then
10530 ac_cv_func_mmap_fixed_mapped=no
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10539 /* malloc might have been renamed as rpl_malloc. */
10542 /* Thanks to Mike Haertel and Jim Avera for this test.
10543 Here is a matrix of mmap possibilities:
10544 mmap private not fixed
10545 mmap private fixed at somewhere currently unmapped
10546 mmap private fixed at somewhere already mapped
10547 mmap shared not fixed
10548 mmap shared fixed at somewhere currently unmapped
10549 mmap shared fixed at somewhere already mapped
10550 For private mappings, we should verify that changes cannot be read()
10551 back from the file, nor mmap's back from the file at a different
10552 address. (There have been systems where private was not correctly
10553 implemented like the infamous i386 svr4.0, and systems where the
10554 VM page cache was not coherent with the file system buffer cache
10555 like early versions of FreeBSD and possibly contemporary NetBSD.)
10556 For shared mappings, we should conversely verify that changes get
10557 propagated back to all the places they're supposed to be.
10559 Grep wants private fixed already mapped.
10560 The main things grep needs to know about mmap are:
10561 * does it exist and is it safe to write into the mmap'd area
10562 * how to use it (BSD variants) */
10565 #include <sys/mman.h>
10567 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10571 /* This mess was copied from the GNU getpagesize.h. */
10572 #ifndef HAVE_GETPAGESIZE
10573 /* Assume that all systems that can run configure have sys/param.h. */
10574 # ifndef HAVE_SYS_PARAM_H
10575 # define HAVE_SYS_PARAM_H 1
10578 # ifdef _SC_PAGESIZE
10579 # define getpagesize() sysconf(_SC_PAGESIZE)
10580 # else /* no _SC_PAGESIZE */
10581 # ifdef HAVE_SYS_PARAM_H
10582 # include <sys/param.h>
10583 # ifdef EXEC_PAGESIZE
10584 # define getpagesize() EXEC_PAGESIZE
10585 # else /* no EXEC_PAGESIZE */
10587 # define getpagesize() NBPG * CLSIZE
10590 # endif /* no CLSIZE */
10591 # else /* no NBPG */
10593 # define getpagesize() NBPC
10594 # else /* no NBPC */
10596 # define getpagesize() PAGESIZE
10597 # endif /* PAGESIZE */
10598 # endif /* no NBPC */
10599 # endif /* no NBPG */
10600 # endif /* no EXEC_PAGESIZE */
10601 # else /* no HAVE_SYS_PARAM_H */
10602 # define getpagesize() 8192 /* punt totally */
10603 # endif /* no HAVE_SYS_PARAM_H */
10604 # endif /* no _SC_PAGESIZE */
10606 #endif /* no HAVE_GETPAGESIZE */
10611 char *data, *data2, *data3;
10615 pagesize = getpagesize ();
10617 /* First, make a file with some known garbage in it. */
10618 data = (char *) malloc (pagesize);
10621 for (i = 0; i < pagesize; ++i)
10622 *(data + i) = rand ();
10624 fd = creat ("conftest.mmap", 0600);
10627 if (write (fd, data, pagesize) != pagesize)
10631 /* Next, try to mmap the file at a fixed address which already has
10632 something else allocated at it. If we can, also make sure that
10633 we see the same garbage. */
10634 fd = open ("conftest.mmap", O_RDWR);
10637 data2 = (char *) malloc (2 * pagesize);
10640 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10641 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10642 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10644 for (i = 0; i < pagesize; ++i)
10645 if (*(data + i) != *(data2 + i))
10648 /* Finally, make sure that changes to the mapped area do not
10649 percolate back to the file as seen by read(). (This is a bug on
10650 some variants of i386 svr4.0.) */
10651 for (i = 0; i < pagesize; ++i)
10652 *(data2 + i) = *(data2 + i) + 1;
10653 data3 = (char *) malloc (pagesize);
10656 if (read (fd, data3, pagesize) != pagesize)
10658 for (i = 0; i < pagesize; ++i)
10659 if (*(data + i) != *(data3 + i))
10665 rm -f conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10669 *) ac_try_echo
=$ac_try;;
10671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>&5
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10677 { (case "(($ac_try" in
10678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_try") 2>&5
10685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_func_mmap_fixed_mapped=yes
10689 $as_echo "$as_me: program exited with status $ac_status" >&5
10690 $as_echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ( exit $ac_status )
10694 ac_cv_func_mmap_fixed_mapped=no
10696 rm -rf conftest.dSYM
10697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10702 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10703 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10704 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_MMAP 1
10711 rm -f conftest.mmap
10713 if test $use_mmap_for_buffers = yes; then
10717 LIBS="$libsrc_libs $LIBS"
10720 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10721 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10722 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10723 $as_echo_n "(cached) " >&6
10725 ac_check_lib_save_LIBS=$LIBS
10726 LIBS="-ldnet $LIBS"
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10734 /* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10744 return dnet_ntoa ();
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (ac_try="$ac_link"
10751 case "(($ac_try" in
10752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10753 *) ac_try_echo
=$ac_try;;
10755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_link") 2>conftest.er1
10759 grep -v '^ *+' conftest.er1
>conftest.err
10761 cat conftest.err
>&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest
$ac_exeext && {
10767 test "$cross_compiling" = yes ||
10768 $as_test_x conftest
$ac_exeext
10770 ac_cv_lib_dnet_dnet_ntoa
=yes
10772 $as_echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.
$ac_ext >&5
10775 ac_cv_lib_dnet_dnet_ntoa
=no
10778 rm -rf conftest.dSYM
10779 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10780 conftest
$ac_exeext conftest.
$ac_ext
10781 LIBS
=$ac_check_lib_save_LIBS
10783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10784 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10785 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10786 cat >>confdefs.h
<<_ACEOF
10787 #define HAVE_LIBDNET 1
10790 LIBS
="-ldnet $LIBS"
10795 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10796 $as_echo_n "checking for main in -lXbsd... " >&6; }
10797 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10798 $as_echo_n "(cached) " >&6
10800 ac_check_lib_save_LIBS
=$LIBS
10801 LIBS
="-lXbsd $LIBS"
10802 cat >conftest.
$ac_ext <<_ACEOF
10805 cat confdefs.h
>>conftest.
$ac_ext
10806 cat >>conftest.
$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10818 rm -f conftest.
$ac_objext conftest
$ac_exeext
10819 if { (ac_try
="$ac_link"
10820 case "(($ac_try" in
10821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826 (eval "$ac_link") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext && {
10836 test "$cross_compiling" = yes ||
10837 $as_test_x conftest$ac_exeext
10839 ac_cv_lib_Xbsd_main=yes
10841 $as_echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_cv_lib_Xbsd_main=no
10847 rm -rf conftest.dSYM
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10853 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10854 if test $ac_cv_lib_Xbsd_main = yes; then
10855 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10860 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10861 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10862 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10863 $as_echo_n "(cached) " >&6
10865 ac_check_lib_save_LIBS=$LIBS
10866 LIBS="-lpthreads $LIBS"
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10884 return cma_open ();
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10893 *) ac_try_echo
=$ac_try;;
10895 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1
>conftest.err
10901 cat conftest.err
>&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest
$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest
$ac_exeext
10910 ac_cv_lib_pthreads_cma_open
=yes
10912 $as_echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.
$ac_ext >&5
10915 ac_cv_lib_pthreads_cma_open
=no
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10920 conftest
$ac_exeext conftest.
$ac_ext
10921 LIBS
=$ac_check_lib_save_LIBS
10923 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10924 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10925 if test $ac_cv_lib_pthreads_cma_open = yes; then
10926 cat >>confdefs.h
<<_ACEOF
10927 #define HAVE_LIBPTHREADS 1
10930 LIBS
="-lpthreads $LIBS"
10938 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10939 $as_echo_n "checking for -bbigtoc option... " >&6; }
10940 if test "${gdb_cv_bigtoc+set}" = set; then
10941 $as_echo_n "(cached) " >&6
10945 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10946 *) gdb_cv_bigtoc
=-bbigtoc ;;
10949 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10950 cat >conftest.
$ac_ext <<_ACEOF
10953 cat confdefs.h
>>conftest.
$ac_ext
10954 cat >>conftest.
$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10965 rm -f conftest.
$ac_objext conftest
$ac_exeext
10966 if { (ac_try
="$ac_link"
10967 case "(($ac_try" in
10968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1 >conftest.err
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10988 $as_echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10994 rm -rf conftest.dSYM
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
10999 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11000 $as_echo "$gdb_cv_bigtoc" >&6; }
11004 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11005 # used for the tests that follow. We set them back to REAL_CFLAGS and
11006 # REAL_CPPFLAGS later on.
11008 REAL_CPPFLAGS="$CPPFLAGS"
11010 if test "${HAVE_X11}" = "yes"; then
11011 DEFS="$C_SWITCH_X_SITE $DEFS"
11012 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11014 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11015 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11017 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11018 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11019 # but it's more convenient here to set LD_RUN_PATH
11020 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11021 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11022 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11026 if test "${opsys}" = "gnu-linux"; then
11027 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11028 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11039 XOpenDisplay ("foo");
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11048 *) ac_try_echo
=$ac_try;;
11050 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11051 $as_echo "$ac_try_echo") >&5
11052 (eval "$ac_link") 2>conftest.er1
11054 grep -v '^ *+' conftest.er1
>conftest.err
11056 cat conftest.err
>&5
11057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest
$ac_exeext && {
11062 test "$cross_compiling" = yes ||
11063 $as_test_x conftest
$ac_exeext
11065 xlinux_first_failure
=no
11067 $as_echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.
$ac_ext >&5
11070 xlinux_first_failure
=yes
11073 rm -rf conftest.dSYM
11074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11075 conftest
$ac_exeext conftest.
$ac_ext
11076 if test "${xlinux_first_failure}" = "yes"; then
11077 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11078 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11079 OLD_CPPFLAGS
="$CPPFLAGS"
11081 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11082 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11083 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11084 LIBS
="$LIBS -b i486-linuxaout"
11085 cat >conftest.
$ac_ext <<_ACEOF
11088 cat confdefs.h
>>conftest.
$ac_ext
11089 cat >>conftest.
$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11095 XOpenDisplay ("foo");
11100 rm -f conftest.
$ac_objext conftest
$ac_exeext
11101 if { (ac_try
="$ac_link"
11102 case "(($ac_try" in
11103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11107 $as_echo "$ac_try_echo") >&5
11108 (eval "$ac_link") 2>conftest.er1
11110 grep -v '^ *+' conftest.er1 >conftest.err
11112 cat conftest.err >&5
11113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest$ac_exeext && {
11118 test "$cross_compiling" = yes ||
11119 $as_test_x conftest$ac_exeext
11121 xlinux_second_failure=no
11123 $as_echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 xlinux_second_failure=yes
11129 rm -rf conftest.dSYM
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11132 if test "${xlinux_second_failure}" = "yes"; then
11133 # If we get the same failure with -b, there is no use adding -b.
11134 # So take it out. This plays safe.
11135 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11136 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11137 CPPFLAGS="$OLD_CPPFLAGS"
11139 { $as_echo "$as_me:$LINENO: result: no" >&5
11140 $as_echo "no" >&6; }
11142 { $as_echo "$as_me:$LINENO: result: yes" >&5
11143 $as_echo "yes" >&6; }
11146 { $as_echo "$as_me:$LINENO: result: no" >&5
11147 $as_echo "no" >&6; }
11151 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11152 # header files included from there.
11153 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11154 $as_echo_n "checking for Xkb... " >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <X11/Xlib.h>
11162 #include <X11/XKBlib.h>
11166 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11175 *) ac_try_echo
=$ac_try;;
11177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11178 $as_echo "$ac_try_echo") >&5
11179 (eval "$ac_link") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1
>conftest.err
11183 cat conftest.err
>&5
11184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest
$ac_exeext && {
11189 test "$cross_compiling" = yes ||
11190 $as_test_x conftest
$ac_exeext
11194 $as_echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.
$ac_ext >&5
11200 rm -rf conftest.dSYM
11201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11202 conftest
$ac_exeext conftest.
$ac_ext
11203 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11204 $as_echo "$emacs_xkb" >&6; }
11205 if test $emacs_xkb = yes; then
11207 cat >>confdefs.h
<<\_ACEOF
11208 #define HAVE_XKBGETKEYBOARD 1
11217 for ac_func
in XrmSetDatabase XScreenResourceString \
11218 XScreenNumberOfScreen XSetWMProtocols
11220 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 $as_echo_n "checking for $ac_func... " >&6; }
11223 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 $as_echo_n "(cached) " >&6
11226 cat >conftest.
$ac_ext <<_ACEOF
11229 cat confdefs.h
>>conftest.
$ac_ext
11230 cat >>conftest.
$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11242 # include <limits.h>
11244 # include <assert.h>
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_$ac_func || defined __stub___$ac_func
11266 return $ac_func ();
11271 rm -f conftest.
$ac_objext conftest
$ac_exeext
11272 if { (ac_try
="$ac_link"
11273 case "(($ac_try" in
11274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278 $as_echo "$ac_try_echo") >&5
11279 (eval "$ac_link") 2>conftest.er1
11281 grep -v '^ *+' conftest.er1 >conftest.err
11283 cat conftest.err >&5
11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest$ac_exeext && {
11289 test "$cross_compiling" = yes ||
11290 $as_test_x conftest$ac_exeext
11292 eval "$as_ac_var=yes"
11294 $as_echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -rf conftest.dSYM
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11304 ac_res=`eval 'as_val=${'$as_ac_var'}
11305 $as_echo "$as_val"'`
11306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11307 $as_echo "$ac_res" >&6; }
11308 if test `eval 'as_val=${'$as_ac_var'}
11309 $as_echo "$as_val"'` = yes; then
11310 cat >>confdefs.h <<_ACEOF
11311 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11319 if test "${window_system}" = "x11"; then
11320 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11321 $as_echo_n "checking X11 version 6... " >&6; }
11322 if test "${emacs_cv_x11_version_6+set}" = set; then
11323 $as_echo_n "(cached) " >&6
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <X11/Xlib.h>
11335 #if XlibSpecificationRelease < 6
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (ac_try="$ac_link"
11345 case "(($ac_try" in
11346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11347 *) ac_try_echo
=$ac_try;;
11349 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11350 $as_echo "$ac_try_echo") >&5
11351 (eval "$ac_link") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1
>conftest.err
11355 cat conftest.err
>&5
11356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest
$ac_exeext && {
11361 test "$cross_compiling" = yes ||
11362 $as_test_x conftest
$ac_exeext
11364 emacs_cv_x11_version_6
=yes
11366 $as_echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.
$ac_ext >&5
11369 emacs_cv_x11_version_6
=no
11372 rm -rf conftest.dSYM
11373 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11374 conftest
$ac_exeext conftest.
$ac_ext
11377 if test $emacs_cv_x11_version_6 = yes; then
11378 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11379 $as_echo "6 or newer" >&6; }
11381 cat >>confdefs.h
<<\_ACEOF
11382 #define HAVE_X11R6 1
11386 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11387 $as_echo "before 6" >&6; }
11392 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11394 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11395 if test "${with_rsvg}" != "no"; then
11396 RSVG_REQUIRED
=2.11.0
11397 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11402 # Extract the first word of "pkg-config", so it can be a program name with args.
11403 set dummy pkg-config
; ac_word
=$2
11404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11405 $as_echo_n "checking for $ac_word... " >&6; }
11406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11407 $as_echo_n "(cached) " >&6
11409 case $PKG_CONFIG in
11411 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11415 for as_dir
in $PATH
11418 test -z "$as_dir" && as_dir
=.
11419 for ac_exec_ext
in '' $ac_executable_extensions; do
11420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11421 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11433 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11434 if test -n "$PKG_CONFIG"; then
11435 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11436 $as_echo "$PKG_CONFIG" >&6; }
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11444 if test "$PKG_CONFIG" = "no" ; then
11447 PKG_CONFIG_MIN_VERSION
=0.9.0
11448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11449 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11450 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11452 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11453 { $as_echo "$as_me:$LINENO: result: yes" >&5
11454 $as_echo "yes" >&6; }
11457 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11458 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11459 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11460 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11461 $as_echo "$RSVG_CFLAGS" >&6; }
11463 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11464 $as_echo_n "checking RSVG_LIBS... " >&6; }
11465 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11466 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11467 $as_echo "$RSVG_LIBS" >&6; }
11469 { $as_echo "$as_me:$LINENO: result: no" >&5
11470 $as_echo "no" >&6; }
11473 ## If we have a custom action on failure, don't print errors, but
11474 ## do set a variable so people can do so.
11475 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11487 if test $succeeded = yes; then
11496 if test ".${RSVG_CFLAGS}" != "."; then
11499 cat >>confdefs.h
<<\_ACEOF
11500 #define HAVE_RSVG 1
11503 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11504 LIBS
="$RSVG_LIBS $LIBS"
11511 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11514 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11519 # Extract the first word of "pkg-config", so it can be a program name with args.
11520 set dummy pkg-config
; ac_word
=$2
11521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11524 $as_echo_n "(cached) " >&6
11526 case $PKG_CONFIG in
11528 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11532 for as_dir
in $PATH
11535 test -z "$as_dir" && as_dir
=.
11536 for ac_exec_ext
in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11550 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11551 if test -n "$PKG_CONFIG"; then
11552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11553 $as_echo "$PKG_CONFIG" >&6; }
11555 { $as_echo "$as_me:$LINENO: result: no" >&5
11556 $as_echo "no" >&6; }
11561 if test "$PKG_CONFIG" = "no" ; then
11564 PKG_CONFIG_MIN_VERSION
=0.9.0
11565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11566 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11567 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11569 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11570 { $as_echo "$as_me:$LINENO: result: yes" >&5
11571 $as_echo "yes" >&6; }
11574 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11575 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11576 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11577 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11578 $as_echo "$GTK_CFLAGS" >&6; }
11580 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11581 $as_echo_n "checking GTK_LIBS... " >&6; }
11582 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11583 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11584 $as_echo "$GTK_LIBS" >&6; }
11586 { $as_echo "$as_me:$LINENO: result: no" >&5
11587 $as_echo "no" >&6; }
11590 ## If we have a custom action on failure, don't print errors, but
11591 ## do set a variable so people can do so.
11592 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11604 if test $succeeded = yes; then
11610 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11611 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11612 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11613 { (exit 1); exit 1; }; }
11618 if test x
"$pkg_check_gtk" = xyes
; then
11622 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11623 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11624 LIBS
="$GTK_LIBS $LIBS"
11627 for ac_func
in gtk_main
11629 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 $as_echo_n "checking for $ac_func... " >&6; }
11632 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 $as_echo_n "(cached) " >&6
11635 cat >conftest.
$ac_ext <<_ACEOF
11638 cat confdefs.h
>>conftest.
$ac_ext
11639 cat >>conftest.
$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643 #define $ac_func innocuous_$ac_func
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11651 # include <limits.h>
11653 # include <assert.h>
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11665 /* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 return $ac_func ();
11680 rm -f conftest.
$ac_objext conftest
$ac_exeext
11681 if { (ac_try
="$ac_link"
11682 case "(($ac_try" in
11683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11687 $as_echo "$ac_try_echo") >&5
11688 (eval "$ac_link") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext && {
11698 test "$cross_compiling" = yes ||
11699 $as_test_x conftest$ac_exeext
11701 eval "$as_ac_var=yes"
11703 $as_echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 eval "$as_ac_var=no"
11709 rm -rf conftest.dSYM
11710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11711 conftest$ac_exeext conftest.$ac_ext
11713 ac_res=`eval 'as_val=${'$as_ac_var'}
11714 $as_echo "$as_val"'`
11715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11716 $as_echo "$ac_res" >&6; }
11717 if test `eval 'as_val=${'$as_ac_var'}
11718 $as_echo "$as_val"'` = yes; then
11719 cat >>confdefs.h <<_ACEOF
11720 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11726 if test "${GTK_COMPILES}" != "yes"; then
11727 if test "$USE_X_TOOLKIT" != "maybe"; then
11728 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11729 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11730 { (exit 1); exit 1; }; };
11735 cat >>confdefs.h <<\_ACEOF
11740 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11743 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11744 closing open displays. This is no problem if you just use
11745 one display, but if you use more than one and close one of them
11746 Emacs may crash." >&5
11747 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11748 closing open displays. This is no problem if you just use
11749 one display, but if you use more than one and close one of them
11750 Emacs may crash." >&2;}
11758 if test "${HAVE_GTK}" = "yes"; then
11760 if test "$with_toolkit_scroll_bars" != no; then
11761 with_toolkit_scroll_bars=yes
11764 HAVE_GTK_MULTIDISPLAY=no
11766 for ac_func in gdk_display_open
11768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11770 $as_echo_n "checking for $ac_func... " >&6; }
11771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11772 $as_echo_n "(cached) " >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11782 #define $ac_func innocuous_$ac_func
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func (); below.
11786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787 <limits.h> exists even on freestanding compilers. */
11790 # include <limits.h>
11792 # include <assert.h>
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11804 /* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807 #if defined __stub_$ac_func || defined __stub___$ac_func
11814 return $ac_func ();
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11823 *) ac_try_echo
=$ac_try;;
11825 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11826 $as_echo "$ac_try_echo") >&5
11827 (eval "$ac_link") 2>conftest.er1
11829 grep -v '^ *+' conftest.er1
>conftest.err
11831 cat conftest.err
>&5
11832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } && {
11834 test -z "$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11836 } && test -s conftest
$ac_exeext && {
11837 test "$cross_compiling" = yes ||
11838 $as_test_x conftest
$ac_exeext
11840 eval "$as_ac_var=yes"
11842 $as_echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.
$ac_ext >&5
11845 eval "$as_ac_var=no"
11848 rm -rf conftest.dSYM
11849 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11850 conftest
$ac_exeext conftest.
$ac_ext
11852 ac_res
=`eval 'as_val=${'$as_ac_var'}
11853 $as_echo "$as_val"'`
11854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11855 $as_echo "$ac_res" >&6; }
11856 if test `eval 'as_val=${'$as_ac_var'}
11857 $as_echo "$as_val"'` = yes; then
11858 cat >>confdefs.h
<<_ACEOF
11859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11861 HAVE_GTK_MULTIDISPLAY
=yes
11865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11867 cat >>confdefs.h
<<\_ACEOF
11868 #define HAVE_GTK_MULTIDISPLAY 1
11873 HAVE_GTK_FILE_SELECTION
=no
11874 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11875 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11876 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11877 $as_echo_n "(cached) " >&6
11879 cat >conftest.
$ac_ext <<_ACEOF
11882 cat confdefs.h
>>conftest.
$ac_ext
11883 cat >>conftest.
$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 $ac_includes_default
11886 #include <gtk/gtk.h>
11891 #ifndef GTK_TYPE_FILE_SELECTION
11892 (void) GTK_TYPE_FILE_SELECTION;
11899 rm -f conftest.
$ac_objext
11900 if { (ac_try
="$ac_compile"
11901 case "(($ac_try" in
11902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11919 $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11928 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11929 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11930 HAVE_GTK_FILE_SELECTION=yes
11932 HAVE_GTK_FILE_SELECTION=no
11935 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11937 for ac_func in gtk_file_selection_new
11939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11940 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 $as_echo_n "checking for $ac_func... " >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 $as_echo_n "(cached) " >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11961 # include <limits.h>
11963 # include <assert.h>
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11985 return $ac_func ();
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11994 *) ac_try_echo
=$ac_try;;
11996 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998 (eval "$ac_link") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1
>conftest.err
12002 cat conftest.err
>&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest
$ac_exeext && {
12008 test "$cross_compiling" = yes ||
12009 $as_test_x conftest
$ac_exeext
12011 eval "$as_ac_var=yes"
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.
$ac_ext >&5
12016 eval "$as_ac_var=no"
12019 rm -rf conftest.dSYM
12020 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12021 conftest
$ac_exeext conftest.
$ac_ext
12023 ac_res
=`eval 'as_val=${'$as_ac_var'}
12024 $as_echo "$as_val"'`
12025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12026 $as_echo "$ac_res" >&6; }
12027 if test `eval 'as_val=${'$as_ac_var'}
12028 $as_echo "$as_val"'` = yes; then
12029 cat >>confdefs.h
<<_ACEOF
12030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12032 HAVE_GTK_FILE_SELECTION
=yes
12034 HAVE_GTK_FILE_SELECTION
=no
12040 HAVE_GTK_FILE_CHOOSER
=no
12041 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12042 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12043 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12044 $as_echo_n "(cached) " >&6
12046 cat >conftest.
$ac_ext <<_ACEOF
12049 cat confdefs.h
>>conftest.
$ac_ext
12050 cat >>conftest.
$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 $ac_includes_default
12053 #include <gtk/gtk.h>
12058 #ifndef GTK_TYPE_FILE_CHOOSER
12059 (void) GTK_TYPE_FILE_CHOOSER;
12066 rm -f conftest.
$ac_objext
12067 if { (ac_try
="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12095 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12096 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12097 HAVE_GTK_FILE_CHOOSER=yes
12099 HAVE_GTK_FILE_CHOOSER=no
12102 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12104 for ac_func in gtk_file_chooser_dialog_new
12106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12108 $as_echo_n "checking for $ac_func... " >&6; }
12109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12112 cat >conftest.$ac_ext <<_ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12120 #define $ac_func innocuous_$ac_func
12122 /* System header to define __stub macros and hopefully few prototypes,
12123 which can conflict with char $ac_func (); below.
12124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125 <limits.h> exists even on freestanding compilers. */
12128 # include <limits.h>
12130 # include <assert.h>
12135 /* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12142 /* The GNU C library defines this for functions which it implements
12143 to always fail with ENOSYS. Some functions are actually named
12144 something starting with __ and the normal name is an alias. */
12145 #if defined __stub_$ac_func || defined __stub___$ac_func
12152 return $ac_func ();
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12161 *) ac_try_echo
=$ac_try;;
12163 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12164 $as_echo "$ac_try_echo") >&5
12165 (eval "$ac_link") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1
>conftest.err
12169 cat conftest.err
>&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest
$ac_exeext && {
12175 test "$cross_compiling" = yes ||
12176 $as_test_x conftest
$ac_exeext
12178 eval "$as_ac_var=yes"
12180 $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.
$ac_ext >&5
12183 eval "$as_ac_var=no"
12186 rm -rf conftest.dSYM
12187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12188 conftest
$ac_exeext conftest.
$ac_ext
12190 ac_res
=`eval 'as_val=${'$as_ac_var'}
12191 $as_echo "$as_val"'`
12192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12193 $as_echo "$ac_res" >&6; }
12194 if test `eval 'as_val=${'$as_ac_var'}
12195 $as_echo "$as_val"'` = yes; then
12196 cat >>confdefs.h
<<_ACEOF
12197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 HAVE_GTK_FILE_CHOOSER
=yes
12201 HAVE_GTK_FILE_CHOOSER
=no
12207 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12208 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12210 cat >>confdefs.h
<<\_ACEOF
12211 #define HAVE_GTK_FILE_BOTH 1
12216 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12217 HAVE_GTK_AND_PTHREAD
=no
12219 for ac_header
in pthread.h
12221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12224 $as_echo_n "checking for $ac_header... " >&6; }
12225 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 $as_echo_n "(cached) " >&6
12228 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12229 $as_echo "$as_val"'`
12230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12231 $as_echo "$ac_res" >&6; }
12233 # Is the header compilable?
12234 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12235 $as_echo_n "checking $ac_header usability... " >&6; }
12236 cat >conftest.
$ac_ext <<_ACEOF
12239 cat confdefs.h
>>conftest.
$ac_ext
12240 cat >>conftest.
$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12243 #include <$ac_header>
12245 rm -f conftest.
$ac_objext
12246 if { (ac_try
="$ac_compile"
12247 case "(($ac_try" in
12248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252 $as_echo "$ac_try_echo") >&5
12253 (eval "$ac_compile") 2>conftest.er1
12255 grep -v '^ *+' conftest.er1 >conftest.err
12257 cat conftest.err >&5
12258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest.$ac_objext; then
12263 ac_header_compiler=yes
12265 $as_echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_header_compiler=no
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12273 $as_echo "$ac_header_compiler" >&6; }
12275 # Is the header present?
12276 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12277 $as_echo_n "checking $ac_header presence... " >&6; }
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 #include <$ac_header>
12286 if { (ac_try="$ac_cpp conftest.$ac_ext"
12287 case "(($ac_try" in
12288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12289 *) ac_try_echo
=$ac_try;;
12291 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12292 $as_echo "$ac_try_echo") >&5
12293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12295 grep -v '^ *+' conftest.er1
>conftest.err
12297 cat conftest.err
>&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev
/null
&& {
12300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12303 ac_header_preproc
=yes
12305 $as_echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.
$ac_ext >&5
12308 ac_header_preproc
=no
12311 rm -f conftest.err conftest.
$ac_ext
12312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12313 $as_echo "$ac_header_preproc" >&6; }
12315 # So? What about this header?
12316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12319 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12322 ac_header_preproc
=yes
12325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12326 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12328 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12330 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12332 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12336 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 $as_echo_n "checking for $ac_header... " >&6; }
12342 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 $as_echo_n "(cached) " >&6
12345 eval "$as_ac_Header=\$ac_header_preproc"
12347 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12348 $as_echo "$as_val"'`
12349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12350 $as_echo "$ac_res" >&6; }
12353 if test `eval 'as_val=${'$as_ac_Header'}
12354 $as_echo "$as_val"'` = yes; then
12355 cat >>confdefs.h
<<_ACEOF
12356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12363 if test "$ac_cv_header_pthread_h"; then
12364 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12365 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12366 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12367 $as_echo_n "(cached) " >&6
12369 ac_check_lib_save_LIBS
=$LIBS
12370 LIBS
="-lpthread $LIBS"
12371 cat >conftest.
$ac_ext <<_ACEOF
12374 cat confdefs.h
>>conftest.
$ac_ext
12375 cat >>conftest.
$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12384 char pthread_self ();
12388 return pthread_self ();
12393 rm -f conftest.
$ac_objext conftest
$ac_exeext
12394 if { (ac_try
="$ac_link"
12395 case "(($ac_try" in
12396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400 $as_echo "$ac_try_echo") >&5
12401 (eval "$ac_link") 2>conftest.er1
12403 grep -v '^ *+' conftest.er1 >conftest.err
12405 cat conftest.err >&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest$ac_exeext && {
12411 test "$cross_compiling" = yes ||
12412 $as_test_x conftest$ac_exeext
12414 ac_cv_lib_pthread_pthread_self=yes
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_cv_lib_pthread_pthread_self=no
12422 rm -rf conftest.dSYM
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12428 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12429 if test $ac_cv_lib_pthread_pthread_self = yes; then
12430 HAVE_GTK_AND_PTHREAD=yes
12434 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12435 case "${canonical}" in
12437 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12440 cat >>confdefs.h <<\_ACEOF
12441 #define HAVE_GTK_AND_PTHREAD 1
12449 if test "${with_dbus}" = "yes"; then
12453 # Extract the first word of "pkg-config", so it can be a program name with args.
12454 set dummy pkg-config; ac_word=$2
12455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12458 $as_echo_n "(cached) " >&6
12460 case $PKG_CONFIG in
12462 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12480 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12484 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12485 if test -n "$PKG_CONFIG"; then
12486 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12487 $as_echo "$PKG_CONFIG" >&6; }
12489 { $as_echo "$as_me:$LINENO: result: no" >&5
12490 $as_echo "no" >&6; }
12495 if test "$PKG_CONFIG" = "no" ; then
12498 PKG_CONFIG_MIN_VERSION=0.9.0
12499 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12500 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12501 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12503 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12504 { $as_echo "$as_me:$LINENO: result: yes" >&5
12505 $as_echo "yes" >&6; }
12508 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12509 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12510 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12511 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12512 $as_echo "$DBUS_CFLAGS" >&6; }
12514 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12515 $as_echo_n "checking DBUS_LIBS... " >&6; }
12516 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12517 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12518 $as_echo "$DBUS_LIBS" >&6; }
12520 { $as_echo "$as_me:$LINENO: result: no" >&5
12521 $as_echo "no" >&6; }
12524 ## If we have a custom action on failure, don't print errors, but
12525 ## do set a variable so people can do so.
12526 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12533 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12534 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12538 if test $succeeded = yes; then
12544 if test "$HAVE_DBUS" = yes; then
12545 LIBS="$LIBS $DBUS_LIBS"
12547 cat >>confdefs.h <<\_ACEOF
12548 #define HAVE_DBUS 1
12552 for ac_func in dbus_watch_get_unix_fd
12554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12556 $as_echo_n "checking for $ac_func... " >&6; }
12557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12558 $as_echo_n "(cached) " >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12568 #define $ac_func innocuous_$ac_func
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func (); below.
12572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573 <limits.h> exists even on freestanding compilers. */
12576 # include <limits.h>
12578 # include <assert.h>
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined __stub_$ac_func || defined __stub___$ac_func
12600 return $ac_func ();
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12609 *) ac_try_echo
=$ac_try;;
12611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12612 $as_echo "$ac_try_echo") >&5
12613 (eval "$ac_link") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1
>conftest.err
12617 cat conftest.err
>&5
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest
$ac_exeext && {
12623 test "$cross_compiling" = yes ||
12624 $as_test_x conftest
$ac_exeext
12626 eval "$as_ac_var=yes"
12628 $as_echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.
$ac_ext >&5
12631 eval "$as_ac_var=no"
12634 rm -rf conftest.dSYM
12635 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12636 conftest
$ac_exeext conftest.
$ac_ext
12638 ac_res
=`eval 'as_val=${'$as_ac_var'}
12639 $as_echo "$as_val"'`
12640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12641 $as_echo "$ac_res" >&6; }
12642 if test `eval 'as_val=${'$as_ac_var'}
12643 $as_echo "$as_val"'` = yes; then
12644 cat >>confdefs.h
<<_ACEOF
12645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12655 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12659 # Extract the first word of "pkg-config", so it can be a program name with args.
12660 set dummy pkg-config
; ac_word
=$2
12661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12664 $as_echo_n "(cached) " >&6
12666 case $PKG_CONFIG in
12668 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12672 for as_dir
in $PATH
12675 test -z "$as_dir" && as_dir
=.
12676 for ac_exec_ext
in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12690 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12691 if test -n "$PKG_CONFIG"; then
12692 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12693 $as_echo "$PKG_CONFIG" >&6; }
12695 { $as_echo "$as_me:$LINENO: result: no" >&5
12696 $as_echo "no" >&6; }
12701 if test "$PKG_CONFIG" = "no" ; then
12704 PKG_CONFIG_MIN_VERSION
=0.9.0
12705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12706 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12707 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12709 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
12711 $as_echo "yes" >&6; }
12714 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12715 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12716 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12717 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12718 $as_echo "$GCONF_CFLAGS" >&6; }
12720 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12721 $as_echo_n "checking GCONF_LIBS... " >&6; }
12722 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12723 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12724 $as_echo "$GCONF_LIBS" >&6; }
12726 { $as_echo "$as_me:$LINENO: result: no" >&5
12727 $as_echo "no" >&6; }
12730 ## If we have a custom action on failure, don't print errors, but
12731 ## do set a variable so people can do so.
12732 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12744 if test $succeeded = yes; then
12750 if test "$HAVE_GCONF" = yes; then
12752 cat >>confdefs.h
<<\_ACEOF
12753 #define HAVE_GCONF 1
12760 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12761 if test "$with_xaw3d" != no
; then
12762 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12763 $as_echo_n "checking for xaw3d... " >&6; }
12764 if test "${emacs_cv_xaw3d+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12767 cat >conftest.
$ac_ext <<_ACEOF
12770 cat confdefs.h
>>conftest.
$ac_ext
12771 cat >>conftest.
$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12774 #include <X11/Intrinsic.h>
12775 #include <X11/Xaw3d/Simple.h>
12784 rm -f conftest.
$ac_objext conftest
$ac_exeext
12785 if { (ac_try
="$ac_link"
12786 case "(($ac_try" in
12787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792 (eval "$ac_link") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest$ac_exeext && {
12802 test "$cross_compiling" = yes ||
12803 $as_test_x conftest$ac_exeext
12807 $as_echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12813 rm -rf conftest.dSYM
12814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12815 conftest$ac_exeext conftest.$ac_ext
12821 if test $emacs_cv_xaw3d = yes; then
12822 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12823 $as_echo "yes; using Lucid toolkit" >&6; }
12824 USE_X_TOOLKIT=LUCID
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_XAW3D 1
12832 { $as_echo "$as_me:$LINENO: result: no" >&5
12833 $as_echo "no" >&6; }
12834 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12835 $as_echo_n "checking for libXaw... " >&6; }
12836 if test "${emacs_cv_xaw+set}" = set; then
12837 $as_echo_n "(cached) " >&6
12839 cat >conftest.$ac_ext <<_ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12846 #include <X11/Intrinsic.h>
12847 #include <X11/Xaw/Simple.h>
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (ac_try="$ac_link"
12858 case "(($ac_try" in
12859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12860 *) ac_try_echo
=$ac_try;;
12862 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12863 $as_echo "$ac_try_echo") >&5
12864 (eval "$ac_link") 2>conftest.er1
12866 grep -v '^ *+' conftest.er1
>conftest.err
12868 cat conftest.err
>&5
12869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } && {
12871 test -z "$ac_c_werror_flag" ||
12872 test ! -s conftest.err
12873 } && test -s conftest
$ac_exeext && {
12874 test "$cross_compiling" = yes ||
12875 $as_test_x conftest
$ac_exeext
12879 $as_echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.
$ac_ext >&5
12885 rm -rf conftest.dSYM
12886 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12887 conftest
$ac_exeext conftest.
$ac_ext
12890 if test $emacs_cv_xaw = yes; then
12891 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12892 $as_echo "yes; using Lucid toolkit" >&6; }
12893 USE_X_TOOLKIT
=LUCID
12894 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12895 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12896 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12897 { (exit 1); exit 1; }; }
12899 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12900 $as_echo "no; do not use toolkit by default" >&6; }
12906 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12908 if test "${USE_X_TOOLKIT}" != "none"; then
12909 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12910 $as_echo_n "checking X11 toolkit version... " >&6; }
12911 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12912 $as_echo_n "(cached) " >&6
12914 cat >conftest.
$ac_ext <<_ACEOF
12917 cat confdefs.h
>>conftest.
$ac_ext
12918 cat >>conftest.
$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include <X11/Intrinsic.h>
12924 #if XtSpecificationRelease < 6
12932 rm -f conftest.
$ac_objext conftest
$ac_exeext
12933 if { (ac_try
="$ac_link"
12934 case "(($ac_try" in
12935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940 (eval "$ac_link") 2>conftest.er1
12942 grep -v '^ *+' conftest.er1 >conftest.err
12944 cat conftest.err >&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && {
12947 test -z "$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12949 } && test -s conftest$ac_exeext && {
12950 test "$cross_compiling" = yes ||
12951 $as_test_x conftest$ac_exeext
12953 emacs_cv_x11_toolkit_version_6=yes
12955 $as_echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 emacs_cv_x11_toolkit_version_6=no
12961 rm -rf conftest.dSYM
12962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963 conftest$ac_exeext conftest.$ac_ext
12966 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12967 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12968 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12969 $as_echo "6 or newer" >&6; }
12971 cat >>confdefs.h <<\_ACEOF
12972 #define HAVE_X11XTR6 1
12976 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12977 $as_echo "before 6" >&6; }
12981 if test x$HAVE_X11XTR6 = xyes; then
12982 LIBS="-lXt -lSM -lICE $LIBS"
12987 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12988 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12989 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12990 $as_echo_n "(cached) " >&6
12992 ac_check_lib_save_LIBS=$LIBS
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13007 char XmuConvertStandardSelection ();
13011 return XmuConvertStandardSelection ();
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13020 *) ac_try_echo
=$ac_try;;
13022 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13023 $as_echo "$ac_try_echo") >&5
13024 (eval "$ac_link") 2>conftest.er1
13026 grep -v '^ *+' conftest.er1
>conftest.err
13028 cat conftest.err
>&5
13029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest
$ac_exeext && {
13034 test "$cross_compiling" = yes ||
13035 $as_test_x conftest
$ac_exeext
13037 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
13039 $as_echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.
$ac_ext >&5
13042 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
13045 rm -rf conftest.dSYM
13046 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13047 conftest
$ac_exeext conftest.
$ac_ext
13048 LIBS
=$ac_check_lib_save_LIBS
13050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13051 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13052 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13053 cat >>confdefs.h
<<_ACEOF
13054 #define HAVE_LIBXMU 1
13061 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
13064 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13065 if test "${HAVE_X11}" = "yes"; then
13066 if test "${USE_X_TOOLKIT}" != "none"; then
13068 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13069 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13070 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13071 $as_echo_n "(cached) " >&6
13073 ac_check_lib_save_LIBS
=$LIBS
13074 LIBS
="-lXext $LIBS"
13075 cat >conftest.
$ac_ext <<_ACEOF
13078 cat confdefs.h
>>conftest.
$ac_ext
13079 cat >>conftest.
$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13088 char XShapeQueryExtension ();
13092 return XShapeQueryExtension ();
13097 rm -f conftest.
$ac_objext conftest
$ac_exeext
13098 if { (ac_try
="$ac_link"
13099 case "(($ac_try" in
13100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13104 $as_echo "$ac_try_echo") >&5
13105 (eval "$ac_link") 2>conftest.er1
13107 grep -v '^ *+' conftest.er1 >conftest.err
13109 cat conftest.err >&5
13110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } && {
13112 test -z "$ac_c_werror_flag" ||
13113 test ! -s conftest.err
13114 } && test -s conftest$ac_exeext && {
13115 test "$cross_compiling" = yes ||
13116 $as_test_x conftest$ac_exeext
13118 ac_cv_lib_Xext_XShapeQueryExtension=yes
13120 $as_echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13123 ac_cv_lib_Xext_XShapeQueryExtension=no
13126 rm -rf conftest.dSYM
13127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13132 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13133 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBXEXT 1
13138 LIBS="-lXext $LIBS"
13145 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13146 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13147 $as_echo_n "checking for Motif version 2.1... " >&6; }
13148 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13149 $as_echo_n "(cached) " >&6
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13161 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13164 Motif version prior to 2.1.
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13174 *) ac_try_echo
=$ac_try;;
13176 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13177 $as_echo "$ac_try_echo") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1
>conftest.err
13182 cat conftest.err
>&5
13183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.
$ac_objext; then
13188 emacs_cv_motif_version_2_1
=yes
13190 $as_echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.
$ac_ext >&5
13193 emacs_cv_motif_version_2_1
=no
13196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13198 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13199 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13200 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
13201 if test $emacs_cv_motif_version_2_1 = yes; then
13204 cat >>confdefs.h
<<\_ACEOF
13205 #define HAVE_MOTIF_2_1 1
13208 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13209 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13210 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13211 $as_echo_n "(cached) " >&6
13213 ac_check_lib_save_LIBS
=$LIBS
13215 cat >conftest.
$ac_ext <<_ACEOF
13218 cat confdefs.h
>>conftest.
$ac_ext
13219 cat >>conftest.
$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13228 char XpCreateContext ();
13232 return XpCreateContext ();
13237 rm -f conftest.
$ac_objext conftest
$ac_exeext
13238 if { (ac_try
="$ac_link"
13239 case "(($ac_try" in
13240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244 $as_echo "$ac_try_echo") >&5
13245 (eval "$ac_link") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1 >conftest.err
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest$ac_exeext && {
13255 test "$cross_compiling" = yes ||
13256 $as_test_x conftest$ac_exeext
13258 ac_cv_lib_Xp_XpCreateContext=yes
13260 $as_echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_cv_lib_Xp_XpCreateContext=no
13266 rm -rf conftest.dSYM
13267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13272 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13273 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13277 if test ${HAVE_LIBXP} = yes; then
13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_LIBXP 1
13285 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13286 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13287 if test "${emacs_cv_lesstif+set}" = set; then
13288 $as_echo_n "(cached) " >&6
13290 # We put this in CFLAGS temporarily to precede other -I options
13291 # that might be in CFLAGS temporarily.
13292 # We put this in CPPFLAGS where it precedes the other -I options.
13293 OLD_CPPFLAGS=$CPPFLAGS
13295 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13296 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13312 rm -f conftest.$ac_objext
13313 if { (ac_try="$ac_compile"
13314 case "(($ac_try" in
13315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13316 *) ac_try_echo
=$ac_try;;
13318 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13319 $as_echo "$ac_try_echo") >&5
13320 (eval "$ac_compile") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1
>conftest.err
13324 cat conftest.err
>&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest.
$ac_objext; then
13330 emacs_cv_lesstif
=yes
13332 $as_echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.
$ac_ext >&5
13335 emacs_cv_lesstif
=no
13338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13340 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13341 $as_echo "$emacs_cv_lesstif" >&6; }
13342 if test $emacs_cv_lesstif = yes; then
13343 # Make sure this -I option remains in CPPFLAGS after it is set
13344 # back to REAL_CPPFLAGS.
13345 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13346 # have those other -I options anyway. Ultimately, having this
13347 # directory ultimately in CPPFLAGS will be enough.
13348 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13349 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13352 CPPFLAGS
=$OLD_CPPFLAGS
13359 USE_TOOLKIT_SCROLL_BARS
=no
13360 if test "${with_toolkit_scroll_bars}" != "no"; then
13361 if test "${USE_X_TOOLKIT}" != "none"; then
13362 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13363 cat >>confdefs.h
<<\_ACEOF
13364 #define USE_TOOLKIT_SCROLL_BARS 1
13368 USE_TOOLKIT_SCROLL_BARS
=yes
13369 elif test "${HAVE_XAW3D}" = "yes"; then
13370 cat >>confdefs.h
<<\_ACEOF
13371 #define USE_TOOLKIT_SCROLL_BARS 1
13374 USE_TOOLKIT_SCROLL_BARS
=yes
13376 elif test "${HAVE_GTK}" = "yes"; then
13377 cat >>confdefs.h
<<\_ACEOF
13378 #define USE_TOOLKIT_SCROLL_BARS 1
13381 USE_TOOLKIT_SCROLL_BARS
=yes
13382 elif test "${HAVE_NS}" = "yes"; then
13383 cat >>confdefs.h
<<\_ACEOF
13384 #define USE_TOOLKIT_SCROLL_BARS 1
13387 USE_TOOLKIT_SCROLL_BARS
=yes
13391 cat >conftest.
$ac_ext <<_ACEOF
13394 cat confdefs.h
>>conftest.
$ac_ext
13395 cat >>conftest.
$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 #include <X11/Xlib.h>
13399 #include <X11/Xresource.h>
13408 rm -f conftest.
$ac_objext
13409 if { (ac_try
="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415 $as_echo "$ac_try_echo") >&5
13416 (eval "$ac_compile") 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest.$ac_objext; then
13428 cat >>confdefs.h <<\_ACEOF
13433 $as_echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 if test "${with_xim}" != "no"; then
13444 cat >>confdefs.h <<\_ACEOF
13451 if test "${HAVE_XIM}" != "no"; then
13452 late_CFLAGS=$CFLAGS
13453 if test "$GCC" = yes; then
13454 CFLAGS="$CFLAGS --pedantic-errors"
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13463 #include <X11/Xlib.h>
13464 #include <X11/Xresource.h>
13473 XPointer *client_data;
13475 /* If we're not using GCC, it's probably not XFree86, and this is
13476 probably right, but we can't use something like --pedantic-errors. */
13477 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13478 char*, XIMProc, XPointer*);
13480 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13486 rm -f conftest.$ac_objext
13487 if { (ac_try="$ac_compile"
13488 case "(($ac_try" in
13489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13490 *) ac_try_echo
=$ac_try;;
13492 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13493 $as_echo "$ac_try_echo") >&5
13494 (eval "$ac_compile") 2>conftest.er1
13496 grep -v '^ *+' conftest.er1
>conftest.err
13498 cat conftest.err
>&5
13499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } && {
13501 test -z "$ac_c_werror_flag" ||
13502 test ! -s conftest.err
13503 } && test -s conftest.
$ac_objext; then
13504 emacs_cv_arg6_star
=yes
13506 $as_echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.
$ac_ext >&5
13512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13514 if test "$emacs_cv_arg6_star" = yes; then
13515 cat >>confdefs.h
<<\_ACEOF
13516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13520 cat >>confdefs.h
<<\_ACEOF
13521 #define XRegisterIMInstantiateCallback_arg6 XPointer
13525 CFLAGS
=$late_CFLAGS
13528 ### Start of font-backend (under any platform) section.
13529 # (nothing here yet -- this is a placeholder)
13530 ### End of font-backend (under any platform) section.
13532 ### Start of font-backend (under X11) section.
13533 if test "${HAVE_X11}" = "yes"; then
13537 # Extract the first word of "pkg-config", so it can be a program name with args.
13538 set dummy pkg-config
; ac_word
=$2
13539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13542 $as_echo_n "(cached) " >&6
13544 case $PKG_CONFIG in
13546 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13550 for as_dir
in $PATH
13553 test -z "$as_dir" && as_dir
=.
13554 for ac_exec_ext
in '' $ac_executable_extensions; do
13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13556 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13568 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13569 if test -n "$PKG_CONFIG"; then
13570 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13571 $as_echo "$PKG_CONFIG" >&6; }
13573 { $as_echo "$as_me:$LINENO: result: no" >&5
13574 $as_echo "no" >&6; }
13579 if test "$PKG_CONFIG" = "no" ; then
13582 PKG_CONFIG_MIN_VERSION
=0.9.0
13583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13584 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13585 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13587 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13588 { $as_echo "$as_me:$LINENO: result: yes" >&5
13589 $as_echo "yes" >&6; }
13592 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13593 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13594 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13595 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13596 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13598 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13599 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13600 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13601 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13602 $as_echo "$FONTCONFIG_LIBS" >&6; }
13604 { $as_echo "$as_me:$LINENO: result: no" >&5
13605 $as_echo "no" >&6; }
13606 FONTCONFIG_CFLAGS
=""
13608 ## If we have a custom action on failure, don't print errors, but
13609 ## do set a variable so people can do so.
13610 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13622 if test $succeeded = yes; then
13629 ## Use -lXft if available, unless `--with-xft=no'.
13631 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13634 if test "x${with_xft}" != "xno"; then
13639 # Extract the first word of "pkg-config", so it can be a program name with args.
13640 set dummy pkg-config
; ac_word
=$2
13641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13644 $as_echo_n "(cached) " >&6
13646 case $PKG_CONFIG in
13648 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13652 for as_dir
in $PATH
13655 test -z "$as_dir" && as_dir
=.
13656 for ac_exec_ext
in '' $ac_executable_extensions; do
13657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13658 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13670 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13671 if test -n "$PKG_CONFIG"; then
13672 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13673 $as_echo "$PKG_CONFIG" >&6; }
13675 { $as_echo "$as_me:$LINENO: result: no" >&5
13676 $as_echo "no" >&6; }
13681 if test "$PKG_CONFIG" = "no" ; then
13684 PKG_CONFIG_MIN_VERSION
=0.9.0
13685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13686 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13687 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13689 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13690 { $as_echo "$as_me:$LINENO: result: yes" >&5
13691 $as_echo "yes" >&6; }
13694 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13695 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13696 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13697 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13698 $as_echo "$XFT_CFLAGS" >&6; }
13700 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13701 $as_echo_n "checking XFT_LIBS... " >&6; }
13702 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13703 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13704 $as_echo "$XFT_LIBS" >&6; }
13706 { $as_echo "$as_me:$LINENO: result: no" >&5
13707 $as_echo "no" >&6; }
13710 ## If we have a custom action on failure, don't print errors, but
13711 ## do set a variable so people can do so.
13712 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13719 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13720 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13724 if test $succeeded = yes; then
13730 ## Because xftfont.c uses XRenderQueryExtension, we also
13731 ## need to link to -lXrender.
13733 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13734 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13735 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13736 $as_echo_n "(cached) " >&6
13738 ac_check_lib_save_LIBS
=$LIBS
13739 LIBS
="-lXrender $LIBS"
13740 cat >conftest.
$ac_ext <<_ACEOF
13743 cat confdefs.h
>>conftest.
$ac_ext
13744 cat >>conftest.
$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13747 /* Override any GCC internal prototype to avoid an error.
13748 Use char because int might match the return type of a GCC
13749 builtin and then its argument prototype would still apply. */
13753 char XRenderQueryExtension ();
13757 return XRenderQueryExtension ();
13762 rm -f conftest.
$ac_objext conftest
$ac_exeext
13763 if { (ac_try
="$ac_link"
13764 case "(($ac_try" in
13765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13769 $as_echo "$ac_try_echo") >&5
13770 (eval "$ac_link") 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && {
13777 test -z "$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 } && test -s conftest$ac_exeext && {
13780 test "$cross_compiling" = yes ||
13781 $as_test_x conftest$ac_exeext
13783 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13785 $as_echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_lib_Xrender_XRenderQueryExtension=no
13791 rm -rf conftest.dSYM
13792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13793 conftest$ac_exeext conftest.$ac_ext
13794 LIBS=$ac_check_lib_save_LIBS
13796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13797 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13798 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13802 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13803 OLD_CPPFLAGS="$CPPFLAGS"
13804 OLD_CFLAGS="$CFLAGS"
13806 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13807 CFLAGS="$CFLAGS $XFT_CFLAGS"
13808 XFT_LIBS="-lXrender $XFT_LIBS"
13809 LIBS="$XFT_LIBS $LIBS"
13810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13811 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13812 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13813 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13814 $as_echo_n "(cached) " >&6
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13817 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13819 # Is the header compilable?
13820 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13821 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13829 #include <X11/Xft/Xft.h>
13831 rm -f conftest.$ac_objext
13832 if { (ac_try="$ac_compile"
13833 case "(($ac_try" in
13834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13835 *) ac_try_echo
=$ac_try;;
13837 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13838 $as_echo "$ac_try_echo") >&5
13839 (eval "$ac_compile") 2>conftest.er1
13841 grep -v '^ *+' conftest.er1
>conftest.err
13843 cat conftest.err
>&5
13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } && {
13846 test -z "$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 } && test -s conftest.
$ac_objext; then
13849 ac_header_compiler
=yes
13851 $as_echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.
$ac_ext >&5
13854 ac_header_compiler
=no
13857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13858 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13859 $as_echo "$ac_header_compiler" >&6; }
13861 # Is the header present?
13862 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13863 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13864 cat >conftest.
$ac_ext <<_ACEOF
13867 cat confdefs.h
>>conftest.
$ac_ext
13868 cat >>conftest.
$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <X11/Xft/Xft.h>
13872 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13873 case "(($ac_try" in
13874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13878 $as_echo "$ac_try_echo") >&5
13879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } >/dev/null && {
13886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13887 test ! -s conftest.err
13889 ac_header_preproc=yes
13891 $as_echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13894 ac_header_preproc=no
13897 rm -f conftest.err conftest.$ac_ext
13898 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 $as_echo "$ac_header_preproc" >&6; }
13901 # So? What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13904 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13907 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13908 ac_header_preproc=yes
13911 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13912 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13913 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13914 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13915 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13916 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13917 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13918 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13919 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13920 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13921 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13922 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13926 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13927 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13928 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13929 $as_echo_n "(cached) " >&6
13931 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13933 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13934 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13937 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13938 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13939 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13940 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13941 $as_echo_n "(cached) " >&6
13943 ac_check_lib_save_LIBS=$LIBS
13944 LIBS="-lXft $XFT_LIBS $LIBS"
13945 cat >conftest.$ac_ext <<_ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13952 /* Override any GCC internal prototype to avoid an error.
13953 Use char because int might match the return type of a GCC
13954 builtin and then its argument prototype would still apply. */
13958 char XftFontOpen ();
13962 return XftFontOpen ();
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13971 *) ac_try_echo
=$ac_try;;
13973 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13974 $as_echo "$ac_try_echo") >&5
13975 (eval "$ac_link") 2>conftest.er1
13977 grep -v '^ *+' conftest.er1
>conftest.err
13979 cat conftest.err
>&5
13980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest
$ac_exeext && {
13985 test "$cross_compiling" = yes ||
13986 $as_test_x conftest
$ac_exeext
13988 ac_cv_lib_Xft_XftFontOpen
=yes
13990 $as_echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.
$ac_ext >&5
13993 ac_cv_lib_Xft_XftFontOpen
=no
13996 rm -rf conftest.dSYM
13997 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13998 conftest
$ac_exeext conftest.
$ac_ext
13999 LIBS
=$ac_check_lib_save_LIBS
14001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14002 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14003 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14011 if test "${HAVE_XFT}" = "yes"; then
14013 cat >>confdefs.h
<<\_ACEOF
14018 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14020 CPPFLAGS
="$OLD_CPPFLAGS"
14021 CFLAGS
="$OLD_CFLAGS"
14023 fi # "${HAVE_XFT}" = "yes"
14024 fi # "$HAVE_XFT" != no
14025 fi # "x${with_xft}" != "xno"
14027 if test "$HAVE_XFT" != "yes"; then
14033 ## We used to allow building with FreeType and without Xft.
14034 ## However, the ftx font backend driver is not in good shape.
14035 if test "${HAVE_XFT}" = "yes"; then
14042 if test "${HAVE_FREETYPE}" = "yes"; then
14044 cat >>confdefs.h
<<\_ACEOF
14045 #define HAVE_FREETYPE 1
14048 if test "${with_libotf}" != "no"; then
14052 # Extract the first word of "pkg-config", so it can be a program name with args.
14053 set dummy pkg-config
; ac_word
=$2
14054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14055 $as_echo_n "checking for $ac_word... " >&6; }
14056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14057 $as_echo_n "(cached) " >&6
14059 case $PKG_CONFIG in
14061 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14065 for as_dir
in $PATH
14068 test -z "$as_dir" && as_dir
=.
14069 for ac_exec_ext
in '' $ac_executable_extensions; do
14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14083 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14084 if test -n "$PKG_CONFIG"; then
14085 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14086 $as_echo "$PKG_CONFIG" >&6; }
14088 { $as_echo "$as_me:$LINENO: result: no" >&5
14089 $as_echo "no" >&6; }
14094 if test "$PKG_CONFIG" = "no" ; then
14097 PKG_CONFIG_MIN_VERSION
=0.9.0
14098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14099 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14100 $as_echo_n "checking for libotf... " >&6; }
14102 if $PKG_CONFIG --exists "libotf" 2>&5; then
14103 { $as_echo "$as_me:$LINENO: result: yes" >&5
14104 $as_echo "yes" >&6; }
14107 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14108 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14109 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14110 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14111 $as_echo "$LIBOTF_CFLAGS" >&6; }
14113 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14114 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14115 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14116 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14117 $as_echo "$LIBOTF_LIBS" >&6; }
14119 { $as_echo "$as_me:$LINENO: result: no" >&5
14120 $as_echo "no" >&6; }
14123 ## If we have a custom action on failure, don't print errors, but
14124 ## do set a variable so people can do so.
14125 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14137 if test $succeeded = yes; then
14143 if test "$HAVE_LIBOTF" = "yes"; then
14145 cat >>confdefs.h
<<\_ACEOF
14146 #define HAVE_LIBOTF 1
14149 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14150 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14151 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14152 $as_echo_n "(cached) " >&6
14154 ac_check_lib_save_LIBS
=$LIBS
14156 cat >conftest.
$ac_ext <<_ACEOF
14159 cat confdefs.h
>>conftest.
$ac_ext
14160 cat >>conftest.
$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14169 char OTF_get_variation_glyphs ();
14173 return OTF_get_variation_glyphs ();
14178 rm -f conftest.
$ac_objext conftest
$ac_exeext
14179 if { (ac_try
="$ac_link"
14180 case "(($ac_try" in
14181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185 $as_echo "$ac_try_echo") >&5
14186 (eval "$ac_link") 2>conftest.er1
14188 grep -v '^ *+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } && {
14193 test -z "$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 } && test -s conftest$ac_exeext && {
14196 test "$cross_compiling" = yes ||
14197 $as_test_x conftest$ac_exeext
14199 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14201 $as_echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14207 rm -rf conftest.dSYM
14208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14209 conftest$ac_exeext conftest.$ac_ext
14210 LIBS=$ac_check_lib_save_LIBS
14212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14213 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14214 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14215 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14217 HAVE_OTF_GET_VARIATION_GLYPHS=no
14220 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14222 cat >>confdefs.h <<\_ACEOF
14223 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14232 if test "${HAVE_LIBOTF}" = yes; then
14233 if test "${with_m17n_flt}" != "no"; then
14237 # Extract the first word of "pkg-config", so it can be a program name with args.
14238 set dummy pkg-config; ac_word=$2
14239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14242 $as_echo_n "(cached) " >&6
14244 case $PKG_CONFIG in
14246 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14268 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14269 if test -n "$PKG_CONFIG"; then
14270 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14271 $as_echo "$PKG_CONFIG" >&6; }
14273 { $as_echo "$as_me:$LINENO: result: no" >&5
14274 $as_echo "no" >&6; }
14279 if test "$PKG_CONFIG" = "no" ; then
14282 PKG_CONFIG_MIN_VERSION=0.9.0
14283 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14284 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14285 $as_echo_n "checking for m17n-flt... " >&6; }
14287 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14288 { $as_echo "$as_me:$LINENO: result: yes" >&5
14289 $as_echo "yes" >&6; }
14292 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14293 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14294 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14295 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14296 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14298 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14299 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14300 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14301 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14302 $as_echo "$M17N_FLT_LIBS" >&6; }
14304 { $as_echo "$as_me:$LINENO: result: no" >&5
14305 $as_echo "no" >&6; }
14308 ## If we have a custom action on failure, don't print errors, but
14309 ## do set a variable so people can do so.
14310 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14317 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14318 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14322 if test $succeeded = yes; then
14328 if test "$HAVE_M17N_FLT" = "yes"; then
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_M17N_FLT 1
14343 ### End of font-backend (under X11) section.
14354 ### Use -lXpm if available, unless `--with-xpm=no
'.
14357 if test "${HAVE_X11}" = "yes"; then
14358 if test "${with_xpm}" != "no"; then
14359 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14360 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14361 $as_echo_n "checking for X11/xpm.h... " >&6; }
14362 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14363 $as_echo_n "(cached) " >&6
14365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14366 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14368 # Is the header compilable?
14369 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14370 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 $ac_includes_default
14378 #include <X11/xpm.h>
14380 rm -f conftest.$ac_objext
14381 if { (ac_try="$ac_compile"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14387 $as_echo "$ac_try_echo") >&5
14388 (eval "$ac_compile") 2>conftest.er1
14390 grep -v '^
*+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest.$ac_objext; then
14398 ac_header_compiler=yes
14400 $as_echo "$as_me: failed program was:" >&5
14401 sed 's
/^
/|
/' conftest.$ac_ext >&5
14403 ac_header_compiler=no
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14408 $as_echo "$ac_header_compiler" >&6; }
14410 # Is the header present?
14411 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14412 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14413 cat >conftest.$ac_ext <<_ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 #include <X11/xpm.h>
14421 if { (ac_try="$ac_cpp conftest.$ac_ext"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14430 grep -v '^
*+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null && {
14435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14438 ac_header_preproc=yes
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's
/^
/|
/' conftest.$ac_ext >&5
14443 ac_header_preproc=no
14446 rm -f conftest.err conftest.$ac_ext
14447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448 $as_echo "$ac_header_preproc" >&6; }
14450 # So? What about this header?
14451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14453 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14454 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14456 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14457 ac_header_preproc=yes
14460 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14461 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14462 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14463 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14464 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14465 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14466 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14467 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14468 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14469 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14470 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14471 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14475 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14476 $as_echo_n "checking for X11/xpm.h... " >&6; }
14477 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14478 $as_echo_n "(cached) " >&6
14480 ac_cv_header_X11_xpm_h=$ac_header_preproc
14482 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14483 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14486 if test $ac_cv_header_X11_xpm_h = yes; then
14487 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14488 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14489 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14490 $as_echo_n "(cached) " >&6
14492 ac_check_lib_save_LIBS=$LIBS
14493 LIBS="-lXpm -lX11 $LIBS"
14494 cat >conftest.$ac_ext <<_ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14501 /* Override any GCC internal prototype to avoid an error.
14502 Use char because int might match the return type of a GCC
14503 builtin and then its argument prototype would still apply. */
14507 char XpmReadFileToPixmap ();
14511 return XpmReadFileToPixmap ();
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (ac_try="$ac_link"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14523 $as_echo "$ac_try_echo") >&5
14524 (eval "$ac_link") 2>conftest.er1
14526 grep -v '^
*+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } && {
14531 test -z "$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14533 } && test -s conftest$ac_exeext && {
14534 test "$cross_compiling" = yes ||
14535 $as_test_x conftest$ac_exeext
14537 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14539 $as_echo "$as_me: failed program was:" >&5
14540 sed 's
/^
/|
/' conftest.$ac_ext >&5
14542 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14545 rm -rf conftest.dSYM
14546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14547 conftest$ac_exeext conftest.$ac_ext
14548 LIBS=$ac_check_lib_save_LIBS
14550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14551 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14552 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14559 if test "${HAVE_XPM}" = "yes"; then
14560 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14561 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include "X11/xpm.h"
14569 #ifndef XpmReturnAllocPixels
14570 no_return_alloc_pixels
14574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14575 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14583 if test "${HAVE_XPM}" = "yes"; then
14584 { $as_echo "$as_me:$LINENO: result: yes" >&5
14585 $as_echo "yes" >&6; }
14587 { $as_echo "$as_me:$LINENO: result: no" >&5
14588 $as_echo "no" >&6; }
14593 if test "${HAVE_XPM}" = "yes"; then
14595 cat >>confdefs.h <<\_ACEOF
14604 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14607 if test "${HAVE_X11}" = "yes"; then
14608 if test "${with_jpeg}" != "no"; then
14609 if test "${ac_cv_header_jerror_h+set}" = set; then
14610 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14611 $as_echo_n "checking for jerror.h... " >&6; }
14612 if test "${ac_cv_header_jerror_h+set}" = set; then
14613 $as_echo_n "(cached) " >&6
14615 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14616 $as_echo "$ac_cv_header_jerror_h" >&6; }
14618 # Is the header compilable?
14619 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14620 $as_echo_n "checking jerror.h usability... " >&6; }
14621 cat >conftest.
$ac_ext <<_ACEOF
14624 cat confdefs.h
>>conftest.
$ac_ext
14625 cat >>conftest.
$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14628 #include <jerror.h>
14630 rm -f conftest.
$ac_objext
14631 if { (ac_try
="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14637 $as_echo "$ac_try_echo") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14640 grep -v '^ *+' conftest.er1 >conftest.err
14642 cat conftest.err >&5
14643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_header_compiler=yes
14650 $as_echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_header_compiler=no
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658 $as_echo "$ac_header_compiler" >&6; }
14660 # Is the header present?
14661 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14662 $as_echo_n "checking jerror.h presence... " >&6; }
14663 cat >conftest.$ac_ext <<_ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <jerror.h>
14671 if { (ac_try="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14674 *) ac_try_echo
=$ac_try;;
14676 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1
>conftest.err
14682 cat conftest.err
>&5
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev
/null
&& {
14685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14688 ac_header_preproc
=yes
14690 $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.
$ac_ext >&5
14693 ac_header_preproc
=no
14696 rm -f conftest.err conftest.
$ac_ext
14697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14698 $as_echo "$ac_header_preproc" >&6; }
14700 # So? What about this header?
14701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14703 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14704 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14705 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14706 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14707 ac_header_preproc
=yes
14710 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14711 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14712 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14713 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14714 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14715 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14716 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14717 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14718 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14719 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14720 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14721 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14725 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14726 $as_echo_n "checking for jerror.h... " >&6; }
14727 if test "${ac_cv_header_jerror_h+set}" = set; then
14728 $as_echo_n "(cached) " >&6
14730 ac_cv_header_jerror_h
=$ac_header_preproc
14732 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14733 $as_echo "$ac_cv_header_jerror_h" >&6; }
14736 if test $ac_cv_header_jerror_h = yes; then
14737 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14738 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14739 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14740 $as_echo_n "(cached) " >&6
14742 ac_check_lib_save_LIBS
=$LIBS
14743 LIBS
="-ljpeg $LIBS"
14744 cat >conftest.
$ac_ext <<_ACEOF
14747 cat confdefs.h
>>conftest.
$ac_ext
14748 cat >>conftest.
$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14751 /* Override any GCC internal prototype to avoid an error.
14752 Use char because int might match the return type of a GCC
14753 builtin and then its argument prototype would still apply. */
14757 char jpeg_destroy_compress ();
14761 return jpeg_destroy_compress ();
14766 rm -f conftest.
$ac_objext conftest
$ac_exeext
14767 if { (ac_try
="$ac_link"
14768 case "(($ac_try" in
14769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14773 $as_echo "$ac_try_echo") >&5
14774 (eval "$ac_link") 2>conftest.er1
14776 grep -v '^ *+' conftest.er1 >conftest.err
14778 cat conftest.err >&5
14779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest$ac_exeext && {
14784 test "$cross_compiling" = yes ||
14785 $as_test_x conftest$ac_exeext
14787 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14789 $as_echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14795 rm -rf conftest.dSYM
14796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14797 conftest$ac_exeext conftest.$ac_ext
14798 LIBS=$ac_check_lib_save_LIBS
14800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14801 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14802 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14812 if test "${HAVE_JPEG}" = "yes"; then
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_JPEG 1
14817 cat >conftest.$ac_ext <<_ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <jpeglib.h>
14824 version=JPEG_LIB_VERSION
14827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14828 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14829 cat >>confdefs.h <<\_ACEOF
14830 #define HAVE_JPEG 1
14834 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14835 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14841 if test "${HAVE_JPEG}" = "yes"; then
14847 ### Use -lpng if available, unless `--with-png=no
'.
14850 if test "${HAVE_X11}" = "yes"; then
14851 if test "${with_png}" != "no"; then
14852 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14853 # in /usr/include/libpng.
14856 for ac_header in png.h libpng/png.h
14858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14861 $as_echo_n "checking for $ac_header... " >&6; }
14862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14863 $as_echo_n "(cached) " >&6
14865 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14866 $as_echo "$as_val"'`
14867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14868 $as_echo "$ac_res" >&6; }
14870 # Is the header compilable?
14871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14872 $as_echo_n "checking $ac_header usability... " >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14880 #include <$ac_header>
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889 $as_echo "$ac_try_echo") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14892 grep -v '^
*+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest.$ac_objext; then
14900 ac_header_compiler=yes
14902 $as_echo "$as_me: failed program was:" >&5
14903 sed 's
/^
/|
/' conftest.$ac_ext >&5
14905 ac_header_compiler=no
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14910 $as_echo "$ac_header_compiler" >&6; }
14912 # Is the header present?
14913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14914 $as_echo_n "checking $ac_header presence... " >&6; }
14915 cat >conftest.$ac_ext <<_ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <$ac_header>
14923 if { (ac_try="$ac_cpp conftest.$ac_ext"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14932 grep -v '^
*+' conftest.er1 >conftest.err
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } >/dev/null && {
14937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14940 ac_header_preproc=yes
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's
/^
/|
/' conftest.$ac_ext >&5
14945 ac_header_preproc=no
14948 rm -f conftest.err conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 $as_echo "$ac_header_preproc" >&6; }
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14958 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14959 ac_header_preproc=yes
14962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14965 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14969 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14971 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14978 $as_echo_n "checking for $ac_header... " >&6; }
14979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14980 $as_echo_n "(cached) " >&6
14982 eval "$as_ac_Header=\$ac_header_preproc"
14984 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14985 $as_echo "$as_val"'`
14986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14987 $as_echo "$ac_res" >&6; }
14990 if test `eval 'as_val
=${'$as_ac_Header'}
14991 $as_echo "$as_val"'` = yes; then
14992 cat >>confdefs.h <<_ACEOF
14993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15000 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15001 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15002 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15003 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15004 $as_echo_n "(cached) " >&6
15006 ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-lpng -lz -lm $LIBS"
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15015 /* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
15021 char png_get_channels ();
15025 return png_get_channels ();
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15037 $as_echo "$ac_try_echo") >&5
15038 (eval "$ac_link") 2>conftest.er1
15040 grep -v '^
*+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest$ac_exeext && {
15048 test "$cross_compiling" = yes ||
15049 $as_test_x conftest$ac_exeext
15051 ac_cv_lib_png_png_get_channels=yes
15053 $as_echo "$as_me: failed program was:" >&5
15054 sed 's
/^
/|
/' conftest.$ac_ext >&5
15056 ac_cv_lib_png_png_get_channels=no
15059 rm -rf conftest.dSYM
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061 conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15064 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15065 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15066 if test $ac_cv_lib_png_png_get_channels = yes; then
15073 if test "${HAVE_PNG}" = "yes"; then
15075 cat >>confdefs.h <<\_ACEOF
15079 LIBPNG="-lpng -lz -lm"
15084 ### Use -ltiff if available, unless `--with-tiff=no'.
15087 if test "${HAVE_X11}" = "yes"; then
15088 if test "${with_tiff}" != "no"; then
15089 if test "${ac_cv_header_tiffio_h+set}" = set; then
15090 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15091 $as_echo_n "checking for tiffio.h... " >&6; }
15092 if test "${ac_cv_header_tiffio_h+set}" = set; then
15093 $as_echo_n "(cached) " >&6
15095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15096 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15098 # Is the header compilable?
15099 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15100 $as_echo_n "checking tiffio.h usability... " >&6; }
15101 cat >conftest.
$ac_ext <<_ACEOF
15104 cat confdefs.h
>>conftest.
$ac_ext
15105 cat >>conftest.
$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 $ac_includes_default
15108 #include <tiffio.h>
15110 rm -f conftest.
$ac_objext
15111 if { (ac_try
="$ac_compile"
15112 case "(($ac_try" in
15113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15117 $as_echo "$ac_try_echo") >&5
15118 (eval "$ac_compile") 2>conftest.er1
15120 grep -v '^ *+' conftest.er1 >conftest.err
15122 cat conftest.err >&5
15123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && {
15125 test -z "$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15127 } && test -s conftest.$ac_objext; then
15128 ac_header_compiler=yes
15130 $as_echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_header_compiler=no
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15138 $as_echo "$ac_header_compiler" >&6; }
15140 # Is the header present?
15141 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15142 $as_echo_n "checking tiffio.h presence... " >&6; }
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #include <tiffio.h>
15151 if { (ac_try="$ac_cpp conftest.$ac_ext"
15152 case "(($ac_try" in
15153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15154 *) ac_try_echo
=$ac_try;;
15156 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15157 $as_echo "$ac_try_echo") >&5
15158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15160 grep -v '^ *+' conftest.er1
>conftest.err
15162 cat conftest.err
>&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev
/null
&& {
15165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15168 ac_header_preproc
=yes
15170 $as_echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.
$ac_ext >&5
15173 ac_header_preproc
=no
15176 rm -f conftest.err conftest.
$ac_ext
15177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178 $as_echo "$ac_header_preproc" >&6; }
15180 # So? What about this header?
15181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15183 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15184 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15186 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc
=yes
15190 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15191 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15192 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15193 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15194 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15195 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15196 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15197 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15199 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15200 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15201 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15205 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15206 $as_echo_n "checking for tiffio.h... " >&6; }
15207 if test "${ac_cv_header_tiffio_h+set}" = set; then
15208 $as_echo_n "(cached) " >&6
15210 ac_cv_header_tiffio_h
=$ac_header_preproc
15212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15213 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15216 if test $ac_cv_header_tiffio_h = yes; then
15218 # At least one tiff package requires the jpeg library.
15219 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15220 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15221 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15222 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15223 $as_echo_n "(cached) " >&6
15225 ac_check_lib_save_LIBS
=$LIBS
15226 LIBS
="-ltiff $tifflibs $LIBS"
15227 cat >conftest.
$ac_ext <<_ACEOF
15230 cat confdefs.h
>>conftest.
$ac_ext
15231 cat >>conftest.
$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15234 /* Override any GCC internal prototype to avoid an error.
15235 Use char because int might match the return type of a GCC
15236 builtin and then its argument prototype would still apply. */
15240 char TIFFGetVersion ();
15244 return TIFFGetVersion ();
15249 rm -f conftest.
$ac_objext conftest
$ac_exeext
15250 if { (ac_try
="$ac_link"
15251 case "(($ac_try" in
15252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15256 $as_echo "$ac_try_echo") >&5
15257 (eval "$ac_link") 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest$ac_exeext && {
15267 test "$cross_compiling" = yes ||
15268 $as_test_x conftest$ac_exeext
15270 ac_cv_lib_tiff_TIFFGetVersion=yes
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_lib_tiff_TIFFGetVersion=no
15278 rm -rf conftest.dSYM
15279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15280 conftest$ac_exeext conftest.$ac_ext
15281 LIBS=$ac_check_lib_save_LIBS
15283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15284 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15285 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15294 if test "${HAVE_TIFF}" = "yes"; then
15296 cat >>confdefs.h <<\_ACEOF
15297 #define HAVE_TIFF 1
15305 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15308 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15309 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15310 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15311 $as_echo_n "checking for gif_lib.h... " >&6; }
15312 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15313 $as_echo_n "(cached) " >&6
15315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15316 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15318 # Is the header compilable?
15319 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15320 $as_echo_n "checking gif_lib.h usability... " >&6; }
15321 cat >conftest.$ac_ext <<_ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15328 #include <gif_lib.h>
15330 rm -f conftest.$ac_objext
15331 if { (ac_try="$ac_compile"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15337 $as_echo "$ac_try_echo") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15340 grep -v '^
*+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest.$ac_objext; then
15348 ac_header_compiler=yes
15350 $as_echo "$as_me: failed program was:" >&5
15351 sed 's
/^
/|
/' conftest.$ac_ext >&5
15353 ac_header_compiler=no
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15358 $as_echo "$ac_header_compiler" >&6; }
15360 # Is the header present?
15361 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15362 $as_echo_n "checking gif_lib.h presence... " >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <gif_lib.h>
15371 if { (ac_try="$ac_cpp conftest.$ac_ext"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15377 $as_echo "$ac_try_echo") >&5
15378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15380 grep -v '^
*+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } >/dev/null && {
15385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15388 ac_header_preproc=yes
15390 $as_echo "$as_me: failed program was:" >&5
15391 sed 's
/^
/|
/' conftest.$ac_ext >&5
15393 ac_header_preproc=no
15396 rm -f conftest.err conftest.$ac_ext
15397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15398 $as_echo "$ac_header_preproc" >&6; }
15400 # So? What about this header?
15401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15403 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15404 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15406 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15407 ac_header_preproc=yes
15410 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15411 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15412 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15413 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15414 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15415 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15416 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15417 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15418 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15419 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15420 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15421 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15425 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15426 $as_echo_n "checking for gif_lib.h... " >&6; }
15427 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15428 $as_echo_n "(cached) " >&6
15430 ac_cv_header_gif_lib_h=$ac_header_preproc
15432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15433 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15436 if test $ac_cv_header_gif_lib_h = yes; then
15437 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15438 # Earlier versions can crash Emacs.
15439 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15440 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15441 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15442 $as_echo_n "(cached) " >&6
15444 ac_check_lib_save_LIBS=$LIBS
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15453 /* Override any GCC internal prototype to avoid an error.
15454 Use char because int might match the return type of a GCC
15455 builtin and then its argument prototype would still apply. */
15459 char EGifPutExtensionLast ();
15463 return EGifPutExtensionLast ();
15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (ac_try="$ac_link"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_link") 2>conftest.er1
15478 grep -v '^
*+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext && {
15486 test "$cross_compiling" = yes ||
15487 $as_test_x conftest$ac_exeext
15489 ac_cv_lib_gif_EGifPutExtensionLast=yes
15491 $as_echo "$as_me: failed program was:" >&5
15492 sed 's
/^
/|
/' conftest.$ac_ext >&5
15494 ac_cv_lib_gif_EGifPutExtensionLast=no
15497 rm -rf conftest.dSYM
15498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499 conftest$ac_exeext conftest.$ac_ext
15500 LIBS=$ac_check_lib_save_LIBS
15502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15503 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15504 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15514 if test "$HAVE_GIF" = yes; then
15516 elif test "$HAVE_GIF" = maybe; then
15517 # If gif_lib.h but no libgif, try libungif.
15518 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15519 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15520 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15521 $as_echo_n "(cached) " >&6
15523 ac_check_lib_save_LIBS=$LIBS
15524 LIBS="-lungif $LIBS"
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15532 /* Override any GCC internal prototype to avoid an error.
15533 Use char because int might match the return type of a GCC
15534 builtin and then its argument prototype would still apply. */
15538 char EGifPutExtensionLast ();
15542 return EGifPutExtensionLast ();
15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (ac_try="$ac_link"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554 $as_echo "$ac_try_echo") >&5
15555 (eval "$ac_link") 2>conftest.er1
15557 grep -v '^
*+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && {
15562 test -z "$ac_c_werror_flag" ||
15563 test ! -s conftest.err
15564 } && test -s conftest$ac_exeext && {
15565 test "$cross_compiling" = yes ||
15566 $as_test_x conftest$ac_exeext
15568 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15570 $as_echo "$as_me: failed program was:" >&5
15571 sed 's
/^
/|
/' conftest.$ac_ext >&5
15573 ac_cv_lib_ungif_EGifPutExtensionLast=no
15576 rm -rf conftest.dSYM
15577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15578 conftest$ac_exeext conftest.$ac_ext
15579 LIBS=$ac_check_lib_save_LIBS
15581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15582 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15583 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15589 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15592 if test "${HAVE_GIF}" = "yes"; then
15594 cat >>confdefs.h <<\_ACEOF
15602 if test "${HAVE_X11}" = "yes"; then
15605 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15606 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15607 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15608 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15609 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15610 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15611 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15612 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15613 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15614 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15616 if test "X${MISSING}" != X; then
15617 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15619 Maybe some development libraries/packages are missing?
15620 If you don't want to link with them give
15622 as options to configure
" >&5
15623 $as_echo "$as_me: error
: The following required libraries were not found
:
15625 Maybe some development libraries
/packages are missing?
15626 If you don
't want to link with them give
15628 as options to configure" >&2;}
15629 { (exit 1); exit 1; }; }
15633 ### Use -lgpm if available, unless `--with-gpm=no'.
15636 if test "${with_gpm}" != "no"; then
15637 if test "${ac_cv_header_gpm_h+set}" = set; then
15638 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15639 $as_echo_n "checking for gpm.h... " >&6; }
15640 if test "${ac_cv_header_gpm_h+set}" = set; then
15641 $as_echo_n "(cached) " >&6
15643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15644 $as_echo "$ac_cv_header_gpm_h" >&6; }
15646 # Is the header compilable?
15647 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15648 $as_echo_n "checking gpm.h usability... " >&6; }
15649 cat >conftest.
$ac_ext <<_ACEOF
15652 cat confdefs.h
>>conftest.
$ac_ext
15653 cat >>conftest.
$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 $ac_includes_default
15658 rm -f conftest.
$ac_objext
15659 if { (ac_try
="$ac_compile"
15660 case "(($ac_try" in
15661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15665 $as_echo "$ac_try_echo") >&5
15666 (eval "$ac_compile") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1 >conftest.err
15670 cat conftest.err >&5
15671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest.$ac_objext; then
15676 ac_header_compiler=yes
15678 $as_echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_header_compiler=no
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15686 $as_echo "$ac_header_compiler" >&6; }
15688 # Is the header present?
15689 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15690 $as_echo_n "checking gpm.h presence... " >&6; }
15691 cat >conftest.$ac_ext <<_ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15699 if { (ac_try="$ac_cpp conftest.$ac_ext"
15700 case "(($ac_try" in
15701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15702 *) ac_try_echo
=$ac_try;;
15704 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15705 $as_echo "$ac_try_echo") >&5
15706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1
>conftest.err
15710 cat conftest.err
>&5
15711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } >/dev
/null
&& {
15713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15716 ac_header_preproc
=yes
15718 $as_echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.
$ac_ext >&5
15721 ac_header_preproc
=no
15724 rm -f conftest.err conftest.
$ac_ext
15725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 $as_echo "$ac_header_preproc" >&6; }
15728 # So? What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15731 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15732 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15734 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15735 ac_header_preproc
=yes
15738 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15739 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15740 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15741 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15742 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15743 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15744 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15745 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15746 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15747 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15748 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15749 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15753 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15754 $as_echo_n "checking for gpm.h... " >&6; }
15755 if test "${ac_cv_header_gpm_h+set}" = set; then
15756 $as_echo_n "(cached) " >&6
15758 ac_cv_header_gpm_h
=$ac_header_preproc
15760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15761 $as_echo "$ac_cv_header_gpm_h" >&6; }
15764 if test $ac_cv_header_gpm_h = yes; then
15765 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15766 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15767 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15768 $as_echo_n "(cached) " >&6
15770 ac_check_lib_save_LIBS
=$LIBS
15772 cat >conftest.
$ac_ext <<_ACEOF
15775 cat confdefs.h
>>conftest.
$ac_ext
15776 cat >>conftest.
$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15789 return Gpm_Open ();
15794 rm -f conftest.
$ac_objext conftest
$ac_exeext
15795 if { (ac_try
="$ac_link"
15796 case "(($ac_try" in
15797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801 $as_echo "$ac_try_echo") >&5
15802 (eval "$ac_link") 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest$ac_exeext && {
15812 test "$cross_compiling" = yes ||
15813 $as_test_x conftest$ac_exeext
15815 ac_cv_lib_gpm_Gpm_Open=yes
15817 $as_echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_cv_lib_gpm_Gpm_Open=no
15823 rm -rf conftest.dSYM
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15826 LIBS=$ac_check_lib_save_LIBS
15828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15829 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15830 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15838 if test "${HAVE_GPM}" = "yes"; then
15840 cat >>confdefs.h <<\_ACEOF
15849 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15850 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15851 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15852 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15856 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15858 # Is the header compilable?
15859 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15860 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15861 cat >conftest.$ac_ext <<_ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 $ac_includes_default
15868 #include <malloc/malloc.h>
15870 rm -f conftest.$ac_objext
15871 if { (ac_try="$ac_compile"
15872 case "(($ac_try" in
15873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15874 *) ac_try_echo
=$ac_try;;
15876 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15877 $as_echo "$ac_try_echo") >&5
15878 (eval "$ac_compile") 2>conftest.er1
15880 grep -v '^ *+' conftest.er1
>conftest.err
15882 cat conftest.err
>&5
15883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest.
$ac_objext; then
15888 ac_header_compiler
=yes
15890 $as_echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.
$ac_ext >&5
15893 ac_header_compiler
=no
15896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898 $as_echo "$ac_header_compiler" >&6; }
15900 # Is the header present?
15901 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15902 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15903 cat >conftest.
$ac_ext <<_ACEOF
15906 cat confdefs.h
>>conftest.
$ac_ext
15907 cat >>conftest.
$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <malloc/malloc.h>
15911 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15912 case "(($ac_try" in
15913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } >/dev/null && {
15925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15928 ac_header_preproc=yes
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 ac_header_preproc=no
15936 rm -f conftest.err conftest.$ac_ext
15937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15938 $as_echo "$ac_header_preproc" >&6; }
15940 # So? What about this header?
15941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15943 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15944 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15946 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15947 ac_header_preproc=yes
15950 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15951 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15952 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15953 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15954 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15955 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15956 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15957 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15958 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15959 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15960 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15961 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15965 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15966 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15967 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15968 $as_echo_n "(cached) " >&6
15970 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15973 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15976 if test $ac_cv_header_malloc_malloc_h = yes; then
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE_MALLOC_MALLOC_H 1
15986 ### Use NeXTstep API to implement GUI.
15987 if test "${HAVE_NS}" = "yes"; then
15989 cat >>confdefs.h <<\_ACEOF
15993 if test "${NS_IMPL_COCOA}" = "yes"; then
15995 cat >>confdefs.h <<\_ACEOF
15996 #define NS_IMPL_COCOA 1
16001 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16003 cat >>confdefs.h <<\_ACEOF
16004 #define NS_IMPL_GNUSTEP 1
16007 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16009 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16011 cat >>confdefs.h <<\_ACEOF
16012 #define NS_HAVE_NSINTEGER 1
16016 # We also have mouse menus.
16022 ### Use session management (-lSM -lICE) if available
16024 if test "${HAVE_X11}" = "yes"; then
16025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16026 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16027 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16028 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16029 $as_echo_n "(cached) " >&6
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16032 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16034 # Is the header compilable?
16035 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16036 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <X11/SM/SMlib.h>
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16050 *) ac_try_echo
=$ac_try;;
16052 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16053 $as_echo "$ac_try_echo") >&5
16054 (eval "$ac_compile") 2>conftest.er1
16056 grep -v '^ *+' conftest.er1
>conftest.err
16058 cat conftest.err
>&5
16059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } && {
16061 test -z "$ac_c_werror_flag" ||
16062 test ! -s conftest.err
16063 } && test -s conftest.
$ac_objext; then
16064 ac_header_compiler
=yes
16066 $as_echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.
$ac_ext >&5
16069 ac_header_compiler
=no
16072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074 $as_echo "$ac_header_compiler" >&6; }
16076 # Is the header present?
16077 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16078 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16079 cat >conftest.
$ac_ext <<_ACEOF
16082 cat confdefs.h
>>conftest.
$ac_ext
16083 cat >>conftest.
$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 #include <X11/SM/SMlib.h>
16087 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16088 case "(($ac_try" in
16089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16093 $as_echo "$ac_try_echo") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null && {
16101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16104 ac_header_preproc=yes
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_header_preproc=no
16112 rm -f conftest.err conftest.$ac_ext
16113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 $as_echo "$ac_header_preproc" >&6; }
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16119 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16120 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16122 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16126 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16127 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16128 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16129 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16130 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16131 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16132 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16133 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16135 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16137 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16141 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16142 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16143 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16146 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16149 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16152 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16153 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16154 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16155 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16156 $as_echo_n "(cached) " >&6
16158 ac_check_lib_save_LIBS=$LIBS
16159 LIBS="-lSM -lICE $LIBS"
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16167 /* Override any GCC internal prototype to avoid an error.
16168 Use char because int might match the return type of a GCC
16169 builtin and then its argument prototype would still apply. */
16173 char SmcOpenConnection ();
16177 return SmcOpenConnection ();
16182 rm -f conftest.$ac_objext conftest$ac_exeext
16183 if { (ac_try="$ac_link"
16184 case "(($ac_try" in
16185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16186 *) ac_try_echo
=$ac_try;;
16188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16189 $as_echo "$ac_try_echo") >&5
16190 (eval "$ac_link") 2>conftest.er1
16192 grep -v '^ *+' conftest.er1
>conftest.err
16194 cat conftest.err
>&5
16195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && {
16197 test -z "$ac_c_werror_flag" ||
16198 test ! -s conftest.err
16199 } && test -s conftest
$ac_exeext && {
16200 test "$cross_compiling" = yes ||
16201 $as_test_x conftest
$ac_exeext
16203 ac_cv_lib_SM_SmcOpenConnection
=yes
16205 $as_echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.
$ac_ext >&5
16208 ac_cv_lib_SM_SmcOpenConnection
=no
16211 rm -rf conftest.dSYM
16212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16213 conftest
$ac_exeext conftest.
$ac_ext
16214 LIBS
=$ac_check_lib_save_LIBS
16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16217 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16218 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16226 if test "${HAVE_X_SM}" = "yes"; then
16228 cat >>confdefs.h
<<\_ACEOF
16229 #define HAVE_X_SM 1
16234 *) LIBS
="-lSM -lICE $LIBS" ;;
16239 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16240 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16241 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16242 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16243 $as_echo_n "(cached) " >&6
16245 cat >conftest.
$ac_ext <<_ACEOF
16248 cat confdefs.h
>>conftest.
$ac_ext
16249 cat >>conftest.
$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16260 rm -f conftest.
$ac_objext conftest
$ac_exeext
16261 if { (ac_try
="$ac_link"
16262 case "(($ac_try" in
16263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268 (eval "$ac_link") 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest$ac_exeext && {
16278 test "$cross_compiling" = yes ||
16279 $as_test_x conftest$ac_exeext
16281 emacs_cv_netdb_declares_h_errno=yes
16283 $as_echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 emacs_cv_netdb_declares_h_errno=no
16289 rm -rf conftest.dSYM
16290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16291 conftest$ac_exeext conftest.$ac_ext
16293 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16294 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16295 if test $emacs_cv_netdb_declares_h_errno = yes; then
16297 cat >>confdefs.h <<\_ACEOF
16298 #define HAVE_H_ERRNO 1
16303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16304 # for constant arguments. Useless!
16305 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16306 $as_echo_n "checking for working alloca.h... " >&6; }
16307 if test "${ac_cv_working_alloca_h+set}" = set; then
16308 $as_echo_n "(cached) " >&6
16310 cat >conftest.$ac_ext <<_ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 #include <alloca.h>
16320 char *p = (char *) alloca (2 * sizeof (int));
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (ac_try="$ac_link"
16328 case "(($ac_try" in
16329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16330 *) ac_try_echo
=$ac_try;;
16332 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16333 $as_echo "$ac_try_echo") >&5
16334 (eval "$ac_link") 2>conftest.er1
16336 grep -v '^ *+' conftest.er1
>conftest.err
16338 cat conftest.err
>&5
16339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && {
16341 test -z "$ac_c_werror_flag" ||
16342 test ! -s conftest.err
16343 } && test -s conftest
$ac_exeext && {
16344 test "$cross_compiling" = yes ||
16345 $as_test_x conftest
$ac_exeext
16347 ac_cv_working_alloca_h
=yes
16349 $as_echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.
$ac_ext >&5
16352 ac_cv_working_alloca_h
=no
16355 rm -rf conftest.dSYM
16356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16357 conftest
$ac_exeext conftest.
$ac_ext
16359 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16360 $as_echo "$ac_cv_working_alloca_h" >&6; }
16361 if test $ac_cv_working_alloca_h = yes; then
16363 cat >>confdefs.h
<<\_ACEOF
16364 #define HAVE_ALLOCA_H 1
16369 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16370 $as_echo_n "checking for alloca... " >&6; }
16371 if test "${ac_cv_func_alloca_works+set}" = set; then
16372 $as_echo_n "(cached) " >&6
16374 cat >conftest.
$ac_ext <<_ACEOF
16377 cat confdefs.h
>>conftest.
$ac_ext
16378 cat >>conftest.
$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16381 # define alloca __builtin_alloca
16384 # include <malloc.h>
16385 # define alloca _alloca
16387 # ifdef HAVE_ALLOCA_H
16388 # include <alloca.h>
16393 # ifndef alloca /* predefined by HP cc +Olibcalls */
16404 char *p = (char *) alloca (1);
16410 rm -f conftest.
$ac_objext conftest
$ac_exeext
16411 if { (ac_try
="$ac_link"
16412 case "(($ac_try" in
16413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16417 $as_echo "$ac_try_echo") >&5
16418 (eval "$ac_link") 2>conftest.er1
16420 grep -v '^ *+' conftest.er1 >conftest.err
16422 cat conftest.err >&5
16423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } && {
16425 test -z "$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16427 } && test -s conftest$ac_exeext && {
16428 test "$cross_compiling" = yes ||
16429 $as_test_x conftest$ac_exeext
16431 ac_cv_func_alloca_works=yes
16433 $as_echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_cv_func_alloca_works=no
16439 rm -rf conftest.dSYM
16440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16441 conftest$ac_exeext conftest.$ac_ext
16443 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16444 $as_echo "$ac_cv_func_alloca_works" >&6; }
16446 if test $ac_cv_func_alloca_works = yes; then
16448 cat >>confdefs.h <<\_ACEOF
16449 #define HAVE_ALLOCA 1
16453 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16454 # that cause trouble. Some versions do not even contain alloca or
16455 # contain a buggy version. If you still want to use their alloca,
16456 # use ar to extract alloca.o from them instead of compiling alloca.c.
16458 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16460 cat >>confdefs.h <<\_ACEOF
16465 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16466 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16467 if test "${ac_cv_os_cray+set}" = set; then
16468 $as_echo_n "(cached
) " >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 #if defined CRAY && ! defined CRAY2
16483 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16484 $EGREP "webecray
" >/dev/null 2>&1; then
16492 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16493 $as_echo "$ac_cv_os_cray" >&6; }
16494 if test $ac_cv_os_cray = yes; then
16495 for ac_func in _getb67 GETB67 getb67; do
16496 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16497 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16498 $as_echo_n "checking
for $ac_func...
" >&6; }
16499 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16500 $as_echo_n "(cached
) " >&6
16502 cat >conftest.$ac_ext <<_ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16510 #define $ac_func innocuous_$ac_func
16512 /* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func (); below.
16514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16515 <limits.h> exists even on freestanding compilers. */
16518 # include <limits.h>
16520 # include <assert.h>
16525 /* Override any GCC internal prototype to avoid an error.
16526 Use char because int might match the return type of a GCC
16527 builtin and then its argument prototype would still apply. */
16532 /* The GNU C library defines this for functions which it implements
16533 to always fail with ENOSYS. Some functions are actually named
16534 something starting with __ and the normal name is an alias. */
16535 #if defined __stub_$ac_func || defined __stub___$ac_func
16542 return $ac_func ();
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16553 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16554 $as_echo "$ac_try_echo") >&5
16555 (eval "$ac_link") 2>conftest.er1
16557 grep -v '^ *+' conftest.er1 >conftest.err
16559 cat conftest.err >&5
16560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16561 (exit $ac_status); } && {
16562 test -z "$ac_c_werror_flag" ||
16563 test ! -s conftest.err
16564 } && test -s conftest$ac_exeext && {
16565 test "$cross_compiling" = yes ||
16566 $as_test_x conftest$ac_exeext
16568 eval "$as_ac_var=yes"
16570 $as_echo "$as_me: failed program was
:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 eval "$as_ac_var=no
"
16576 rm -rf conftest.dSYM
16577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16578 conftest$ac_exeext conftest.$ac_ext
16580 ac_res=`eval 'as_val=${'$as_ac_var'}
16581 $as_echo "$as_val"'`
16582 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16583 $as_echo "$ac_res" >&6; }
16584 if test `eval 'as_val=${'$as_ac_var'}
16585 $as_echo "$as_val"'` = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define CRAY_STACKSEG_END $ac_func
16597 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16598 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16599 if test "${ac_cv_c_stack_direction+set}" = set; then
16600 $as_echo_n "(cached
) " >&6
16602 if test "$cross_compiling" = yes; then
16603 ac_cv_c_stack_direction=0
16605 cat >conftest.$ac_ext <<_ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 $ac_includes_default
16613 find_stack_direction ()
16615 static char *addr = 0;
16620 return find_stack_direction ();
16623 return (&dummy > addr) ? 1 : -1;
16629 return find_stack_direction () < 0;
16632 rm -f conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16639 $as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>&5
16642 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16649 $as_echo "$ac_try_echo") >&5
16650 (eval "$ac_try") 2>&5
16652 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_c_stack_direction=1
16656 $as_echo "$as_me: program exited with status
$ac_status" >&5
16657 $as_echo "$as_me: failed program was
:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ( exit $ac_status )
16661 ac_cv_c_stack_direction=-1
16663 rm -rf conftest.dSYM
16664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16669 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16670 $as_echo "$ac_cv_c_stack_direction" >&6; }
16672 cat >>confdefs.h <<_ACEOF
16673 #define STACK_DIRECTION $ac_cv_c_stack_direction
16680 if test x"$ac_cv_func_alloca_works" != xyes; then
16681 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16682 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16683 { (exit 1); exit 1; }; }
16686 # fmod, logb, and frexp are found in -lm on most systems.
16687 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16689 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16690 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16691 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16692 $as_echo_n "(cached
) " >&6
16694 ac_check_lib_save_LIBS=$LIBS
16696 cat >conftest.$ac_ext <<_ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16703 /* Override any GCC internal prototype to avoid an error.
16704 Use char because int might match the return type of a GCC
16705 builtin and then its argument prototype would still apply. */
16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (ac_try="$ac_link"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726 (eval "$ac_link") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest$ac_exeext && {
16736 test "$cross_compiling" = yes ||
16737 $as_test_x conftest$ac_exeext
16739 ac_cv_lib_m_sqrt=yes
16741 $as_echo "$as_me: failed program was
:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 ac_cv_lib_m_sqrt=no
16747 rm -rf conftest.dSYM
16748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749 conftest$ac_exeext conftest.$ac_ext
16750 LIBS=$ac_check_lib_save_LIBS
16752 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16753 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16754 if test $ac_cv_lib_m_sqrt = yes; then
16755 cat >>confdefs.h <<_ACEOF
16756 #define HAVE_LIBM 1
16764 # Check for mail-locking functions in a "mail" library. Probably this should
16765 # have the same check as for liblockfile below.
16766 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16767 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16768 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16769 $as_echo_n "(cached
) " >&6
16771 ac_check_lib_save_LIBS=$LIBS
16772 LIBS="-lmail $LIBS"
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16790 return maillock ();
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16802 $as_echo "$ac_try_echo") >&5
16803 (eval "$ac_link") 2>conftest.er1
16805 grep -v '^ *+' conftest.er1 >conftest.err
16807 cat conftest.err >&5
16808 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext && {
16813 test "$cross_compiling" = yes ||
16814 $as_test_x conftest$ac_exeext
16816 ac_cv_lib_mail_maillock=yes
16818 $as_echo "$as_me: failed program was
:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_cv_lib_mail_maillock=no
16824 rm -rf conftest.dSYM
16825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16826 conftest$ac_exeext conftest.$ac_ext
16827 LIBS=$ac_check_lib_save_LIBS
16829 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16830 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16831 if test $ac_cv_lib_mail_maillock = yes; then
16837 if test $have_mail = yes; then
16839 LIBS="$LIBS_MAIL $LIBS"
16841 cat >>confdefs.h <<\_ACEOF
16842 #define HAVE_LIBMAIL 1
16848 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16849 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16850 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16851 $as_echo_n "(cached
) " >&6
16853 ac_check_lib_save_LIBS=$LIBS
16854 LIBS="-llockfile $LIBS"
16855 cat >conftest.$ac_ext <<_ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16862 /* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16872 return maillock ();
16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (ac_try="$ac_link"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16884 $as_echo "$ac_try_echo") >&5
16885 (eval "$ac_link") 2>conftest.er1
16887 grep -v '^ *+' conftest.er1 >conftest.err
16889 cat conftest.err >&5
16890 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext && {
16895 test "$cross_compiling" = yes ||
16896 $as_test_x conftest$ac_exeext
16898 ac_cv_lib_lockfile_maillock=yes
16900 $as_echo "$as_me: failed program was
:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 ac_cv_lib_lockfile_maillock=no
16906 rm -rf conftest.dSYM
16907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16908 conftest$ac_exeext conftest.$ac_ext
16909 LIBS=$ac_check_lib_save_LIBS
16911 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16912 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16913 if test $ac_cv_lib_lockfile_maillock = yes; then
16919 if test $have_lockfile = yes; then
16920 LIBS_MAIL=-llockfile
16921 LIBS="$LIBS_MAIL $LIBS"
16923 cat >>confdefs.h <<\_ACEOF
16924 #define HAVE_LIBLOCKFILE 1
16928 # If we have the shared liblockfile, assume we must use it for mail
16929 # locking (e.g. Debian). If we couldn't link against liblockfile
16930 # (no liblockfile.a installed), ensure that we don't need to.
16931 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16932 set dummy liblockfile.so; ac_word=$2
16933 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16934 $as_echo_n "checking
for $ac_word...
" >&6; }
16935 if test "${ac_cv_prog_liblockfile+set}" = set; then
16936 $as_echo_n "(cached
) " >&6
16938 if test -n "$liblockfile"; then
16939 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16942 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16943 for as_dir in $as_dummy
16946 test -z "$as_dir" && as_dir=.
16947 for ac_exec_ext in '' $ac_executable_extensions; do
16948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16949 ac_cv_prog_liblockfile="yes"
16950 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16957 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16960 liblockfile=$ac_cv_prog_liblockfile
16961 if test -n "$liblockfile"; then
16962 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
16963 $as_echo "$liblockfile" >&6; }
16965 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16966 $as_echo "no
" >&6; }
16970 if test $ac_cv_prog_liblockfile = yes; then
16971 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16972 This probably means that movemail could lose mail.
16973 There may be a \`development' package to
install containing liblockfile.
" >&5
16974 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16975 This probably means that movemail could lose mail.
16976 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16977 { (exit 1); exit 1; }; }
16981 for ac_func in touchlock
16983 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16984 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16985 $as_echo_n "checking
for $ac_func...
" >&6; }
16986 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16987 $as_echo_n "(cached
) " >&6
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define $ac_func innocuous_$ac_func
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17005 # include <limits.h>
17007 # include <assert.h>
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined __stub_$ac_func || defined __stub___$ac_func
17029 return $ac_func ();
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17041 $as_echo "$ac_try_echo") >&5
17042 (eval "$ac_link") 2>conftest.er1
17044 grep -v '^ *+' conftest.er1 >conftest.err
17046 cat conftest.err >&5
17047 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest$ac_exeext && {
17052 test "$cross_compiling" = yes ||
17053 $as_test_x conftest$ac_exeext
17055 eval "$as_ac_var=yes"
17057 $as_echo "$as_me: failed program was
:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 eval "$as_ac_var=no
"
17063 rm -rf conftest.dSYM
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17067 ac_res=`eval 'as_val=${'$as_ac_var'}
17068 $as_echo "$as_val"'`
17069 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17070 $as_echo "$ac_res" >&6; }
17071 if test `eval 'as_val=${'$as_ac_var'}
17072 $as_echo "$as_val"'` = yes; then
17073 cat >>confdefs.h <<_ACEOF
17074 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17081 for ac_header in maillock.h
17083 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17085 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17086 $as_echo_n "checking
for $ac_header...
" >&6; }
17087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17088 $as_echo_n "(cached
) " >&6
17090 ac_res=`eval 'as_val=${'$as_ac_Header'}
17091 $as_echo "$as_val"'`
17092 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17093 $as_echo "$ac_res" >&6; }
17095 # Is the header compilable?
17096 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17097 $as_echo_n "checking
$ac_header usability...
" >&6; }
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 $ac_includes_default
17105 #include <$ac_header>
17107 rm -f conftest.$ac_objext
17108 if { (ac_try="$ac_compile"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17114 $as_echo "$ac_try_echo") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest.$ac_objext; then
17125 ac_header_compiler=yes
17127 $as_echo "$as_me: failed program was
:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 ac_header_compiler=no
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17135 $as_echo "$ac_header_compiler" >&6; }
17137 # Is the header present?
17138 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17139 $as_echo_n "checking
$ac_header presence...
" >&6; }
17140 cat >conftest.$ac_ext <<_ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <$ac_header>
17148 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17154 $as_echo "$ac_try_echo") >&5
17155 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17161 (exit $ac_status); } >/dev/null && {
17162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17163 test ! -s conftest.err
17165 ac_header_preproc=yes
17167 $as_echo "$as_me: failed program was
:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17170 ac_header_preproc=no
17173 rm -f conftest.err conftest.$ac_ext
17174 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17175 $as_echo "$ac_header_preproc" >&6; }
17177 # So? What about this header?
17178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17180 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17181 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17182 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17184 ac_header_preproc=yes
17187 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17188 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17189 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17190 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17191 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17192 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17193 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17194 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17195 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17197 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17198 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17202 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17203 $as_echo_n "checking
for $ac_header...
" >&6; }
17204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17205 $as_echo_n "(cached
) " >&6
17207 eval "$as_ac_Header=\
$ac_header_preproc"
17209 ac_res=`eval 'as_val=${'$as_ac_Header'}
17210 $as_echo "$as_val"'`
17211 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17212 $as_echo "$ac_res" >&6; }
17215 if test `eval 'as_val=${'$as_ac_Header'}
17216 $as_echo "$as_val"'` = yes; then
17217 cat >>confdefs.h <<_ACEOF
17218 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17298 for ac_func in gethostname getdomainname dup2 \
17299 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17300 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17301 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17302 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17303 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17304 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17305 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17306 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17307 cfmakeraw cfsetspeed
17309 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17310 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17311 $as_echo_n "checking
for $ac_func...
" >&6; }
17312 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17313 $as_echo_n "(cached
) " >&6
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17323 #define $ac_func innocuous_$ac_func
17325 /* System header to define __stub macros and hopefully few prototypes,
17326 which can conflict with char $ac_func (); below.
17327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17328 <limits.h> exists even on freestanding compilers. */
17331 # include <limits.h>
17333 # include <assert.h>
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17345 /* The GNU C library defines this for functions which it implements
17346 to always fail with ENOSYS. Some functions are actually named
17347 something starting with __ and the normal name is an alias. */
17348 #if defined __stub_$ac_func || defined __stub___$ac_func
17355 return $ac_func ();
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17367 $as_echo "$ac_try_echo") >&5
17368 (eval "$ac_link") 2>conftest.er1
17370 grep -v '^ *+' conftest.er1 >conftest.err
17372 cat conftest.err >&5
17373 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest$ac_exeext && {
17378 test "$cross_compiling" = yes ||
17379 $as_test_x conftest$ac_exeext
17381 eval "$as_ac_var=yes"
17383 $as_echo "$as_me: failed program was
:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 eval "$as_ac_var=no
"
17389 rm -rf conftest.dSYM
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17393 ac_res=`eval 'as_val=${'$as_ac_var'}
17394 $as_echo "$as_val"'`
17395 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17396 $as_echo "$ac_res" >&6; }
17397 if test `eval 'as_val=${'$as_ac_var'}
17398 $as_echo "$as_val"'` = yes; then
17399 cat >>confdefs.h <<_ACEOF
17400 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17408 for ac_header in sys/un.h
17410 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17411 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17412 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17413 $as_echo_n "checking
for $ac_header...
" >&6; }
17414 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17415 $as_echo_n "(cached
) " >&6
17417 ac_res=`eval 'as_val=${'$as_ac_Header'}
17418 $as_echo "$as_val"'`
17419 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17420 $as_echo "$ac_res" >&6; }
17422 # Is the header compilable?
17423 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17424 $as_echo_n "checking
$ac_header usability...
" >&6; }
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 $ac_includes_default
17432 #include <$ac_header>
17434 rm -f conftest.$ac_objext
17435 if { (ac_try="$ac_compile"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17441 $as_echo "$ac_try_echo") >&5
17442 (eval "$ac_compile") 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest.$ac_objext; then
17452 ac_header_compiler=yes
17454 $as_echo "$as_me: failed program was
:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_header_compiler=no
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17462 $as_echo "$ac_header_compiler" >&6; }
17464 # Is the header present?
17465 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17466 $as_echo_n "checking
$ac_header presence...
" >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 #include <$ac_header>
17475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17481 $as_echo "$ac_try_echo") >&5
17482 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17488 (exit $ac_status); } >/dev/null && {
17489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17492 ac_header_preproc=yes
17494 $as_echo "$as_me: failed program was
:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 ac_header_preproc=no
17500 rm -f conftest.err conftest.$ac_ext
17501 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17502 $as_echo "$ac_header_preproc" >&6; }
17504 # So? What about this header?
17505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17507 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17508 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17509 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17511 ac_header_preproc=yes
17514 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17515 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17516 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17517 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17518 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17519 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17520 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17521 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17522 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17524 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17525 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17529 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17530 $as_echo_n "checking
for $ac_header...
" >&6; }
17531 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17532 $as_echo_n "(cached
) " >&6
17534 eval "$as_ac_Header=\
$ac_header_preproc"
17536 ac_res=`eval 'as_val=${'$as_ac_Header'}
17537 $as_echo "$as_val"'`
17538 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17539 $as_echo "$ac_res" >&6; }
17542 if test `eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'` = yes; then
17544 cat >>confdefs.h <<_ACEOF
17545 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17557 for ac_header in $ac_header_list
17559 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17560 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17561 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17562 $as_echo_n "checking
for $ac_header...
" >&6; }
17563 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17564 $as_echo_n "(cached
) " >&6
17566 ac_res=`eval 'as_val=${'$as_ac_Header'}
17567 $as_echo "$as_val"'`
17568 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17569 $as_echo "$ac_res" >&6; }
17571 # Is the header compilable?
17572 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17573 $as_echo_n "checking
$ac_header usability...
" >&6; }
17574 cat >conftest.$ac_ext <<_ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 $ac_includes_default
17581 #include <$ac_header>
17583 rm -f conftest.$ac_objext
17584 if { (ac_try="$ac_compile"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17590 $as_echo "$ac_try_echo") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17603 $as_echo "$as_me: failed program was
:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_compiler=no
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17611 $as_echo "$ac_header_compiler" >&6; }
17613 # Is the header present?
17614 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17615 $as_echo_n "checking
$ac_header presence...
" >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <$ac_header>
17624 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17630 $as_echo "$ac_try_echo") >&5
17631 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17637 (exit $ac_status); } >/dev/null && {
17638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17641 ac_header_preproc=yes
17643 $as_echo "$as_me: failed program was
:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 ac_header_preproc=no
17649 rm -f conftest.err conftest.$ac_ext
17650 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17651 $as_echo "$ac_header_preproc" >&6; }
17653 # So? What about this header?
17654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17656 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17657 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17658 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17660 ac_header_preproc=yes
17663 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17664 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17665 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17666 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17667 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17668 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17669 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17670 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17671 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17673 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17674 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17678 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17679 $as_echo_n "checking
for $ac_header...
" >&6; }
17680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17681 $as_echo_n "(cached
) " >&6
17683 eval "$as_ac_Header=\
$ac_header_preproc"
17685 ac_res=`eval 'as_val=${'$as_ac_Header'}
17686 $as_echo "$as_val"'`
17687 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17688 $as_echo "$ac_res" >&6; }
17691 if test `eval 'as_val=${'$as_ac_Header'}
17692 $as_echo "$as_val"'` = yes; then
17693 cat >>confdefs.h <<_ACEOF
17694 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17709 for ac_func in $ac_func_list
17711 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17712 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17713 $as_echo_n "checking
for $ac_func...
" >&6; }
17714 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17715 $as_echo_n "(cached
) " >&6
17717 cat >conftest.$ac_ext <<_ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17725 #define $ac_func innocuous_$ac_func
17727 /* System header to define __stub macros and hopefully few prototypes,
17728 which can conflict with char $ac_func (); below.
17729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17730 <limits.h> exists even on freestanding compilers. */
17733 # include <limits.h>
17735 # include <assert.h>
17740 /* Override any GCC internal prototype to avoid an error.
17741 Use char because int might match the return type of a GCC
17742 builtin and then its argument prototype would still apply. */
17747 /* The GNU C library defines this for functions which it implements
17748 to always fail with ENOSYS. Some functions are actually named
17749 something starting with __ and the normal name is an alias. */
17750 #if defined __stub_$ac_func || defined __stub___$ac_func
17757 return $ac_func ();
17762 rm -f conftest.$ac_objext conftest$ac_exeext
17763 if { (ac_try="$ac_link"
17764 case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17768 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17769 $as_echo "$ac_try_echo") >&5
17770 (eval "$ac_link") 2>conftest.er1
17772 grep -v '^ *+' conftest.er1 >conftest.err
17774 cat conftest.err >&5
17775 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest$ac_exeext && {
17780 test "$cross_compiling" = yes ||
17781 $as_test_x conftest$ac_exeext
17783 eval "$as_ac_var=yes"
17785 $as_echo "$as_me: failed program was
:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 eval "$as_ac_var=no
"
17791 rm -rf conftest.dSYM
17792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17793 conftest$ac_exeext conftest.$ac_ext
17795 ac_res=`eval 'as_val=${'$as_ac_var'}
17796 $as_echo "$as_val"'`
17797 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17798 $as_echo "$ac_res" >&6; }
17799 if test `eval 'as_val=${'$as_ac_var'}
17800 $as_echo "$as_val"'` = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17824 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17825 $as_echo_n "checking
for working mktime...
" >&6; }
17826 if test "${ac_cv_func_working_mktime+set}" = set; then
17827 $as_echo_n "(cached
) " >&6
17829 if test "$cross_compiling" = yes; then
17830 ac_cv_func_working_mktime=no
17832 cat >conftest.$ac_ext <<_ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h. */
17838 /* Test program from Paul Eggert and Tony Leneis. */
17839 #ifdef TIME_WITH_SYS_TIME
17840 # include <sys/time.h>
17843 # ifdef HAVE_SYS_TIME_H
17844 # include <sys/time.h>
17850 #include <limits.h>
17851 #include <stdlib.h>
17853 #ifdef HAVE_UNISTD_H
17854 # include <unistd.h>
17858 # define alarm(X) /* empty */
17861 /* Work around redefinition to rpl_putenv by other config tests. */
17864 static time_t time_t_max;
17865 static time_t time_t_min;
17867 /* Values we'll use to set the TZ environment variable. */
17868 static char *tz_strings[] = {
17869 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17870 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17872 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17874 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17875 Based on a problem report from Andreas Jaeger. */
17877 spring_forward_gap ()
17879 /* glibc (up to about 1998-10-07) failed this test. */
17882 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17883 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17884 on systems that don't support the Olson extension, or don't have the
17885 full zoneinfo tables installed. */
17886 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17895 return mktime (&tm) != (time_t) -1;
17903 return ! (lt = localtime (&now)) || mktime (lt) == now;
17910 return (mktime_test1 (now)
17911 && mktime_test1 ((time_t) (time_t_max - now))
17912 && mktime_test1 ((time_t) (time_t_min + now)));
17918 /* Based on code from Ariel Faigon. */
17928 return tm.tm_mon == 2 && tm.tm_mday == 31;
17937 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17938 now = mktime (&tm);
17939 if (now != (time_t) -1)
17941 struct tm *lt = localtime (&now);
17943 && lt->tm_year == tm.tm_year
17944 && lt->tm_mon == tm.tm_mon
17945 && lt->tm_mday == tm.tm_mday
17946 && lt->tm_hour == tm.tm_hour
17947 && lt->tm_min == tm.tm_min
17948 && lt->tm_sec == tm.tm_sec
17949 && lt->tm_yday == tm.tm_yday
17950 && lt->tm_wday == tm.tm_wday
17951 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17952 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17961 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17962 ignoring leap seconds. */
17963 unsigned long int answer = 2527315200UL;
17967 tm.tm_year = 2050 - 1900;
17970 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17973 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17974 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17975 on systems that don't support the Olson extension, or don't have the
17976 full zoneinfo tables installed. */
17977 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17981 /* Check that the result is either a failure, or close enough
17982 to the correct answer that we can assume the discrepancy is
17983 due to leap seconds. */
17984 return (t == (time_t) -1
17985 || (0 < t && answer - 120 <= t && t <= answer + 120));
17994 /* This test makes some buggy mktime implementations loop.
17995 Give up after 60 seconds; a mktime slower than that
17996 isn't worth using anyway. */
18001 t = (time_t_max << 1) + 1;
18002 if (t <= time_t_max)
18006 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18008 delta = time_t_max / 997; /* a suitable prime number */
18009 for (i = 0; i < N_STRINGS; i++)
18012 putenv (tz_strings[i]);
18014 for (t = 0; t <= time_t_max - delta; t += delta)
18015 if (! mktime_test (t))
18017 if (! (mktime_test ((time_t) 1)
18018 && mktime_test ((time_t) (60 * 60))
18019 && mktime_test ((time_t) (60 * 60 * 24))))
18022 for (j = 1; ; j <<= 1)
18023 if (! bigtime_test (j))
18025 else if (INT_MAX / 2 < j)
18027 if (! bigtime_test (INT_MAX))
18030 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18033 rm -f conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18040 $as_echo "$ac_try_echo") >&5
18041 (eval "$ac_link") 2>&5
18043 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18049 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18050 $as_echo "$ac_try_echo") >&5
18051 (eval "$ac_try") 2>&5
18053 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_func_working_mktime=yes
18057 $as_echo "$as_me: program exited with status
$ac_status" >&5
18058 $as_echo "$as_me: failed program was
:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ( exit $ac_status )
18062 ac_cv_func_working_mktime=no
18064 rm -rf conftest.dSYM
18065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18070 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18071 $as_echo "$ac_cv_func_working_mktime" >&6; }
18072 if test $ac_cv_func_working_mktime = no; then
18073 case " $LIBOBJS " in
18074 *" mktime.
$ac_objext "* ) ;;
18075 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18081 if test "$ac_cv_func_working_mktime" = no; then
18083 cat >>confdefs.h <<\_ACEOF
18084 #define BROKEN_MKTIME 1
18089 ac_have_func=no # yes means we've found a way to get the load average.
18091 # Make sure getloadavg.c is where it belongs, at configure-time.
18092 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18093 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18094 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18095 { (exit 1); exit 1; }; }
18099 # Check for getloadavg, but be sure not to touch the cache variable.
18100 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18101 $as_echo_n "checking
for getloadavg...
" >&6; }
18102 if test "${ac_cv_func_getloadavg+set}" = set; then
18103 $as_echo_n "(cached
) " >&6
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113 #define getloadavg innocuous_getloadavg
18115 /* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char getloadavg (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18121 # include <limits.h>
18123 # include <assert.h>
18128 /* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18134 char getloadavg ();
18135 /* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138 #if defined __stub_getloadavg || defined __stub___getloadavg
18145 return getloadavg ();
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18157 $as_echo "$ac_try_echo") >&5
18158 (eval "$ac_link") 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest$ac_exeext && {
18168 test "$cross_compiling" = yes ||
18169 $as_test_x conftest$ac_exeext
18171 ac_cv_func_getloadavg=yes
18173 $as_echo "$as_me: failed program was
:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 ac_cv_func_getloadavg=no
18179 rm -rf conftest.dSYM
18180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18181 conftest$ac_exeext conftest.$ac_ext
18183 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18184 $as_echo "$ac_cv_func_getloadavg" >&6; }
18185 if test $ac_cv_func_getloadavg = yes; then
18190 ) && ac_have_func=yes
18192 # On HPUX9, an unprivileged user can get load averages through this function.
18194 for ac_func in pstat_getdynamic
18196 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18197 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18198 $as_echo_n "checking
for $ac_func...
" >&6; }
18199 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18200 $as_echo_n "(cached
) " >&6
18202 cat >conftest.$ac_ext <<_ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18210 #define $ac_func innocuous_$ac_func
18212 /* System header to define __stub macros and hopefully few prototypes,
18213 which can conflict with char $ac_func (); below.
18214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18215 <limits.h> exists even on freestanding compilers. */
18218 # include <limits.h>
18220 # include <assert.h>
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18232 /* The GNU C library defines this for functions which it implements
18233 to always fail with ENOSYS. Some functions are actually named
18234 something starting with __ and the normal name is an alias. */
18235 #if defined __stub_$ac_func || defined __stub___$ac_func
18242 return $ac_func ();
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18254 $as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>conftest.er1
18257 grep -v '^ *+' conftest.er1 >conftest.err
18259 cat conftest.err >&5
18260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext && {
18265 test "$cross_compiling" = yes ||
18266 $as_test_x conftest$ac_exeext
18268 eval "$as_ac_var=yes"
18270 $as_echo "$as_me: failed program was
:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 eval "$as_ac_var=no
"
18276 rm -rf conftest.dSYM
18277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18278 conftest$ac_exeext conftest.$ac_ext
18280 ac_res=`eval 'as_val=${'$as_ac_var'}
18281 $as_echo "$as_val"'`
18282 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18283 $as_echo "$ac_res" >&6; }
18284 if test `eval 'as_val=${'$as_ac_var'}
18285 $as_echo "$as_val"'` = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18294 # Solaris has libkstat which does not require root.
18296 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18297 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18298 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18299 $as_echo_n "(cached
) " >&6
18301 ac_check_lib_save_LIBS=$LIBS
18302 LIBS="-lkstat $LIBS"
18303 cat >conftest.$ac_ext <<_ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18316 char kstat_open ();
18320 return kstat_open ();
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333 (eval "$ac_link") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext && {
18343 test "$cross_compiling" = yes ||
18344 $as_test_x conftest$ac_exeext
18346 ac_cv_lib_kstat_kstat_open=yes
18348 $as_echo "$as_me: failed program was
:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_cv_lib_kstat_kstat_open=no
18354 rm -rf conftest.dSYM
18355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18356 conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18359 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18360 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18361 if test $ac_cv_lib_kstat_kstat_open = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define HAVE_LIBKSTAT 1
18366 LIBS="-lkstat $LIBS"
18370 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18372 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18373 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18374 # to get the right answer into the cache.
18375 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18376 if test $ac_have_func = no; then
18377 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18378 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18379 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18380 $as_echo_n "(cached
) " >&6
18382 ac_check_lib_save_LIBS=$LIBS
18384 cat >conftest.$ac_ext <<_ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18391 /* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18401 return elf_begin ();
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18413 $as_echo "$ac_try_echo") >&5
18414 (eval "$ac_link") 2>conftest.er1
18416 grep -v '^ *+' conftest.er1 >conftest.err
18418 cat conftest.err >&5
18419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest$ac_exeext && {
18424 test "$cross_compiling" = yes ||
18425 $as_test_x conftest$ac_exeext
18427 ac_cv_lib_elf_elf_begin=yes
18429 $as_echo "$as_me: failed program was
:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18432 ac_cv_lib_elf_elf_begin=no
18435 rm -rf conftest.dSYM
18436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18437 conftest$ac_exeext conftest.$ac_ext
18438 LIBS=$ac_check_lib_save_LIBS
18440 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18441 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18442 if test $ac_cv_lib_elf_elf_begin = yes; then
18447 if test $ac_have_func = no; then
18448 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18449 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18450 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18451 $as_echo_n "(cached
) " >&6
18453 ac_check_lib_save_LIBS=$LIBS
18455 cat >conftest.$ac_ext <<_ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18462 /* Override any GCC internal prototype to avoid an error.
18463 Use char because int might match the return type of a GCC
18464 builtin and then its argument prototype would still apply. */
18472 return kvm_open ();
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18484 $as_echo "$ac_try_echo") >&5
18485 (eval "$ac_link") 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest$ac_exeext && {
18495 test "$cross_compiling" = yes ||
18496 $as_test_x conftest$ac_exeext
18498 ac_cv_lib_kvm_kvm_open=yes
18500 $as_echo "$as_me: failed program was
:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 ac_cv_lib_kvm_kvm_open=no
18506 rm -rf conftest.dSYM
18507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18508 conftest$ac_exeext conftest.$ac_ext
18509 LIBS=$ac_check_lib_save_LIBS
18511 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18512 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18513 if test $ac_cv_lib_kvm_kvm_open = yes; then
18517 # Check for the 4.4BSD definition of getloadavg.
18518 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18519 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18520 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18521 $as_echo_n "(cached
) " >&6
18523 ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lutil $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18538 char getloadavg ();
18542 return getloadavg ();
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18554 $as_echo "$ac_try_echo") >&5
18555 (eval "$ac_link") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest$ac_exeext && {
18565 test "$cross_compiling" = yes ||
18566 $as_test_x conftest$ac_exeext
18568 ac_cv_lib_util_getloadavg=yes
18570 $as_echo "$as_me: failed program was
:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18573 ac_cv_lib_util_getloadavg=no
18576 rm -rf conftest.dSYM
18577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18578 conftest$ac_exeext conftest.$ac_ext
18579 LIBS=$ac_check_lib_save_LIBS
18581 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18582 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18583 if test $ac_cv_lib_util_getloadavg = yes; then
18584 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18589 if test $ac_have_func = no; then
18590 # There is a commonly available library for RS/6000 AIX.
18591 # Since it is not a standard part of AIX, it might be installed locally.
18592 ac_getloadavg_LIBS=$LIBS
18593 LIBS="-L/usr
/local
/lib
$LIBS"
18594 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18595 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18596 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18597 $as_echo_n "(cached
) " >&6
18599 ac_check_lib_save_LIBS=$LIBS
18600 LIBS="-lgetloadavg $LIBS"
18601 cat >conftest.$ac_ext <<_ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18608 /* Override any GCC internal prototype to avoid an error.
18609 Use char because int might match the return type of a GCC
18610 builtin and then its argument prototype would still apply. */
18614 char getloadavg ();
18618 return getloadavg ();
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18630 $as_echo "$ac_try_echo") >&5
18631 (eval "$ac_link") 2>conftest.er1
18633 grep -v '^ *+' conftest.er1 >conftest.err
18635 cat conftest.err >&5
18636 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext && {
18641 test "$cross_compiling" = yes ||
18642 $as_test_x conftest$ac_exeext
18644 ac_cv_lib_getloadavg_getloadavg=yes
18646 $as_echo "$as_me: failed program was
:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_cv_lib_getloadavg_getloadavg=no
18652 rm -rf conftest.dSYM
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654 conftest$ac_exeext conftest.$ac_ext
18655 LIBS=$ac_check_lib_save_LIBS
18657 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18658 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18659 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18660 LIBS="-lgetloadavg $LIBS"
18662 LIBS=$ac_getloadavg_LIBS
18667 # Make sure it is really in the library, if we think we found it,
18668 # otherwise set up the replacement function.
18670 for ac_func in getloadavg
18672 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18673 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18674 $as_echo_n "checking
for $ac_func...
" >&6; }
18675 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18676 $as_echo_n "(cached
) " >&6
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18686 #define $ac_func innocuous_$ac_func
18688 /* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18694 # include <limits.h>
18696 # include <assert.h>
18701 /* Override any GCC internal prototype to avoid an error.
18702 Use char because int might match the return type of a GCC
18703 builtin and then its argument prototype would still apply. */
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined __stub_$ac_func || defined __stub___$ac_func
18718 return $ac_func ();
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18730 $as_echo "$ac_try_echo") >&5
18731 (eval "$ac_link") 2>conftest.er1
18733 grep -v '^ *+' conftest.er1 >conftest.err
18735 cat conftest.err >&5
18736 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest$ac_exeext && {
18741 test "$cross_compiling" = yes ||
18742 $as_test_x conftest$ac_exeext
18744 eval "$as_ac_var=yes"
18746 $as_echo "$as_me: failed program was
:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 eval "$as_ac_var=no
"
18752 rm -rf conftest.dSYM
18753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18754 conftest$ac_exeext conftest.$ac_ext
18756 ac_res=`eval 'as_val=${'$as_ac_var'}
18757 $as_echo "$as_val"'`
18758 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18759 $as_echo "$ac_res" >&6; }
18760 if test `eval 'as_val=${'$as_ac_var'}
18761 $as_echo "$as_val"'` = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18767 case " $LIBOBJS " in
18768 *" getloadavg.
$ac_objext "* ) ;;
18769 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18774 cat >>confdefs.h <<\_ACEOF
18775 #define C_GETLOADAVG 1
18778 # Figure out what our getloadavg.c needs.
18780 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18781 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18782 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18783 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18784 $as_echo_n "(cached
) " >&6
18786 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18787 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18789 # Is the header compilable?
18790 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18791 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18799 #include <sys/dg_sys_info.h>
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18808 $as_echo "$ac_try_echo") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18821 $as_echo "$as_me: failed program was
:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_header_compiler=no
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18829 $as_echo "$ac_header_compiler" >&6; }
18831 # Is the header present?
18832 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18833 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <sys/dg_sys_info.h>
18842 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18848 $as_echo "$ac_try_echo") >&5
18849 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18855 (exit $ac_status); } >/dev/null && {
18856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18859 ac_header_preproc=yes
18861 $as_echo "$as_me: failed program was
:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_header_preproc=no
18867 rm -f conftest.err conftest.$ac_ext
18868 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18869 $as_echo "$ac_header_preproc" >&6; }
18871 # So? What about this header?
18872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18874 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18875 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18876 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18877 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18878 ac_header_preproc=yes
18881 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18882 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18883 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18884 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18886 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18887 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18888 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18889 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18890 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18891 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18892 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18896 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18897 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18898 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18899 $as_echo_n "(cached
) " >&6
18901 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18903 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18904 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18907 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18910 cat >>confdefs.h <<\_ACEOF
18915 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18916 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18917 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18918 $as_echo_n "(cached
) " >&6
18920 ac_check_lib_save_LIBS=$LIBS
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18929 /* Override any GCC internal prototype to avoid an error.
18930 Use char because int might match the return type of a GCC
18931 builtin and then its argument prototype would still apply. */
18935 char dg_sys_info ();
18939 return dg_sys_info ();
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (ac_try="$ac_link"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18951 $as_echo "$ac_try_echo") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext && {
18962 test "$cross_compiling" = yes ||
18963 $as_test_x conftest$ac_exeext
18965 ac_cv_lib_dgc_dg_sys_info=yes
18967 $as_echo "$as_me: failed program was
:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_lib_dgc_dg_sys_info=no
18973 rm -rf conftest.dSYM
18974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18975 conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18978 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18979 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18980 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18981 cat >>confdefs.h <<_ACEOF
18982 #define HAVE_LIBDGC 1
18993 if test "${ac_cv_header_locale_h+set}" = set; then
18994 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18995 $as_echo_n "checking
for locale.h...
" >&6; }
18996 if test "${ac_cv_header_locale_h+set}" = set; then
18997 $as_echo_n "(cached
) " >&6
18999 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19000 $as_echo "$ac_cv_header_locale_h" >&6; }
19002 # Is the header compilable?
19003 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19004 $as_echo_n "checking locale.h usability...
" >&6; }
19005 cat >conftest.$ac_ext <<_ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 $ac_includes_default
19012 #include <locale.h>
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19021 $as_echo "$ac_try_echo") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 ac_header_compiler=yes
19034 $as_echo "$as_me: failed program was
:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 ac_header_compiler=no
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19042 $as_echo "$ac_header_compiler" >&6; }
19044 # Is the header present?
19045 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19046 $as_echo_n "checking locale.h presence...
" >&6; }
19047 cat >conftest.$ac_ext <<_ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19053 #include <locale.h>
19055 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19061 $as_echo "$ac_try_echo") >&5
19062 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19068 (exit $ac_status); } >/dev/null && {
19069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19072 ac_header_preproc=yes
19074 $as_echo "$as_me: failed program was
:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 ac_header_preproc=no
19080 rm -f conftest.err conftest.$ac_ext
19081 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19082 $as_echo "$ac_header_preproc" >&6; }
19084 # So? What about this header?
19085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19087 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19088 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19089 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19090 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19091 ac_header_preproc=yes
19094 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19095 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19096 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19097 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19098 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19099 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19100 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19101 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19102 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19103 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19104 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19105 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19109 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19110 $as_echo_n "checking
for locale.h...
" >&6; }
19111 if test "${ac_cv_header_locale_h+set}" = set; then
19112 $as_echo_n "(cached
) " >&6
19114 ac_cv_header_locale_h=$ac_header_preproc
19116 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19117 $as_echo "$ac_cv_header_locale_h" >&6; }
19123 for ac_func in setlocale
19125 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19126 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19127 $as_echo_n "checking
for $ac_func...
" >&6; }
19128 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19129 $as_echo_n "(cached
) " >&6
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19139 #define $ac_func innocuous_$ac_func
19141 /* System header to define __stub macros and hopefully few prototypes,
19142 which can conflict with char $ac_func (); below.
19143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19144 <limits.h> exists even on freestanding compilers. */
19147 # include <limits.h>
19149 # include <assert.h>
19154 /* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19161 /* The GNU C library defines this for functions which it implements
19162 to always fail with ENOSYS. Some functions are actually named
19163 something starting with __ and the normal name is an alias. */
19164 #if defined __stub_$ac_func || defined __stub___$ac_func
19171 return $ac_func ();
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (ac_try="$ac_link"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19183 $as_echo "$ac_try_echo") >&5
19184 (eval "$ac_link") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext && {
19194 test "$cross_compiling" = yes ||
19195 $as_test_x conftest$ac_exeext
19197 eval "$as_ac_var=yes"
19199 $as_echo "$as_me: failed program was
:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 eval "$as_ac_var=no
"
19205 rm -rf conftest.dSYM
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19209 ac_res=`eval 'as_val=${'$as_ac_var'}
19210 $as_echo "$as_val"'`
19211 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19212 $as_echo "$ac_res" >&6; }
19213 if test `eval 'as_val=${'$as_ac_var'}
19214 $as_echo "$as_val"'` = yes; then
19215 cat >>confdefs.h <<_ACEOF
19216 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19223 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19224 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19225 # Irix 4.0.5F has the header but not the library.
19226 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19229 cat >>confdefs.h <<\_ACEOF
19235 if test $ac_have_func = no; then
19236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19237 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19238 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19239 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19240 $as_echo_n "(cached
) " >&6
19242 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19243 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19245 # Is the header compilable?
19246 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19247 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 $ac_includes_default
19255 #include <inq_stats/cpustats.h>
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19264 $as_echo "$ac_try_echo") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest.$ac_objext; then
19275 ac_header_compiler=yes
19277 $as_echo "$as_me: failed program was
:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 ac_header_compiler=no
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19285 $as_echo "$ac_header_compiler" >&6; }
19287 # Is the header present?
19288 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19289 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19290 cat >conftest.$ac_ext <<_ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19296 #include <inq_stats/cpustats.h>
19298 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19299 case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19303 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19304 $as_echo "$ac_try_echo") >&5
19305 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19311 (exit $ac_status); } >/dev/null && {
19312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19315 ac_header_preproc=yes
19317 $as_echo "$as_me: failed program was
:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_header_preproc=no
19323 rm -f conftest.err conftest.$ac_ext
19324 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19325 $as_echo "$ac_header_preproc" >&6; }
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19330 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19331 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19332 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19333 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19334 ac_header_preproc=yes
19337 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19338 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19339 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19340 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19341 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19342 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19343 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19344 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19345 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19346 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19347 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19348 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19352 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19353 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19354 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19355 $as_echo_n "(cached
) " >&6
19357 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19359 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19360 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19363 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19366 cat >>confdefs.h <<\_ACEOF
19371 cat >>confdefs.h <<\_ACEOF
19380 if test $ac_have_func = no; then
19381 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19382 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19383 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19384 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19385 $as_echo_n "(cached
) " >&6
19387 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19388 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19390 # Is the header compilable?
19391 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19392 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 $ac_includes_default
19400 #include <sys/cpustats.h>
19402 rm -f conftest.$ac_objext
19403 if { (ac_try="$ac_compile"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19409 $as_echo "$ac_try_echo") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_header_compiler=yes
19422 $as_echo "$as_me: failed program was
:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_header_compiler=no
19428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19430 $as_echo "$ac_header_compiler" >&6; }
19432 # Is the header present?
19433 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19434 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19435 cat >conftest.$ac_ext <<_ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <sys/cpustats.h>
19443 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19448 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19449 $as_echo "$ac_try_echo") >&5
19450 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19452 grep -v '^ *+' conftest.er1 >conftest.err
19454 cat conftest.err >&5
19455 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19456 (exit $ac_status); } >/dev/null && {
19457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19458 test ! -s conftest.err
19460 ac_header_preproc=yes
19462 $as_echo "$as_me: failed program was
:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ac_header_preproc=no
19468 rm -f conftest.err conftest.$ac_ext
19469 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19470 $as_echo "$ac_header_preproc" >&6; }
19472 # So? What about this header?
19473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19475 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19476 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19477 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19478 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19479 ac_header_preproc=yes
19482 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19483 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19484 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19485 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19486 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19487 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19488 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19489 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19490 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19491 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19492 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19493 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19497 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19498 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19499 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19500 $as_echo_n "(cached
) " >&6
19502 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19504 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19505 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19508 if test $ac_cv_header_sys_cpustats_h = yes; then
19509 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19518 if test $ac_have_func = no; then
19520 for ac_header in mach/mach.h
19522 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19524 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19525 $as_echo_n "checking
for $ac_header...
" >&6; }
19526 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19527 $as_echo_n "(cached
) " >&6
19529 ac_res=`eval 'as_val=${'$as_ac_Header'}
19530 $as_echo "$as_val"'`
19531 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19532 $as_echo "$ac_res" >&6; }
19534 # Is the header compilable?
19535 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19536 $as_echo_n "checking
$ac_header usability...
" >&6; }
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 $ac_includes_default
19544 #include <$ac_header>
19546 rm -f conftest.$ac_objext
19547 if { (ac_try="$ac_compile"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19553 $as_echo "$ac_try_echo") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_header_compiler=yes
19566 $as_echo "$as_me: failed program was
:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_header_compiler=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19574 $as_echo "$ac_header_compiler" >&6; }
19576 # Is the header present?
19577 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19578 $as_echo_n "checking
$ac_header presence...
" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <$ac_header>
19587 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19593 $as_echo "$ac_try_echo") >&5
19594 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19600 (exit $ac_status); } >/dev/null && {
19601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19604 ac_header_preproc=yes
19606 $as_echo "$as_me: failed program was
:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_header_preproc=no
19612 rm -f conftest.err conftest.$ac_ext
19613 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19614 $as_echo "$ac_header_preproc" >&6; }
19616 # So? What about this header?
19617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19619 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19620 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19621 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19623 ac_header_preproc=yes
19626 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19627 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19628 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19629 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19630 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19631 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19632 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19633 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19634 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19636 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19637 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19641 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19642 $as_echo_n "checking
for $ac_header...
" >&6; }
19643 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19644 $as_echo_n "(cached
) " >&6
19646 eval "$as_ac_Header=\
$ac_header_preproc"
19648 ac_res=`eval 'as_val=${'$as_ac_Header'}
19649 $as_echo "$as_val"'`
19650 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19651 $as_echo "$ac_res" >&6; }
19654 if test `eval 'as_val=${'$as_ac_Header'}
19655 $as_echo "$as_val"'` = yes; then
19656 cat >>confdefs.h <<_ACEOF
19657 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19667 for ac_header in nlist.h
19669 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19671 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19672 $as_echo_n "checking
for $ac_header...
" >&6; }
19673 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19674 $as_echo_n "(cached
) " >&6
19676 ac_res=`eval 'as_val=${'$as_ac_Header'}
19677 $as_echo "$as_val"'`
19678 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19679 $as_echo "$ac_res" >&6; }
19681 # Is the header compilable?
19682 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19683 $as_echo_n "checking
$ac_header usability...
" >&6; }
19684 cat >conftest.$ac_ext <<_ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 $ac_includes_default
19691 #include <$ac_header>
19693 rm -f conftest.$ac_objext
19694 if { (ac_try="$ac_compile"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19700 $as_echo "$ac_try_echo") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest.$ac_objext; then
19711 ac_header_compiler=yes
19713 $as_echo "$as_me: failed program was
:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 ac_header_compiler=no
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19721 $as_echo "$ac_header_compiler" >&6; }
19723 # Is the header present?
19724 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19725 $as_echo_n "checking
$ac_header presence...
" >&6; }
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19732 #include <$ac_header>
19734 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19740 $as_echo "$ac_try_echo") >&5
19741 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19743 grep -v '^ *+' conftest.er1 >conftest.err
19745 cat conftest.err >&5
19746 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19747 (exit $ac_status); } >/dev/null && {
19748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19749 test ! -s conftest.err
19751 ac_header_preproc=yes
19753 $as_echo "$as_me: failed program was
:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_header_preproc=no
19759 rm -f conftest.err conftest.$ac_ext
19760 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19761 $as_echo "$ac_header_preproc" >&6; }
19763 # So? What about this header?
19764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19766 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19767 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19768 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19770 ac_header_preproc=yes
19773 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19774 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19775 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19776 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19777 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19778 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19779 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19780 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19781 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19783 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19784 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19788 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19789 $as_echo_n "checking
for $ac_header...
" >&6; }
19790 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19791 $as_echo_n "(cached
) " >&6
19793 eval "$as_ac_Header=\
$ac_header_preproc"
19795 ac_res=`eval 'as_val=${'$as_ac_Header'}
19796 $as_echo "$as_val"'`
19797 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19798 $as_echo "$ac_res" >&6; }
19801 if test `eval 'as_val=${'$as_ac_Header'}
19802 $as_echo "$as_val"'` = yes; then
19803 cat >>confdefs.h <<_ACEOF
19804 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19806 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19807 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19808 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19809 $as_echo_n "(cached
) " >&6
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19822 static struct nlist ac_aggr;
19823 if (ac_aggr.n_un.n_name)
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19835 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19836 $as_echo "$ac_try_echo") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19839 grep -v '^ *+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest.$ac_objext; then
19847 ac_cv_member_struct_nlist_n_un_n_name=yes
19849 $as_echo "$as_me: failed program was
:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19863 static struct nlist ac_aggr;
19864 if (sizeof ac_aggr.n_un.n_name)
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19877 $as_echo "$ac_try_echo") >&5
19878 (eval "$ac_compile") 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest.$ac_objext; then
19888 ac_cv_member_struct_nlist_n_un_n_name=yes
19890 $as_echo "$as_me: failed program was
:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_cv_member_struct_nlist_n_un_n_name=no
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19902 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19903 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19910 cat >>confdefs.h <<\_ACEOF
19911 #define NLIST_NAME_UNION 1
19925 # Some definitions of getloadavg require that the program be installed setgid.
19926 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19927 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19928 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19929 $as_echo_n "(cached
) " >&6
19931 cat >conftest.$ac_ext <<_ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19938 #ifdef LDAV_PRIVILEGED
19939 Yowza Am I SETGID yet
19942 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19943 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19944 ac_cv_func_getloadavg_setgid=yes
19946 ac_cv_func_getloadavg_setgid=no
19951 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19952 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19953 if test $ac_cv_func_getloadavg_setgid = yes; then
19956 cat >>confdefs.h <<\_ACEOF
19957 #define GETLOADAVG_PRIVILEGED 1
19964 if test $ac_cv_func_getloadavg_setgid = yes; then
19965 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19966 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
19967 if test "${ac_cv_group_kmem+set}" = set; then
19968 $as_echo_n "(cached
) " >&6
19970 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19971 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19972 # If we got an error (system does not support symlinks), try without -L.
19973 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19974 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19975 | sed -ne 's/[ ][ ]*/ /g;
19976 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19980 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19981 $as_echo "$ac_cv_group_kmem" >&6; }
19982 KMEM_GROUP=$ac_cv_group_kmem
19984 if test "x
$ac_save_LIBS" = x; then
19985 GETLOADAVG_LIBS=$LIBS
19987 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
19993 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19994 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
19995 if test "${ac_cv_sys_largefile_source+set}" = set; then
19996 $as_echo_n "(cached
) " >&6
19999 cat >conftest.$ac_ext <<_ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 #include <sys/types.h> /* for off_t */
20010 int (*fp) (FILE *, off_t, int) = fseeko;
20011 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20016 rm -f conftest.$ac_objext conftest$ac_exeext
20017 if { (ac_try="$ac_link"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20023 $as_echo "$ac_try_echo") >&5
20024 (eval "$ac_link") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest$ac_exeext && {
20034 test "$cross_compiling" = yes ||
20035 $as_test_x conftest$ac_exeext
20037 ac_cv_sys_largefile_source=no; break
20039 $as_echo "$as_me: failed program was
:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20045 rm -rf conftest.dSYM
20046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20047 conftest$ac_exeext conftest.$ac_ext
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 #define _LARGEFILE_SOURCE 1
20055 #include <sys/types.h> /* for off_t */
20060 int (*fp) (FILE *, off_t, int) = fseeko;
20061 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074 (eval "$ac_link") 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20080 (exit $ac_status); } && {
20081 test -z "$ac_c_werror_flag" ||
20082 test ! -s conftest.err
20083 } && test -s conftest$ac_exeext && {
20084 test "$cross_compiling" = yes ||
20085 $as_test_x conftest$ac_exeext
20087 ac_cv_sys_largefile_source=1; break
20089 $as_echo "$as_me: failed program was
:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20095 rm -rf conftest.dSYM
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
20098 ac_cv_sys_largefile_source=unknown
20102 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20103 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20104 case $ac_cv_sys_largefile_source in #(
20107 cat >>confdefs.h <<_ACEOF
20108 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20114 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20115 # in glibc 2.1.3, but that breaks too many other things.
20116 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20117 if test $ac_cv_sys_largefile_source != unknown; then
20119 cat >>confdefs.h <<\_ACEOF
20120 #define HAVE_FSEEKO 1
20126 # Configure getopt.
20127 # getopt.m4 serial 10
20129 # The getopt module assume you want GNU getopt, with getopt_long etc,
20130 # rather than vanilla POSIX getopt. This means your your code should
20131 # always include <getopt.h> for the getopt prototypes.
20143 # Prerequisites of lib/getopt*.
20150 for ac_header in getopt.h
20152 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20154 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20155 $as_echo_n "checking
for $ac_header...
" >&6; }
20156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20157 $as_echo_n "(cached
) " >&6
20159 ac_res=`eval 'as_val=${'$as_ac_Header'}
20160 $as_echo "$as_val"'`
20161 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20162 $as_echo "$ac_res" >&6; }
20164 # Is the header compilable?
20165 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20166 $as_echo_n "checking
$ac_header usability...
" >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20174 #include <$ac_header>
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20182 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20183 $as_echo "$ac_try_echo") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.$ac_objext; then
20194 ac_header_compiler=yes
20196 $as_echo "$as_me: failed program was
:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_header_compiler=no
20202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20204 $as_echo "$ac_header_compiler" >&6; }
20206 # Is the header present?
20207 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20208 $as_echo_n "checking
$ac_header presence...
" >&6; }
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <$ac_header>
20217 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20223 $as_echo "$ac_try_echo") >&5
20224 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20226 grep -v '^ *+' conftest.er1 >conftest.err
20228 cat conftest.err >&5
20229 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20230 (exit $ac_status); } >/dev/null && {
20231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20234 ac_header_preproc=yes
20236 $as_echo "$as_me: failed program was
:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_header_preproc=no
20242 rm -f conftest.err conftest.$ac_ext
20243 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20244 $as_echo "$ac_header_preproc" >&6; }
20246 # So? What about this header?
20247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20249 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20250 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20251 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20253 ac_header_preproc=yes
20256 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20257 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20258 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20259 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20260 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20261 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20262 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20263 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20264 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20266 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20267 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20271 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20272 $as_echo_n "checking
for $ac_header...
" >&6; }
20273 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20274 $as_echo_n "(cached
) " >&6
20276 eval "$as_ac_Header=\
$ac_header_preproc"
20278 ac_res=`eval 'as_val=${'$as_ac_Header'}
20279 $as_echo "$as_val"'`
20280 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20281 $as_echo "$ac_res" >&6; }
20284 if test `eval 'as_val=${'$as_ac_Header'}
20285 $as_echo "$as_val"'` = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20296 if test -z "$GETOPT_H"; then
20298 for ac_func in getopt_long_only
20300 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20301 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20302 $as_echo_n "checking
for $ac_func...
" >&6; }
20303 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20304 $as_echo_n "(cached
) " >&6
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20314 #define $ac_func innocuous_$ac_func
20316 /* System header to define __stub macros and hopefully few prototypes,
20317 which can conflict with char $ac_func (); below.
20318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20319 <limits.h> exists even on freestanding compilers. */
20322 # include <limits.h>
20324 # include <assert.h>
20329 /* Override any GCC internal prototype to avoid an error.
20330 Use char because int might match the return type of a GCC
20331 builtin and then its argument prototype would still apply. */
20336 /* The GNU C library defines this for functions which it implements
20337 to always fail with ENOSYS. Some functions are actually named
20338 something starting with __ and the normal name is an alias. */
20339 #if defined __stub_$ac_func || defined __stub___$ac_func
20346 return $ac_func ();
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (ac_try="$ac_link"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20358 $as_echo "$ac_try_echo") >&5
20359 (eval "$ac_link") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext && {
20369 test "$cross_compiling" = yes ||
20370 $as_test_x conftest$ac_exeext
20372 eval "$as_ac_var=yes"
20374 $as_echo "$as_me: failed program was
:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20377 eval "$as_ac_var=no
"
20380 rm -rf conftest.dSYM
20381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20382 conftest$ac_exeext conftest.$ac_ext
20384 ac_res=`eval 'as_val=${'$as_ac_var'}
20385 $as_echo "$as_val"'`
20386 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20387 $as_echo "$ac_res" >&6; }
20388 if test `eval 'as_val=${'$as_ac_var'}
20389 $as_echo "$as_val"'` = yes; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20401 if test -z "$GETOPT_H"; then
20402 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20403 $as_echo_n "checking whether optreset is declared...
" >&6; }
20404 if test "${ac_cv_have_decl_optreset+set}" = set; then
20405 $as_echo_n "(cached
) " >&6
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <getopt.h>
20426 rm -f conftest.$ac_objext
20427 if { (ac_try="$ac_compile"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20433 $as_echo "$ac_try_echo") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 ac_cv_have_decl_optreset=yes
20446 $as_echo "$as_me: failed program was
:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_cv_have_decl_optreset=no
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20455 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20456 if test $ac_cv_have_decl_optreset = yes; then
20462 if test -z "$GETOPT_H"; then
20463 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20464 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20465 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20466 $as_echo_n "(cached
) " >&6
20468 if test "$cross_compiling" = yes; then
20469 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20470 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20471 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20472 $as_echo_n "(cached
) " >&6
20474 cat >conftest.$ac_ext <<_ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 #include <getopt.h>
20485 #ifndef getopt_clip
20486 (void) getopt_clip;
20493 rm -f conftest.$ac_objext
20494 if { (ac_try="$ac_compile"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20499 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20500 $as_echo "$ac_try_echo") >&5
20501 (eval "$ac_compile") 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest.$ac_objext; then
20511 ac_cv_have_decl_getopt_clip=yes
20513 $as_echo "$as_me: failed program was
:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_cv_have_decl_getopt_clip=no
20519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20522 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20523 if test $ac_cv_have_decl_getopt_clip = yes; then
20524 gl_cv_func_gnu_getopt=no
20526 gl_cv_func_gnu_getopt=yes
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <getopt.h>
20542 myargv[0] = "conftest
";
20545 return getopt (2, myargv, "+a
") != '?';
20551 rm -f conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>&5
20561 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20563 { (case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20567 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20568 $as_echo "$ac_try_echo") >&5
20569 (eval "$ac_try") 2>&5
20571 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 gl_cv_func_gnu_getopt=yes
20575 $as_echo "$as_me: program exited with status
$ac_status" >&5
20576 $as_echo "$as_me: failed program was
:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ( exit $ac_status )
20580 gl_cv_func_gnu_getopt=no
20582 rm -rf conftest.dSYM
20583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20588 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20589 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20590 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20597 if test -n "$GETOPT_H"; then
20602 cat >>confdefs.h <<\_ACEOF
20603 #define __GETOPT_PREFIX rpl_
20609 GETOPTOBJS='getopt.o getopt1.o'
20616 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20617 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20618 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20619 $as_echo_n "(cached
) " >&6
20621 # Use it with a single arg.
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 $ac_includes_default
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20644 $as_echo "$ac_try_echo") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 ac_cv_func_getpgrp_void=no
20657 $as_echo "$as_me: failed program was
:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_func_getpgrp_void=yes
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20667 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20668 if test $ac_cv_func_getpgrp_void = yes; then
20670 cat >>confdefs.h <<\_ACEOF
20671 #define GETPGRP_VOID 1
20678 for ac_func in strftime
20680 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20681 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20682 $as_echo_n "checking
for $ac_func...
" >&6; }
20683 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20684 $as_echo_n "(cached
) " >&6
20686 cat >conftest.$ac_ext <<_ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20694 #define $ac_func innocuous_$ac_func
20696 /* System header to define __stub macros and hopefully few prototypes,
20697 which can conflict with char $ac_func (); below.
20698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20699 <limits.h> exists even on freestanding compilers. */
20702 # include <limits.h>
20704 # include <assert.h>
20709 /* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20716 /* The GNU C library defines this for functions which it implements
20717 to always fail with ENOSYS. Some functions are actually named
20718 something starting with __ and the normal name is an alias. */
20719 #if defined __stub_$ac_func || defined __stub___$ac_func
20726 return $ac_func ();
20731 rm -f conftest.$ac_objext conftest$ac_exeext
20732 if { (ac_try="$ac_link"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20738 $as_echo "$ac_try_echo") >&5
20739 (eval "$ac_link") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest$ac_exeext && {
20749 test "$cross_compiling" = yes ||
20750 $as_test_x conftest$ac_exeext
20752 eval "$as_ac_var=yes"
20754 $as_echo "$as_me: failed program was
:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 eval "$as_ac_var=no
"
20760 rm -rf conftest.dSYM
20761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762 conftest$ac_exeext conftest.$ac_ext
20764 ac_res=`eval 'as_val=${'$as_ac_var'}
20765 $as_echo "$as_val"'`
20766 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20767 $as_echo "$ac_res" >&6; }
20768 if test `eval 'as_val=${'$as_ac_var'}
20769 $as_echo "$as_val"'` = yes; then
20770 cat >>confdefs.h <<_ACEOF
20771 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20775 # strftime is in -lintl on SCO UNIX.
20776 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20777 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20778 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20779 $as_echo_n "(cached
) " >&6
20781 ac_check_lib_save_LIBS=$LIBS
20782 LIBS="-lintl $LIBS"
20783 cat >conftest.$ac_ext <<_ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20790 /* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
20800 return strftime ();
20805 rm -f conftest.$ac_objext conftest$ac_exeext
20806 if { (ac_try="$ac_link"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20811 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20812 $as_echo "$ac_try_echo") >&5
20813 (eval "$ac_link") 2>conftest.er1
20815 grep -v '^ *+' conftest.er1 >conftest.err
20817 cat conftest.err >&5
20818 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest$ac_exeext && {
20823 test "$cross_compiling" = yes ||
20824 $as_test_x conftest$ac_exeext
20826 ac_cv_lib_intl_strftime=yes
20828 $as_echo "$as_me: failed program was
:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_cv_lib_intl_strftime=no
20834 rm -rf conftest.dSYM
20835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 conftest$ac_exeext conftest.$ac_ext
20837 LIBS=$ac_check_lib_save_LIBS
20839 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20840 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20841 if test $ac_cv_lib_intl_strftime = yes; then
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_STRFTIME 1
20846 LIBS="-lintl $LIBS"
20855 for ac_func in grantpt
20857 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20858 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20859 $as_echo_n "checking
for $ac_func...
" >&6; }
20860 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20861 $as_echo_n "(cached
) " >&6
20863 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20871 #define $ac_func innocuous_$ac_func
20873 /* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char $ac_func (); below.
20875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876 <limits.h> exists even on freestanding compilers. */
20879 # include <limits.h>
20881 # include <assert.h>
20886 /* Override any GCC internal prototype to avoid an error.
20887 Use char because int might match the return type of a GCC
20888 builtin and then its argument prototype would still apply. */
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined __stub_$ac_func || defined __stub___$ac_func
20903 return $ac_func ();
20908 rm -f conftest.$ac_objext conftest$ac_exeext
20909 if { (ac_try="$ac_link"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20915 $as_echo "$ac_try_echo") >&5
20916 (eval "$ac_link") 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest$ac_exeext && {
20926 test "$cross_compiling" = yes ||
20927 $as_test_x conftest$ac_exeext
20929 eval "$as_ac_var=yes"
20931 $as_echo "$as_me: failed program was
:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 eval "$as_ac_var=no
"
20937 rm -rf conftest.dSYM
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20941 ac_res=`eval 'as_val=${'$as_ac_var'}
20942 $as_echo "$as_val"'`
20943 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20944 $as_echo "$ac_res" >&6; }
20945 if test `eval 'as_val=${'$as_ac_var'}
20946 $as_echo "$as_val"'` = yes; then
20947 cat >>confdefs.h <<_ACEOF
20948 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20955 # PTY-related GNU extensions.
20957 for ac_func in getpt
20959 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20960 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20961 $as_echo_n "checking
for $ac_func...
" >&6; }
20962 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20963 $as_echo_n "(cached
) " >&6
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20973 #define $ac_func innocuous_$ac_func
20975 /* System header to define __stub macros and hopefully few prototypes,
20976 which can conflict with char $ac_func (); below.
20977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20978 <limits.h> exists even on freestanding compilers. */
20981 # include <limits.h>
20983 # include <assert.h>
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20995 /* The GNU C library defines this for functions which it implements
20996 to always fail with ENOSYS. Some functions are actually named
20997 something starting with __ and the normal name is an alias. */
20998 #if defined __stub_$ac_func || defined __stub___$ac_func
21005 return $ac_func ();
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21016 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21017 $as_echo "$ac_try_echo") >&5
21018 (eval "$ac_link") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest$ac_exeext && {
21028 test "$cross_compiling" = yes ||
21029 $as_test_x conftest$ac_exeext
21031 eval "$as_ac_var=yes"
21033 $as_echo "$as_me: failed program was
:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 eval "$as_ac_var=no
"
21039 rm -rf conftest.dSYM
21040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041 conftest$ac_exeext conftest.$ac_ext
21043 ac_res=`eval 'as_val=${'$as_ac_var'}
21044 $as_echo "$as_val"'`
21045 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21046 $as_echo "$ac_res" >&6; }
21047 if test `eval 'as_val=${'$as_ac_var'}
21048 $as_echo "$as_val"'` = yes; then
21049 cat >>confdefs.h <<_ACEOF
21050 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21057 # Check this now, so that we will NOT find the above functions in ncurses.
21058 # That is because we have not set up to link ncurses in lib-src.
21059 # It's better to believe a function is not available
21060 # than to expect to find it in ncurses.
21061 # Also we need tputs and frieds to be able to build at all.
21062 have_tputs_et_al=true
21063 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21064 $as_echo_n "checking
for library containing tputs...
" >&6; }
21065 if test "${ac_cv_search_tputs+set}" = set; then
21066 $as_echo_n "(cached
) " >&6
21068 ac_func_search_save_LIBS=$LIBS
21069 cat >conftest.$ac_ext <<_ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21091 for ac_lib in '' ncurses terminfo termcap; do
21092 if test -z "$ac_lib"; then
21093 ac_res="none required
"
21096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21104 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21105 $as_echo "$ac_try_echo") >&5
21106 (eval "$ac_link") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest$ac_exeext && {
21116 test "$cross_compiling" = yes ||
21117 $as_test_x conftest$ac_exeext
21119 ac_cv_search_tputs=$ac_res
21121 $as_echo "$as_me: failed program was
:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21127 rm -rf conftest.dSYM
21128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21130 if test "${ac_cv_search_tputs+set}" = set; then
21134 if test "${ac_cv_search_tputs+set}" = set; then
21137 ac_cv_search_tputs=no
21139 rm conftest.$ac_ext
21140 LIBS=$ac_func_search_save_LIBS
21142 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21143 $as_echo "$ac_cv_search_tputs" >&6; }
21144 ac_res=$ac_cv_search_tputs
21145 if test "$ac_res" != no; then
21146 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21149 have_tputs_et_al=false
21152 if test "$have_tputs_et_al" != true; then
21153 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21154 Maybe some development libraries/packages are missing? Try installing
21155 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21156 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21157 Maybe some development libraries
/packages are missing? Try installing
21158 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21159 { (exit 1); exit 1; }; }
21161 # Must define this when any termcap library is found.
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_LIBNCURSES 1
21167 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21170 cat >conftest.$ac_ext <<_ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 #include <netinet/in.h>
21177 #include <arpa/nameser.h>
21178 #include <resolv.h>
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21193 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21194 $as_echo "$ac_try_echo") >&5
21195 (eval "$ac_link") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest$ac_exeext && {
21205 test "$cross_compiling" = yes ||
21206 $as_test_x conftest$ac_exeext
21210 $as_echo "$as_me: failed program was
:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21216 rm -rf conftest.dSYM
21217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21218 conftest$ac_exeext conftest.$ac_ext
21219 if test "$have_res_init" = no; then
21221 LIBS="$LIBS -lresolv"
21222 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21223 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 #include <netinet/in.h>
21231 #include <arpa/nameser.h>
21232 #include <resolv.h>
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21247 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21248 $as_echo "$ac_try_echo") >&5
21249 (eval "$ac_link") 2>conftest.er1
21251 grep -v '^ *+' conftest.er1 >conftest.err
21253 cat conftest.err >&5
21254 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest$ac_exeext && {
21259 test "$cross_compiling" = yes ||
21260 $as_test_x conftest$ac_exeext
21264 $as_echo "$as_me: failed program was
:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21270 rm -rf conftest.dSYM
21271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21272 conftest$ac_exeext conftest.$ac_ext
21273 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21274 $as_echo "$have_res_init" >&6; }
21275 if test "$have_res_init" = yes ; then
21281 if test "$have_res_init" = yes; then
21283 cat >>confdefs.h <<\_ACEOF
21284 #define HAVE_RES_INIT 1
21289 # Do we need the Hesiod library to provide the support routines?
21291 if test "$with_hesiod" != no ; then
21292 # Don't set $LIBS here -- see comments above. FIXME which comments?
21293 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21294 $as_echo_n "checking
for res_send...
" >&6; }
21295 if test "${ac_cv_func_res_send+set}" = set; then
21296 $as_echo_n "(cached
) " >&6
21298 cat >conftest.$ac_ext <<_ACEOF
21301 cat confdefs.h >>conftest.$ac_ext
21302 cat >>conftest.$ac_ext <<_ACEOF
21303 /* end confdefs.h. */
21304 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21306 #define res_send innocuous_res_send
21308 /* System header to define __stub macros and hopefully few prototypes,
21309 which can conflict with char res_send (); below.
21310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21311 <limits.h> exists even on freestanding compilers. */
21314 # include <limits.h>
21316 # include <assert.h>
21321 /* Override any GCC internal prototype to avoid an error.
21322 Use char because int might match the return type of a GCC
21323 builtin and then its argument prototype would still apply. */
21328 /* The GNU C library defines this for functions which it implements
21329 to always fail with ENOSYS. Some functions are actually named
21330 something starting with __ and the normal name is an alias. */
21331 #if defined __stub_res_send || defined __stub___res_send
21338 return res_send ();
21343 rm -f conftest.$ac_objext conftest$ac_exeext
21344 if { (ac_try="$ac_link"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21349 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21350 $as_echo "$ac_try_echo") >&5
21351 (eval "$ac_link") 2>conftest.er1
21353 grep -v '^ *+' conftest.er1 >conftest.err
21355 cat conftest.err >&5
21356 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21357 (exit $ac_status); } && {
21358 test -z "$ac_c_werror_flag" ||
21359 test ! -s conftest.err
21360 } && test -s conftest$ac_exeext && {
21361 test "$cross_compiling" = yes ||
21362 $as_test_x conftest$ac_exeext
21364 ac_cv_func_res_send=yes
21366 $as_echo "$as_me: failed program was
:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_cv_func_res_send=no
21372 rm -rf conftest.dSYM
21373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21374 conftest$ac_exeext conftest.$ac_ext
21376 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21377 $as_echo "$ac_cv_func_res_send" >&6; }
21378 if test $ac_cv_func_res_send = yes; then
21381 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21382 $as_echo_n "checking
for __res_send...
" >&6; }
21383 if test "${ac_cv_func___res_send+set}" = set; then
21384 $as_echo_n "(cached
) " >&6
21386 cat >conftest.$ac_ext <<_ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21392 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21394 #define __res_send innocuous___res_send
21396 /* System header to define __stub macros and hopefully few prototypes,
21397 which can conflict with char __res_send (); below.
21398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21399 <limits.h> exists even on freestanding compilers. */
21402 # include <limits.h>
21404 # include <assert.h>
21409 /* Override any GCC internal prototype to avoid an error.
21410 Use char because int might match the return type of a GCC
21411 builtin and then its argument prototype would still apply. */
21415 char __res_send ();
21416 /* The GNU C library defines this for functions which it implements
21417 to always fail with ENOSYS. Some functions are actually named
21418 something starting with __ and the normal name is an alias. */
21419 #if defined __stub___res_send || defined __stub_____res_send
21426 return __res_send ();
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21438 $as_echo "$ac_try_echo") >&5
21439 (eval "$ac_link") 2>conftest.er1
21441 grep -v '^ *+' conftest.er1 >conftest.err
21443 cat conftest.err >&5
21444 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest$ac_exeext && {
21449 test "$cross_compiling" = yes ||
21450 $as_test_x conftest$ac_exeext
21452 ac_cv_func___res_send=yes
21454 $as_echo "$as_me: failed program was
:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_cv_func___res_send=no
21460 rm -rf conftest.dSYM
21461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462 conftest$ac_exeext conftest.$ac_ext
21464 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21465 $as_echo "$ac_cv_func___res_send" >&6; }
21466 if test $ac_cv_func___res_send = yes; then
21469 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21470 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21471 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21472 $as_echo_n "(cached
) " >&6
21474 ac_check_lib_save_LIBS=$LIBS
21475 LIBS="-lresolv $LIBS"
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21483 /* Override any GCC internal prototype to avoid an error.
21484 Use char because int might match the return type of a GCC
21485 builtin and then its argument prototype would still apply. */
21493 return res_send ();
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21505 $as_echo "$ac_try_echo") >&5
21506 (eval "$ac_link") 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21512 (exit $ac_status); } && {
21513 test -z "$ac_c_werror_flag" ||
21514 test ! -s conftest.err
21515 } && test -s conftest$ac_exeext && {
21516 test "$cross_compiling" = yes ||
21517 $as_test_x conftest$ac_exeext
21519 ac_cv_lib_resolv_res_send=yes
21521 $as_echo "$as_me: failed program was
:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21524 ac_cv_lib_resolv_res_send=no
21527 rm -rf conftest.dSYM
21528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21529 conftest$ac_exeext conftest.$ac_ext
21530 LIBS=$ac_check_lib_save_LIBS
21532 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21533 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21534 if test $ac_cv_lib_resolv_res_send = yes; then
21537 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21538 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21539 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21540 $as_echo_n "(cached
) " >&6
21542 ac_check_lib_save_LIBS=$LIBS
21543 LIBS="-lresolv $LIBS"
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21551 /* Override any GCC internal prototype to avoid an error.
21552 Use char because int might match the return type of a GCC
21553 builtin and then its argument prototype would still apply. */
21557 char __res_send ();
21561 return __res_send ();
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (ac_try="$ac_link"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21573 $as_echo "$ac_try_echo") >&5
21574 (eval "$ac_link") 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest$ac_exeext && {
21584 test "$cross_compiling" = yes ||
21585 $as_test_x conftest$ac_exeext
21587 ac_cv_lib_resolv___res_send=yes
21589 $as_echo "$as_me: failed program was
:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_cv_lib_resolv___res_send=no
21595 rm -rf conftest.dSYM
21596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21597 conftest$ac_exeext conftest.$ac_ext
21598 LIBS=$ac_check_lib_save_LIBS
21600 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21601 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21602 if test $ac_cv_lib_resolv___res_send = yes; then
21612 if test "$resolv" = yes ; then
21617 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21618 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21619 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21620 $as_echo_n "(cached
) " >&6
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21630 #define hes_getmailhost innocuous_hes_getmailhost
21632 /* System header to define __stub macros and hopefully few prototypes,
21633 which can conflict with char hes_getmailhost (); below.
21634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21635 <limits.h> exists even on freestanding compilers. */
21638 # include <limits.h>
21640 # include <assert.h>
21643 #undef hes_getmailhost
21645 /* Override any GCC internal prototype to avoid an error.
21646 Use char because int might match the return type of a GCC
21647 builtin and then its argument prototype would still apply. */
21651 char hes_getmailhost ();
21652 /* The GNU C library defines this for functions which it implements
21653 to always fail with ENOSYS. Some functions are actually named
21654 something starting with __ and the normal name is an alias. */
21655 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21662 return hes_getmailhost ();
21667 rm -f conftest.$ac_objext conftest$ac_exeext
21668 if { (ac_try="$ac_link"
21669 case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21674 $as_echo "$ac_try_echo") >&5
21675 (eval "$ac_link") 2>conftest.er1
21677 grep -v '^ *+' conftest.er1 >conftest.err
21679 cat conftest.err >&5
21680 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21681 (exit $ac_status); } && {
21682 test -z "$ac_c_werror_flag" ||
21683 test ! -s conftest.err
21684 } && test -s conftest$ac_exeext && {
21685 test "$cross_compiling" = yes ||
21686 $as_test_x conftest$ac_exeext
21688 ac_cv_func_hes_getmailhost=yes
21690 $as_echo "$as_me: failed program was
:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_cv_func_hes_getmailhost=no
21696 rm -rf conftest.dSYM
21697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21698 conftest$ac_exeext conftest.$ac_ext
21700 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21701 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21702 if test $ac_cv_func_hes_getmailhost = yes; then
21705 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21706 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21707 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21708 $as_echo_n "(cached
) " >&6
21710 ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lhesiod $RESOLVLIB $LIBS"
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21719 /* Override any GCC internal prototype to avoid an error.
21720 Use char because int might match the return type of a GCC
21721 builtin and then its argument prototype would still apply. */
21725 char hes_getmailhost ();
21729 return hes_getmailhost ();
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (ac_try="$ac_link"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21740 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21741 $as_echo "$ac_try_echo") >&5
21742 (eval "$ac_link") 2>conftest.er1
21744 grep -v '^ *+' conftest.er1 >conftest.err
21746 cat conftest.err >&5
21747 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21748 (exit $ac_status); } && {
21749 test -z "$ac_c_werror_flag" ||
21750 test ! -s conftest.err
21751 } && test -s conftest$ac_exeext && {
21752 test "$cross_compiling" = yes ||
21753 $as_test_x conftest$ac_exeext
21755 ac_cv_lib_hesiod_hes_getmailhost=yes
21757 $as_echo "$as_me: failed program was
:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 ac_cv_lib_hesiod_hes_getmailhost=no
21763 rm -rf conftest.dSYM
21764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21765 conftest$ac_exeext conftest.$ac_ext
21766 LIBS=$ac_check_lib_save_LIBS
21768 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21769 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21770 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21779 if test x"$hesiod" = xyes; then
21781 cat >>confdefs.h <<\_ACEOF
21782 #define HAVE_LIBHESIOD 1
21790 # Do we need libresolv (due to res_init or Hesiod)?
21791 if test "$resolv" = yes ; then
21793 cat >>confdefs.h <<\_ACEOF
21794 #define HAVE_LIBRESOLV 1
21803 # These tell us which Kerberos-related libraries to use.
21810 if test "${with_kerberos}" != no; then
21811 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21812 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21813 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21814 $as_echo_n "(cached
) " >&6
21816 ac_check_lib_save_LIBS=$LIBS
21817 LIBS="-lcom_err $LIBS"
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21825 /* Override any GCC internal prototype to avoid an error.
21826 Use char because int might match the return type of a GCC
21827 builtin and then its argument prototype would still apply. */
21840 rm -f conftest.$ac_objext conftest$ac_exeext
21841 if { (ac_try="$ac_link"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21847 $as_echo "$ac_try_echo") >&5
21848 (eval "$ac_link") 2>conftest.er1
21850 grep -v '^ *+' conftest.er1 >conftest.err
21852 cat conftest.err >&5
21853 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21854 (exit $ac_status); } && {
21855 test -z "$ac_c_werror_flag" ||
21856 test ! -s conftest.err
21857 } && test -s conftest$ac_exeext && {
21858 test "$cross_compiling" = yes ||
21859 $as_test_x conftest$ac_exeext
21861 ac_cv_lib_com_err_com_err=yes
21863 $as_echo "$as_me: failed program was
:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_cv_lib_com_err_com_err=no
21869 rm -rf conftest.dSYM
21870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21871 conftest$ac_exeext conftest.$ac_ext
21872 LIBS=$ac_check_lib_save_LIBS
21874 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21875 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21876 if test $ac_cv_lib_com_err_com_err = yes; then
21882 if test $have_com_err = yes; then
21883 COM_ERRLIB=-lcom_err
21884 LIBS="$COM_ERRLIB $LIBS"
21886 cat >>confdefs.h <<\_ACEOF
21887 #define HAVE_LIBCOM_ERR 1
21891 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21892 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21893 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21894 $as_echo_n "(cached
) " >&6
21896 ac_check_lib_save_LIBS=$LIBS
21897 LIBS="-lcrypto $LIBS"
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21911 char mit_des_cbc_encrypt ();
21915 return mit_des_cbc_encrypt ();
21920 rm -f conftest.$ac_objext conftest$ac_exeext
21921 if { (ac_try="$ac_link"
21922 case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21926 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21927 $as_echo "$ac_try_echo") >&5
21928 (eval "$ac_link") 2>conftest.er1
21930 grep -v '^ *+' conftest.er1 >conftest.err
21932 cat conftest.err >&5
21933 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest$ac_exeext && {
21938 test "$cross_compiling" = yes ||
21939 $as_test_x conftest$ac_exeext
21941 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21943 $as_echo "$as_me: failed program was
:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21949 rm -rf conftest.dSYM
21950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21951 conftest$ac_exeext conftest.$ac_ext
21952 LIBS=$ac_check_lib_save_LIBS
21954 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21955 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21956 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21962 if test $have_crypto = yes; then
21964 LIBS="$CRYPTOLIB $LIBS"
21966 cat >>confdefs.h <<\_ACEOF
21967 #define HAVE_LIBCRYPTO 1
21971 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21972 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
21973 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21974 $as_echo_n "(cached
) " >&6
21976 ac_check_lib_save_LIBS=$LIBS
21977 LIBS="-lk5crypto $LIBS"
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21985 /* Override any GCC internal prototype to avoid an error.
21986 Use char because int might match the return type of a GCC
21987 builtin and then its argument prototype would still apply. */
21991 char mit_des_cbc_encrypt ();
21995 return mit_des_cbc_encrypt ();
22000 rm -f conftest.$ac_objext conftest$ac_exeext
22001 if { (ac_try="$ac_link"
22002 case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22007 $as_echo "$ac_try_echo") >&5
22008 (eval "$ac_link") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22014 (exit $ac_status); } && {
22015 test -z "$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 } && test -s conftest$ac_exeext && {
22018 test "$cross_compiling" = yes ||
22019 $as_test_x conftest$ac_exeext
22021 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22023 $as_echo "$as_me: failed program was
:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22029 rm -rf conftest.dSYM
22030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22031 conftest$ac_exeext conftest.$ac_ext
22032 LIBS=$ac_check_lib_save_LIBS
22034 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22035 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22036 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22042 if test $have_k5crypto = yes; then
22043 CRYPTOLIB=-lk5crypto
22044 LIBS="$CRYPTOLIB $LIBS"
22046 cat >>confdefs.h <<\_ACEOF
22047 #define HAVE_LIBK5CRYPTO 1
22051 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22052 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22053 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22054 $as_echo_n "(cached
) " >&6
22056 ac_check_lib_save_LIBS=$LIBS
22057 LIBS="-lkrb5 $LIBS"
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22065 /* Override any GCC internal prototype to avoid an error.
22066 Use char because int might match the return type of a GCC
22067 builtin and then its argument prototype would still apply. */
22071 char krb5_init_context ();
22075 return krb5_init_context ();
22080 rm -f conftest.$ac_objext conftest$ac_exeext
22081 if { (ac_try="$ac_link"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22086 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22087 $as_echo "$ac_try_echo") >&5
22088 (eval "$ac_link") 2>conftest.er1
22090 grep -v '^ *+' conftest.er1 >conftest.err
22092 cat conftest.err >&5
22093 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22094 (exit $ac_status); } && {
22095 test -z "$ac_c_werror_flag" ||
22096 test ! -s conftest.err
22097 } && test -s conftest$ac_exeext && {
22098 test "$cross_compiling" = yes ||
22099 $as_test_x conftest$ac_exeext
22101 ac_cv_lib_krb5_krb5_init_context=yes
22103 $as_echo "$as_me: failed program was
:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_cv_lib_krb5_krb5_init_context=no
22109 rm -rf conftest.dSYM
22110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22111 conftest$ac_exeext conftest.$ac_ext
22112 LIBS=$ac_check_lib_save_LIBS
22114 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22115 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22116 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22122 if test $have_krb5=yes; then
22124 LIBS="$KRB5LIB $LIBS"
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_LIBKRB5 1
22131 if test "${with_kerberos5}" = no; then
22132 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22133 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22134 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22135 $as_echo_n "(cached
) " >&6
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-ldes425 $LIBS"
22139 cat >conftest.$ac_ext <<_ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22152 char des_cbc_encrypt ();
22156 return des_cbc_encrypt ();
22161 rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169 (eval "$ac_link") 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest$ac_exeext && {
22179 test "$cross_compiling" = yes ||
22180 $as_test_x conftest$ac_exeext
22182 ac_cv_lib_des425_des_cbc_encrypt=yes
22184 $as_echo "$as_me: failed program was
:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ac_cv_lib_des425_des_cbc_encrypt=no
22190 rm -rf conftest.dSYM
22191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22192 conftest$ac_exeext conftest.$ac_ext
22193 LIBS=$ac_check_lib_save_LIBS
22195 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22196 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22197 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22203 if test $have_des425 = yes; then
22205 LIBS="$DESLIB $LIBS"
22207 cat >>confdefs.h <<\_ACEOF
22208 #define HAVE_LIBDES425 1
22212 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22213 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22214 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22215 $as_echo_n "(cached
) " >&6
22217 ac_check_lib_save_LIBS=$LIBS
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22232 char des_cbc_encrypt ();
22236 return des_cbc_encrypt ();
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22247 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22248 $as_echo "$ac_try_echo") >&5
22249 (eval "$ac_link") 2>conftest.er1
22251 grep -v '^ *+' conftest.er1 >conftest.err
22253 cat conftest.err >&5
22254 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest$ac_exeext && {
22259 test "$cross_compiling" = yes ||
22260 $as_test_x conftest$ac_exeext
22262 ac_cv_lib_des_des_cbc_encrypt=yes
22264 $as_echo "$as_me: failed program was
:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ac_cv_lib_des_des_cbc_encrypt=no
22270 rm -rf conftest.dSYM
22271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22272 conftest$ac_exeext conftest.$ac_ext
22273 LIBS=$ac_check_lib_save_LIBS
22275 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22276 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22277 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22283 if test $have_des = yes; then
22285 LIBS="$DESLIB $LIBS"
22287 cat >>confdefs.h <<\_ACEOF
22288 #define HAVE_LIBDES 1
22293 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22294 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22295 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22296 $as_echo_n "(cached
) " >&6
22298 ac_check_lib_save_LIBS=$LIBS
22299 LIBS="-lkrb4 $LIBS"
22300 cat >conftest.$ac_ext <<_ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22307 /* Override any GCC internal prototype to avoid an error.
22308 Use char because int might match the return type of a GCC
22309 builtin and then its argument prototype would still apply. */
22313 char krb_get_cred ();
22317 return krb_get_cred ();
22322 rm -f conftest.$ac_objext conftest$ac_exeext
22323 if { (ac_try="$ac_link"
22324 case "(($ac_try" in
22325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22328 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22329 $as_echo "$ac_try_echo") >&5
22330 (eval "$ac_link") 2>conftest.er1
22332 grep -v '^ *+' conftest.er1 >conftest.err
22334 cat conftest.err >&5
22335 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest$ac_exeext && {
22340 test "$cross_compiling" = yes ||
22341 $as_test_x conftest$ac_exeext
22343 ac_cv_lib_krb4_krb_get_cred=yes
22345 $as_echo "$as_me: failed program was
:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ac_cv_lib_krb4_krb_get_cred=no
22351 rm -rf conftest.dSYM
22352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22353 conftest$ac_exeext conftest.$ac_ext
22354 LIBS=$ac_check_lib_save_LIBS
22356 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22357 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22358 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22364 if test $have_krb4 = yes; then
22366 LIBS="$KRB4LIB $LIBS"
22368 cat >>confdefs.h <<\_ACEOF
22369 #define HAVE_LIBKRB4 1
22373 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22374 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22375 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22376 $as_echo_n "(cached
) " >&6
22378 ac_check_lib_save_LIBS=$LIBS
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22387 /* Override any GCC internal prototype to avoid an error.
22388 Use char because int might match the return type of a GCC
22389 builtin and then its argument prototype would still apply. */
22393 char krb_get_cred ();
22397 return krb_get_cred ();
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22408 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22409 $as_echo "$ac_try_echo") >&5
22410 (eval "$ac_link") 2>conftest.er1
22412 grep -v '^ *+' conftest.er1 >conftest.err
22414 cat conftest.err >&5
22415 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest$ac_exeext && {
22420 test "$cross_compiling" = yes ||
22421 $as_test_x conftest$ac_exeext
22423 ac_cv_lib_krb_krb_get_cred=yes
22425 $as_echo "$as_me: failed program was
:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22428 ac_cv_lib_krb_krb_get_cred=no
22431 rm -rf conftest.dSYM
22432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22433 conftest$ac_exeext conftest.$ac_ext
22434 LIBS=$ac_check_lib_save_LIBS
22436 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22437 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22438 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22444 if test $have_krb = yes; then
22446 LIBS="$KRB4LIB $LIBS"
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_LIBKRB 1
22456 if test "${with_kerberos5}" != no; then
22458 for ac_header in krb5.h
22460 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22462 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22463 $as_echo_n "checking
for $ac_header...
" >&6; }
22464 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22465 $as_echo_n "(cached
) " >&6
22467 ac_res=`eval 'as_val=${'$as_ac_Header'}
22468 $as_echo "$as_val"'`
22469 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22470 $as_echo "$ac_res" >&6; }
22472 # Is the header compilable?
22473 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22474 $as_echo_n "checking
$ac_header usability...
" >&6; }
22475 cat >conftest.$ac_ext <<_ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h. */
22481 $ac_includes_default
22482 #include <$ac_header>
22484 rm -f conftest.$ac_objext
22485 if { (ac_try="$ac_compile"
22486 case "(($ac_try" in
22487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488 *) ac_try_echo=$ac_try;;
22490 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22491 $as_echo "$ac_try_echo") >&5
22492 (eval "$ac_compile") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest.$ac_objext; then
22502 ac_header_compiler=yes
22504 $as_echo "$as_me: failed program was
:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_header_compiler=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22512 $as_echo "$ac_header_compiler" >&6; }
22514 # Is the header present?
22515 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22516 $as_echo_n "checking
$ac_header presence...
" >&6; }
22517 cat >conftest.$ac_ext <<_ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 #include <$ac_header>
22525 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22531 $as_echo "$ac_try_echo") >&5
22532 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22538 (exit $ac_status); } >/dev/null && {
22539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22542 ac_header_preproc=yes
22544 $as_echo "$as_me: failed program was
:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_header_preproc=no
22550 rm -f conftest.err conftest.$ac_ext
22551 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22552 $as_echo "$ac_header_preproc" >&6; }
22554 # So? What about this header?
22555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22557 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22558 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22559 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22561 ac_header_preproc=yes
22564 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22565 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22566 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22567 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22568 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22569 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22570 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22571 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22572 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22574 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22575 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22579 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22580 $as_echo_n "checking
for $ac_header...
" >&6; }
22581 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22582 $as_echo_n "(cached
) " >&6
22584 eval "$as_ac_Header=\
$ac_header_preproc"
22586 ac_res=`eval 'as_val=${'$as_ac_Header'}
22587 $as_echo "$as_val"'`
22588 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22589 $as_echo "$ac_res" >&6; }
22592 if test `eval 'as_val=${'$as_ac_Header'}
22593 $as_echo "$as_val"'` = yes; then
22594 cat >>confdefs.h <<_ACEOF
22595 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22597 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22598 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22599 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22600 $as_echo_n "(cached
) " >&6
22602 cat >conftest.$ac_ext <<_ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22613 static krb5_error ac_aggr;
22620 rm -f conftest.$ac_objext
22621 if { (ac_try="$ac_compile"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22627 $as_echo "$ac_try_echo") >&5
22628 (eval "$ac_compile") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest.$ac_objext; then
22638 ac_cv_member_krb5_error_text=yes
22640 $as_echo "$as_me: failed program was
:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 cat >conftest.$ac_ext <<_ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22654 static krb5_error ac_aggr;
22655 if (sizeof ac_aggr.text)
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22668 $as_echo "$ac_try_echo") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_cv_member_krb5_error_text=yes
22681 $as_echo "$as_me: failed program was
:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_cv_member_krb5_error_text=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22693 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22694 if test $ac_cv_member_krb5_error_text = yes; then
22696 cat >>confdefs.h <<_ACEOF
22697 #define HAVE_KRB5_ERROR_TEXT 1
22702 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22703 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22704 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22705 $as_echo_n "(cached
) " >&6
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22718 static krb5_error ac_aggr;
22719 if (ac_aggr.e_text)
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22731 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22732 $as_echo "$ac_try_echo") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22735 grep -v '^ *+' conftest.er1 >conftest.err
22737 cat conftest.err >&5
22738 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.$ac_objext; then
22743 ac_cv_member_krb5_error_e_text=yes
22745 $as_echo "$as_me: failed program was
:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 cat >conftest.$ac_ext <<_ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h. */
22759 static krb5_error ac_aggr;
22760 if (sizeof ac_aggr.e_text)
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22772 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22773 $as_echo "$ac_try_echo") >&5
22774 (eval "$ac_compile") 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest.$ac_objext; then
22784 ac_cv_member_krb5_error_e_text=yes
22786 $as_echo "$as_me: failed program was
:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 ac_cv_member_krb5_error_e_text=no
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22798 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22799 if test $ac_cv_member_krb5_error_e_text = yes; then
22801 cat >>confdefs.h <<_ACEOF
22802 #define HAVE_KRB5_ERROR_E_TEXT 1
22814 for ac_header in des.h
22816 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22818 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22819 $as_echo_n "checking
for $ac_header...
" >&6; }
22820 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22821 $as_echo_n "(cached
) " >&6
22823 ac_res=`eval 'as_val=${'$as_ac_Header'}
22824 $as_echo "$as_val"'`
22825 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22826 $as_echo "$ac_res" >&6; }
22828 # Is the header compilable?
22829 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22830 $as_echo_n "checking
$ac_header usability...
" >&6; }
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 #include <$ac_header>
22840 rm -f conftest.$ac_objext
22841 if { (ac_try="$ac_compile"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22846 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22847 $as_echo "$ac_try_echo") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22858 ac_header_compiler=yes
22860 $as_echo "$as_me: failed program was
:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_header_compiler=no
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22868 $as_echo "$ac_header_compiler" >&6; }
22870 # Is the header present?
22871 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22872 $as_echo_n "checking
$ac_header presence...
" >&6; }
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <$ac_header>
22881 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22886 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22887 $as_echo "$ac_try_echo") >&5
22888 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1 >conftest.err
22892 cat conftest.err >&5
22893 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22894 (exit $ac_status); } >/dev/null && {
22895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22898 ac_header_preproc=yes
22900 $as_echo "$as_me: failed program was
:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 ac_header_preproc=no
22906 rm -f conftest.err conftest.$ac_ext
22907 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22908 $as_echo "$ac_header_preproc" >&6; }
22910 # So? What about this header?
22911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22913 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22914 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22915 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22917 ac_header_preproc=yes
22920 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22921 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22922 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22923 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22924 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22925 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22926 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22927 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22928 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22930 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22931 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22935 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22936 $as_echo_n "checking
for $ac_header...
" >&6; }
22937 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22938 $as_echo_n "(cached
) " >&6
22940 eval "$as_ac_Header=\
$ac_header_preproc"
22942 ac_res=`eval 'as_val=${'$as_ac_Header'}
22943 $as_echo "$as_val"'`
22944 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22945 $as_echo "$ac_res" >&6; }
22948 if test `eval 'as_val=${'$as_ac_Header'}
22949 $as_echo "$as_val"'` = yes; then
22950 cat >>confdefs.h <<_ACEOF
22951 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22956 for ac_header in kerberosIV/des.h
22958 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22959 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22960 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22961 $as_echo_n "checking
for $ac_header...
" >&6; }
22962 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22963 $as_echo_n "(cached
) " >&6
22965 ac_res=`eval 'as_val=${'$as_ac_Header'}
22966 $as_echo "$as_val"'`
22967 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22968 $as_echo "$ac_res" >&6; }
22970 # Is the header compilable?
22971 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22972 $as_echo_n "checking
$ac_header usability...
" >&6; }
22973 cat >conftest.$ac_ext <<_ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22979 $ac_includes_default
22980 #include <$ac_header>
22982 rm -f conftest.$ac_objext
22983 if { (ac_try="$ac_compile"
22984 case "(($ac_try" in
22985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986 *) ac_try_echo=$ac_try;;
22988 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22989 $as_echo "$ac_try_echo") >&5
22990 (eval "$ac_compile") 2>conftest.er1
22992 grep -v '^ *+' conftest.er1 >conftest.err
22994 cat conftest.err >&5
22995 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22996 (exit $ac_status); } && {
22997 test -z "$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 } && test -s conftest.$ac_objext; then
23000 ac_header_compiler=yes
23002 $as_echo "$as_me: failed program was
:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 ac_header_compiler=no
23008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23010 $as_echo "$ac_header_compiler" >&6; }
23012 # Is the header present?
23013 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23014 $as_echo_n "checking
$ac_header presence...
" >&6; }
23015 cat >conftest.$ac_ext <<_ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 #include <$ac_header>
23023 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23024 case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23029 $as_echo "$ac_try_echo") >&5
23030 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23032 grep -v '^ *+' conftest.er1 >conftest.err
23034 cat conftest.err >&5
23035 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23036 (exit $ac_status); } >/dev/null && {
23037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23038 test ! -s conftest.err
23040 ac_header_preproc=yes
23042 $as_echo "$as_me: failed program was
:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23045 ac_header_preproc=no
23048 rm -f conftest.err conftest.$ac_ext
23049 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23050 $as_echo "$ac_header_preproc" >&6; }
23052 # So? What about this header?
23053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23055 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23056 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23057 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23059 ac_header_preproc=yes
23062 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23063 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23064 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23065 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23066 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23067 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23068 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23069 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23070 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23072 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23073 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23077 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23078 $as_echo_n "checking
for $ac_header...
" >&6; }
23079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23080 $as_echo_n "(cached
) " >&6
23082 eval "$as_ac_Header=\
$ac_header_preproc"
23084 ac_res=`eval 'as_val=${'$as_ac_Header'}
23085 $as_echo "$as_val"'`
23086 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23087 $as_echo "$ac_res" >&6; }
23090 if test `eval 'as_val=${'$as_ac_Header'}
23091 $as_echo "$as_val"'` = yes; then
23092 cat >>confdefs.h <<_ACEOF
23093 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23098 for ac_header in kerberos/des.h
23100 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23102 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23103 $as_echo_n "checking
for $ac_header...
" >&6; }
23104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23105 $as_echo_n "(cached
) " >&6
23107 ac_res=`eval 'as_val=${'$as_ac_Header'}
23108 $as_echo "$as_val"'`
23109 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23110 $as_echo "$ac_res" >&6; }
23112 # Is the header compilable?
23113 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23114 $as_echo_n "checking
$ac_header usability...
" >&6; }
23115 cat >conftest.$ac_ext <<_ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 $ac_includes_default
23122 #include <$ac_header>
23124 rm -f conftest.$ac_objext
23125 if { (ac_try="$ac_compile"
23126 case "(($ac_try" in
23127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23128 *) ac_try_echo=$ac_try;;
23130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23131 $as_echo "$ac_try_echo") >&5
23132 (eval "$ac_compile") 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_c_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest.$ac_objext; then
23142 ac_header_compiler=yes
23144 $as_echo "$as_me: failed program was
:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ac_header_compiler=no
23150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23152 $as_echo "$ac_header_compiler" >&6; }
23154 # Is the header present?
23155 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23156 $as_echo_n "checking
$ac_header presence...
" >&6; }
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 #include <$ac_header>
23165 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23170 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23171 $as_echo "$ac_try_echo") >&5
23172 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23178 (exit $ac_status); } >/dev/null && {
23179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23180 test ! -s conftest.err
23182 ac_header_preproc=yes
23184 $as_echo "$as_me: failed program was
:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 ac_header_preproc=no
23190 rm -f conftest.err conftest.$ac_ext
23191 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23192 $as_echo "$ac_header_preproc" >&6; }
23194 # So? What about this header?
23195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23197 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23198 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23201 ac_header_preproc=yes
23204 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23205 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23206 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23207 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23208 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23209 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23210 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23211 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23212 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23214 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23215 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23219 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23220 $as_echo_n "checking
for $ac_header...
" >&6; }
23221 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23222 $as_echo_n "(cached
) " >&6
23224 eval "$as_ac_Header=\
$ac_header_preproc"
23226 ac_res=`eval 'as_val=${'$as_ac_Header'}
23227 $as_echo "$as_val"'`
23228 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23229 $as_echo "$ac_res" >&6; }
23232 if test `eval 'as_val=${'$as_ac_Header'}
23233 $as_echo "$as_val"'` = yes; then
23234 cat >>confdefs.h <<_ACEOF
23235 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23251 for ac_header in krb.h
23253 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23255 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23256 $as_echo_n "checking
for $ac_header...
" >&6; }
23257 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23258 $as_echo_n "(cached
) " >&6
23260 ac_res=`eval 'as_val=${'$as_ac_Header'}
23261 $as_echo "$as_val"'`
23262 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23263 $as_echo "$ac_res" >&6; }
23265 # Is the header compilable?
23266 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23267 $as_echo_n "checking
$ac_header usability...
" >&6; }
23268 cat >conftest.$ac_ext <<_ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23275 #include <$ac_header>
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23284 $as_echo "$ac_try_echo") >&5
23285 (eval "$ac_compile") 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23291 (exit $ac_status); } && {
23292 test -z "$ac_c_werror_flag" ||
23293 test ! -s conftest.err
23294 } && test -s conftest.$ac_objext; then
23295 ac_header_compiler=yes
23297 $as_echo "$as_me: failed program was
:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 ac_header_compiler=no
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23304 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23305 $as_echo "$ac_header_compiler" >&6; }
23307 # Is the header present?
23308 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23309 $as_echo_n "checking
$ac_header presence...
" >&6; }
23310 cat >conftest.$ac_ext <<_ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 #include <$ac_header>
23318 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23319 case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23323 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23324 $as_echo "$ac_try_echo") >&5
23325 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23331 (exit $ac_status); } >/dev/null && {
23332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23335 ac_header_preproc=yes
23337 $as_echo "$as_me: failed program was
:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_header_preproc=no
23343 rm -f conftest.err conftest.$ac_ext
23344 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23345 $as_echo "$ac_header_preproc" >&6; }
23347 # So? What about this header?
23348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23350 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23351 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23352 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23354 ac_header_preproc=yes
23357 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23358 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23359 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23360 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23361 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23362 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23363 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23364 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23365 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23367 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23368 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23372 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23373 $as_echo_n "checking
for $ac_header...
" >&6; }
23374 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23375 $as_echo_n "(cached
) " >&6
23377 eval "$as_ac_Header=\
$ac_header_preproc"
23379 ac_res=`eval 'as_val=${'$as_ac_Header'}
23380 $as_echo "$as_val"'`
23381 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23382 $as_echo "$ac_res" >&6; }
23385 if test `eval 'as_val=${'$as_ac_Header'}
23386 $as_echo "$as_val"'` = yes; then
23387 cat >>confdefs.h <<_ACEOF
23388 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23393 for ac_header in kerberosIV/krb.h
23395 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23396 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23397 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23398 $as_echo_n "checking
for $ac_header...
" >&6; }
23399 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23400 $as_echo_n "(cached
) " >&6
23402 ac_res=`eval 'as_val=${'$as_ac_Header'}
23403 $as_echo "$as_val"'`
23404 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23405 $as_echo "$ac_res" >&6; }
23407 # Is the header compilable?
23408 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23409 $as_echo_n "checking
$ac_header usability...
" >&6; }
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 $ac_includes_default
23417 #include <$ac_header>
23419 rm -f conftest.$ac_objext
23420 if { (ac_try="$ac_compile"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_compile") 2>conftest.er1
23429 grep -v '^ *+' conftest.er1 >conftest.err
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest.$ac_objext; then
23437 ac_header_compiler=yes
23439 $as_echo "$as_me: failed program was
:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_header_compiler=no
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23447 $as_echo "$ac_header_compiler" >&6; }
23449 # Is the header present?
23450 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23451 $as_echo_n "checking
$ac_header presence...
" >&6; }
23452 cat >conftest.$ac_ext <<_ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 #include <$ac_header>
23460 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23461 case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23465 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23466 $as_echo "$ac_try_echo") >&5
23467 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23473 (exit $ac_status); } >/dev/null && {
23474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23477 ac_header_preproc=yes
23479 $as_echo "$as_me: failed program was
:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_header_preproc=no
23485 rm -f conftest.err conftest.$ac_ext
23486 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23487 $as_echo "$ac_header_preproc" >&6; }
23489 # So? What about this header?
23490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23492 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23493 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23496 ac_header_preproc=yes
23499 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23500 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23502 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23504 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23506 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23507 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23509 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23510 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23514 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23515 $as_echo_n "checking
for $ac_header...
" >&6; }
23516 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23517 $as_echo_n "(cached
) " >&6
23519 eval "$as_ac_Header=\
$ac_header_preproc"
23521 ac_res=`eval 'as_val=${'$as_ac_Header'}
23522 $as_echo "$as_val"'`
23523 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23524 $as_echo "$ac_res" >&6; }
23527 if test `eval 'as_val=${'$as_ac_Header'}
23528 $as_echo "$as_val"'` = yes; then
23529 cat >>confdefs.h <<_ACEOF
23530 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23535 for ac_header in kerberos/krb.h
23537 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23539 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23540 $as_echo_n "checking
for $ac_header...
" >&6; }
23541 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23542 $as_echo_n "(cached
) " >&6
23544 ac_res=`eval 'as_val=${'$as_ac_Header'}
23545 $as_echo "$as_val"'`
23546 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23547 $as_echo "$ac_res" >&6; }
23549 # Is the header compilable?
23550 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23551 $as_echo_n "checking
$ac_header usability...
" >&6; }
23552 cat >conftest.$ac_ext <<_ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23558 $ac_includes_default
23559 #include <$ac_header>
23561 rm -f conftest.$ac_objext
23562 if { (ac_try="$ac_compile"
23563 case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23568 $as_echo "$ac_try_echo") >&5
23569 (eval "$ac_compile") 2>conftest.er1
23571 grep -v '^ *+' conftest.er1 >conftest.err
23573 cat conftest.err >&5
23574 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23575 (exit $ac_status); } && {
23576 test -z "$ac_c_werror_flag" ||
23577 test ! -s conftest.err
23578 } && test -s conftest.$ac_objext; then
23579 ac_header_compiler=yes
23581 $as_echo "$as_me: failed program was
:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 ac_header_compiler=no
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23589 $as_echo "$ac_header_compiler" >&6; }
23591 # Is the header present?
23592 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23593 $as_echo_n "checking
$ac_header presence...
" >&6; }
23594 cat >conftest.$ac_ext <<_ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h. */
23600 #include <$ac_header>
23602 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23603 case "(($ac_try" in
23604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 *) ac_try_echo=$ac_try;;
23607 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23608 $as_echo "$ac_try_echo") >&5
23609 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23611 grep -v '^ *+' conftest.er1 >conftest.err
23613 cat conftest.err >&5
23614 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23615 (exit $ac_status); } >/dev/null && {
23616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23617 test ! -s conftest.err
23619 ac_header_preproc=yes
23621 $as_echo "$as_me: failed program was
:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23624 ac_header_preproc=no
23627 rm -f conftest.err conftest.$ac_ext
23628 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23629 $as_echo "$ac_header_preproc" >&6; }
23631 # So? What about this header?
23632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23634 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23635 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23638 ac_header_preproc=yes
23641 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23642 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23643 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23644 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23645 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23646 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23647 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23648 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23649 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23650 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23651 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23652 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23656 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23657 $as_echo_n "checking
for $ac_header...
" >&6; }
23658 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23659 $as_echo_n "(cached
) " >&6
23661 eval "$as_ac_Header=\
$ac_header_preproc"
23663 ac_res=`eval 'as_val=${'$as_ac_Header'}
23664 $as_echo "$as_val"'`
23665 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23666 $as_echo "$ac_res" >&6; }
23669 if test `eval 'as_val=${'$as_ac_Header'}
23670 $as_echo "$as_val"'` = yes; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23689 for ac_header in com_err.h
23691 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23692 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23693 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23694 $as_echo_n "checking
for $ac_header...
" >&6; }
23695 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23696 $as_echo_n "(cached
) " >&6
23698 ac_res=`eval 'as_val=${'$as_ac_Header'}
23699 $as_echo "$as_val"'`
23700 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23701 $as_echo "$ac_res" >&6; }
23703 # Is the header compilable?
23704 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23705 $as_echo_n "checking
$ac_header usability...
" >&6; }
23706 cat >conftest.$ac_ext <<_ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23712 $ac_includes_default
23713 #include <$ac_header>
23715 rm -f conftest.$ac_objext
23716 if { (ac_try="$ac_compile"
23717 case "(($ac_try" in
23718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719 *) ac_try_echo=$ac_try;;
23721 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23722 $as_echo "$ac_try_echo") >&5
23723 (eval "$ac_compile") 2>conftest.er1
23725 grep -v '^ *+' conftest.er1 >conftest.err
23727 cat conftest.err >&5
23728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23729 (exit $ac_status); } && {
23730 test -z "$ac_c_werror_flag" ||
23731 test ! -s conftest.err
23732 } && test -s conftest.$ac_objext; then
23733 ac_header_compiler=yes
23735 $as_echo "$as_me: failed program was
:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23738 ac_header_compiler=no
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23743 $as_echo "$ac_header_compiler" >&6; }
23745 # Is the header present?
23746 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23747 $as_echo_n "checking
$ac_header presence...
" >&6; }
23748 cat >conftest.$ac_ext <<_ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 #include <$ac_header>
23756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23761 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23762 $as_echo "$ac_try_echo") >&5
23763 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23765 grep -v '^ *+' conftest.er1 >conftest.err
23767 cat conftest.err >&5
23768 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23769 (exit $ac_status); } >/dev/null && {
23770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23773 ac_header_preproc=yes
23775 $as_echo "$as_me: failed program was
:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 ac_header_preproc=no
23781 rm -f conftest.err conftest.$ac_ext
23782 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23783 $as_echo "$ac_header_preproc" >&6; }
23785 # So? What about this header?
23786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23788 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23789 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23790 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23792 ac_header_preproc=yes
23795 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23796 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23797 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23798 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23799 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23800 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23801 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23802 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23803 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23805 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23806 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23810 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23811 $as_echo_n "checking
for $ac_header...
" >&6; }
23812 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23813 $as_echo_n "(cached
) " >&6
23815 eval "$as_ac_Header=\
$ac_header_preproc"
23817 ac_res=`eval 'as_val=${'$as_ac_Header'}
23818 $as_echo "$as_val"'`
23819 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23820 $as_echo "$ac_res" >&6; }
23823 if test `eval 'as_val=${'$as_ac_Header'}
23824 $as_echo "$as_val"'` = yes; then
23825 cat >>confdefs.h <<_ACEOF
23826 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23841 # Solaris requires -lintl if you want strerror (which calls dgettext)
23842 # to return localized messages.
23844 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23845 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23846 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23847 $as_echo_n "(cached
) " >&6
23849 ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lintl $LIBS"
23851 cat >conftest.$ac_ext <<_ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23858 /* Override any GCC internal prototype to avoid an error.
23859 Use char because int might match the return type of a GCC
23860 builtin and then its argument prototype would still apply. */
23868 return dgettext ();
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877 *) ac_try_echo=$ac_try;;
23879 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23880 $as_echo "$ac_try_echo") >&5
23881 (eval "$ac_link") 2>conftest.er1
23883 grep -v '^ *+' conftest.er1 >conftest.err
23885 cat conftest.err >&5
23886 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23887 (exit $ac_status); } && {
23888 test -z "$ac_c_werror_flag" ||
23889 test ! -s conftest.err
23890 } && test -s conftest$ac_exeext && {
23891 test "$cross_compiling" = yes ||
23892 $as_test_x conftest$ac_exeext
23894 ac_cv_lib_intl_dgettext=yes
23896 $as_echo "$as_me: failed program was
:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 ac_cv_lib_intl_dgettext=no
23902 rm -rf conftest.dSYM
23903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23904 conftest$ac_exeext conftest.$ac_ext
23905 LIBS=$ac_check_lib_save_LIBS
23907 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23908 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23909 if test $ac_cv_lib_intl_dgettext = yes; then
23910 cat >>confdefs.h <<_ACEOF
23911 #define HAVE_LIBINTL 1
23914 LIBS="-lintl $LIBS"
23919 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23920 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23921 if test "${emacs_cv_localtime_cache+set}" = set; then
23922 $as_echo_n "(cached
) " >&6
23924 if test x$ac_cv_func_tzset = xyes; then
23925 if test "$cross_compiling" = yes; then
23926 # If we have tzset, assume the worst when cross-compiling.
23927 emacs_cv_localtime_cache=yes
23929 cat >conftest.$ac_ext <<_ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h. */
23936 extern char **environ;
23940 for (to = from = environ; (*to = *from); from++)
23941 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23944 char TZ_GMT0[] = "TZ
=GMT0
";
23945 char TZ_PST8[] = "TZ
=PST8
";
23948 time_t now = time ((time_t *) 0);
23949 int hour_GMT0, hour_unset;
23950 if (putenv (TZ_GMT0) != 0)
23952 hour_GMT0 = localtime (&now)->tm_hour;
23954 hour_unset = localtime (&now)->tm_hour;
23955 if (putenv (TZ_PST8) != 0)
23957 if (localtime (&now)->tm_hour == hour_GMT0)
23960 if (localtime (&now)->tm_hour != hour_unset)
23965 rm -f conftest$ac_exeext
23966 if { (ac_try="$ac_link"
23967 case "(($ac_try" in
23968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23969 *) ac_try_echo=$ac_try;;
23971 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23972 $as_echo "$ac_try_echo") >&5
23973 (eval "$ac_link") 2>&5
23975 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23977 { (case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23981 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23982 $as_echo "$ac_try_echo") >&5
23983 (eval "$ac_try") 2>&5
23985 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 emacs_cv_localtime_cache=no
23989 $as_echo "$as_me: program exited with status
$ac_status" >&5
23990 $as_echo "$as_me: failed program was
:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 ( exit $ac_status )
23994 emacs_cv_localtime_cache=yes
23996 rm -rf conftest.dSYM
23997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24002 # If we lack tzset, report that localtime does not cache TZ,
24003 # since we can't invalidate the cache if we don't have tzset.
24004 emacs_cv_localtime_cache=no
24007 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24008 $as_echo "$emacs_cv_localtime_cache" >&6; }
24009 if test $emacs_cv_localtime_cache = yes; then
24011 cat >>confdefs.h <<\_ACEOF
24012 #define LOCALTIME_CACHE 1
24017 if test "x
$HAVE_TIMEVAL" = xyes; then
24019 for ac_func in gettimeofday
24021 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24022 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24023 $as_echo_n "checking
for $ac_func...
" >&6; }
24024 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24025 $as_echo_n "(cached
) " >&6
24027 cat >conftest.$ac_ext <<_ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24035 #define $ac_func innocuous_$ac_func
24037 /* System header to define __stub macros and hopefully few prototypes,
24038 which can conflict with char $ac_func (); below.
24039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24040 <limits.h> exists even on freestanding compilers. */
24043 # include <limits.h>
24045 # include <assert.h>
24050 /* Override any GCC internal prototype to avoid an error.
24051 Use char because int might match the return type of a GCC
24052 builtin and then its argument prototype would still apply. */
24057 /* The GNU C library defines this for functions which it implements
24058 to always fail with ENOSYS. Some functions are actually named
24059 something starting with __ and the normal name is an alias. */
24060 #if defined __stub_$ac_func || defined __stub___$ac_func
24067 return $ac_func ();
24072 rm -f conftest.$ac_objext conftest$ac_exeext
24073 if { (ac_try="$ac_link"
24074 case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24078 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24079 $as_echo "$ac_try_echo") >&5
24080 (eval "$ac_link") 2>conftest.er1
24082 grep -v '^ *+' conftest.er1 >conftest.err
24084 cat conftest.err >&5
24085 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24086 (exit $ac_status); } && {
24087 test -z "$ac_c_werror_flag" ||
24088 test ! -s conftest.err
24089 } && test -s conftest$ac_exeext && {
24090 test "$cross_compiling" = yes ||
24091 $as_test_x conftest$ac_exeext
24093 eval "$as_ac_var=yes"
24095 $as_echo "$as_me: failed program was
:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24098 eval "$as_ac_var=no
"
24101 rm -rf conftest.dSYM
24102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24103 conftest$ac_exeext conftest.$ac_ext
24105 ac_res=`eval 'as_val=${'$as_ac_var'}
24106 $as_echo "$as_val"'`
24107 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24108 $as_echo "$ac_res" >&6; }
24109 if test `eval 'as_val=${'$as_ac_var'}
24110 $as_echo "$as_val"'` = yes; then
24111 cat >>confdefs.h <<_ACEOF
24112 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24118 if test $ac_cv_func_gettimeofday = yes; then
24119 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24120 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24121 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24122 $as_echo_n "(cached
) " >&6
24124 cat >conftest.$ac_ext <<_ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24131 #ifdef TIME_WITH_SYS_TIME
24132 #include <sys/time.h>
24135 #ifdef HAVE_SYS_TIME_H
24136 #include <sys/time.h>
24144 struct timeval time;
24145 gettimeofday (&time, 0);
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24156 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24157 $as_echo "$ac_try_echo") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 emacs_cv_gettimeofday_two_arguments=yes
24170 $as_echo "$as_me: failed program was
:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 emacs_cv_gettimeofday_two_arguments=no
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24179 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24180 if test $emacs_cv_gettimeofday_two_arguments = no; then
24182 cat >>confdefs.h <<\_ACEOF
24183 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24191 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24192 $as_echo_n "checking
for socket...
" >&6; }
24193 if test "${ac_cv_func_socket+set}" = set; then
24194 $as_echo_n "(cached
) " >&6
24196 cat >conftest.$ac_ext <<_ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24202 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24204 #define socket innocuous_socket
24206 /* System header to define __stub macros and hopefully few prototypes,
24207 which can conflict with char socket (); below.
24208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24209 <limits.h> exists even on freestanding compilers. */
24212 # include <limits.h>
24214 # include <assert.h>
24219 /* Override any GCC internal prototype to avoid an error.
24220 Use char because int might match the return type of a GCC
24221 builtin and then its argument prototype would still apply. */
24226 /* The GNU C library defines this for functions which it implements
24227 to always fail with ENOSYS. Some functions are actually named
24228 something starting with __ and the normal name is an alias. */
24229 #if defined __stub_socket || defined __stub___socket
24241 rm -f conftest.$ac_objext conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24248 $as_echo "$ac_try_echo") >&5
24249 (eval "$ac_link") 2>conftest.er1
24251 grep -v '^ *+' conftest.er1 >conftest.err
24253 cat conftest.err >&5
24254 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest$ac_exeext && {
24259 test "$cross_compiling" = yes ||
24260 $as_test_x conftest$ac_exeext
24262 ac_cv_func_socket=yes
24264 $as_echo "$as_me: failed program was
:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_cv_func_socket=no
24270 rm -rf conftest.dSYM
24271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24272 conftest$ac_exeext conftest.$ac_ext
24274 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24275 $as_echo "$ac_cv_func_socket" >&6; }
24276 if test $ac_cv_func_socket = yes; then
24282 if test $ok_so_far = yes; then
24283 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24284 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24285 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24286 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24287 $as_echo_n "(cached
) " >&6
24289 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24290 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24292 # Is the header compilable?
24293 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24294 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24295 cat >conftest.$ac_ext <<_ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 $ac_includes_default
24302 #include <netinet/in.h>
24304 rm -f conftest.$ac_objext
24305 if { (ac_try="$ac_compile"
24306 case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312 (eval "$ac_compile") 2>conftest.er1
24314 grep -v '^ *+' conftest.er1 >conftest.err
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest.$ac_objext; then
24322 ac_header_compiler=yes
24324 $as_echo "$as_me: failed program was
:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ac_header_compiler=no
24330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24332 $as_echo "$ac_header_compiler" >&6; }
24334 # Is the header present?
24335 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24336 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24337 cat >conftest.$ac_ext <<_ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24343 #include <netinet/in.h>
24345 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24350 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24351 $as_echo "$ac_try_echo") >&5
24352 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24354 grep -v '^ *+' conftest.er1 >conftest.err
24356 cat conftest.err >&5
24357 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24358 (exit $ac_status); } >/dev/null && {
24359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24360 test ! -s conftest.err
24362 ac_header_preproc=yes
24364 $as_echo "$as_me: failed program was
:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24367 ac_header_preproc=no
24370 rm -f conftest.err conftest.$ac_ext
24371 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24372 $as_echo "$ac_header_preproc" >&6; }
24374 # So? What about this header?
24375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24377 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24378 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24379 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24380 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24381 ac_header_preproc=yes
24384 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24385 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24386 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24387 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24388 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24389 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24390 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24391 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24392 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24393 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24394 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24395 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24399 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24400 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24401 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24402 $as_echo_n "(cached
) " >&6
24404 ac_cv_header_netinet_in_h=$ac_header_preproc
24406 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24407 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24410 if test $ac_cv_header_netinet_in_h = yes; then
24418 if test $ok_so_far = yes; then
24419 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24420 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24421 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24422 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24423 $as_echo_n "(cached
) " >&6
24425 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24426 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24428 # Is the header compilable?
24429 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24430 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24431 cat >conftest.$ac_ext <<_ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24437 $ac_includes_default
24438 #include <arpa/inet.h>
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24446 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24447 $as_echo "$ac_try_echo") >&5
24448 (eval "$ac_compile") 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
24458 ac_header_compiler=yes
24460 $as_echo "$as_me: failed program was
:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24463 ac_header_compiler=no
24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24468 $as_echo "$ac_header_compiler" >&6; }
24470 # Is the header present?
24471 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24472 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24473 cat >conftest.$ac_ext <<_ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24479 #include <arpa/inet.h>
24481 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24482 case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24486 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24487 $as_echo "$ac_try_echo") >&5
24488 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24490 grep -v '^ *+' conftest.er1 >conftest.err
24492 cat conftest.err >&5
24493 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24494 (exit $ac_status); } >/dev/null && {
24495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24496 test ! -s conftest.err
24498 ac_header_preproc=yes
24500 $as_echo "$as_me: failed program was
:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24503 ac_header_preproc=no
24506 rm -f conftest.err conftest.$ac_ext
24507 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24508 $as_echo "$ac_header_preproc" >&6; }
24510 # So? What about this header?
24511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24513 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24514 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24515 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24516 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24517 ac_header_preproc=yes
24520 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24521 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24522 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24523 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24524 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24525 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24526 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24527 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24528 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24529 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24530 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24531 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24535 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24536 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24537 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24538 $as_echo_n "(cached
) " >&6
24540 ac_cv_header_arpa_inet_h=$ac_header_preproc
24542 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24543 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24546 if test $ac_cv_header_arpa_inet_h = yes; then
24554 if test $ok_so_far = yes; then
24556 cat >>confdefs.h <<\_ACEOF
24557 #define HAVE_INET_SOCKETS 1
24563 for ac_header in sys/ioctl.h
24565 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24567 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24568 $as_echo_n "checking
for $ac_header...
" >&6; }
24569 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24570 $as_echo_n "(cached
) " >&6
24572 ac_res=`eval 'as_val=${'$as_ac_Header'}
24573 $as_echo "$as_val"'`
24574 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24575 $as_echo "$ac_res" >&6; }
24577 # Is the header compilable?
24578 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24579 $as_echo_n "checking
$ac_header usability...
" >&6; }
24580 cat >conftest.$ac_ext <<_ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24586 $ac_includes_default
24587 #include <$ac_header>
24589 rm -f conftest.$ac_objext
24590 if { (ac_try="$ac_compile"
24591 case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24595 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24596 $as_echo "$ac_try_echo") >&5
24597 (eval "$ac_compile") 2>conftest.er1
24599 grep -v '^ *+' conftest.er1 >conftest.err
24601 cat conftest.err >&5
24602 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24603 (exit $ac_status); } && {
24604 test -z "$ac_c_werror_flag" ||
24605 test ! -s conftest.err
24606 } && test -s conftest.$ac_objext; then
24607 ac_header_compiler=yes
24609 $as_echo "$as_me: failed program was
:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24612 ac_header_compiler=no
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24617 $as_echo "$ac_header_compiler" >&6; }
24619 # Is the header present?
24620 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24621 $as_echo_n "checking
$ac_header presence...
" >&6; }
24622 cat >conftest.$ac_ext <<_ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 #include <$ac_header>
24630 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24631 case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24635 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24636 $as_echo "$ac_try_echo") >&5
24637 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24639 grep -v '^ *+' conftest.er1 >conftest.err
24641 cat conftest.err >&5
24642 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24643 (exit $ac_status); } >/dev/null && {
24644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24647 ac_header_preproc=yes
24649 $as_echo "$as_me: failed program was
:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24652 ac_header_preproc=no
24655 rm -f conftest.err conftest.$ac_ext
24656 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24657 $as_echo "$ac_header_preproc" >&6; }
24659 # So? What about this header?
24660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24662 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24663 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24664 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24665 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24666 ac_header_preproc=yes
24669 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24670 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24671 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24672 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24673 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24674 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24675 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24676 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24677 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24679 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24680 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24684 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24685 $as_echo_n "checking
for $ac_header...
" >&6; }
24686 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24687 $as_echo_n "(cached
) " >&6
24689 eval "$as_ac_Header=\
$ac_header_preproc"
24691 ac_res=`eval 'as_val=${'$as_ac_Header'}
24692 $as_echo "$as_val"'`
24693 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24694 $as_echo "$ac_res" >&6; }
24697 if test `eval 'as_val=${'$as_ac_Header'}
24698 $as_echo "$as_val"'` = yes; then
24699 cat >>confdefs.h <<_ACEOF
24700 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24708 if test -f /usr/lpp/X11/bin/smt.exp; then
24710 cat >>confdefs.h <<\_ACEOF
24711 #define HAVE_AIX_SMT_EXP 1
24716 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24717 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24718 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24719 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24720 $as_echo "yes" >&6; }
24722 cat >>confdefs.h <<\_ACEOF
24723 #define HAVE_DEV_PTMX 1
24727 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24728 $as_echo "no
" >&6; }
24731 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24732 $as_echo_n "checking
for pid_t...
" >&6; }
24733 if test "${ac_cv_type_pid_t+set}" = set; then
24734 $as_echo_n "(cached
) " >&6
24736 ac_cv_type_pid_t=no
24737 cat >conftest.$ac_ext <<_ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h. */
24743 $ac_includes_default
24747 if (sizeof (pid_t))
24753 rm -f conftest.$ac_objext
24754 if { (ac_try="$ac_compile"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24759 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761 (eval "$ac_compile") 2>conftest.er1
24763 grep -v '^ *+' conftest.er1 >conftest.err
24765 cat conftest.err >&5
24766 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24767 (exit $ac_status); } && {
24768 test -z "$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 } && test -s conftest.$ac_objext; then
24771 cat >conftest.$ac_ext <<_ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h. */
24777 $ac_includes_default
24781 if (sizeof ((pid_t)))
24787 rm -f conftest.$ac_objext
24788 if { (ac_try="$ac_compile"
24789 case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24794 $as_echo "$ac_try_echo") >&5
24795 (eval "$ac_compile") 2>conftest.er1
24797 grep -v '^ *+' conftest.er1 >conftest.err
24799 cat conftest.err >&5
24800 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24801 (exit $ac_status); } && {
24802 test -z "$ac_c_werror_flag" ||
24803 test ! -s conftest.err
24804 } && test -s conftest.$ac_objext; then
24807 $as_echo "$as_me: failed program was
:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24810 ac_cv_type_pid_t=yes
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 $as_echo "$as_me: failed program was
:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24823 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24824 $as_echo "$ac_cv_type_pid_t" >&6; }
24825 if test $ac_cv_type_pid_t = yes; then
24829 cat >>confdefs.h <<_ACEOF
24836 for ac_header in vfork.h
24838 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24840 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24841 $as_echo_n "checking
for $ac_header...
" >&6; }
24842 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24843 $as_echo_n "(cached
) " >&6
24845 ac_res=`eval 'as_val=${'$as_ac_Header'}
24846 $as_echo "$as_val"'`
24847 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24848 $as_echo "$ac_res" >&6; }
24850 # Is the header compilable?
24851 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24852 $as_echo_n "checking
$ac_header usability...
" >&6; }
24853 cat >conftest.$ac_ext <<_ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h. */
24859 $ac_includes_default
24860 #include <$ac_header>
24862 rm -f conftest.$ac_objext
24863 if { (ac_try="$ac_compile"
24864 case "(($ac_try" in
24865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24866 *) ac_try_echo=$ac_try;;
24868 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24869 $as_echo "$ac_try_echo") >&5
24870 (eval "$ac_compile") 2>conftest.er1
24872 grep -v '^ *+' conftest.er1 >conftest.err
24874 cat conftest.err >&5
24875 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24876 (exit $ac_status); } && {
24877 test -z "$ac_c_werror_flag" ||
24878 test ! -s conftest.err
24879 } && test -s conftest.$ac_objext; then
24880 ac_header_compiler=yes
24882 $as_echo "$as_me: failed program was
:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 ac_header_compiler=no
24888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24890 $as_echo "$ac_header_compiler" >&6; }
24892 # Is the header present?
24893 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24894 $as_echo_n "checking
$ac_header presence...
" >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24901 #include <$ac_header>
24903 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24904 case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24908 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24909 $as_echo "$ac_try_echo") >&5
24910 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24912 grep -v '^ *+' conftest.er1 >conftest.err
24914 cat conftest.err >&5
24915 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24916 (exit $ac_status); } >/dev/null && {
24917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24920 ac_header_preproc=yes
24922 $as_echo "$as_me: failed program was
:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ac_header_preproc=no
24928 rm -f conftest.err conftest.$ac_ext
24929 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24930 $as_echo "$ac_header_preproc" >&6; }
24932 # So? What about this header?
24933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24935 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24936 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24937 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24939 ac_header_preproc=yes
24942 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24943 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24944 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24945 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24946 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24947 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24948 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24949 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24950 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24952 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24953 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24957 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24958 $as_echo_n "checking
for $ac_header...
" >&6; }
24959 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24960 $as_echo_n "(cached
) " >&6
24962 eval "$as_ac_Header=\
$ac_header_preproc"
24964 ac_res=`eval 'as_val=${'$as_ac_Header'}
24965 $as_echo "$as_val"'`
24966 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24967 $as_echo "$ac_res" >&6; }
24970 if test `eval 'as_val=${'$as_ac_Header'}
24971 $as_echo "$as_val"'` = yes; then
24972 cat >>confdefs.h <<_ACEOF
24973 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24982 for ac_func in fork vfork
24984 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24985 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24986 $as_echo_n "checking
for $ac_func...
" >&6; }
24987 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24988 $as_echo_n "(cached
) " >&6
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24998 #define $ac_func innocuous_$ac_func
25000 /* System header to define __stub macros and hopefully few prototypes,
25001 which can conflict with char $ac_func (); below.
25002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25003 <limits.h> exists even on freestanding compilers. */
25006 # include <limits.h>
25008 # include <assert.h>
25013 /* Override any GCC internal prototype to avoid an error.
25014 Use char because int might match the return type of a GCC
25015 builtin and then its argument prototype would still apply. */
25020 /* The GNU C library defines this for functions which it implements
25021 to always fail with ENOSYS. Some functions are actually named
25022 something starting with __ and the normal name is an alias. */
25023 #if defined __stub_$ac_func || defined __stub___$ac_func
25030 return $ac_func ();
25035 rm -f conftest.$ac_objext conftest$ac_exeext
25036 if { (ac_try="$ac_link"
25037 case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25041 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25042 $as_echo "$ac_try_echo") >&5
25043 (eval "$ac_link") 2>conftest.er1
25045 grep -v '^ *+' conftest.er1 >conftest.err
25047 cat conftest.err >&5
25048 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25049 (exit $ac_status); } && {
25050 test -z "$ac_c_werror_flag" ||
25051 test ! -s conftest.err
25052 } && test -s conftest$ac_exeext && {
25053 test "$cross_compiling" = yes ||
25054 $as_test_x conftest$ac_exeext
25056 eval "$as_ac_var=yes"
25058 $as_echo "$as_me: failed program was
:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25061 eval "$as_ac_var=no
"
25064 rm -rf conftest.dSYM
25065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25066 conftest$ac_exeext conftest.$ac_ext
25068 ac_res=`eval 'as_val=${'$as_ac_var'}
25069 $as_echo "$as_val"'`
25070 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25071 $as_echo "$ac_res" >&6; }
25072 if test `eval 'as_val=${'$as_ac_var'}
25073 $as_echo "$as_val"'` = yes; then
25074 cat >>confdefs.h <<_ACEOF
25075 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25081 if test "x
$ac_cv_func_fork" = xyes; then
25082 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25083 $as_echo_n "checking
for working fork...
" >&6; }
25084 if test "${ac_cv_func_fork_works+set}" = set; then
25085 $as_echo_n "(cached
) " >&6
25087 if test "$cross_compiling" = yes; then
25088 ac_cv_func_fork_works=cross
25090 cat >conftest.$ac_ext <<_ACEOF
25093 cat confdefs.h >>conftest.$ac_ext
25094 cat >>conftest.$ac_ext <<_ACEOF
25095 /* end confdefs.h. */
25096 $ac_includes_default
25101 /* By Ruediger Kuhlmann. */
25102 return fork () < 0;
25108 rm -f conftest$ac_exeext
25109 if { (ac_try="$ac_link"
25110 case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25114 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25115 $as_echo "$ac_try_echo") >&5
25116 (eval "$ac_link") 2>&5
25118 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25120 { (case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25124 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25125 $as_echo "$ac_try_echo") >&5
25126 (eval "$ac_try") 2>&5
25128 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_func_fork_works=yes
25132 $as_echo "$as_me: program exited with status
$ac_status" >&5
25133 $as_echo "$as_me: failed program was
:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25136 ( exit $ac_status )
25137 ac_cv_func_fork_works=no
25139 rm -rf conftest.dSYM
25140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25145 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25146 $as_echo "$ac_cv_func_fork_works" >&6; }
25149 ac_cv_func_fork_works=$ac_cv_func_fork
25151 if test "x
$ac_cv_func_fork_works" = xcross; then
25153 *-*-amigaos* | *-*-msdosdjgpp*)
25154 # Override, as these systems have only a dummy fork() stub
25155 ac_cv_func_fork_works=no
25158 ac_cv_func_fork_works=yes
25161 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25162 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25164 ac_cv_func_vfork_works=$ac_cv_func_vfork
25165 if test "x
$ac_cv_func_vfork" = xyes; then
25166 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25167 $as_echo_n "checking
for working vfork...
" >&6; }
25168 if test "${ac_cv_func_vfork_works+set}" = set; then
25169 $as_echo_n "(cached
) " >&6
25171 if test "$cross_compiling" = yes; then
25172 ac_cv_func_vfork_works=cross
25174 cat >conftest.$ac_ext <<_ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h. */
25180 /* Thanks to Paul Eggert for this test. */
25181 $ac_includes_default
25182 #include <sys/wait.h>
25183 #ifdef HAVE_VFORK_H
25184 # include <vfork.h>
25186 /* On some sparc systems, changes by the child to local and incoming
25187 argument registers are propagated back to the parent. The compiler
25188 is told about this with #include <vfork.h>, but some compilers
25189 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25190 static variable whose address is put into a register that is
25191 clobbered by the vfork. */
25194 sparc_address_test (int arg)
25196 sparc_address_test (arg) int arg;
25199 static pid_t child;
25217 pid_t parent = getpid ();
25220 sparc_address_test (0);
25225 /* Here is another test for sparc vfork register problems. This
25226 test uses lots of local variables, at least as many local
25227 variables as main has allocated so far including compiler
25228 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25229 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25230 reuse the register of parent for one of the local variables,
25231 since it will think that parent can't possibly be used any more
25232 in this routine. Assigning to the local variable will thus
25233 munge parent in the parent process. */
25235 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25236 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25237 /* Convince the compiler that p..p7 are live; otherwise, it might
25238 use the same hardware register for all 8 local variables. */
25239 if (p != p1 || p != p2 || p != p3 || p != p4
25240 || p != p5 || p != p6 || p != p7)
25243 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25244 from child file descriptors. If the child closes a descriptor
25245 before it execs or exits, this munges the parent's descriptor
25246 as well. Test for this by closing stdout in the child. */
25247 _exit(close(fileno(stdout)) != 0);
25252 while (wait(&status) != child)
25255 /* Was there some problem with vforking? */
25258 /* Did the child fail? (This shouldn't happen.) */
25261 /* Did the vfork/compiler bug occur? */
25262 || parent != getpid()
25264 /* Did the file descriptor bug occur? */
25265 || fstat(fileno(stdout), &st) != 0
25270 rm -f conftest$ac_exeext
25271 if { (ac_try="$ac_link"
25272 case "(($ac_try" in
25273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274 *) ac_try_echo=$ac_try;;
25276 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25277 $as_echo "$ac_try_echo") >&5
25278 (eval "$ac_link") 2>&5
25280 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25282 { (case "(($ac_try" in
25283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284 *) ac_try_echo=$ac_try;;
25286 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25287 $as_echo "$ac_try_echo") >&5
25288 (eval "$ac_try") 2>&5
25290 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25291 (exit $ac_status); }; }; then
25292 ac_cv_func_vfork_works=yes
25294 $as_echo "$as_me: program exited with status
$ac_status" >&5
25295 $as_echo "$as_me: failed program was
:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ( exit $ac_status )
25299 ac_cv_func_vfork_works=no
25301 rm -rf conftest.dSYM
25302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25307 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25308 $as_echo "$ac_cv_func_vfork_works" >&6; }
25311 if test "x
$ac_cv_func_fork_works" = xcross; then
25312 ac_cv_func_vfork_works=$ac_cv_func_vfork
25313 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25314 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25317 if test "x
$ac_cv_func_vfork_works" = xyes; then
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_WORKING_VFORK 1
25325 cat >>confdefs.h <<\_ACEOF
25330 if test "x
$ac_cv_func_fork_works" = xyes; then
25332 cat >>confdefs.h <<\_ACEOF
25333 #define HAVE_WORKING_FORK 1
25339 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25340 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25341 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25342 $as_echo_n "(cached
) " >&6
25344 cat >conftest.$ac_ext <<_ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 #include <langinfo.h>
25354 char* cs = nl_langinfo(CODESET);
25359 rm -f conftest.$ac_objext conftest$ac_exeext
25360 if { (ac_try="$ac_link"
25361 case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25365 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25366 $as_echo "$ac_try_echo") >&5
25367 (eval "$ac_link") 2>conftest.er1
25369 grep -v '^ *+' conftest.er1 >conftest.err
25371 cat conftest.err >&5
25372 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25373 (exit $ac_status); } && {
25374 test -z "$ac_c_werror_flag" ||
25375 test ! -s conftest.err
25376 } && test -s conftest$ac_exeext && {
25377 test "$cross_compiling" = yes ||
25378 $as_test_x conftest$ac_exeext
25380 emacs_cv_langinfo_codeset=yes
25382 $as_echo "$as_me: failed program was
:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25385 emacs_cv_langinfo_codeset=no
25388 rm -rf conftest.dSYM
25389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25390 conftest$ac_exeext conftest.$ac_ext
25393 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25394 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25395 if test $emacs_cv_langinfo_codeset = yes; then
25397 cat >>confdefs.h <<\_ACEOF
25398 #define HAVE_LANGINFO_CODESET 1
25403 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25404 $as_echo_n "checking
for size_t...
" >&6; }
25405 if test "${ac_cv_type_size_t+set}" = set; then
25406 $as_echo_n "(cached
) " >&6
25408 ac_cv_type_size_t=no
25409 cat >conftest.$ac_ext <<_ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25415 $ac_includes_default
25419 if (sizeof (size_t))
25425 rm -f conftest.$ac_objext
25426 if { (ac_try="$ac_compile"
25427 case "(($ac_try" in
25428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25431 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25432 $as_echo "$ac_try_echo") >&5
25433 (eval "$ac_compile") 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25439 (exit $ac_status); } && {
25440 test -z "$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25442 } && test -s conftest.$ac_objext; then
25443 cat >conftest.$ac_ext <<_ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25449 $ac_includes_default
25453 if (sizeof ((size_t)))
25459 rm -f conftest.$ac_objext
25460 if { (ac_try="$ac_compile"
25461 case "(($ac_try" in
25462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463 *) ac_try_echo=$ac_try;;
25465 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25466 $as_echo "$ac_try_echo") >&5
25467 (eval "$ac_compile") 2>conftest.er1
25469 grep -v '^ *+' conftest.er1 >conftest.err
25471 cat conftest.err >&5
25472 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25473 (exit $ac_status); } && {
25474 test -z "$ac_c_werror_flag" ||
25475 test ! -s conftest.err
25476 } && test -s conftest.$ac_objext; then
25479 $as_echo "$as_me: failed program was
:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25482 ac_cv_type_size_t=yes
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 $as_echo "$as_me: failed program was
:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25496 $as_echo "$ac_cv_type_size_t" >&6; }
25497 if test $ac_cv_type_size_t = yes; then
25499 cat >>confdefs.h <<_ACEOF
25500 #define HAVE_SIZE_T 1
25507 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25508 $as_echo_n "checking
for mbstate_t...
" >&6; }
25509 if test "${ac_cv_type_mbstate_t+set}" = set; then
25510 $as_echo_n "(cached
) " >&6
25512 cat >conftest.$ac_ext <<_ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h. */
25518 $ac_includes_default
25519 # include <wchar.h>
25523 mbstate_t x; return sizeof x;
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25534 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25535 $as_echo "$ac_try_echo") >&5
25536 (eval "$ac_compile") 2>conftest.er1
25538 grep -v '^ *+' conftest.er1 >conftest.err
25540 cat conftest.err >&5
25541 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25542 (exit $ac_status); } && {
25543 test -z "$ac_c_werror_flag" ||
25544 test ! -s conftest.err
25545 } && test -s conftest.$ac_objext; then
25546 ac_cv_type_mbstate_t=yes
25548 $as_echo "$as_me: failed program was
:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25551 ac_cv_type_mbstate_t=no
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25557 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25558 if test $ac_cv_type_mbstate_t = yes; then
25560 cat >>confdefs.h <<\_ACEOF
25561 #define HAVE_MBSTATE_T 1
25566 cat >>confdefs.h <<\_ACEOF
25567 #define mbstate_t int
25572 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25573 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25574 if test "${emacs_cv_c_restrict+set}" = set; then
25575 $as_echo_n "(cached
) " >&6
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 void fred (int *restrict x);
25592 rm -f conftest.$ac_objext
25593 if { (ac_try="$ac_compile"
25594 case "(($ac_try" in
25595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25596 *) ac_try_echo=$ac_try;;
25598 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25599 $as_echo "$ac_try_echo") >&5
25600 (eval "$ac_compile") 2>conftest.er1
25602 grep -v '^ *+' conftest.er1 >conftest.err
25604 cat conftest.err >&5
25605 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25606 (exit $ac_status); } && {
25607 test -z "$ac_c_werror_flag" ||
25608 test ! -s conftest.err
25609 } && test -s conftest.$ac_objext; then
25610 emacs_cv_c_restrict=yes
25612 $as_echo "$as_me: failed program was
:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25615 cat >conftest.$ac_ext <<_ACEOF
25618 cat confdefs.h >>conftest.$ac_ext
25619 cat >>conftest.$ac_ext <<_ACEOF
25620 /* end confdefs.h. */
25621 void fred (int *__restrict x);
25630 rm -f conftest.$ac_objext
25631 if { (ac_try="$ac_compile"
25632 case "(($ac_try" in
25633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634 *) ac_try_echo=$ac_try;;
25636 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25637 $as_echo "$ac_try_echo") >&5
25638 (eval "$ac_compile") 2>conftest.er1
25640 grep -v '^ *+' conftest.er1 >conftest.err
25642 cat conftest.err >&5
25643 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25644 (exit $ac_status); } && {
25645 test -z "$ac_c_werror_flag" ||
25646 test ! -s conftest.err
25647 } && test -s conftest.$ac_objext; then
25648 emacs_cv_c_restrict=__restrict
25650 $as_echo "$as_me: failed program was
:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25653 emacs_cv_c_restrict=no
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25662 $as_echo "$emacs_cv_c_restrict" >&6; }
25663 case "$emacs_cv_c_restrict" in
25664 yes) emacs_restrict=restrict;;
25665 no) emacs_restrict="";;
25666 *) emacs_restrict="$emacs_cv_c_restrict";;
25668 if test "$emacs_restrict" != __restrict; then
25670 cat >>confdefs.h <<_ACEOF
25671 #define __restrict $emacs_restrict
25676 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25677 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25678 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25679 $as_echo_n "(cached
) " >&6
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 void fred (int x[__restrict]);
25696 rm -f conftest.$ac_objext
25697 if { (ac_try="$ac_compile"
25698 case "(($ac_try" in
25699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700 *) ac_try_echo=$ac_try;;
25702 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25703 $as_echo "$ac_try_echo") >&5
25704 (eval "$ac_compile") 2>conftest.er1
25706 grep -v '^ *+' conftest.er1 >conftest.err
25708 cat conftest.err >&5
25709 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25710 (exit $ac_status); } && {
25711 test -z "$ac_c_werror_flag" ||
25712 test ! -s conftest.err
25713 } && test -s conftest.$ac_objext; then
25714 emacs_cv_c_restrict_arr=yes
25716 $as_echo "$as_me: failed program was
:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25719 emacs_cv_c_restrict_arr=no
25722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25725 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25726 if test "$emacs_cv_c_restrict_arr" = yes; then
25728 cat >>confdefs.h <<\_ACEOF
25729 #define __restrict_arr __restrict
25736 # Set up the CFLAGS for real compilation, so we can substitute it.
25737 CFLAGS="$REAL_CFLAGS"
25738 CPPFLAGS="$REAL_CPPFLAGS"
25740 #### Find out which version of Emacs this is.
25741 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25742 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25743 if test x"${version}" = x; then
25744 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25745 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25746 { (exit 1); exit 1; }; }
25748 if test x"${version}" != x"$PACKAGE_VERSION"; then
25749 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25750 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25753 ### Specify what sort of things we'll be editing into Makefile and config.h.
25754 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25799 cat >>confdefs.h
<<_ACEOF
25800 #define EMACS_CONFIGURATION "${canonical}"
25804 cat >>confdefs.h
<<_ACEOF
25805 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25809 cat >>confdefs.h
<<_ACEOF
25810 #define config_machfile "${machfile}"
25814 cat >>confdefs.h
<<_ACEOF
25815 #define config_opsysfile "${opsysfile}"
25819 cat >>confdefs.h
<<_ACEOF
25820 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25824 cat >>confdefs.h
<<_ACEOF
25825 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25829 cat >>confdefs.h
<<_ACEOF
25830 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25834 cat >>confdefs.h
<<_ACEOF
25835 #define UNEXEC_SRC ${UNEXEC_SRC}
25839 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25841 cat >>confdefs.h
<<\_ACEOF
25842 #define HAVE_X_WINDOWS 1
25846 if test "${USE_X_TOOLKIT}" != "none" ; then
25848 cat >>confdefs.h
<<\_ACEOF
25849 #define USE_X_TOOLKIT 1
25852 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25854 cat >>confdefs.h
<<\_ACEOF
25855 #define USE_LUCID 1
25858 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25860 cat >>confdefs.h
<<\_ACEOF
25861 #define USE_MOTIF 1
25866 if test "${HAVE_X11}" = "yes" ; then
25868 cat >>confdefs.h
<<\_ACEOF
25873 if test "${HAVE_MENUS}" = "yes" ; then
25875 cat >>confdefs.h
<<\_ACEOF
25876 #define HAVE_MENUS 1
25880 if test "${GNU_MALLOC}" = "yes" ; then
25882 cat >>confdefs.h
<<\_ACEOF
25883 #define GNU_MALLOC 1
25887 if test "${REL_ALLOC}" = "yes" ; then
25889 cat >>confdefs.h
<<\_ACEOF
25890 #define REL_ALLOC 1
25900 #### Report on what we decided to do.
25901 #### Report GTK as a toolkit, even if it doesn't use Xt.
25902 #### It makes printing result more understandable as using GTK sets
25903 #### toolkit_scroll_bars to yes by default.
25904 if test "${HAVE_GTK}" = "yes"; then
25909 Configured for \`${canonical}'.
25911 Where should the build process find the source code? ${srcdir}
25912 What operating system and machine description files should Emacs use?
25913 \`${opsysfile}' and \`${machfile}'
25914 What compiler should emacs be built with? ${CC} ${CFLAGS}
25915 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25916 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25917 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25918 What window system should Emacs use? ${window_system}
25919 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25921 if test -n "${x_includes}"; then
25922 echo " Where do we find X Windows header files? ${x_includes}"
25924 echo " Where do we find X Windows header files? Standard dirs"
25926 if test -n "${x_libraries}"; then
25927 echo " Where do we find X Windows libraries? ${x_libraries}"
25929 echo " Where do we find X Windows libraries? Standard dirs"
25932 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25933 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25934 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25935 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25936 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25937 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25938 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25939 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25940 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25941 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25943 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25944 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25945 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25946 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25948 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25951 if test $USE_XASSERTS = yes; then
25952 echo " Compiling with asserts turned on."
25953 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25958 if test "$HAVE_NS" = "yes"; then
25960 echo "You must run \"make install\" in order to test the built application.
25961 The installed application will go to nextstep/Emacs.app and can be
25962 run or moved from there."
25963 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25964 echo "The application will be fully self-contained."
25966 echo "The lisp resources for the application will be installed under ${prefix}.
25967 You may need to run \"make install\" with sudo. The application will fail
25968 to run if these resources are not installed."
25973 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25974 echo "D-Bus integration has been tested for GNU/Linux only."
25979 # Remove any trailing slashes in these variables.
25980 test "${prefix}" != NONE
&&
25981 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25982 test "${exec_prefix}" != NONE
&&
25983 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25985 # Now get this: Some word that is part of the ${srcdir} directory name
25986 # or the ${configuration} value might, just might, happen to be an
25987 # identifier like `sun4' or `i386' or something, and be predefined by
25988 # the C preprocessor to some helpful value like 1, or maybe the empty
25989 # string. Needless to say consequent macro substitutions are less
25990 # than conducive to the makefile finding the correct directory.
25991 cpp_undefs
="`echo $srcdir $configuration $canonical |
25992 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25993 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25995 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25996 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25997 ## from Makefile.c can correctly provide the arg `-traditional' to the
26000 cat >conftest.
$ac_ext <<_ACEOF
26003 cat confdefs.h
>>conftest.
$ac_ext
26004 cat >>conftest.
$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26009 $EGREP "yes..yes" >/dev
/null
2>&1; then
26010 CPP_NEED_TRADITIONAL
=no
26012 CPP_NEED_TRADITIONAL
=yes
26017 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"
26019 ac_config_commands
="$ac_config_commands default"
26021 cat >confcache
<<\_ACEOF
26022 # This file is a shell script that caches the results of configure
26023 # tests run on this system so they can be shared between configure
26024 # scripts and configure runs, see configure's option --config-cache.
26025 # It is not useful on other systems. If it contains results you don't
26026 # want to keep, you may remove or edit it.
26028 # config.status only pays attention to the cache file if you give it
26029 # the --recheck option to rerun configure.
26031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26033 # following values.
26037 # The following way of writing the cache mishandles newlines in values,
26038 # but we know of no workaround that is simple, portable, and efficient.
26039 # So, we kill variables containing newlines.
26040 # Ultrix sh set writes to stderr and can't be redirected directly,
26041 # and sets the high bit in the cache file unless we assign to the vars.
26043 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26044 eval ac_val
=\$
$ac_var
26048 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26049 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26052 _ | IFS | as_nl
) ;; #(
26053 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26054 *) $as_unset $ac_var ;;
26060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26061 *${as_nl}ac_space
=\
*)
26062 # `set' does not quote correctly, so add quotes (double-quote
26063 # substitution turns \\\\ into \\, and sed turns \\ into \).
26066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26069 # `set' quotes correctly as required by POSIX, so do not add quotes.
26070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26083 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26084 if test -w "$cache_file"; then
26085 test "x$cache_file" != "x/dev/null" &&
26086 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26087 $as_echo "$as_me: updating cache $cache_file" >&6;}
26088 cat confcache
>$cache_file
26090 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26096 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26097 # Let make expand exec_prefix.
26098 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26100 DEFS
=-DHAVE_CONFIG_H
26104 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26105 # 1. Remove the extension, and $U if already installed.
26106 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26107 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26109 # will be set to the directory where LIBOBJS objects are built.
26110 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26111 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26113 LIBOBJS
=$ac_libobjs
26115 LTLIBOBJS
=$ac_ltlibobjs
26119 : ${CONFIG_STATUS=./config.status}
26121 ac_clean_files_save
=$ac_clean_files
26122 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26123 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26125 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26127 # Generated by $as_me.
26128 # Run this file to recreate the current configuration.
26129 # Compiler output produced by configure, useful for debugging
26130 # configure, is in config.log if it exists.
26133 ac_cs_recheck=false
26135 SHELL=\${CONFIG_SHELL-$SHELL}
26138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26139 ## --------------------- ##
26140 ## M4sh Initialization. ##
26141 ## --------------------- ##
26143 # Be more Bourne compatible
26144 DUALCASE
=1; export DUALCASE
# for MKS sh
26145 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26149 # is contrary to our usage. Disable this feature.
26150 alias -g '${1+"$@"}'='"$@"'
26151 setopt NO_GLOB_SUBST
26153 case `(set -o) 2>/dev/null` in
26154 *posix
*) set -o posix
;;
26163 # Avoid depending upon Character Ranges.
26164 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26165 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26166 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26167 as_cr_digits
='0123456789'
26168 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26173 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26174 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26177 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26178 as_echo='printf %s
\n'
26179 as_echo_n='printf %s
'
26181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26182 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26183 as_echo_n='/usr
/ucb
/echo -n'
26185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26186 as_echo_n_body='eval
26190 expr "X$arg" : "X\\(.*\\)$as_nl";
26191 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26193 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26195 export as_echo_n_body
26196 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26198 export as_echo_body
26199 as_echo='sh
-c $as_echo_body as_echo
'
26202 # The user is always right.
26203 if test "${PATH_SEPARATOR+set}" != set; then
26205 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26206 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26211 # Support unset when possible.
26212 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26220 # We need space, tab and new line, in precisely that order. Quoting is
26221 # there to prevent editors from complaining about space-tab.
26222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26223 # splitting by setting IFS to empty value.)
26226 # Find who we are. Look in the path if we contain no directory separator.
26228 *[\\/]* ) as_myself=$0 ;;
26229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26230 for as_dir in $PATH
26233 test -z "$as_dir" && as_dir=.
26234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26240 # We did not find ourselves, most probably we were run as `sh COMMAND'
26241 # in which case we are not to be found in the path.
26242 if test "x$as_myself" = x
; then
26245 if test ! -f "$as_myself"; then
26246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26247 { (exit 1); exit 1; }
26250 # Work around bugs in pre-3.0 UWIN ksh.
26251 for as_var
in ENV MAIL MAILPATH
26252 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26264 # Required to use basename.
26265 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26266 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26272 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26273 as_basename
=basename
26279 # Name of the executable.
26280 as_me
=`$as_basename -- "$0" ||
26281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26282 X"$0" : 'X\(//\)$' \| \
26283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26285 sed '/^.*\/\([^/][^/]*\)\/*$/{
26304 as_lineno_1
=$LINENO
26305 as_lineno_2
=$LINENO
26306 test "x$as_lineno_1" != "x$as_lineno_2" &&
26307 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26309 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26310 # uniformly replaced by the line number. The first 'sed' inserts a
26311 # line-number line after each line using $LINENO; the second 'sed'
26312 # does the real work. The second script uses 'N' to pair each
26313 # line-number line with the line containing $LINENO, and appends
26314 # trailing '-' during substitution so that $LINENO is not a special
26315 # case at line end.
26316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26317 # scripts with optimization help from Paolo Bonzini. Blame Lee
26318 # E. McMahon (1931-1989) for sed's syntax. :-)
26330 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26333 ' >$as_me.lineno
&&
26334 chmod +x
"$as_me.lineno" ||
26335 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26336 { (exit 1); exit 1; }; }
26338 # Don't try to exec as it changes $[0], causing all sort of problems
26339 # (the dirname of $[0] is not the place where we might find the
26340 # original and so on. Autoconf is especially sensitive to this).
26341 .
"./$as_me.lineno"
26342 # Exit status is that of the last command.
26347 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26353 ECHO_C
= ECHO_N
= ECHO_T
=
26354 case `echo -n x` in
26356 case `echo 'x\c'` in
26357 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26363 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26364 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26370 rm -f conf$$ conf$$.exe conf$$.
file
26371 if test -d conf$$.dir
; then
26372 rm -f conf$$.dir
/conf$$.
file
26375 mkdir conf$$.dir
2>/dev
/null
26377 if (echo >conf$$.
file) 2>/dev
/null
; then
26378 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26380 # ... but there are two gotchas:
26381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26383 # In both cases, we have to default to `cp -p'.
26384 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26386 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26394 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26395 rmdir conf$$.dir
2>/dev
/null
26397 if mkdir
-p .
2>/dev
/null
; then
26400 test -d .
/-p && rmdir .
/-p
26404 if test -x / >/dev
/null
2>&1; then
26405 as_test_x
='test -x'
26407 if ls -dL / >/dev
/null
2>&1; then
26414 if test -d "$1"; then
26420 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26421 ???[sx]*):;;*)false;;esac;fi
26425 as_executable_p
=$as_test_x
26427 # Sed expression to map a string onto a valid CPP name.
26428 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26430 # Sed expression to map a string onto a valid variable name.
26431 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26436 # Save the log message, to keep $[0] and so on meaningful, and to
26437 # report actual input values of CONFIG_FILES etc. instead of their
26438 # values after options handling.
26440 This file was extended by emacs $as_me 24.0.50, which was
26441 generated by GNU Autoconf 2.62. Invocation command line was
26443 CONFIG_FILES = $CONFIG_FILES
26444 CONFIG_HEADERS = $CONFIG_HEADERS
26445 CONFIG_LINKS = $CONFIG_LINKS
26446 CONFIG_COMMANDS = $CONFIG_COMMANDS
26449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26455 # Files that config.status was made for.
26456 config_files="$ac_config_files"
26457 config_headers="$ac_config_headers"
26458 config_commands="$ac_config_commands"
26462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26464 \`$as_me' instantiates files from templates according to the
26465 current configuration.
26467 Usage: $0 [OPTIONS] [FILE]...
26469 -h, --help print this help, then exit
26470 -V, --version print version number and configuration settings, then exit
26471 -q, --quiet do not print progress messages
26472 -d, --debug don't remove temporary files
26473 --recheck update $as_me by reconfiguring in the same conditions
26474 --file=FILE[:TEMPLATE]
26475 instantiate the configuration file FILE
26476 --header=FILE[:TEMPLATE]
26477 instantiate the configuration header FILE
26479 Configuration files:
26482 Configuration headers:
26485 Configuration commands:
26488 Report bugs to <bug-autoconf@gnu.org>."
26491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26493 emacs config.status 24.0.50
26494 configured by $0, generated by GNU Autoconf 2.62,
26495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26497 Copyright (C) 2008 Free Software Foundation, Inc.
26498 This config.status script is free software; the Free Software Foundation
26499 gives unlimited permission to copy, distribute and modify it."
26504 test -n "\$AWK" || AWK=awk
26507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26508 # The default lists apply if the user does not specify any file.
26514 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26515 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26526 # Handling of the options.
26527 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26529 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26530 $as_echo "$ac_cs_version"; exit ;;
26531 --debug |
--debu |
--deb |
--de |
--d |
-d )
26533 --file |
--fil |
--fi |
--f )
26536 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26538 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26539 ac_need_defaults
=false
;;
26540 --header |
--heade |
--head |
--hea )
26543 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26545 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26546 ac_need_defaults
=false
;;
26548 # Conflict between --help and --header
26549 { $as_echo "$as_me: error: ambiguous option: $1
26550 Try \`$0 --help' for more information." >&2
26551 { (exit 1); exit 1; }; };;
26552 --help |
--hel |
-h )
26553 $as_echo "$ac_cs_usage"; exit ;;
26554 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26555 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26558 # This is an error.
26559 -*) { $as_echo "$as_me: error: unrecognized option: $1
26560 Try \`$0 --help' for more information." >&2
26561 { (exit 1); exit 1; }; } ;;
26563 *) ac_config_targets
="$ac_config_targets $1"
26564 ac_need_defaults
=false
;;
26570 ac_configure_extra_args
=
26572 if $ac_cs_silent; then
26574 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26579 if \$ac_cs_recheck; then
26580 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26582 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26583 CONFIG_SHELL='$SHELL'
26584 export CONFIG_SHELL
26589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26593 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26594 ## Running $as_me. ##
26600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26604 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26610 # Handling of arguments.
26611 for ac_config_target
in $ac_config_targets
26613 case $ac_config_target in
26614 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26615 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26616 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26617 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26618 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26619 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26620 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26621 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26622 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26623 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26624 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26625 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26626 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26628 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26629 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26630 { (exit 1); exit 1; }; };;
26635 # If the user did not use the arguments to specify the items to instantiate,
26636 # then the envvar interface is used. Set only those that are not.
26637 # We use the long form for the default assignment because of an extremely
26638 # bizarre bug on SunOS 4.1.3.
26639 if $ac_need_defaults; then
26640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26645 # Have a temporary directory for convenience. Make it in the build tree
26646 # simply because there is no reason against having it here, and in addition,
26647 # creating and moving files from /tmp can sometimes cause problems.
26648 # Hook for its removal unless debugging.
26649 # Note that there is a small window in which the directory will not be cleaned:
26650 # after its creation but before its name has been assigned to `$tmp'.
26654 trap 'exit_status=$?
26655 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26657 trap '{ (exit 1); exit 1; }' 1 2 13 15
26659 # Create a (secure) tmp directory for tmp files.
26662 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26663 test -n "$tmp" && test -d "$tmp"
26666 tmp
=.
/conf$$
-$RANDOM
26667 (umask 077 && mkdir
"$tmp")
26670 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26671 { (exit 1); exit 1; }
26674 # Set up the scripts for CONFIG_FILES section.
26675 # No need to generate them if there are no CONFIG_FILES.
26676 # This happens for instance with `./config.status config.h'.
26677 if test -n "$CONFIG_FILES"; then
26681 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26685 ac_cs_awk_cr
=$ac_cr
26688 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26693 echo "cat >conf$$subs.awk <<_ACEOF" &&
26694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26696 } >conf$$subs.sh ||
26697 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26698 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26699 { (exit 1); exit 1; }; }
26700 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26702 for ac_last_try in false false false false false :; do
26703 . ./conf$$subs.sh ||
26704 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26705 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26706 { (exit 1); exit 1; }; }
26708 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26710 elif $ac_last_try; then
26711 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26712 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26713 { (exit 1); exit 1; }; }
26715 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26718 rm -f conf$$subs.sh
26720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26721 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26725 s/^/S["/; s
/!.
*/"]=/
26735 s/\(.\{148\}\).*/\1/
26737 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26742 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26749 s/\(.\{148\}\).*/\1/
26751 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26755 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26760 ' <conf$$subs.awk | sed '
26765 ' >>$CONFIG_STATUS || ac_write_fail=1
26766 rm -f conf$$subs.awk
26767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26769 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26770 for (key in S) S_is_set[key] = 1
26776 nfields = split(line, field, "@
")
26778 len = length(field[1])
26779 for (i = 2; i < nfields; i++) {
26781 keylen = length(key)
26782 if (S_is_set[key]) {
26784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26785 len += length(value) + length(field[++i])
26796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26797 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26798 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26801 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26802 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26803 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26804 { (exit 1); exit 1; }; }
26807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26809 # trailing colons and then remove the whole line if VPATH becomes empty
26810 # (actually we leave an empty line to preserve line numbers).
26811 if test "x
$srcdir" = x.; then
26812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26813 s/:*\$(srcdir):*/:/
26814 s/:*\${srcdir}:*/:/
26816 s/^\([^=]*=[ ]*\):*/\1/
26822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26823 fi # test -n "$CONFIG_FILES"
26825 # Set up the scripts for CONFIG_HEADERS section.
26826 # No need to generate them if there are no CONFIG_HEADERS.
26827 # This happens for instance with `./config.status Makefile'.
26828 if test -n "$CONFIG_HEADERS"; then
26829 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26833 # Transform confdefs.h into an awk script `defines.awk', embedded as
26834 # here-document in config.status, that substitutes the proper values into
26835 # config.h.in to produce config.h.
26837 # Create a delimiter string that does not exist in confdefs.h, to ease
26838 # handling of long lines.
26840 for ac_last_try in false false :; do
26841 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26842 if test -z "$ac_t"; then
26844 elif $ac_last_try; then
26845 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26846 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26847 { (exit 1); exit 1; }; }
26849 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26853 # For the awk script, D is an array of macro values keyed by name,
26854 # likewise P contains macro parameters if any. Preserve backslash
26855 # newline sequences.
26857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26859 s/.\{148\}/&'"$ac_delim"'/g
26862 s/^[ ]*#[ ]*define[ ][ ]*/ /
26869 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26871 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26876 D["\
1"]=" \
3\\\\\\n
"\\/p
26878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26883 s/.\{148\}/&'"$ac_delim"'/g
26888 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26891 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26893 ' <confdefs.h | sed '
26894 s/'"$ac_delim"'/"\\\
26895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26898 for (key in D) D_is_set[key] = 1
26901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26903 split(line, arg, " ")
26904 if (arg[1] == "#") {
26908 defundef
= substr
(arg
[1], 2)
26911 split(mac1
, mac2
, "(") #)
26913 if (D_is_set
[macro
]) {
26914 # Preserve the white space surrounding the "#".
26915 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26916 print prefix
"define", macro P
[macro
] D
[macro
]
26919 # Replace #undef with comments. This is necessary, for example,
26920 # in the case of _POSIX_SOURCE, which is predefined and required
26921 # on some systems where configure will not decide to define it.
26922 if (defundef
== "undef") {
26923 print
"/*", line
, "*/"
26931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26932 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26933 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26934 { (exit 1); exit 1; }; }
26935 fi # test -n "$CONFIG_HEADERS"
26938 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26943 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26945 case $ac_mode$ac_tag in
26947 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26948 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26949 { (exit 1); exit 1; }; };;
26950 :[FH
]-) ac_tag
=-:-;;
26951 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26968 -) ac_f
="$tmp/stdin";;
26969 *) # Look for the file first in the build tree, then in the source tree
26970 # (if the path is not absolute). The absolute path cannot be DOS-style,
26971 # because $ac_f cannot contain `:'.
26975 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26977 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26978 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26979 { (exit 1); exit 1; }; };;
26981 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26982 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26985 # Let's still pretend it is `configure' which instantiates (i.e., don't
26986 # use $as_me), people would be surprised to read:
26987 # /* config.h. Generated by config.status. */
26988 configure_input
='Generated from '`
26989 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26991 if test x
"$ac_file" != x-
; then
26992 configure_input
="$ac_file. $configure_input"
26993 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26994 $as_echo "$as_me: creating $ac_file" >&6;}
26996 # Neutralize special characters interpreted by sed in replacement strings.
26997 case $configure_input in #(
26998 *\
&* |
*\|
* |
*\\* )
26999 ac_sed_conf_input
=`$as_echo "$configure_input" |
27000 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27001 *) ac_sed_conf_input
=$configure_input;;
27005 *:-:* |
*:-) cat >"$tmp/stdin" \
27006 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27007 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27008 { (exit 1); exit 1; }; } ;;
27013 ac_dir
=`$as_dirname -- "$ac_file" ||
27014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27015 X"$ac_file" : 'X\(//\)[^/]' \| \
27016 X"$ac_file" : 'X\(//\)$' \| \
27017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27018 $as_echo X"$ac_file" |
27019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27023 /^X\(\/\/\)[^/].*/{
27038 -*) as_dir
=.
/$as_dir;;
27040 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27044 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27045 *) as_qdir
=$as_dir;;
27047 as_dirs
="'$as_qdir' $as_dirs"
27048 as_dir
=`$as_dirname -- "$as_dir" ||
27049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27050 X"$as_dir" : 'X\(//\)[^/]' \| \
27051 X"$as_dir" : 'X\(//\)$' \| \
27052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27053 $as_echo X"$as_dir" |
27054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27058 /^X\(\/\/\)[^/].*/{
27071 test -d "$as_dir" && break
27073 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27074 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27075 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27076 { (exit 1); exit 1; }; }; }
27080 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27082 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27083 # A ".." for each directory in $ac_dir_suffix.
27084 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27085 case $ac_top_builddir_sub in
27086 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27087 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27090 ac_abs_top_builddir
=$ac_pwd
27091 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27092 # for backward compatibility:
27093 ac_top_builddir
=$ac_top_build_prefix
27096 .
) # We are building in place.
27098 ac_top_srcdir
=$ac_top_builddir_sub
27099 ac_abs_top_srcdir
=$ac_pwd ;;
27100 [\\/]* | ?
:[\\/]* ) # Absolute name.
27101 ac_srcdir
=$srcdir$ac_dir_suffix;
27102 ac_top_srcdir
=$srcdir
27103 ac_abs_top_srcdir
=$srcdir ;;
27104 *) # Relative name.
27105 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27106 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27107 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27109 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27119 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27120 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27125 # If the template does not know about datarootdir, expand it.
27126 # FIXME: This hack should be removed a few years after 2.60.
27127 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27141 *datarootdir
*) ac_datarootdir_seen
=yes;;
27142 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27143 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27147 ac_datarootdir_hack='
27148 s&@datadir@&$datadir&g
27149 s&@docdir@&$docdir&g
27150 s&@infodir@&$infodir&g
27151 s&@localedir@&$localedir&g
27152 s&@mandir@&$mandir&g
27153 s&\\\${datarootdir}&$datarootdir&g' ;;
27157 # Neutralize VPATH when `$srcdir' = `.'.
27158 # Shell code in configure.ac might set extrasub.
27159 # FIXME: do we really want to maintain this feature?
27160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27161 ac_sed_extra="$ac_vpsub
27164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27166 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27167 s|@configure_input@|
$ac_sed_conf_input|
;t t
27168 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27169 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27170 s
&@srcdir@
&$ac_srcdir&;t t
27171 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27172 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27173 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27174 s
&@builddir@
&$ac_builddir&;t t
27175 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27176 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27177 s
&@INSTALL@
&$ac_INSTALL&;t t
27178 $ac_datarootdir_hack
27180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27181 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27182 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27183 { (exit 1); exit 1; }; }
27185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27186 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27188 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27189 which seems to be undefined. Please make sure it is defined." >&5
27190 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27191 which seems to be undefined. Please make sure it is defined." >&2;}
27195 -) cat "$tmp/out" && rm -f "$tmp/out";;
27196 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27198 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27199 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27200 { (exit 1); exit 1; }; }
27206 if test x"$ac_file" != x-; then
27208 $as_echo "/* $configure_input */" \
27209 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27210 } >"$tmp/config.h" \
27211 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27212 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27213 { (exit 1); exit 1; }; }
27214 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27215 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27216 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27219 mv "$tmp/config.h" "$ac_file" \
27220 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27221 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27222 { (exit 1); exit 1; }; }
27225 $as_echo "/* $configure_input */" \
27226 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27227 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27228 $as_echo "$as_me: error: could not create -" >&2;}
27229 { (exit 1); exit 1; }; }
27233 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27234 $as_echo "$as_me: executing $ac_file commands" >&6;}
27239 case $ac_file$ac_mode in
27242 ### Make the necessary directories, if they don't exist.
27243 for dir
in etc lisp
; do
27244 test -d ${dir} || mkdir
${dir}
27247 # Build src/Makefile from ${srcdir}/src/Makefile.c
27248 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27249 # This must be done after src/config.h is built, since we rely on that file.
27251 echo creating src
/epaths.h
27252 ${MAKE-make} epaths-force
27254 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27255 # `..' to `. .' unless invoked with -traditional
27257 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27258 CPPFLAGS
="$CPPFLAGS -traditional"
27261 echo creating lib-src
/Makefile
27263 rm -f junk.c junk1.c junk2.c
27264 sed -e '/start of cpp stuff/q' \
27265 < Makefile.c
> junk1.c
27266 sed -e '1,/start of cpp stuff/d'\
27267 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27268 < Makefile.c
> junk.c
27269 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27270 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27271 cat junk1.c junk2.c
> Makefile.new
27272 rm -f junk.c junk1.c junk2.c
27273 chmod 444 Makefile.new
27274 mv -f Makefile.new Makefile
27277 echo creating src
/Makefile
27279 rm -f junk.c junk1.c junk2.c
27280 sed -e '/start of cpp stuff/q' \
27281 < Makefile.c
> junk1.c
27282 sed -e '1,/start of cpp stuff/d'\
27283 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27284 < Makefile.c
> junk.c
27285 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27286 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27287 cat junk1.c junk2.c
> Makefile.new
27288 rm -f junk.c junk1.c junk2.c
27289 chmod 444 Makefile.new
27290 mv -f Makefile.new Makefile
27293 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27294 echo creating src
/.gdbinit
27295 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27304 { (exit 0); exit 0; }
27306 chmod +x
$CONFIG_STATUS
27307 ac_clean_files
=$ac_clean_files_save
27309 test $ac_write_fail = 0 ||
27310 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27311 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27312 { (exit 1); exit 1; }; }
27315 # configure is writing to config.log, and then calls config.status.
27316 # config.status does its own redirection, appending to config.log.
27317 # Unfortunately, on DOS this fails, as config.log is still kept open
27318 # by configure, so config.status won't be able to write to it; its
27319 # output is simply discarded. So we exec the FD to /dev/null,
27320 # effectively closing config.log, so it can be properly (re)opened and
27321 # appended to by config.status. When coming back to configure, we
27322 # need to make the FD available again.
27323 if test "$no_create" != yes; then
27325 ac_config_status_args
=
27326 test "$silent" = yes &&
27327 ac_config_status_args
="$ac_config_status_args --quiet"
27329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27332 # would make configure fail if this is the last instruction.
27333 $ac_cs_success ||
{ (exit 1); exit 1; }
27335 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27336 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27337 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}