2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
641 ac_subst_vars
='LTLIBOBJS
643 LIB_SRC_EXTRA_INSTALLABLES
645 GNUSTEP_SYSTEM_LIBRARIES
646 GNUSTEP_SYSTEM_HEADERS
665 x_default_search_path
777 program_transform_name
789 enable_option_checking
810 with_toolkit_scroll_bars
822 enable_ns_self_contained
824 enable_maintainer_mode
832 ac_precious_vars
='build_alias
844 # Initialize some variables set by options.
846 ac_init_version
=false
847 ac_unrecognized_opts
=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name
=s
,x
,x
,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir
='${exec_prefix}/bin'
873 sbindir
='${exec_prefix}/sbin'
874 libexecdir
='${exec_prefix}/libexec'
875 datarootdir
='${prefix}/share'
876 datadir
='${datarootdir}'
877 sysconfdir
='${prefix}/etc'
878 sharedstatedir
='${prefix}/com'
879 localstatedir
='${prefix}/var'
880 includedir
='${prefix}/include'
881 oldincludedir
='/usr/include'
882 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir
='${datarootdir}/info'
888 libdir
='${exec_prefix}/lib'
889 localedir
='${datarootdir}/locale'
890 mandir
='${datarootdir}/man'
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\
$ac_option
904 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
914 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
916 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
919 -build |
--build |
--buil |
--bui |
--bu)
920 ac_prev
=build_alias
;;
921 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
922 build_alias
=$ac_optarg ;;
924 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
925 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
926 ac_prev
=cache_file
;;
927 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
928 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
929 cache_file
=$ac_optarg ;;
932 cache_file
=config.cache
;;
934 -datadir |
--datadir |
--datadi |
--datad)
936 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
937 datadir
=$ac_optarg ;;
939 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
940 |
--dataroo |
--dataro |
--datar)
941 ac_prev
=datarootdir
;;
942 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
943 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
944 datarootdir
=$ac_optarg ;;
946 -disable-* |
--disable-*)
947 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
950 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
951 { (exit 1); exit 1; }; }
952 ac_useropt_orig
=$ac_useropt
953 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep
=', ';;
961 eval enable_
$ac_useropt=no
;;
963 -docdir |
--docdir |
--docdi |
--doc |
--do)
965 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
968 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
970 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
973 -enable-* |
--enable-*)
974 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
977 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
978 { (exit 1); exit 1; }; }
979 ac_useropt_orig
=$ac_useropt
980 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
985 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep
=', ';;
988 eval enable_
$ac_useropt=\
$ac_optarg ;;
990 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
991 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
992 |
--exec |
--exe |
--ex)
993 ac_prev
=exec_prefix
;;
994 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
995 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
996 |
--exec=* |
--exe=* |
--ex=*)
997 exec_prefix
=$ac_optarg ;;
999 -gas |
--gas |
--ga |
--g)
1000 # Obsolete; use --with-gas.
1003 -help |
--help |
--hel |
--he |
-h)
1004 ac_init_help
=long
;;
1005 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1006 ac_init_help
=recursive
;;
1007 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1008 ac_init_help
=short
;;
1010 -host |
--host |
--hos |
--ho)
1011 ac_prev
=host_alias
;;
1012 -host=* |
--host=* |
--hos=* |
--ho=*)
1013 host_alias
=$ac_optarg ;;
1015 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1017 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1019 htmldir
=$ac_optarg ;;
1021 -includedir |
--includedir |
--includedi |
--included |
--include \
1022 |
--includ |
--inclu |
--incl |
--inc)
1023 ac_prev
=includedir
;;
1024 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1025 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1026 includedir
=$ac_optarg ;;
1028 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1030 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1031 infodir
=$ac_optarg ;;
1033 -libdir |
--libdir |
--libdi |
--libd)
1035 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1036 libdir
=$ac_optarg ;;
1038 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1039 |
--libexe |
--libex |
--libe)
1040 ac_prev
=libexecdir
;;
1041 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1042 |
--libexe=* |
--libex=* |
--libe=*)
1043 libexecdir
=$ac_optarg ;;
1045 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1046 ac_prev
=localedir
;;
1047 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1048 localedir
=$ac_optarg ;;
1050 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1051 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1052 ac_prev
=localstatedir
;;
1053 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1054 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1055 localstatedir
=$ac_optarg ;;
1057 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1059 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1060 mandir
=$ac_optarg ;;
1062 -nfp |
--nfp |
--nf)
1063 # Obsolete; use --without-fp.
1066 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1067 |
--no-cr |
--no-c |
-n)
1070 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1071 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1074 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1075 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1076 |
--oldin |
--oldi |
--old |
--ol |
--o)
1077 ac_prev
=oldincludedir
;;
1078 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1079 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1080 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1081 oldincludedir
=$ac_optarg ;;
1083 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1085 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1086 prefix
=$ac_optarg ;;
1088 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1089 |
--program-pre |
--program-pr |
--program-p)
1090 ac_prev
=program_prefix
;;
1091 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1092 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1093 program_prefix
=$ac_optarg ;;
1095 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1096 |
--program-suf |
--program-su |
--program-s)
1097 ac_prev
=program_suffix
;;
1098 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1099 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1100 program_suffix
=$ac_optarg ;;
1102 -program-transform-name |
--program-transform-name \
1103 |
--program-transform-nam |
--program-transform-na \
1104 |
--program-transform-n |
--program-transform- \
1105 |
--program-transform |
--program-transfor \
1106 |
--program-transfo |
--program-transf \
1107 |
--program-trans |
--program-tran \
1108 |
--progr-tra |
--program-tr |
--program-t)
1109 ac_prev
=program_transform_name
;;
1110 -program-transform-name=* |
--program-transform-name=* \
1111 |
--program-transform-nam=* |
--program-transform-na=* \
1112 |
--program-transform-n=* |
--program-transform-=* \
1113 |
--program-transform=* |
--program-transfor=* \
1114 |
--program-transfo=* |
--program-transf=* \
1115 |
--program-trans=* |
--program-tran=* \
1116 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1117 program_transform_name
=$ac_optarg ;;
1119 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1121 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1122 pdfdir
=$ac_optarg ;;
1124 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1126 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1129 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1130 |
-silent |
--silent |
--silen |
--sile |
--sil)
1133 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1135 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1137 sbindir
=$ac_optarg ;;
1139 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1140 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1141 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1143 ac_prev
=sharedstatedir
;;
1144 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1145 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1146 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1148 sharedstatedir
=$ac_optarg ;;
1150 -site |
--site |
--sit)
1152 -site=* |
--site=* |
--sit=*)
1155 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1157 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1158 srcdir
=$ac_optarg ;;
1160 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1161 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1162 ac_prev
=sysconfdir
;;
1163 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1164 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1165 sysconfdir
=$ac_optarg ;;
1167 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1168 ac_prev
=target_alias
;;
1169 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1170 target_alias
=$ac_optarg ;;
1172 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1175 -version |
--version |
--versio |
--versi |
--vers |
-V)
1176 ac_init_version
=: ;;
1179 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1182 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_useropt_orig
=$ac_useropt
1185 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep
=', ';;
1193 eval with_
$ac_useropt=\
$ac_optarg ;;
1195 -without-* |
--without-*)
1196 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig
=$ac_useropt
1202 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep
=', ';;
1210 eval with_
$ac_useropt=no
;;
1213 # Obsolete; use --with-x.
1216 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1217 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1218 ac_prev
=x_includes
;;
1219 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1220 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1221 x_includes
=$ac_optarg ;;
1223 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1224 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1225 ac_prev
=x_libraries
;;
1226 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1227 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1228 x_libraries
=$ac_optarg ;;
1230 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1236 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1239 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\
$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1257 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1264 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1265 { (exit 1); exit 1; }; } ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val
=\$
$ac_var
1277 # Remove trailing slashes.
1280 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\
$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$
]* | ?
:[\\/]* ) continue;;
1286 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1288 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1297 target
=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x
; then
1301 if test "x$build_alias" = x
; then
1302 cross_compiling
=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1311 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1313 test "$silent" = yes && exec 6>/dev
/null
1316 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di
=`ls -di .` &&
1318 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1319 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted
=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir
=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted
=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1362 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var
in $ac_precious_vars; do
1381 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1383 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1457 --x-includes=DIR X include files are
in DIR
1458 --x-libraries=DIR X library files are
in DIR
1461 --build=BUILD configure
for building on BUILD
[guessed
]
1462 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1473 --disable-option-checking ignore unrecognized
--enable/--with options
1474 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1475 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1476 --disable-ns-self-contained
1477 disable self contained build under NeXTstep
1478 --enable-asserts compile code with asserts enabled
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful
(and
1481 sometimes confusing
) to the casual installer
1482 --enable-locallisppath=PATH
1483 directories Emacs should search
for lisp files
1484 specific to this site
1485 --enable-checking[=LIST
]
1486 enable expensive run-time checks. With LIST
, enable
1487 only specific categories of checks. Categories are
:
1488 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1489 stringfreelist
, xmallocoverrun
, conslist
1490 --enable-profiling build emacs with profiling support. This might not
1491 work on all platforms
1492 --enable-autodepend automatically generate dependencies to .h-files.
1493 Requires GNU Make and Gcc. Enabled
if GNU Make and
1495 --disable-largefile omit support
for large files
1498 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1499 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1500 --without-pop don
't support POP mail retrieval with movemail
1501 --with-kerberos support Kerberos-authenticated POP
1502 --with-kerberos5 support Kerberos version 5 authenticated POP
1503 --with-hesiod support Hesiod to get the POP server host
1504 --with-mmdf support MMDF mailboxes
1505 --with-mail-unlink unlink, rather than empty, mail spool after reading
1506 --with-mailhost=HOSTNAME
1507 string giving default POP mail host
1508 --without-sound don't compile with sound support
1509 --without-sync-input process async input synchronously
1510 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1512 --without-xpm don
't compile with XPM image support
1513 --without-jpeg don't compile with JPEG image support
1514 --without-tiff don
't compile with TIFF image support
1515 --without-gif don't compile with GIF image support
1516 --without-png don
't compile with PNG image support
1517 --without-rsvg don't compile with SVG image support
1518 --with-imagemagick compile with ImageMagick image support
1519 --without-xft don
't use XFT for anti aliased fonts
1520 --without-libotf don't use libotf
for OpenType font support
1521 --without-m17n-flt don
't use m17n-flt for text shaping
1522 --without-toolkit-scroll-bars
1523 don't use Motif or Xaw3d scroll bars
1524 --without-xaw3d don
't use Xaw3d
1525 --without-xim don't use X11 XIM
1526 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1527 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1529 --without-dbus don't compile with D-Bus support
1530 --without-gconf don
't compile with GConf support
1531 --without-makeinfo don't require makeinfo
for building manuals
1533 --with-pkg-config-prog=PATH
1534 path to pkg-config
for finding GTK and librsvg
1535 --with-gnustep-conf=PATH
1536 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1537 or
/etc
/GNUstep
/GNUstep.conf
1538 --with-x use the X Window System
1540 Some influential environment variables
:
1541 CC C compiler
command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1544 nonstandard directory
<lib dir
>
1545 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1546 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1547 you have headers
in a nonstandard directory
<include dir
>
1549 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1551 Use these variables to override the choices made by
`configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 emacs configure 24.0.50
1617 generated by GNU Autoconf 2.63
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by emacs $as_me 24.0.50, which was
1631 generated by GNU Autoconf 2.63. Invocation command line was
1643 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1644 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1645 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1646 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1647 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1649 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1650 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1652 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1653 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1654 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1655 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1656 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1657 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1658 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 $as_echo "PATH: $as_dir"
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_must_keep_next=false
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1702 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 -* ) ac_must_keep_next=true ;;
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1750 eval ac_val=\$$ac_var
1754 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1758 _ | IFS | as_nl) ;; #(
1759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1760 *) $as_unset $ac_var ;;
1765 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1766 *${as_nl}ac_space=\ *)
1768 "s/'\''/'\''\\\\'\'''\''/g;
1769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780 ## ----------------- ##
1781 ## Output variables. ##
1782 ## ----------------- ##
1785 for ac_var in $ac_subst_vars
1787 eval ac_val=\$$ac_var
1789 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 $as_echo "$ac_var='\''$ac_val'\''"
1795 if test -n "$ac_subst_files"; then
1797 ## ------------------- ##
1798 ## File substitutions. ##
1799 ## ------------------- ##
1802 for ac_var in $ac_subst_files
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 $as_echo "$ac_var='\''$ac_val'\''"
1813 if test -s confdefs.h; then
1823 test "$ac_signal" != 0 &&
1824 $as_echo "$as_me: caught signal $ac_signal"
1825 $as_echo "$as_me: exit $exit_status"
1827 rm -f core *.core core.conftest.* &&
1828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1831 for ac_signal in 1 2 13 15; do
1832 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1837 rm -f -r conftest* confdefs.h
1839 # Predefined preprocessor variables.
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_NAME "$PACKAGE_NAME"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_STRING "$PACKAGE_STRING"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1866 # Let the site file select an alternate cache file if it wants to.
1867 # Prefer an explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871 ac_site_file1=$CONFIG_SITE
1872 elif test "x$prefix" != xNONE; then
1873 ac_site_file1=$prefix/share/config.site
1874 ac_site_file2=$prefix/etc/config.site
1876 ac_site_file1=$ac_default_prefix/share/config.site
1877 ac_site_file2=$ac_default_prefix/etc/config.site
1879 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1881 test "x$ac_site_file" = xNONE && continue
1882 if test -r "$ac_site_file"; then
1883 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1885 sed 's/^/| /' "$ac_site_file" >&5
1890 if test -r "$cache_file"; then
1891 # Some versions of bash will fail to source /dev/null (special
1892 # files actually), so we avoid doing that.
1893 if test -f "$cache_file"; then
1894 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 $as_echo "$as_me: loading cache $cache_file" >&6;}
1897 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898 *) . "./$cache_file";;
1902 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 $as_echo "$as_me: creating cache $cache_file" >&6;}
1907 ac_header_list="$ac_header_list sys/time.h"
1908 ac_header_list="$ac_header_list unistd.h"
1909 ac_func_list="$ac_func_list alarm"
1910 # Check that the precious variables saved in the cache have kept the same
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1921 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1925 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 # differences in whitespace do not lead to failure.
1931 ac_old_val_w=`echo x
$ac_old_val`
1932 ac_new_val_w=`echo x
$ac_new_val`
1933 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1936 ac_cache_corrupted=:
1938 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1940 eval $ac_var=\$ac_old_val
1942 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1943 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1944 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1945 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1951 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 if $ac_cache_corrupted; then
1961 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1963 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1966 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 ac_config_headers="$ac_config_headers src
/config.h
:src
/config.
in"
2005 test "$program_prefix" != NONE &&
2006 program_transform_name="s
&^
&$program_prefix&;$program_transform_name"
2007 # Use a double $ so make ignores it.
2008 test "$program_suffix" != NONE &&
2009 program_transform_name="s
&\$
&$program_suffix&;$program_transform_name"
2010 # Double any \ or $.
2011 # By default was `s,x,x', remove it if useless.
2012 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2013 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2016 lispdir='${datadir}/emacs/${version}/lisp'
2017 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2018 '${datadir}/emacs/site-lisp'
2019 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2020 etcdir='${datadir}/emacs/${version}/etc'
2021 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2022 docdir='${datadir}/emacs/${version}/etc'
2023 gamedir='${localstatedir}/games/emacs'
2030 # Check whether --with-pop was given.
2031 if test "${with_pop+set}" = set; then
2037 if test "$with_pop" = yes; then
2038 cat >>confdefs.h <<\_ACEOF
2039 #define MAIL_USE_POP 1
2046 # Check whether --with-kerberos was given.
2047 if test "${with_kerberos+set}" = set; then
2048 withval=$with_kerberos;
2053 if test "$with_kerberos" != no; then
2054 cat >>confdefs.h <<\_ACEOF
2062 # Check whether --with-kerberos5 was given.
2063 if test "${with_kerberos5+set}" = set; then
2064 withval=$with_kerberos5;
2069 if test "${with_kerberos5}" != no; then
2070 if test "${with_kerberos}" = no; then
2072 cat >>confdefs.h <<\_ACEOF
2078 cat >>confdefs.h <<\_ACEOF
2085 # Check whether --with-hesiod was given.
2086 if test "${with_hesiod+set}" = set; then
2087 withval=$with_hesiod;
2092 if test "$with_hesiod" != no; then
2094 cat >>confdefs.h <<\_ACEOF
2101 # Check whether --with-mmdf was given.
2102 if test "${with_mmdf+set}" = set; then
2108 if test "$with_mmdf" != no; then
2110 cat >>confdefs.h <<\_ACEOF
2111 #define MAIL_USE_MMDF 1
2117 # Check whether --with-mail-unlink was given.
2118 if test "${with_mail_unlink+set}" = set; then
2119 withval=$with_mail_unlink;
2124 if test "$with_mail_unlink" != no; then
2126 cat >>confdefs.h <<\_ACEOF
2127 #define MAIL_UNLINK_SPOOL 1
2133 # Check whether --with-mailhost was given.
2134 if test "${with_mailhost+set}" = set; then
2135 withval=$with_mailhost;
2136 cat >>confdefs.h <<_ACEOF
2137 #define MAILHOST "$withval"
2144 # Check whether --with-sound was given.
2145 if test "${with_sound+set}" = set; then
2146 withval=$with_sound;
2153 # Check whether --with-sync-input was given.
2154 if test "${with_sync_input+set}" = set; then
2155 withval=$with_sync_input;
2160 if test "$with_sync_input" = yes; then
2162 cat >>confdefs.h <<\_ACEOF
2163 #define SYNC_INPUT 1
2169 # Check whether --with-x-toolkit was given.
2170 if test "${with_x_toolkit+set}" = set; then
2171 withval=$with_x_toolkit; case "${withval}" in
2172 y | ye | yes ) val=gtk ;;
2174 l | lu | luc | luci | lucid ) val=lucid ;;
2175 a | at | ath | athe | athen | athena ) val=athena ;;
2176 m | mo | mot | moti | motif ) val=motif ;;
2177 g | gt | gtk ) val=gtk ;;
2179 { { $as_echo "$as_me:$LINENO: error
: \
`--with-x-toolkit=$withval' is invalid;
2180 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2181 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&5
2182 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid
;
2183 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2184 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&2;}
2185 { (exit 1); exit 1; }; }
2194 # Check whether --with-xpm was given.
2195 if test "${with_xpm+set}" = set; then
2202 # Check whether --with-jpeg was given.
2203 if test "${with_jpeg+set}" = set; then
2210 # Check whether --with-tiff was given.
2211 if test "${with_tiff+set}" = set; then
2218 # Check whether --with-gif was given.
2219 if test "${with_gif+set}" = set; then
2226 # Check whether --with-png was given.
2227 if test "${with_png+set}" = set; then
2234 # Check whether --with-rsvg was given.
2235 if test "${with_rsvg+set}" = set; then
2242 # Check whether --with-imagemagick was given.
2243 if test "${with_imagemagick+set}" = set; then
2244 withval=$with_imagemagick;
2251 # Check whether --with-xft was given.
2252 if test "${with_xft+set}" = set; then
2259 # Check whether --with-libotf was given.
2260 if test "${with_libotf+set}" = set; then
2261 withval=$with_libotf;
2267 # Check whether --with-m17n-flt was given.
2268 if test "${with_m17n_flt+set}" = set; then
2269 withval=$with_m17n_flt;
2276 # Check whether --with-toolkit-scroll-bars was given.
2277 if test "${with_toolkit_scroll_bars+set}" = set; then
2278 withval=$with_toolkit_scroll_bars;
2280 with_toolkit_scroll_bars=yes
2284 # Check whether --with-xaw3d was given.
2285 if test "${with_xaw3d+set}" = set; then
2286 withval=$with_xaw3d;
2292 # Check whether --with-xim was given.
2293 if test "${with_xim+set}" = set; then
2300 # Check whether --with-ns was given.
2301 if test "${with_ns+set}" = set; then
2309 # Check whether --with-gpm was given.
2310 if test "${with_gpm+set}" = set; then
2317 # Check whether --with-dbus was given.
2318 if test "${with_dbus+set}" = set; then
2325 # Check whether --with-gconf was given.
2326 if test "${with_gconf+set}" = set; then
2327 withval=$with_gconf;
2333 ## For the times when you want to build Emacs but don't have
2334 ## a suitable makeinfo, and can live without the manuals.
2336 # Check whether --with-makeinfo was given.
2337 if test "${with_makeinfo+set}" = set; then
2338 withval=$with_makeinfo;
2345 # Check whether --with-gtk was given.
2346 if test "${with_gtk+set}" = set; then
2347 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error
: --with-gtk has been removed. Use
--with-x-toolkit to
2348 specify a toolkit.
" >&5
2349 $as_echo "$as_me: error
: --with-gtk has been removed. Use
--with-x-toolkit to
2350 specify a toolkit.
" >&2;}
2351 { (exit 1); exit 1; }; }
2356 # Check whether --with-gcc was given.
2357 if test "${with_gcc+set}" = set; then
2358 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error
: --with-gcc has been removed. Set the \
`CC' environment
2359 variable to specify a compiler." >&5
2360 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC
' environment
2361 variable to specify a compiler." >&2;}
2362 { (exit 1); exit 1; }; }
2367 # Check whether --with-pkg-config-prog was given.
2368 if test "${with_pkg_config_prog+set}" = set; then
2369 withval=$with_pkg_config_prog;
2372 if test "X${with_pkg_config_prog}" != X; then
2373 if test "${with_pkg_config_prog}" != yes; then
2374 PKG_CONFIG="${with_pkg_config_prog}"
2379 # Check whether --with-gnustep-conf was given.
2380 if test "${with_gnustep_conf+set}" = set; then
2381 withval=$with_gnustep_conf;
2384 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2385 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2386 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2387 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2389 # Check whether --enable-ns-self-contained was given.
2390 if test "${enable_ns_self_contained+set}" = set; then
2391 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2393 EN_NS_SELF_CONTAINED=yes
2397 # Check whether --enable-asserts was given.
2398 if test "${enable_asserts+set}" = set; then
2399 enableval=$enable_asserts; USE_XASSERTS=$enableval
2405 # Check whether --enable-maintainer-mode was given.
2406 if test "${enable_maintainer_mode+set}" = set; then
2407 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2409 USE_MAINTAINER_MODE=no
2412 if test $USE_MAINTAINER_MODE = yes; then
2419 # Check whether --enable-locallisppath was given.
2420 if test "${enable_locallisppath+set}" = set; then
2421 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2423 elif test "${enableval}" != "yes"; then
2424 locallisppath=${enableval}
2429 # Check whether --enable-checking was given.
2430 if test "${enable_checking+set}" = set; then
2431 enableval=$enable_checking; ac_checking_flags="${enableval}"
2434 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2435 for check in $ac_checking_flags
2438 # these set all the flags to specific states
2439 yes) ac_enable_checking=1 ;;
2440 no) ac_enable_checking= ;
2441 ac_gc_check_stringbytes= ;
2442 ac_gc_check_string_overrun= ;
2443 ac_gc_check_string_free_list= ;
2444 ac_xmalloc_overrun= ;
2445 ac_gc_check_cons_list= ;;
2446 all) ac_enable_checking=1 ;
2447 ac_gc_check_stringbytes=1 ;
2448 ac_gc_check_string_overrun=1 ;
2449 ac_gc_check_string_free_list=1 ;
2450 ac_xmalloc_overrun=1 ;
2451 ac_gc_check_cons_list=1 ;;
2452 # these enable particular checks
2453 stringbytes) ac_gc_check_stringbytes=1 ;;
2454 stringoverrun) ac_gc_check_string_overrun=1 ;;
2455 stringfreelist) ac_gc_check_string_free_list=1 ;;
2456 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2457 conslist) ac_gc_check_cons_list=1 ;;
2458 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2459 $as_echo "$as_me: error: unknown check category $check" >&2;}
2460 { (exit 1); exit 1; }; } ;;
2465 if test x$ac_enable_checking != x ; then
2467 cat >>confdefs.h <<\_ACEOF
2468 #define ENABLE_CHECKING 1
2472 if test x$ac_gc_check_stringbytes != x ; then
2474 cat >>confdefs.h <<\_ACEOF
2475 #define GC_CHECK_STRING_BYTES 1
2479 if test x$ac_gc_check_stringoverrun != x ; then
2481 cat >>confdefs.h <<\_ACEOF
2482 #define GC_CHECK_STRING_OVERRUN 1
2486 if test x$ac_gc_check_string_free_list != x ; then
2488 cat >>confdefs.h <<\_ACEOF
2489 #define GC_CHECK_STRING_FREE_LIST 1
2493 if test x$ac_xmalloc_overrun != x ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define XMALLOC_OVERRUN_CHECK 1
2500 if test x$ac_gc_check_cons_list != x ; then
2502 cat >>confdefs.h <<\_ACEOF
2503 #define GC_CHECK_CONS_LIST 1
2508 # Check whether --enable-profiling was given.
2509 if test "${enable_profiling+set}" = set; then
2510 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2513 if test x$ac_enable_profiling != x ; then
2514 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2515 PROFILING_LDFLAGS="-pg"
2521 # Check whether --enable-autodepend was given.
2522 if test "${enable_autodepend+set}" = set; then
2523 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2525 ac_enable_autodepend=yes
2529 #### Make srcdir absolute, if it isn't already. It
's important to
2530 #### avoid running the path through pwd unnecessarily, since pwd can
2531 #### give you automounter prefixes, which can go away. We do all this
2532 #### so Emacs can find its files when run uninstalled.
2533 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2538 ## We may be able to use the $PWD environment variable to make this
2539 ## absolute. But sometimes PWD is inaccurate.
2540 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2541 ## but that tested only for a well-formed and valid PWD,
2542 ## it did not object when PWD was well-formed and valid but just wrong.
2543 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2547 srcdir
="`(cd ${srcdir}; pwd)`"
2550 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2553 #### Check if the source directory already has a configured system in it.
2554 if test `pwd` != `(cd ${srcdir} && pwd)` \
2555 && test -f "${srcdir}/src/config.h" ; then
2556 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2557 as a build directory right now; it has been configured in its own
2558 right. To configure in another directory as well, you MUST
2559 use GNU make. If you do not have GNU make, then you must
2560 now do \`make distclean' in ${srcdir},
2561 and then run $0 again." >&5
2562 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2563 as a build directory right now; it has been configured in its own
2564 right. To configure in another directory as well, you MUST
2565 use GNU make. If you do not have GNU make, then you must
2566 now do \`make distclean' in ${srcdir},
2567 and then run $0 again." >&2;}
2570 #### Given the configuration name, set machfile and opsysfile to the
2571 #### names of the m/*.h and s/*.h files we should use.
2573 ### Canonicalize the configuration name.
2576 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2577 if test -f "$ac_dir/install-sh"; then
2579 ac_install_sh
="$ac_aux_dir/install-sh -c"
2581 elif test -f "$ac_dir/install.sh"; then
2583 ac_install_sh
="$ac_aux_dir/install.sh -c"
2585 elif test -f "$ac_dir/shtool"; then
2587 ac_install_sh
="$ac_aux_dir/shtool install -c"
2591 if test -z "$ac_aux_dir"; then
2592 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2593 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2594 { (exit 1); exit 1; }; }
2597 # These three variables are undocumented and unsupported,
2598 # and are intended to be withdrawn in a future Autoconf release.
2599 # They can cause serious problems if a builder's source tree is in a directory
2600 # whose full name contains unusual characters.
2601 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2602 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2603 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606 # Make sure we can run config.sub.
2607 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2608 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2609 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2610 { (exit 1); exit 1; }; }
2612 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2613 $as_echo_n "checking build system type... " >&6; }
2614 if test "${ac_cv_build+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2617 ac_build_alias
=$build_alias
2618 test "x$ac_build_alias" = x
&&
2619 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2620 test "x$ac_build_alias" = x
&&
2621 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2622 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2623 { (exit 1); exit 1; }; }
2624 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2625 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2626 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2627 { (exit 1); exit 1; }; }
2630 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2631 $as_echo "$ac_cv_build" >&6; }
2632 case $ac_cv_build in
2634 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2635 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2636 { (exit 1); exit 1; }; };;
2639 ac_save_IFS
=$IFS; IFS
='-'
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2649 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2653 $as_echo_n "checking host system type... " >&6; }
2654 if test "${ac_cv_host+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2657 if test "x$host_alias" = x
; then
2658 ac_cv_host
=$ac_cv_build
2660 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2661 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2662 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2663 { (exit 1); exit 1; }; }
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2668 $as_echo "$ac_cv_host" >&6; }
2671 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2672 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2673 { (exit 1); exit 1; }; };;
2676 ac_save_IFS
=$IFS; IFS
='-'
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2686 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2690 configuration
=${host_alias-${build_alias-$host}}
2694 ### If you add support for a new configuration, add code to this
2695 ### switch statement to recognize your configuration name and select
2696 ### the appropriate operating system and machine description files.
2698 ### You would hope that you could choose an m/*.h file pretty much
2699 ### based on the machine portion of the configuration name, and an s-
2700 ### file based on the operating system portion. However, it turns out
2701 ### that each m/*.h file is pretty manufacturer-specific - for
2702 ### example mips.h is MIPS
2703 ### So we basically have to have a special case for each
2704 ### configuration name.
2706 ### As far as handling version numbers on operating systems is
2707 ### concerned, make sure things will fail in a fixable way. If
2708 ### /etc/MACHINES doesn't say anything about version numbers, be
2709 ### prepared to handle anything reasonably. If version numbers
2710 ### matter, be sure /etc/MACHINES says something about it.
2712 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2713 ### "System V Release 4"; he writes, "The old convention encouraged
2714 ### confusion between `system' and `release' levels'."
2716 machine
='' opsys
='' unported
=no
2717 case "${canonical}" in
2722 case "${canonical}" in
2723 alpha
*-*-freebsd*) machine
=alpha
;;
2724 arm
*-*-freebsd*) machine
=arm
;;
2725 ia64-
*-freebsd*) machine
=ia64
;;
2726 sparc-
*-freebsd*) machine
=sparc
;;
2727 sparc64-
*-freebsd*) machine
=sparc
;;
2728 powerpc-
*-freebsd*) machine
=macppc
;;
2729 i
[3456]86-*-freebsd*) machine
=intel386
;;
2730 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2734 ## FreeBSD kernel + glibc based userland
2737 case "${canonical}" in
2738 alpha
*-*-kfreebsd*) machine
=alpha
;;
2739 ia64-
*-kfreebsd*) machine
=ia64
;;
2740 sparc-
*-kfreebsd*) machine
=sparc
;;
2741 sparc64-
*-kfreebsd*) machine
=sparc
;;
2742 powerpc-
*-kfreebsd*) machine
=macppc
;;
2743 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2744 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2751 if test -f /usr
/lib
/crti.o
; then
2753 cat >>confdefs.h
<<\_ACEOF
2754 #define HAVE_CRTIN /**/
2759 case "${canonical}" in
2760 alpha
*-*-netbsd*) machine
=alpha
;;
2761 i
[3456]86-*-netbsd*) machine
=intel386
;;
2762 mips-
*-netbsd*) machine
=mips
;;
2763 mipsel-
*-netbsd*) machine
=mips
;;
2764 mipseb-
*-netbsd*) machine
=mips
;;
2765 powerpc-
*-netbsd*) machine
=macppc
;;
2766 sparc
*-*-netbsd*) machine
=sparc
;;
2767 vax-
*-netbsd*) machine
=vax
;;
2768 arm-
*-netbsd*) machine
=arm
;;
2769 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2770 hppa-
*-netbsd*) machine
=hp800
;;
2771 m68k-
*-netbsd*) machine
=m68k
;;
2778 case "${canonical}" in
2779 alpha
*-*-openbsd*) machine
=alpha
;;
2780 arm-
*-openbsd*) machine
=arm
;;
2781 i386-
*-openbsd*) machine
=intel386
;;
2782 powerpc-
*-openbsd*) machine
=macppc
;;
2783 sparc
*-*-openbsd*) machine
=sparc
;;
2784 vax-
*-openbsd*) machine
=vax
;;
2785 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2786 hppa-
*-openbsd*) machine
=hp800
;;
2790 alpha
*-*-linux-gnu* )
2791 machine
=alpha opsys
=gnu-linux
2795 machine
=arm opsys
=gnu-linux
2798 ## Apple Darwin / Mac OS X
2800 case "${canonical}" in
2801 i
[3456]86-* ) machine
=intel386
;;
2802 powerpc-
* ) machine
=macppc
;;
2803 x86_64-
* ) machine
=amdx86-64
;;
2807 # Define CPP as follows to make autoconf work correctly.
2808 CPP
="${CC-cc} -E -no-cpp-precomp"
2809 # Use fink packages if available.
2810 if test -d /sw
/include
&& test -d /sw
/lib
; then
2811 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2812 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2813 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2817 ## HP 9000 series 700 and 800, running HP/UX
2818 hppa
*-hp-hpux10.2
* )
2819 machine
=hp800 opsys
=hpux10-20
2821 hppa
*-hp-hpux1[1-9]* )
2822 machine
=hp800 opsys
=hpux11
2823 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2826 hppa
*-*-linux-gnu* )
2827 machine
=hp800 opsys
=gnu-linux
2832 machine
=ibms390 opsys
=gnu-linux
2834 s390x-
*-linux-gnu* )
2835 machine
=ibms390x opsys
=gnu-linux
2837 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2838 machine
=ibmrs6000 opsys
=aix4-2
2840 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2841 machine
=ibmrs6000 opsys
=aix4-2
2843 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2844 machine
=ibmrs6000 opsys
=aix4-2
2846 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2847 machine
=ibmrs6000 opsys
=aix4-2
2850 ## Macintosh PowerPC
2851 powerpc
*-*-linux-gnu* )
2852 machine
=macppc opsys
=gnu-linux
2855 ## Silicon Graphics machines
2858 machine
=iris4d opsys
=irix6-5
2859 # Without defining _LANGUAGE_C, things get masked out in the headers
2860 # so that, for instance, grepping for `free' in stdlib.h fails and
2861 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2862 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2863 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2867 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2868 machine
=sparc opsys
=gnu-linux
2872 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2873 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2874 case "${canonical}" in
2875 i
[3456]86-*-* ) machine
=intel386
;;
2876 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2877 sparc
* ) machine
=sparc
;;
2880 case "${canonical}" in
2881 *-sunos5.6
* |
*-solaris2.6
* )
2883 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2886 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2888 emacs_check_sunpro_c
=yes
2889 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2891 *-sunos5* |
*-solaris* )
2893 emacs_check_sunpro_c
=yes
2894 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2897 ## Watch out for a compiler that we know will not work.
2898 case "${canonical}" in
2899 *-solaris* |
*-sunos5* )
2900 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2901 ## /usr/ucb/cc doesn't work;
2902 ## we should find some other compiler that does work.
2912 machine
=ia64 opsys
=gnu-linux
2915 ## Intel 386 machines where we don't care about the manufacturer
2918 case "${canonical}" in
2919 *-cygwin ) opsys
=cygwin
;;
2920 *-darwin* ) opsys
=darwin
2921 CPP
="${CC-cc} -E -no-cpp-precomp"
2923 *-linux-gnu* ) opsys
=gnu-linux
;;
2924 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2925 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2926 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2927 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2931 ## m68k Linux-based GNU system
2933 machine
=m68k opsys
=gnu-linux
2936 ## Mips Linux-based GNU system
2937 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2938 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2939 machine
=mips opsys
=gnu-linux
2942 ## AMD x86-64 Linux-based GNU system
2943 x86_64-
*-linux-gnu* )
2944 machine
=amdx86-64 opsys
=gnu-linux
2947 ## Tensilica Xtensa Linux-based GNU system
2948 xtensa
*-*-linux-gnu* )
2949 machine
=xtensa opsys
=gnu-linux
2952 ## SuperH Linux-based GNU system
2953 sh
[34]*-*-linux-gnu* )
2954 machine
=sh3 opsys
=gnu-linux
2962 ### If the code above didn't choose an operating system, just choose
2963 ### an operating system based on the configuration name. You really
2964 ### only want to use this when you have no idea what the right
2965 ### operating system is; if you know what operating systems a machine
2966 ### runs, it's cleaner to make it explicit in the case statement
2968 if test x
"${opsys}" = x
; then
2969 case "${canonical}" in
2970 *-gnu* ) opsys
=gnu
;;
2979 if test $unported = yes; then
2980 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2981 Check \`etc/MACHINES' for recognized configuration names." >&5
2982 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2983 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2984 { (exit 1); exit 1; }; }
2987 machfile
="m/${machine}.h"
2988 opsysfile
="s/${opsys}.h"
2991 #### Choose a compiler.
2992 test -n "$CC" && cc_specified
=yes
2994 # Save the value of CFLAGS that the user specified.
2995 SPECIFIED_CFLAGS
="$CFLAGS"
2998 ac_cpp
='$CPP $CPPFLAGS'
2999 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC
="$CC" # Let the user override the test.
3013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir
=.
3018 for ac_exec_ext
in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3035 { $as_echo "$as_me:$LINENO: result: no" >&5
3036 $as_echo "no" >&6; }
3041 if test -z "$ac_cv_prog_CC"; then
3043 # Extract the first word of "gcc", so it can be a program name with args.
3044 set dummy gcc
; ac_word
=$2
3045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir
=.
3058 for ac_exec_ext
in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_CC
="gcc"
3061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 $as_echo "$ac_ct_CC" >&6; }
3075 { $as_echo "$as_me:$LINENO: result: no" >&5
3076 $as_echo "no" >&6; }
3079 if test "x$ac_ct_CC" = x
; then
3082 case $cross_compiling:$ac_tool_warned in
3084 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned
=yes ;;
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3097 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC
="$CC" # Let the user override the test.
3106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir
=.
3111 for ac_exec_ext
in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3135 if test -z "$CC"; then
3136 # Extract the first word of "cc", so it can be a program name with args.
3137 set dummy cc
; ac_word
=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC
="$CC" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3155 ac_prog_rejected
=yes
3159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test $ac_prog_rejected = yes; then
3167 # We found a bogon in the path, so make sure we never use it.
3168 set dummy
$ac_cv_prog_CC
3170 if test $# != 0; then
3171 # We chose a different compiler from the bogus one.
3172 # However, it has the same basename, so the bogon will be chosen
3173 # first if we set CC to just the basename; use the full file name.
3175 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3185 { $as_echo "$as_me:$LINENO: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 for ac_prog
in cl.exe
3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC
="$CC" # Let the user override the test.
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir
=.
3210 for ac_exec_ext
in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3227 { $as_echo "$as_me:$LINENO: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$CC" && break
3235 if test -z "$CC"; then
3237 for ac_prog
in cl.exe
3239 # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy
$ac_prog; ac_word
=$2
3241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3244 $as_echo_n "(cached) " >&6
3246 if test -n "$ac_ct_CC"; then
3247 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir
=.
3254 for ac_exec_ext
in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_ac_ct_CC
="$ac_prog"
3257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3269 $as_echo "$ac_ct_CC" >&6; }
3271 { $as_echo "$as_me:$LINENO: result: no" >&5
3272 $as_echo "no" >&6; }
3276 test -n "$ac_ct_CC" && break
3279 if test "x$ac_ct_CC" = x
; then
3282 case $cross_compiling:$ac_tool_warned in
3284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned
=yes ;;
3295 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3300 See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }; }
3303 # Provide some information about the compiler.
3304 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3307 { (ac_try
="$ac_compiler --version >&5"
3309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3313 $as_echo "$ac_try_echo") >&5
3314 (eval "$ac_compiler --version >&5") 2>&5
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3318 { (ac_try="$ac_compiler -v >&5"
3320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3321 *) ac_try_echo
=$ac_try;;
3323 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_compiler -v >&5") 2>&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }
3329 { (ac_try
="$ac_compiler -V >&5"
3331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335 $as_echo "$ac_try_echo") >&5
3336 (eval "$ac_compiler -V >&5") 2>&5
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3356 ac_clean_files_save=$ac_clean_files
3357 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3358 # Try to create an executable without -o first, disregard a.out.
3359 # It will help us diagnose broken compilers, and finding out an intuition
3361 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3362 $as_echo_n "checking for C compiler default output file name... " >&6; }
3363 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3365 # The possible output files:
3366 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3369 for ac_file in $ac_files
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3378 if { (ac_try="$ac_link_default"
3380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3381 *) ac_try_echo
=$ac_try;;
3383 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_link_default") 2>&5
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; then
3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3390 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3392 # so that the user can short-circuit this test for compilers unknown to
3394 for ac_file
in $ac_files ''
3396 test -f "$ac_file" ||
continue
3398 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3401 # We found the default executable, but exeext='' is most
3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3407 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 # We set ac_cv_exeext here because the later test for it is not
3410 # safe: cross compilers may not add the suffix if given an `-o'
3411 # argument, so we may need to know it at that point already.
3412 # Even if this section looks crufty: it has the advantage of
3419 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3425 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3426 $as_echo "$ac_file" >&6; }
3427 if test -z "$ac_file"; then
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.
$ac_ext >&5
3431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3434 See \`config.log' for more details." >&5
3435 $as_echo "$as_me: error: C compiler cannot create executables
3436 See \`config.log' for more details." >&2;}
3437 { (exit 77); exit 77; }; }; }
3440 ac_exeext
=$ac_cv_exeext
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3445 $as_echo_n "checking whether the C compiler works... " >&6; }
3446 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3447 # If not cross compiling, check that we can run a simple program.
3448 if test "$cross_compiling" != yes; then
3449 if { ac_try
='./$ac_file'
3450 { (case "(($ac_try" in
3451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_try") 2>&5
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 if test "$cross_compiling" = maybe; then
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3468 If you meant to cross compile
, use \
`--host'.
3469 See \`config.log
' for more details." >&5
3470 $as_echo "$as_me: error: cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \
`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }; }
3477 { $as_echo "$as_me:$LINENO: result: yes" >&5
3478 $as_echo "yes" >&6; }
3480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481 ac_clean_files=$ac_clean_files_save
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3485 $as_echo_n "checking whether we are cross compiling... " >&6; }
3486 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3487 $as_echo "$cross_compiling" >&6; }
3489 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3490 $as_echo_n "checking for suffix of executables... " >&6; }
3491 if { (ac_try="$ac_link"
3493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3494 *) ac_try_echo
=$ac_try;;
3496 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_link") 2>&5
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; then
3502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3504 # work properly (i.e., refer to `conftest.exe'), while it won't with
3506 for ac_file
in conftest.exe conftest conftest.
*; do
3507 test -f "$ac_file" ||
continue
3509 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3510 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3525 rm -f conftest
$ac_cv_exeext
3526 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3527 $as_echo "$ac_cv_exeext" >&6; }
3529 rm -f conftest.
$ac_ext
3530 EXEEXT
=$ac_cv_exeext
3532 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3533 $as_echo_n "checking for suffix of object files... " >&6; }
3534 if test "${ac_cv_objext+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3537 cat >conftest.
$ac_ext <<_ACEOF
3540 cat confdefs.h
>>conftest.
$ac_ext
3541 cat >>conftest.
$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3552 rm -f conftest.o conftest.obj
3553 if { (ac_try
="$ac_compile"
3555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559 $as_echo "$ac_try_echo") >&5
3560 (eval "$ac_compile") 2>&5
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; then
3564 for ac_file in conftest.o conftest.obj conftest.*; do
3565 test -f "$ac_file" || continue;
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3579 See \
`config.log' for more details." >&5
3580 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3581 See \`config.log
' for more details." >&2;}
3582 { (exit 1); exit 1; }; }; }
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3624 grep -v '^
*+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's
/^
/|
/' conftest.$ac_ext >&5
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if test "${ac_cv_prog_cc_g+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^
*+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's
/^
/|
/' conftest.$ac_ext >&5
3701 cat >conftest.$ac_ext <<_ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3726 grep -v '^
*+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's
/^
/|
/' conftest.$ac_ext >&5
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3766 grep -v '^
*+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's
/^
/|
/' conftest.$ac_ext >&5
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3802 if test "$GCC" = yes; then
3808 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then
3811 $as_echo_n "(cached) " >&6
3813 ac_cv_prog_cc_c89=no
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3826 struct buf
{ int x
; };
3827 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3828 static char
*e
(p
, i
)
3834 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3839 s
= g
(p
, va_arg
(v
,int
));
3844 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3845 function prototypes and stuff
, but not
'\xHH' hex character constants.
3846 These don
't provoke an error unfortunately, instead are silently treated
3847 as 'x
'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3849 array size at least. It's necessary to
write '\x00'==0 to get something
3850 that
's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3856 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^
*+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's
/^
/|
/' conftest.$ac_ext >&5
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 rm -f conftest.$ac_ext
3910 case "x$ac_cv_prog_cc_c89" in
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3927 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3936 ## If not using gcc, and on Solaris, and no CPP specified, see if
3937 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3938 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3941 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3943 if test "${emacs_cv_sunpro_c+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3974 grep -v '^
*+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3985 emacs_cv_sunpro_c=yes
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's
/^
/|
/' conftest.$ac_ext >&5
3990 emacs_cv_sunpro_c=no
3993 rm -rf conftest.dSYM
3994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3999 $as_echo "$emacs_cv_sunpro_c" >&6; }
4001 if test x"$emacs_cv_sunpro_c" = xyes; then
4002 NON_GNU_CPP="$CC -E -Xs"
4006 #### Some systems specify a CPP to use unless we are using GCC.
4007 #### Now that we know whether we are using GCC, we can decide whether
4008 #### to use that one.
4009 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4014 #### Some systems specify a CC to use unless we are using GCC.
4015 #### Now that we know whether we are using GCC, we can decide whether
4016 #### to use that one.
4017 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4018 test x$cc_specified != xyes
4023 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4025 CC="$CC $GCC_TEST_OPTIONS"
4028 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4030 CC="$CC $NON_GCC_TEST_OPTIONS"
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4036 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 $as_echo_n "(cached) " >&6
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser
,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 # include <limits.h>
4069 # include <assert.h>
4073 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Broken: fails on valid input.
4099 rm -f conftest.err conftest.$ac_ext
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if { (ac_try="$ac_cpp conftest.$ac_ext"
4113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4114 *) ac_try_echo
=$ac_try;;
4116 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1
>conftest.err
4122 cat conftest.err
>&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev
/null
&& {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4128 # Broken: success on invalid input.
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.
$ac_ext >&5
4134 # Passes both tests.
4139 rm -f conftest.err conftest.
$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.
$ac_ext
4144 if $ac_preproc_ok; then
4156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4159 for ac_c_preproc_warn_flag
in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.
$ac_ext <<_ACEOF
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Broken: fails on valid input.
4206 rm -f conftest.err conftest.$ac_ext
4208 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if { (ac_try="$ac_cpp conftest.$ac_ext"
4220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4221 *) ac_try_echo
=$ac_try;;
4223 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1
>conftest.err
4229 cat conftest.err
>&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev
/null
&& {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4235 # Broken: success on invalid input.
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.
$ac_ext >&5
4241 # Passes both tests.
4246 rm -f conftest.err conftest.
$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.
$ac_ext
4251 if $ac_preproc_ok; then
4254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&5
4258 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4259 See \`config.log' for more details." >&2;}
4260 { (exit 1); exit 1; }; }; }
4264 ac_cpp
='$CPP $CPPFLAGS'
4265 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if test "${ac_cv_path_GREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found
=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4279 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4282 test -z "$as_dir" && as_dir
=.
4283 for ac_prog
in grep ggrep
; do
4284 for ac_exec_ext
in '' $ac_executable_extensions; do
4285 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4291 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4294 $as_echo_n 0123456789 >"conftest.in"
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4302 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4303 ac_count
=`expr $ac_count + 1`
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP
="$ac_path_GREP"
4307 ac_path_GREP_max
=$ac_count
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4312 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4315 $ac_path_GREP_found && break 3
4320 if test -z "$ac_cv_path_GREP"; then
4321 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4322 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4323 { (exit 1); exit 1; }; }
4326 ac_cv_path_GREP
=$GREP
4330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4331 $as_echo "$ac_cv_path_GREP" >&6; }
4332 GREP
="$ac_cv_path_GREP"
4335 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4336 $as_echo_n "checking for egrep... " >&6; }
4337 if test "${ac_cv_path_EGREP+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4340 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4341 then ac_cv_path_EGREP
="$GREP -E"
4343 if test -z "$EGREP"; then
4344 ac_path_EGREP_found
=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4347 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4350 test -z "$as_dir" && as_dir
=.
4351 for ac_prog
in egrep; do
4352 for ac_exec_ext
in '' $ac_executable_extensions; do
4353 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4355 # Check for GNU ac_path_EGREP and select it if it is found.
4356 # Check for GNU $ac_path_EGREP
4357 case `"$ac_path_EGREP" --version 2>&1` in
4359 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4362 $as_echo_n 0123456789 >"conftest.in"
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'EGREP' >> "conftest.nl"
4369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4370 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4371 ac_count
=`expr $ac_count + 1`
4372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_EGREP
="$ac_path_EGREP"
4375 ac_path_EGREP_max
=$ac_count
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4380 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4383 $ac_path_EGREP_found && break 3
4388 if test -z "$ac_cv_path_EGREP"; then
4389 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4390 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4391 { (exit 1); exit 1; }; }
4394 ac_cv_path_EGREP
=$EGREP
4399 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP
="$ac_cv_path_EGREP"
4404 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4405 $as_echo_n "checking for ANSI C header files... " >&6; }
4406 if test "${ac_cv_header_stdc+set}" = set; then
4407 $as_echo_n "(cached) " >&6
4409 cat >conftest.
$ac_ext <<_ACEOF
4412 cat confdefs.h
>>conftest.
$ac_ext
4413 cat >>conftest.
$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4428 rm -f conftest.
$ac_objext
4429 if { (ac_try
="$ac_compile"
4431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4435 $as_echo "$ac_try_echo") >&5
4436 (eval "$ac_compile") 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && {
4443 test -z "$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4445 } && test -s conftest.$ac_objext; then
4446 ac_cv_header_stdc=yes
4448 $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 ac_cv_header_stdc=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 if test $ac_cv_header_stdc = yes; then
4457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468 $EGREP "memchr" >/dev/null 2>&1; then
4471 ac_cv_header_stdc=no
4477 if test $ac_cv_header_stdc = yes; then
4478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "free" >/dev/null 2>&1; then
4492 ac_cv_header_stdc=no
4498 if test $ac_cv_header_stdc = yes; then
4499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4500 if test "$cross_compiling" = yes; then
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4511 #if ((' ' & 0x0FF) == 0x020)
4512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 # define ISLOWER(c) \
4516 (('a' <= (c) && (c) <= 'i') \
4517 || ('j' <= (c) && (c) <= 'r') \
4518 || ('s' <= (c) && (c) <= 'z'))
4519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4527 for (i = 0; i < 256; i++)
4528 if (XOR (islower (i), ISLOWER (i))
4529 || toupper (i) != TOUPPER (i))
4534 rm -f conftest$ac_exeext
4535 if { (ac_try="$ac_link"
4537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4538 *) ac_try_echo
=$ac_try;;
4540 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4541 $as_echo "$ac_try_echo") >&5
4542 (eval "$ac_link") 2>&5
4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_try") 2>&5
4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4558 $as_echo "$as_me: program exited with status $ac_status" >&5
4559 $as_echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_header_stdc=no
4565 rm -rf conftest.dSYM
4566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4573 $as_echo "$ac_cv_header_stdc" >&6; }
4574 if test $ac_cv_header_stdc = yes; then
4576 cat >>confdefs.h <<\_ACEOF
4577 #define STDC_HEADERS 1
4582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4593 inttypes.h stdint.h unistd.h
4595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 $as_echo_n "checking for $ac_header... " >&6; }
4598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599 $as_echo_n "(cached) " >&6
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4609 #include <$ac_header>
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4615 *) ac_try_echo
=$ac_try;;
4617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4621 grep -v '^ *+' conftest.er1
>conftest.err
4623 cat conftest.err
>&5
4624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.
$ac_objext; then
4629 eval "$as_ac_Header=yes"
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.
$ac_ext >&5
4634 eval "$as_ac_Header=no"
4637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4639 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4640 $as_echo "$as_val"'`
4641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4642 $as_echo "$ac_res" >&6; }
4643 as_val
=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 if test "x$as_val" = x
""yes; then
4646 cat >>confdefs.h
<<_ACEOF
4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4656 if test "${ac_cv_header_minix_config_h+set}" = set; then
4657 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4658 $as_echo_n "checking for minix/config.h... " >&6; }
4659 if test "${ac_cv_header_minix_config_h+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4663 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4665 # Is the header compilable?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4667 $as_echo_n "checking minix/config.h usability... " >&6; }
4668 cat >conftest.
$ac_ext <<_ACEOF
4671 cat confdefs.h
>>conftest.
$ac_ext
4672 cat >>conftest.
$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <minix/config.h>
4677 rm -f conftest.
$ac_objext
4678 if { (ac_try
="$ac_compile"
4680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4684 $as_echo "$ac_try_echo") >&5
4685 (eval "$ac_compile") 2>conftest.er1
4687 grep -v '^ *+' conftest.er1 >conftest.err
4689 cat conftest.err >&5
4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && {
4692 test -z "$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 } && test -s conftest.$ac_objext; then
4695 ac_header_compiler=yes
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 ac_header_compiler=no
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4705 $as_echo "$ac_header_compiler" >&6; }
4707 # Is the header present?
4708 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4709 $as_echo_n "checking minix/config.h presence... " >&6; }
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <minix/config.h>
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4721 *) ac_try_echo
=$ac_try;;
4723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727 grep -v '^ *+' conftest.er1
>conftest.err
4729 cat conftest.err
>&5
4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev
/null
&& {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4735 ac_header_preproc
=yes
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.
$ac_ext >&5
4740 ac_header_preproc
=no
4743 rm -f conftest.err conftest.
$ac_ext
4744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4745 $as_echo "$ac_header_preproc" >&6; }
4747 # So? What about this header?
4748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4750 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4751 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4753 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4754 ac_header_preproc
=yes
4757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4760 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4761 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4762 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4763 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4764 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4766 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4772 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4773 $as_echo_n "checking for minix/config.h... " >&6; }
4774 if test "${ac_cv_header_minix_config_h+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4777 ac_cv_header_minix_config_h
=$ac_header_preproc
4779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4780 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4783 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4790 if test "$MINIX" = yes; then
4792 cat >>confdefs.h
<<\_ACEOF
4793 #define _POSIX_SOURCE 1
4797 cat >>confdefs.h
<<\_ACEOF
4798 #define _POSIX_1_SOURCE 2
4802 cat >>confdefs.h
<<\_ACEOF
4810 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4811 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4812 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4813 $as_echo_n "(cached) " >&6
4815 cat >conftest.
$ac_ext <<_ACEOF
4818 cat confdefs.h
>>conftest.
$ac_ext
4819 cat >>conftest.
$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4822 # define __EXTENSIONS__ 1
4823 $ac_includes_default
4832 rm -f conftest.
$ac_objext
4833 if { (ac_try
="$ac_compile"
4835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 ac_cv_safe_to_define___extensions__=yes
4852 $as_echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 ac_cv_safe_to_define___extensions__=no
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4861 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4862 test $ac_cv_safe_to_define___extensions__ = yes &&
4863 cat >>confdefs.h <<\_ACEOF
4864 #define __EXTENSIONS__ 1
4867 cat >>confdefs.h <<\_ACEOF
4868 #define _ALL_SOURCE 1
4871 cat >>confdefs.h <<\_ACEOF
4872 #define _GNU_SOURCE 1
4875 cat >>confdefs.h <<\_ACEOF
4876 #define _POSIX_PTHREAD_SEMANTICS 1
4879 cat >>confdefs.h <<\_ACEOF
4880 #define _TANDEM_SOURCE 1
4885 ### Use -Wno-pointer-sign if the compiler supports it
4886 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4887 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4888 SAVE_CFLAGS="$CFLAGS"
4889 CFLAGS="$CFLAGS -Wno-pointer-sign"
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4909 *) ac_try_echo
=$ac_try;;
4911 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_compile") 2>conftest.er1
4915 grep -v '^ *+' conftest.er1
>conftest.err
4917 cat conftest.err
>&5
4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest.
$ac_objext; then
4925 $as_echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.
$ac_ext >&5
4931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4932 if test $has_option = yes; then
4933 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4935 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4936 $as_echo "$has_option" >&6; }
4937 CFLAGS
="$SAVE_CFLAGS"
4941 ### Use -Wdeclaration-after-statement if the compiler supports it
4942 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4943 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4944 SAVE_CFLAGS
="$CFLAGS"
4945 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4946 cat >conftest.
$ac_ext <<_ACEOF
4949 cat confdefs.h
>>conftest.
$ac_ext
4950 cat >>conftest.
$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4961 rm -f conftest.
$ac_objext
4962 if { (ac_try
="$ac_compile"
4964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968 $as_echo "$ac_try_echo") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 if test $has_option = yes; then
4989 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4991 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4992 $as_echo "$has_option" >&6; }
4993 CFLAGS="$SAVE_CFLAGS"
4997 #### Some other nice autoconf tests.
4999 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5000 $as_echo_n "checking whether ln -s works... " >&6; }
5002 if test "$LN_S" = "ln -s"; then
5003 { $as_echo "$as_me:$LINENO: result: yes" >&5
5004 $as_echo "yes" >&6; }
5006 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5007 $as_echo "no, using $LN_S" >&6; }
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5017 # On Suns, sometimes $CPP names a directory.
5018 if test -n "$CPP" && test -d "$CPP"; then
5021 if test -z "$CPP"; then
5022 if test "${ac_cv_prog_CPP+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5025 # Double quotes because CPP needs to be expanded
5026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5029 for ac_c_preproc_warn_flag in '' yes
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 # include <limits.h>
5046 # include <assert.h>
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5053 *) ac_try_echo
=$ac_try;;
5055 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1
>conftest.err
5061 cat conftest.err
>&5
5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev
/null
&& {
5064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5069 $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.
$ac_ext >&5
5072 # Broken: fails on valid input.
5076 rm -f conftest.err conftest.
$ac_ext
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.
$ac_ext <<_ACEOF
5083 cat confdefs.h
>>conftest.
$ac_ext
5084 cat >>conftest.
$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <ac_nonexistent.h>
5088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null && {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5105 # Broken: success on invalid input.
5108 $as_echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Passes both tests.
5116 rm -f conftest.err conftest.$ac_ext
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.err conftest.
$ac_ext
5121 if $ac_preproc_ok; then
5133 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5134 $as_echo "$CPP" >&6; }
5136 for ac_c_preproc_warn_flag
in '' yes
5138 # Use a header file that comes with gcc, so configuring glibc
5139 # with a fresh cross-compiler works.
5140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 # <limits.h> exists even on freestanding compilers.
5142 # On the NeXT, cc -E runs the code through the compiler's parser,
5143 # not just through cpp. "Syntax error" is here to catch this case.
5144 cat >conftest.
$ac_ext <<_ACEOF
5147 cat confdefs.h
>>conftest.
$ac_ext
5148 cat >>conftest.
$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5151 # include <limits.h>
5153 # include <assert.h>
5157 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163 $as_echo "$ac_try_echo") >&5
5164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5166 grep -v '^ *+' conftest.er1 >conftest.err
5168 cat conftest.err >&5
5169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null && {
5171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5176 $as_echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Broken: fails on valid input.
5183 rm -f conftest.err conftest.$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat >conftest.$ac_ext <<_ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5195 if { (ac_try="$ac_cpp conftest.$ac_ext"
5197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5198 *) ac_try_echo
=$ac_try;;
5200 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5204 grep -v '^ *+' conftest.er1
>conftest.err
5206 cat conftest.err
>&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev
/null
&& {
5209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5212 # Broken: success on invalid input.
5215 $as_echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.
$ac_ext >&5
5218 # Passes both tests.
5223 rm -f conftest.err conftest.
$ac_ext
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.err conftest.
$ac_ext
5228 if $ac_preproc_ok; then
5231 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5234 See \`config.log' for more details." >&5
5235 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&2;}
5237 { (exit 1); exit 1; }; }; }
5241 ac_cpp
='$CPP $CPPFLAGS'
5242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5246 # Find a good install program. We prefer a C program (faster),
5247 # so one script is as good as another. But avoid the broken or
5248 # incompatible versions:
5249 # SysV /etc/install, /usr/sbin/install
5250 # SunOS /usr/etc/install
5251 # IRIX /sbin/install
5253 # AmigaOS /C/install, which installs bootblocks on floppy discs
5254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5257 # OS/2's system install, which has a completely different semantic
5258 # ./install, which can be erroneously created by make from ./install.sh.
5259 # Reject install programs that cannot install multiple files.
5260 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5262 if test -z "$INSTALL"; then
5263 if test "${ac_cv_path_install+set}" = set; then
5264 $as_echo_n "(cached) " >&6
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 # Account for people who put trailing slashes in PATH elements.
5273 .
/ | .
// |
/cC
/* | \
5274 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5275 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5278 # OSF1 and SCO ODT 3.0 have their own names for install.
5279 # Don't use installbsd from OSF since it installs stuff as root
5281 for ac_prog
in ginstall scoinst
install; do
5282 for ac_exec_ext
in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5284 if test $ac_prog = install &&
5285 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5286 # AIX install. It has an incompatible calling convention.
5288 elif test $ac_prog = install &&
5289 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5290 # program-specific install script used by HP pwplus--don't use.
5293 rm -rf conftest.one conftest.two conftest.dir
5294 echo one
> conftest.one
5295 echo two
> conftest.two
5297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5298 test -s conftest.one
&& test -s conftest.two
&&
5299 test -s conftest.dir
/conftest.one
&&
5300 test -s conftest.dir
/conftest.two
5302 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5315 rm -rf conftest.one conftest.two conftest.dir
5318 if test "${ac_cv_path_install+set}" = set; then
5319 INSTALL
=$ac_cv_path_install
5321 # As a last resort, use the slow shell script. Don't cache a
5322 # value for INSTALL within a source directory, because that will
5323 # break other packages using the cache if that directory is
5324 # removed, or if the value is a relative name.
5325 INSTALL
=$ac_install_sh
5328 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5329 $as_echo "$INSTALL" >&6; }
5331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5332 # It thinks the first close brace ends the variable substitution.
5333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5337 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5339 if test "x$RANLIB" = x
; then
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5342 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_RANLIB+set}" = set; then
5346 $as_echo_n "(cached) " >&6
5348 if test -n "$RANLIB"; then
5349 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir
=.
5356 for ac_exec_ext
in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 RANLIB
=$ac_cv_prog_RANLIB
5369 if test -n "$RANLIB"; then
5370 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5371 $as_echo "$RANLIB" >&6; }
5373 { $as_echo "$as_me:$LINENO: result: no" >&5
5374 $as_echo "no" >&6; }
5379 if test -z "$ac_cv_prog_RANLIB"; then
5380 ac_ct_RANLIB
=$RANLIB
5381 # Extract the first word of "ranlib", so it can be a program name with args.
5382 set dummy ranlib
; ac_word
=$2
5383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5386 $as_echo_n "(cached) " >&6
5388 if test -n "$ac_ct_RANLIB"; then
5389 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir
=.
5396 for ac_exec_ext
in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5409 if test -n "$ac_ct_RANLIB"; then
5410 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5411 $as_echo "$ac_ct_RANLIB" >&6; }
5413 { $as_echo "$as_me:$LINENO: result: no" >&5
5414 $as_echo "no" >&6; }
5417 if test "x$ac_ct_RANLIB" = x
; then
5420 case $cross_compiling:$ac_tool_warned in
5422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned
=yes ;;
5426 RANLIB
=$ac_ct_RANLIB
5429 RANLIB
="$ac_cv_prog_RANLIB"
5433 # Extract the first word of "install-info", so it can be a program name with args.
5434 set dummy install-info
; ac_word
=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5440 case $INSTALL_INFO in
5442 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir
=.
5450 for ac_exec_ext
in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5464 if test -n "$INSTALL_INFO"; then
5465 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5466 $as_echo "$INSTALL_INFO" >&6; }
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5473 # Extract the first word of "install-info", so it can be a program name with args.
5474 set dummy install-info
; ac_word
=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5480 case $INSTALL_INFO in
5482 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5486 for as_dir
in /usr
/sbin
5489 test -z "$as_dir" && as_dir
=.
5490 for ac_exec_ext
in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5504 if test -n "$INSTALL_INFO"; then
5505 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5506 $as_echo "$INSTALL_INFO" >&6; }
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5513 # Extract the first word of "install-info", so it can be a program name with args.
5514 set dummy install-info
; ac_word
=$2
5515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5520 case $INSTALL_INFO in
5522 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir
=.
5530 for ac_exec_ext
in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5544 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5545 if test -n "$INSTALL_INFO"; then
5546 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5547 $as_echo "$INSTALL_INFO" >&6; }
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5554 # Extract the first word of "gzip", so it can be a program name with args.
5555 set dummy
gzip; ac_word
=$2
5556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5559 $as_echo_n "(cached) " >&6
5563 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir
=.
5571 for ac_exec_ext
in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5585 if test -n "$GZIP_PROG"; then
5586 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5587 $as_echo "$GZIP_PROG" >&6; }
5589 { $as_echo "$as_me:$LINENO: result: no" >&5
5590 $as_echo "no" >&6; }
5596 ## Need makeinfo >= 4.6 (?) to build the manuals.
5597 # Extract the first word of "makeinfo", so it can be a program name with args.
5598 set dummy makeinfo
; ac_word
=$2
5599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5602 $as_echo_n "(cached) " >&6
5606 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir
=.
5614 for ac_exec_ext
in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5628 MAKEINFO
=$ac_cv_path_MAKEINFO
5629 if test -n "$MAKEINFO"; then
5630 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5631 $as_echo "$MAKEINFO" >&6; }
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$MAKEINFO" != "no" && \
5639 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
5643 ## Makeinfo is unusual. For a released Emacs, the manuals are
5644 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5645 ## therefore in the category of "special tools" not normally required, which
5646 ## configure does not have to check for (eg autoconf itself).
5647 ## In a Bazaar checkout on the other hand, the manuals are not included.
5648 ## So makeinfo is a requirement to build from Bazaar, and configure
5649 ## should test for it as it does for any other build requirement.
5650 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5651 ## with pre-built manuals, from a Bazaar checkout.
5652 if test "$MAKEINFO" = "no"; then
5653 if test "x${with_makeinfo}" = "xno"; then
5655 elif ! test -e $srcdir/info
/emacs
; then
5656 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5657 source tree does not seem to have pre-built manuals in the \`info' directory.
5658 Either install a suitable version of makeinfo, or re-run configure
5659 with the \`--without-makeinfo' option to build without the manuals. " >&5
5660 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5661 source tree does not seem to have pre-built manuals in the \`info' directory.
5662 Either install a suitable version of makeinfo, or re-run configure
5663 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5664 { (exit 1); exit 1; }; }
5669 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5671 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5674 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5676 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5680 late_LDFLAGS
=$LDFLAGS
5681 if test "$GCC" = yes; then
5682 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5684 LDFLAGS
="$LDFLAGS -znocombreloc"
5687 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5688 $as_echo_n "checking for -znocombreloc... " >&6; }
5689 cat >conftest.
$ac_ext <<_ACEOF
5692 rm -f conftest.
$ac_objext conftest
$ac_exeext
5693 if { (ac_try
="$ac_link"
5695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699 $as_echo "$ac_try_echo") >&5
5700 (eval "$ac_link") 2>conftest.er1
5702 grep -v '^ *+' conftest.er1 >conftest.err
5704 cat conftest.err >&5
5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext && {
5710 test "$cross_compiling" = yes ||
5711 $as_test_x conftest$ac_exeext
5713 { $as_echo "$as_me:$LINENO: result: yes" >&5
5714 $as_echo "yes" >&6; }
5716 $as_echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 LDFLAGS=$late_LDFLAGS
5720 { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5724 rm -rf conftest.dSYM
5725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5726 conftest$ac_exeext conftest.$ac_ext
5728 #### Extract some information from the operating system and machine files.
5730 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5731 - which libraries the lib-src programs will want, and
5732 - whether the GNU malloc routines are usable..." >&5
5733 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5734 - which libraries the lib-src programs will want, and
5735 - whether the GNU malloc routines are usable..." >&6;}
5737 ### First figure out CFLAGS (which we use for running the compiler here)
5738 ### and REAL_CFLAGS (which we use for real compilation).
5739 ### The two are the same except on a few systems, where they are made
5740 ### different to work around various lossages. For example,
5741 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5742 ### as implying static linking.
5744 ### If the CFLAGS env var is specified, we use that value
5745 ### instead of the default.
5747 ### It's not important that this name contain the PID; you can't run
5748 ### two configures in the same directory and have anything work
5750 tempcname="conftest.c"
5753 #include "'${srcdir}'/src/'${opsysfile}'"
5754 #include "'${srcdir}'/src/'${machfile}'"
5755 #ifndef LIBS_MACHINE
5756 #define LIBS_MACHINE
5761 #ifndef C_SWITCH_SYSTEM
5762 #define C_SWITCH_SYSTEM
5764 #ifndef C_SWITCH_MACHINE
5765 #define C_SWITCH_MACHINE
5767 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5768 configure___ c_switch_system=C_SWITCH_SYSTEM
5769 configure___ c_switch_machine=C_SWITCH_MACHINE
5772 #define LIB_X11_LIB -lX11
5775 configure___ LIBX=LIB_X11_LIB
5778 configure___ unexec=UNEXEC
5780 configure___ unexec=unexec.o
5783 #ifdef SYSTEM_MALLOC
5784 configure___ system_malloc=yes
5786 configure___ system_malloc=no
5789 #ifdef USE_MMAP_FOR_BUFFERS
5790 configure___ use_mmap_for_buffers=yes
5792 configure___ use_mmap_for_buffers=no
5795 #ifndef C_OPTIMIZE_SWITCH
5797 #define C_OPTIMIZE_SWITCH -O2
5799 #define C_OPTIMIZE_SWITCH -O
5803 #ifndef C_WARNINGS_SWITCH
5804 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5807 #ifndef LD_SWITCH_MACHINE
5808 #define LD_SWITCH_MACHINE
5811 #ifndef LD_SWITCH_SYSTEM
5812 #define LD_SWITCH_SYSTEM
5815 #ifndef LD_SWITCH_X_SITE_AUX
5816 #define LD_SWITCH_X_SITE_AUX
5819 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5820 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5822 #ifdef THIS_IS_CONFIGURE
5824 /* Get the CFLAGS for tests in configure. */
5826 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5828 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5831 #else /* not THIS_IS_CONFIGURE */
5833 /* Get the CFLAGS for real compilation. */
5835 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5837 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5840 #endif /* not THIS_IS_CONFIGURE */
5843 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5845 # The value of CPP is a quoted variable reference, so we need to do this
5846 # to get its actual value...
5847 CPP=`eval "echo $CPP"`
5848 eval `${CPP} -Isrc ${tempcname} \
5849 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5850 if test "x$SPECIFIED_CFLAGS" = x; then
5851 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5852 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5854 REAL_CFLAGS="$CFLAGS"
5858 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5860 ### Make sure subsequent tests use flags consistent with the build flags.
5862 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5863 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5865 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5870 # Check whether --enable-largefile was given.
5871 if test "${enable_largefile+set}" = set; then
5872 enableval=$enable_largefile;
5875 if test "$enable_largefile" != no; then
5877 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5878 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5879 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5882 ac_cv_sys_largefile_CC=no
5883 if test "$GCC" != yes; then
5886 # IRIX 6.2 and later do not support large files by default,
5887 # so use the C compiler's -n32 option if that helps.
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 #include <sys/types.h>
5895 /* Check that off_t can represent 2**63 - 1 correctly.
5896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5897 since some C++ compilers masquerading as C compilers
5898 incorrectly reject 9223372036854775807. */
5899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5901 && LARGE_OFF_T % 2147483647 == 1)
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5915 *) ac_try_echo
=$ac_try;;
5917 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5918 $as_echo "$ac_try_echo") >&5
5919 (eval "$ac_compile") 2>conftest.er1
5921 grep -v '^ *+' conftest.er1
>conftest.err
5923 cat conftest.err
>&5
5924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } && {
5926 test -z "$ac_c_werror_flag" ||
5927 test ! -s conftest.err
5928 } && test -s conftest.
$ac_objext; then
5931 $as_echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.
$ac_ext >&5
5937 rm -f core conftest.err conftest.
$ac_objext
5939 rm -f conftest.
$ac_objext
5940 if { (ac_try
="$ac_compile"
5942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5946 $as_echo "$ac_try_echo") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
5957 ac_cv_sys_largefile_CC=' -n32'; break
5959 $as_echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5965 rm -f core conftest.err conftest.$ac_objext
5969 rm -f conftest.$ac_ext
5972 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5973 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5974 if test "$ac_cv_sys_largefile_CC" != no; then
5975 CC=$CC$ac_cv_sys_largefile_CC
5978 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5979 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5980 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5981 $as_echo_n "(cached) " >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <sys/types.h>
5991 /* Check that off_t can represent 2**63 - 1 correctly.
5992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5993 since some C++ compilers masquerading as C compilers
5994 incorrectly reject 9223372036854775807. */
5995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5997 && LARGE_OFF_T % 2147483647 == 1)
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6011 *) ac_try_echo
=$ac_try;;
6013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6014 $as_echo "$ac_try_echo") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.
$ac_objext; then
6025 ac_cv_sys_file_offset_bits
=no
; break
6027 $as_echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 cat >conftest.
$ac_ext <<_ACEOF
6037 cat confdefs.h
>>conftest.
$ac_ext
6038 cat >>conftest.
$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #define _FILE_OFFSET_BITS 64
6041 #include <sys/types.h>
6042 /* Check that off_t can represent 2**63 - 1 correctly.
6043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6044 since some C++ compilers masquerading as C compilers
6045 incorrectly reject 9223372036854775807. */
6046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6048 && LARGE_OFF_T % 2147483647 == 1)
6058 rm -f conftest.
$ac_objext
6059 if { (ac_try
="$ac_compile"
6061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6065 $as_echo "$ac_try_echo") >&5
6066 (eval "$ac_compile") 2>conftest.er1
6068 grep -v '^ *+' conftest.er1 >conftest.err
6070 cat conftest.err >&5
6071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
6076 ac_cv_sys_file_offset_bits=64; break
6078 $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 ac_cv_sys_file_offset_bits=unknown
6089 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6090 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6091 case $ac_cv_sys_file_offset_bits in #(
6094 cat >>confdefs.h <<_ACEOF
6095 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6100 if test $ac_cv_sys_file_offset_bits = unknown; then
6101 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6102 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6103 if test "${ac_cv_sys_large_files+set}" = set; then
6104 $as_echo_n "(cached) " >&6
6107 cat >conftest.$ac_ext <<_ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <sys/types.h>
6114 /* Check that off_t can represent 2**63 - 1 correctly.
6115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6116 since some C++ compilers masquerading as C compilers
6117 incorrectly reject 9223372036854775807. */
6118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6120 && LARGE_OFF_T % 2147483647 == 1)
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6134 *) ac_try_echo
=$ac_try;;
6136 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1
>conftest.err
6142 cat conftest.err
>&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.
$ac_objext; then
6148 ac_cv_sys_large_files
=no
; break
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.
$ac_ext >&5
6156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #define _LARGE_FILES 1
6164 #include <sys/types.h>
6165 /* Check that off_t can represent 2**63 - 1 correctly.
6166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6167 since some C++ compilers masquerading as C compilers
6168 incorrectly reject 9223372036854775807. */
6169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6171 && LARGE_OFF_T % 2147483647 == 1)
6181 rm -f conftest.
$ac_objext
6182 if { (ac_try
="$ac_compile"
6184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188 $as_echo "$ac_try_echo") >&5
6189 (eval "$ac_compile") 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest.$ac_objext; then
6199 ac_cv_sys_large_files=1; break
6201 $as_echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 ac_cv_sys_large_files=unknown
6212 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6213 $as_echo "$ac_cv_sys_large_files" >&6; }
6214 case $ac_cv_sys_large_files in #(
6217 cat >>confdefs.h <<_ACEOF
6218 #define _LARGE_FILES $ac_cv_sys_large_files
6228 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6229 ### be located in either /usr/lib64 or /usr/lib.
6230 ### In some rare cases, /usr/lib64 exists but does not contain the
6231 ### relevant files (bug#1287). Hence test for crtn.o.
6232 case "${canonical}" in
6233 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6234 if test -e /usr/lib64/crtn.o; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define HAVE_LIB64_DIR 1
6246 if test "${with_sound}" != "no"; then
6247 # Sound support for GNU/Linux and the free BSDs.
6251 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6256 $as_echo_n "checking for $ac_header... " >&6; }
6257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6258 $as_echo_n "(cached) " >&6
6260 ac_res=`eval 'as_val=${'$as_ac_Header'}
6261 $as_echo "$as_val"'`
6262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6263 $as_echo "$ac_res" >&6; }
6265 # Is the header compilable?
6266 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6267 $as_echo_n "checking $ac_header usability... " >&6; }
6268 cat >conftest.$ac_ext <<_ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 $ac_includes_default
6275 #include <$ac_header>
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6281 *) ac_try_echo
=$ac_try;;
6283 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6284 $as_echo "$ac_try_echo") >&5
6285 (eval "$ac_compile") 2>conftest.er1
6287 grep -v '^ *+' conftest.er1
>conftest.err
6289 cat conftest.err
>&5
6290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.
$ac_objext; then
6295 ac_header_compiler
=yes
6297 $as_echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.
$ac_ext >&5
6300 ac_header_compiler
=no
6303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6305 $as_echo "$ac_header_compiler" >&6; }
6307 # Is the header present?
6308 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6309 $as_echo_n "checking $ac_header presence... " >&6; }
6310 cat >conftest.
$ac_ext <<_ACEOF
6313 cat confdefs.h
>>conftest.
$ac_ext
6314 cat >>conftest.
$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 #include <$ac_header>
6318 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6324 $as_echo "$ac_try_echo") >&5
6325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } >/dev/null && {
6332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6333 test ! -s conftest.err
6335 ac_header_preproc=yes
6337 $as_echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_header_preproc=no
6343 rm -f conftest.err conftest.$ac_ext
6344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6345 $as_echo "$ac_header_preproc" >&6; }
6347 # So? What about this header?
6348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6351 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6354 ac_header_preproc=yes
6357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6358 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6360 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6362 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6364 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6368 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6373 $as_echo_n "checking for $ac_header... " >&6; }
6374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6375 $as_echo_n "(cached) " >&6
6377 eval "$as_ac_Header=\$ac_header_preproc"
6379 ac_res=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6385 as_val=`eval 'as_val=${'$as_ac_Header'}
6386 $as_echo "$as_val"'`
6387 if test "x$as_val" = x""yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6396 # Emulation library used on NetBSD.
6397 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6398 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6399 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6400 $as_echo_n "(cached) " >&6
6402 ac_check_lib_save_LIBS=$LIBS
6403 LIBS="-lossaudio $LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6411 /* Override any GCC internal prototype to avoid an error.
6412 Use char because int might match the return type of a GCC
6413 builtin and then its argument prototype would still apply. */
6421 return _oss_ioctl ();
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (ac_try="$ac_link"
6429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6430 *) ac_try_echo
=$ac_try;;
6432 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_link") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest
$ac_exeext && {
6444 test "$cross_compiling" = yes ||
6445 $as_test_x conftest
$ac_exeext
6447 ac_cv_lib_ossaudio__oss_ioctl
=yes
6449 $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.
$ac_ext >&5
6452 ac_cv_lib_ossaudio__oss_ioctl
=no
6455 rm -rf conftest.dSYM
6456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6457 conftest
$ac_exeext conftest.
$ac_ext
6458 LIBS
=$ac_check_lib_save_LIBS
6460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6461 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6462 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then
6471 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6475 # Extract the first word of "pkg-config", so it can be a program name with args.
6476 set dummy pkg-config
; ac_word
=$2
6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6480 $as_echo_n "(cached) " >&6
6484 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir
=.
6492 for ac_exec_ext
in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6506 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6507 if test -n "$PKG_CONFIG"; then
6508 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6509 $as_echo "$PKG_CONFIG" >&6; }
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test "$PKG_CONFIG" = "no" ; then
6520 PKG_CONFIG_MIN_VERSION
=0.9.0
6521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6522 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6523 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6525 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6526 { $as_echo "$as_me:$LINENO: result: yes" >&5
6527 $as_echo "yes" >&6; }
6530 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6531 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6532 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6533 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6534 $as_echo "$ALSA_CFLAGS" >&6; }
6536 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6537 $as_echo_n "checking ALSA_LIBS... " >&6; }
6538 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6539 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6540 $as_echo "$ALSA_LIBS" >&6; }
6542 { $as_echo "$as_me:$LINENO: result: no" >&5
6543 $as_echo "no" >&6; }
6546 ## If we have a custom action on failure, don't print errors, but
6547 ## do set a variable so people can do so.
6548 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6560 if test $succeeded = yes; then
6566 if test $HAVE_ALSA = yes; then
6567 SAVE_CFLAGS
="$CFLAGS"
6568 SAVE_LDFLAGS
="$LDFLAGS"
6569 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6570 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6571 cat >conftest.
$ac_ext <<_ACEOF
6574 cat confdefs.h
>>conftest.
$ac_ext
6575 cat >>conftest.
$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <asoundlib.h>
6581 snd_lib_error_set_handler (0);
6586 rm -f conftest.
$ac_objext
6587 if { (ac_try
="$ac_compile"
6589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6593 $as_echo "$ac_try_echo") >&5
6594 (eval "$ac_compile") 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest.$ac_objext; then
6604 emacs_alsa_normal=yes
6606 $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 emacs_alsa_normal=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 if test "$emacs_alsa_normal" != yes; then
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <alsa/asoundlib.h>
6624 snd_lib_error_set_handler (0);
6629 rm -f conftest.$ac_objext
6630 if { (ac_try="$ac_compile"
6632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6633 *) ac_try_echo
=$ac_try;;
6635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6636 $as_echo "$ac_try_echo") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6639 grep -v '^ *+' conftest.er1
>conftest.err
6641 cat conftest.err
>&5
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.
$ac_objext; then
6647 emacs_alsa_subdir
=yes
6649 $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.
$ac_ext >&5
6652 emacs_alsa_subdir
=no
6655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 if test "$emacs_alsa_subdir" != yes; then
6657 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6658 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6659 { (exit 1); exit 1; }; }
6661 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6664 CFLAGS
="$SAVE_CFLAGS"
6665 LDFLAGS
="$SAVE_LDFLAGS"
6666 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6667 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6669 cat >>confdefs.h
<<\_ACEOF
6702 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6703 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6704 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6705 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6706 sys
/utsname.h
pwd.h utmp.h
6708 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6711 $as_echo_n "checking for $ac_header... " >&6; }
6712 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713 $as_echo_n "(cached) " >&6
6715 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6716 $as_echo "$as_val"'`
6717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6718 $as_echo "$ac_res" >&6; }
6720 # Is the header compilable?
6721 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6722 $as_echo_n "checking $ac_header usability... " >&6; }
6723 cat >conftest.
$ac_ext <<_ACEOF
6726 cat confdefs.h
>>conftest.
$ac_ext
6727 cat >>conftest.
$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 $ac_includes_default
6730 #include <$ac_header>
6732 rm -f conftest.
$ac_objext
6733 if { (ac_try
="$ac_compile"
6735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740 (eval "$ac_compile") 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
6750 ac_header_compiler=yes
6752 $as_echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_header_compiler=no
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760 $as_echo "$ac_header_compiler" >&6; }
6762 # Is the header present?
6763 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6764 $as_echo_n "checking $ac_header presence... " >&6; }
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <$ac_header>
6773 if { (ac_try="$ac_cpp conftest.$ac_ext"
6775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6776 *) ac_try_echo
=$ac_try;;
6778 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6779 $as_echo "$ac_try_echo") >&5
6780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6782 grep -v '^ *+' conftest.er1
>conftest.err
6784 cat conftest.err
>&5
6785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } >/dev
/null
&& {
6787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6790 ac_header_preproc
=yes
6792 $as_echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.
$ac_ext >&5
6795 ac_header_preproc
=no
6798 rm -f conftest.err conftest.
$ac_ext
6799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6800 $as_echo "$ac_header_preproc" >&6; }
6802 # So? What about this header?
6803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6809 ac_header_preproc
=yes
6812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6813 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6815 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6817 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6819 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6823 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6827 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6828 $as_echo_n "checking for $ac_header... " >&6; }
6829 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6830 $as_echo_n "(cached) " >&6
6832 eval "$as_ac_Header=\$ac_header_preproc"
6834 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6835 $as_echo "$as_val"'`
6836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6840 as_val
=`eval 'as_val=${'$as_ac_Header'}
6841 $as_echo "$as_val"'`
6842 if test "x$as_val" = x
""yes; then
6843 cat >>confdefs.h
<<_ACEOF
6844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6852 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6853 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6854 cat >conftest.
$ac_ext <<_ACEOF
6857 cat confdefs.h
>>conftest.
$ac_ext
6858 cat >>conftest.
$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <sys/personality.h>
6864 personality (PER_LINUX32)
6869 rm -f conftest.
$ac_objext
6870 if { (ac_try
="$ac_compile"
6872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876 $as_echo "$ac_try_echo") >&5
6877 (eval "$ac_compile") 2>conftest.er1
6879 grep -v '^ *+' conftest.er1 >conftest.err
6881 cat conftest.err >&5
6882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && {
6884 test -z "$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 } && test -s conftest.$ac_objext; then
6887 emacs_cv_personality_linux32=yes
6889 $as_echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 emacs_cv_personality_linux32=no
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6897 $as_echo "$emacs_cv_personality_linux32" >&6; }
6899 if test $emacs_cv_personality_linux32 = yes; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_PERSONALITY_LINUX32 1
6908 for ac_header in term.h
6910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6912 $as_echo_n "checking for $ac_header... " >&6; }
6913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6914 $as_echo_n "(cached) " >&6
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <$ac_header>
6924 if { (ac_try="$ac_cpp conftest.$ac_ext"
6926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6927 *) ac_try_echo
=$ac_try;;
6929 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6930 $as_echo "$ac_try_echo") >&5
6931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6933 grep -v '^ *+' conftest.er1
>conftest.err
6935 cat conftest.err
>&5
6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev
/null
&& {
6938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6941 eval "$as_ac_Header=yes"
6943 $as_echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.
$ac_ext >&5
6946 eval "$as_ac_Header=no"
6949 rm -f conftest.err conftest.
$ac_ext
6951 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6952 $as_echo "$as_val"'`
6953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6954 $as_echo "$ac_res" >&6; }
6955 as_val
=`eval 'as_val=${'$as_ac_Header'}
6956 $as_echo "$as_val"'`
6957 if test "x$as_val" = x
""yes; then
6958 cat >>confdefs.h
<<_ACEOF
6959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6966 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6967 $as_echo_n "checking for ANSI C header files... " >&6; }
6968 if test "${ac_cv_header_stdc+set}" = set; then
6969 $as_echo_n "(cached) " >&6
6971 cat >conftest.
$ac_ext <<_ACEOF
6974 cat confdefs.h
>>conftest.
$ac_ext
6975 cat >>conftest.
$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6990 rm -f conftest.
$ac_objext
6991 if { (ac_try
="$ac_compile"
6993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_compile") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7008 ac_cv_header_stdc=yes
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_cv_header_stdc=no
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 if test $ac_cv_header_stdc = yes; then
7019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "memchr" >/dev/null 2>&1; then
7033 ac_cv_header_stdc=no
7039 if test $ac_cv_header_stdc = yes; then
7040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7051 $EGREP "free" >/dev/null 2>&1; then
7054 ac_cv_header_stdc=no
7060 if test $ac_cv_header_stdc = yes; then
7061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7062 if test "$cross_compiling" = yes; then
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7073 #if ((' ' & 0x0FF) == 0x020)
7074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7077 # define ISLOWER(c) \
7078 (('a' <= (c) && (c) <= 'i') \
7079 || ('j' <= (c) && (c) <= 'r') \
7080 || ('s' <= (c) && (c) <= 'z'))
7081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7089 for (i = 0; i < 256; i++)
7090 if (XOR (islower (i), ISLOWER (i))
7091 || toupper (i) != TOUPPER (i))
7096 rm -f conftest$ac_exeext
7097 if { (ac_try="$ac_link"
7099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7100 *) ac_try_echo
=$ac_try;;
7102 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7103 $as_echo "$ac_try_echo") >&5
7104 (eval "$ac_link") 2>&5
7106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7108 { (case "(($ac_try" in
7109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7113 $as_echo "$ac_try_echo") >&5
7114 (eval "$ac_try") 2>&5
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7120 $as_echo "$as_me: program exited with status $ac_status" >&5
7121 $as_echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_header_stdc=no
7127 rm -rf conftest.dSYM
7128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7135 $as_echo "$ac_cv_header_stdc" >&6; }
7136 if test $ac_cv_header_stdc = yes; then
7138 cat >>confdefs.h <<\_ACEOF
7139 #define STDC_HEADERS 1
7144 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7145 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7146 if test "${ac_cv_header_time+set}" = set; then
7147 $as_echo_n "(cached) " >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <sys/types.h>
7156 #include <sys/time.h>
7162 if ((struct tm *) 0)
7168 rm -f conftest.$ac_objext
7169 if { (ac_try="$ac_compile"
7171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7172 *) ac_try_echo
=$ac_try;;
7174 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7175 $as_echo "$ac_try_echo") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7178 grep -v '^ *+' conftest.er1
>conftest.err
7180 cat conftest.err
>&5
7181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.
$ac_objext; then
7186 ac_cv_header_time
=yes
7188 $as_echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.
$ac_ext >&5
7191 ac_cv_header_time
=no
7194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7197 $as_echo "$ac_cv_header_time" >&6; }
7198 if test $ac_cv_header_time = yes; then
7200 cat >>confdefs.h
<<\_ACEOF
7201 #define TIME_WITH_SYS_TIME 1
7206 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7207 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7208 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7209 $as_echo_n "(cached) " >&6
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 $ac_includes_default
7229 rm -f conftest.
$ac_objext
7230 if { (ac_try
="$ac_compile"
7232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7239 grep -v '^ *+' conftest.er1 >conftest.err
7241 cat conftest.err >&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 ac_cv_have_decl_sys_siglist=yes
7249 $as_echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_cv_have_decl_sys_siglist=no
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7258 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7259 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_DECL_SYS_SIGLIST 1
7267 cat >>confdefs.h <<_ACEOF
7268 #define HAVE_DECL_SYS_SIGLIST 0
7275 if test $ac_cv_have_decl_sys_siglist != yes; then
7276 # For Tru64, at least:
7277 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7278 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7279 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7280 $as_echo_n "(cached) " >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7292 #ifndef __sys_siglist
7293 (void) __sys_siglist;
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7304 *) ac_try_echo
=$ac_try;;
7306 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7307 $as_echo "$ac_try_echo") >&5
7308 (eval "$ac_compile") 2>conftest.er1
7310 grep -v '^ *+' conftest.er1
>conftest.err
7312 cat conftest.err
>&5
7313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.
$ac_objext; then
7318 ac_cv_have_decl___sys_siglist
=yes
7320 $as_echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.
$ac_ext >&5
7323 ac_cv_have_decl___sys_siglist
=no
7326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7328 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7329 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7330 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then
7332 cat >>confdefs.h
<<_ACEOF
7333 #define HAVE_DECL___SYS_SIGLIST 1
7338 cat >>confdefs.h
<<_ACEOF
7339 #define HAVE_DECL___SYS_SIGLIST 0
7346 if test $ac_cv_have_decl___sys_siglist = yes; then
7348 cat >>confdefs.h
<<\_ACEOF
7349 #define sys_siglist __sys_siglist
7354 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7355 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7356 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7357 $as_echo_n "(cached) " >&6
7359 cat >conftest.
$ac_ext <<_ACEOF
7362 cat confdefs.h
>>conftest.
$ac_ext
7363 cat >>conftest.
$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #include <sys/types.h>
7366 #include <sys/wait.h>
7368 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7371 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7379 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7384 rm -f conftest.
$ac_objext
7385 if { (ac_try
="$ac_compile"
7387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7391 $as_echo "$ac_try_echo") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7394 grep -v '^ *+' conftest.er1 >conftest.err
7396 cat conftest.err >&5
7397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.$ac_objext; then
7402 ac_cv_header_sys_wait_h=yes
7404 $as_echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 ac_cv_header_sys_wait_h=no
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7413 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7414 if test $ac_cv_header_sys_wait_h = yes; then
7416 cat >>confdefs.h <<\_ACEOF
7417 #define HAVE_SYS_WAIT_H 1
7423 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7424 $as_echo_n "checking for struct utimbuf... " >&6; }
7425 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7426 $as_echo_n "(cached) " >&6
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #ifdef TIME_WITH_SYS_TIME
7435 #include <sys/time.h>
7438 #ifdef HAVE_SYS_TIME_H
7439 #include <sys/time.h>
7450 static struct utimbuf x; x.actime = x.modtime;
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7459 *) ac_try_echo
=$ac_try;;
7461 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463 (eval "$ac_compile") 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.
$ac_objext; then
7473 emacs_cv_struct_utimbuf
=yes
7475 $as_echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.
$ac_ext >&5
7478 emacs_cv_struct_utimbuf
=no
7481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7483 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7484 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7485 if test $emacs_cv_struct_utimbuf = yes; then
7487 cat >>confdefs.h
<<\_ACEOF
7488 #define HAVE_STRUCT_UTIMBUF 1
7493 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7494 $as_echo_n "checking return type of signal handlers... " >&6; }
7495 if test "${ac_cv_type_signal+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7498 cat >conftest.
$ac_ext <<_ACEOF
7501 cat confdefs.h
>>conftest.
$ac_ext
7502 cat >>conftest.
$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 #include <sys/types.h>
7510 return *(signal (0, 0)) (0) == 1;
7515 rm -f conftest.
$ac_objext
7516 if { (ac_try
="$ac_compile"
7518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522 $as_echo "$ac_try_echo") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7533 ac_cv_type_signal=int
7535 $as_echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_cv_type_signal=void
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7544 $as_echo "$ac_cv_type_signal" >&6; }
7546 cat >>confdefs.h <<_ACEOF
7547 #define RETSIGTYPE $ac_cv_type_signal
7552 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7553 $as_echo_n "checking for speed_t... " >&6; }
7554 if test "${emacs_cv_speed_t+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <termios.h>
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7576 *) ac_try_echo
=$ac_try;;
7578 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7579 $as_echo "$ac_try_echo") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1
>conftest.err
7584 cat conftest.err
>&5
7585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.
$ac_objext; then
7590 emacs_cv_speed_t
=yes
7592 $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.
$ac_ext >&5
7598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7600 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7601 $as_echo "$emacs_cv_speed_t" >&6; }
7602 if test $emacs_cv_speed_t = yes; then
7604 cat >>confdefs.h
<<\_ACEOF
7605 #define HAVE_SPEED_T 1
7610 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7611 $as_echo_n "checking for struct timeval... " >&6; }
7612 if test "${emacs_cv_struct_timeval+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7615 cat >conftest.
$ac_ext <<_ACEOF
7618 cat confdefs.h
>>conftest.
$ac_ext
7619 cat >>conftest.
$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #ifdef TIME_WITH_SYS_TIME
7622 #include <sys/time.h>
7625 #ifdef HAVE_SYS_TIME_H
7626 #include <sys/time.h>
7634 static struct timeval x; x.tv_sec = x.tv_usec;
7639 rm -f conftest.
$ac_objext
7640 if { (ac_try
="$ac_compile"
7642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647 (eval "$ac_compile") 2>conftest.er1
7649 grep -v '^ *+' conftest.er1 >conftest.err
7651 cat conftest.err >&5
7652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.$ac_objext; then
7657 emacs_cv_struct_timeval=yes
7659 $as_echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 emacs_cv_struct_timeval=no
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7668 $as_echo "$emacs_cv_struct_timeval" >&6; }
7669 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7670 if test $emacs_cv_struct_timeval = yes; then
7672 cat >>confdefs.h <<\_ACEOF
7673 #define HAVE_TIMEVAL 1
7678 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7679 $as_echo_n "checking for struct exception... " >&6; }
7680 if test "${emacs_cv_struct_exception+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7693 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7702 *) ac_try_echo
=$ac_try;;
7704 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7705 $as_echo "$ac_try_echo") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7708 grep -v '^ *+' conftest.er1
>conftest.err
7710 cat conftest.err
>&5
7711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.
$ac_objext; then
7716 emacs_cv_struct_exception
=yes
7718 $as_echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.
$ac_ext >&5
7721 emacs_cv_struct_exception
=no
7724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7726 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7727 $as_echo "$emacs_cv_struct_exception" >&6; }
7728 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7729 if test $emacs_cv_struct_exception != yes; then
7731 cat >>confdefs.h
<<\_ACEOF
7732 #define NO_MATHERR 1
7738 for ac_header
in sys
/socket.h
7740 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7741 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7743 $as_echo_n "checking for $ac_header... " >&6; }
7744 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7745 $as_echo_n "(cached) " >&6
7747 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7748 $as_echo "$as_val"'`
7749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7750 $as_echo "$ac_res" >&6; }
7752 # Is the header compilable?
7753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7754 $as_echo_n "checking $ac_header usability... " >&6; }
7755 cat >conftest.
$ac_ext <<_ACEOF
7758 cat confdefs.h
>>conftest.
$ac_ext
7759 cat >>conftest.
$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 $ac_includes_default
7762 #include <$ac_header>
7764 rm -f conftest.
$ac_objext
7765 if { (ac_try
="$ac_compile"
7767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771 $as_echo "$ac_try_echo") >&5
7772 (eval "$ac_compile") 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest.$ac_objext; then
7782 ac_header_compiler=yes
7784 $as_echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_header_compiler=no
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7792 $as_echo "$ac_header_compiler" >&6; }
7794 # Is the header present?
7795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7796 $as_echo_n "checking $ac_header presence... " >&6; }
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <$ac_header>
7805 if { (ac_try="$ac_cpp conftest.$ac_ext"
7807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7808 *) ac_try_echo
=$ac_try;;
7810 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1
>conftest.err
7816 cat conftest.err
>&5
7817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } >/dev
/null
&& {
7819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7822 ac_header_preproc
=yes
7824 $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.
$ac_ext >&5
7827 ac_header_preproc
=no
7830 rm -f conftest.err conftest.
$ac_ext
7831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7832 $as_echo "$ac_header_preproc" >&6; }
7834 # So? What about this header?
7835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7841 ac_header_preproc
=yes
7844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7847 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7851 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 $as_echo_n "checking for $ac_header... " >&6; }
7861 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7862 $as_echo_n "(cached) " >&6
7864 eval "$as_ac_Header=\$ac_header_preproc"
7866 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7867 $as_echo "$as_val"'`
7868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7869 $as_echo "$ac_res" >&6; }
7872 as_val
=`eval 'as_val=${'$as_ac_Header'}
7873 $as_echo "$as_val"'`
7874 if test "x$as_val" = x
""yes; then
7875 cat >>confdefs.h
<<_ACEOF
7876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7884 for ac_header
in net
/if.h
7886 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.
$ac_ext <<_ACEOF
7895 cat confdefs.h
>>conftest.
$ac_ext
7896 cat >>conftest.
$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 $ac_includes_default
7899 #if HAVE_SYS_SOCKET_H
7900 #include <sys/socket.h>
7903 #include <$ac_header>
7905 rm -f conftest.
$ac_objext
7906 if { (ac_try
="$ac_compile"
7908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7912 $as_echo "$ac_try_echo") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 eval "$as_ac_Header=yes"
7925 $as_echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 eval "$as_ac_Header=no"
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 ac_res=`eval 'as_val=${'$as_ac_Header'}
7934 $as_echo "$as_val"'`
7935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7936 $as_echo "$ac_res" >&6; }
7937 as_val=`eval 'as_val=${'$as_ac_Header'}
7938 $as_echo "$as_val"'`
7939 if test "x$as_val" = x""yes; then
7940 cat >>confdefs.h <<_ACEOF
7941 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7949 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7950 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7951 if test "${ac_cv_struct_tm+set}" = set; then
7952 $as_echo_n "(cached) " >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 #include <sys/types.h>
7967 int *p = &tm.tm_sec;
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7977 *) ac_try_echo
=$ac_try;;
7979 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1
>conftest.err
7985 cat conftest.err
>&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.
$ac_objext; then
7991 ac_cv_struct_tm
=time.h
7993 $as_echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7996 ac_cv_struct_tm
=sys
/time.h
7999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8001 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8002 $as_echo "$ac_cv_struct_tm" >&6; }
8003 if test $ac_cv_struct_tm = sys
/time.h
; then
8005 cat >>confdefs.h
<<\_ACEOF
8006 #define TM_IN_SYS_TIME 1
8011 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8012 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8013 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8014 $as_echo_n "(cached) " >&6
8016 cat >conftest.
$ac_ext <<_ACEOF
8019 cat confdefs.h
>>conftest.
$ac_ext
8020 cat >>conftest.
$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <sys/types.h>
8023 #include <$ac_cv_struct_tm>
8029 static struct tm ac_aggr;
8030 if (ac_aggr.tm_zone)
8036 rm -f conftest.
$ac_objext
8037 if { (ac_try
="$ac_compile"
8039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8043 $as_echo "$ac_try_echo") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8054 ac_cv_member_struct_tm_tm_zone=yes
8056 $as_echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 cat >conftest.$ac_ext <<_ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 #include <sys/types.h>
8066 #include <$ac_cv_struct_tm>
8072 static struct tm ac_aggr;
8073 if (sizeof ac_aggr.tm_zone)
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8083 *) ac_try_echo
=$ac_try;;
8085 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1
>conftest.err
8091 cat conftest.err
>&5
8092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.
$ac_objext; then
8097 ac_cv_member_struct_tm_tm_zone
=yes
8099 $as_echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 ac_cv_member_struct_tm_tm_zone
=no
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8111 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8112 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
8114 cat >>confdefs.h
<<_ACEOF
8115 #define HAVE_STRUCT_TM_TM_ZONE 1
8121 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8123 cat >>confdefs.h
<<\_ACEOF
8124 #define HAVE_TM_ZONE 1
8128 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8129 $as_echo_n "checking whether tzname is declared... " >&6; }
8130 if test "${ac_cv_have_decl_tzname+set}" = set; then
8131 $as_echo_n "(cached) " >&6
8133 cat >conftest.
$ac_ext <<_ACEOF
8136 cat confdefs.h
>>conftest.
$ac_ext
8137 cat >>conftest.
$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8152 rm -f conftest.
$ac_objext
8153 if { (ac_try
="$ac_compile"
8155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8159 $as_echo "$ac_try_echo") >&5
8160 (eval "$ac_compile") 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest.$ac_objext; then
8170 ac_cv_have_decl_tzname=yes
8172 $as_echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_cv_have_decl_tzname=no
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8181 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8182 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8184 cat >>confdefs.h <<_ACEOF
8185 #define HAVE_DECL_TZNAME 1
8190 cat >>confdefs.h <<_ACEOF
8191 #define HAVE_DECL_TZNAME 0
8198 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8199 $as_echo_n "checking for tzname... " >&6; }
8200 if test "${ac_cv_var_tzname+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8210 #if !HAVE_DECL_TZNAME
8211 extern char *tzname[];
8217 return tzname[0][0];
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8226 *) ac_try_echo
=$ac_try;;
8228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_link") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1
>conftest.err
8234 cat conftest.err
>&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest
$ac_exeext && {
8240 test "$cross_compiling" = yes ||
8241 $as_test_x conftest
$ac_exeext
8243 ac_cv_var_tzname
=yes
8245 $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.
$ac_ext >&5
8251 rm -rf conftest.dSYM
8252 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8253 conftest
$ac_exeext conftest.
$ac_ext
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8256 $as_echo "$ac_cv_var_tzname" >&6; }
8257 if test $ac_cv_var_tzname = yes; then
8259 cat >>confdefs.h
<<\_ACEOF
8260 #define HAVE_TZNAME 1
8266 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8267 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8268 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8271 cat >conftest.
$ac_ext <<_ACEOF
8274 cat confdefs.h
>>conftest.
$ac_ext
8275 cat >>conftest.
$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8282 static struct tm ac_aggr;
8283 if (ac_aggr.tm_gmtoff)
8289 rm -f conftest.
$ac_objext
8290 if { (ac_try
="$ac_compile"
8292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_tm_tm_gmtoff=yes
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8323 static struct tm ac_aggr;
8324 if (sizeof ac_aggr.tm_gmtoff)
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8334 *) ac_try_echo
=$ac_try;;
8336 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8340 grep -v '^ *+' conftest.er1
>conftest.err
8342 cat conftest.err
>&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.
$ac_objext; then
8348 ac_cv_member_struct_tm_tm_gmtoff
=yes
8350 $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.
$ac_ext >&5
8353 ac_cv_member_struct_tm_tm_gmtoff
=no
8356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8361 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8362 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8363 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then
8365 cat >>confdefs.h
<<\_ACEOF
8366 #define HAVE_TM_GMTOFF 1
8371 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8372 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8373 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8374 $as_echo_n "(cached) " >&6
8376 cat >conftest.
$ac_ext <<_ACEOF
8379 cat confdefs.h
>>conftest.
$ac_ext
8380 cat >>conftest.
$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #if HAVE_SYS_SOCKET_H
8384 #include <sys/socket.h>
8393 static struct ifreq ac_aggr;
8394 if (ac_aggr.ifr_flags)
8400 rm -f conftest.
$ac_objext
8401 if { (ac_try
="$ac_compile"
8403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8407 $as_echo "$ac_try_echo") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8418 ac_cv_member_struct_ifreq_ifr_flags=yes
8420 $as_echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 #if HAVE_SYS_SOCKET_H
8431 #include <sys/socket.h>
8440 static struct ifreq ac_aggr;
8441 if (sizeof ac_aggr.ifr_flags)
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8451 *) ac_try_echo
=$ac_try;;
8453 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8454 $as_echo "$ac_try_echo") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1
>conftest.err
8459 cat conftest.err
>&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.
$ac_objext; then
8465 ac_cv_member_struct_ifreq_ifr_flags
=yes
8467 $as_echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.
$ac_ext >&5
8470 ac_cv_member_struct_ifreq_ifr_flags
=no
8473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8478 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8479 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8480 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then
8482 cat >>confdefs.h
<<_ACEOF
8483 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8488 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8489 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8490 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8491 $as_echo_n "(cached) " >&6
8493 cat >conftest.
$ac_ext <<_ACEOF
8496 cat confdefs.h
>>conftest.
$ac_ext
8497 cat >>conftest.
$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8510 static struct ifreq ac_aggr;
8511 if (ac_aggr.ifr_hwaddr)
8517 rm -f conftest.
$ac_objext
8518 if { (ac_try
="$ac_compile"
8520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8524 $as_echo "$ac_try_echo") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8557 static struct ifreq ac_aggr;
8558 if (sizeof ac_aggr.ifr_hwaddr)
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8568 *) ac_try_echo
=$ac_try;;
8570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1
>conftest.err
8576 cat conftest.err
>&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.
$ac_objext; then
8582 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.
$ac_ext >&5
8587 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8596 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8597 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then
8599 cat >>confdefs.h
<<_ACEOF
8600 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8605 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8606 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8607 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8608 $as_echo_n "(cached) " >&6
8610 cat >conftest.
$ac_ext <<_ACEOF
8613 cat confdefs.h
>>conftest.
$ac_ext
8614 cat >>conftest.
$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8627 static struct ifreq ac_aggr;
8628 if (ac_aggr.ifr_netmask)
8634 rm -f conftest.
$ac_objext
8635 if { (ac_try
="$ac_compile"
8637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_netmask=yes
8654 $as_echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 $ac_includes_default
8664 #if HAVE_SYS_SOCKET_H
8665 #include <sys/socket.h>
8674 static struct ifreq ac_aggr;
8675 if (sizeof ac_aggr.ifr_netmask)
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8685 *) ac_try_echo
=$ac_try;;
8687 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8691 grep -v '^ *+' conftest.er1
>conftest.err
8693 cat conftest.err
>&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.
$ac_objext; then
8699 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8701 $as_echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.
$ac_ext >&5
8704 ac_cv_member_struct_ifreq_ifr_netmask
=no
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8712 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8713 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8714 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then
8716 cat >>confdefs.h
<<_ACEOF
8717 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8722 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8723 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8724 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8725 $as_echo_n "(cached) " >&6
8727 cat >conftest.
$ac_ext <<_ACEOF
8730 cat confdefs.h
>>conftest.
$ac_ext
8731 cat >>conftest.
$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 $ac_includes_default
8734 #if HAVE_SYS_SOCKET_H
8735 #include <sys/socket.h>
8744 static struct ifreq ac_aggr;
8745 if (ac_aggr.ifr_broadaddr)
8751 rm -f conftest.
$ac_objext
8752 if { (ac_try
="$ac_compile"
8754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.$ac_objext; then
8769 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8771 $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 #if HAVE_SYS_SOCKET_H
8782 #include <sys/socket.h>
8791 static struct ifreq ac_aggr;
8792 if (sizeof ac_aggr.ifr_broadaddr)
8798 rm -f conftest.$ac_objext
8799 if { (ac_try="$ac_compile"
8801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8802 *) ac_try_echo
=$ac_try;;
8804 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8805 $as_echo "$ac_try_echo") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8808 grep -v '^ *+' conftest.er1
>conftest.err
8810 cat conftest.err
>&5
8811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.
$ac_objext; then
8816 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8818 $as_echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.
$ac_ext >&5
8821 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8830 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8831 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then
8833 cat >>confdefs.h
<<_ACEOF
8834 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8839 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8840 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8841 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8842 $as_echo_n "(cached) " >&6
8844 cat >conftest.
$ac_ext <<_ACEOF
8847 cat confdefs.h
>>conftest.
$ac_ext
8848 cat >>conftest.
$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 $ac_includes_default
8851 #if HAVE_SYS_SOCKET_H
8852 #include <sys/socket.h>
8861 static struct ifreq ac_aggr;
8862 if (ac_aggr.ifr_addr)
8868 rm -f conftest.
$ac_objext
8869 if { (ac_try
="$ac_compile"
8871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876 (eval "$ac_compile") 2>conftest.er1
8878 grep -v '^ *+' conftest.er1 >conftest.err
8880 cat conftest.err >&5
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest.$ac_objext; then
8886 ac_cv_member_struct_ifreq_ifr_addr=yes
8888 $as_echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 $ac_includes_default
8898 #if HAVE_SYS_SOCKET_H
8899 #include <sys/socket.h>
8908 static struct ifreq ac_aggr;
8909 if (sizeof ac_aggr.ifr_addr)
8915 rm -f conftest.$ac_objext
8916 if { (ac_try="$ac_compile"
8918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8919 *) ac_try_echo
=$ac_try;;
8921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1
>conftest.err
8927 cat conftest.err
>&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.
$ac_objext; then
8933 ac_cv_member_struct_ifreq_ifr_addr
=yes
8935 $as_echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.
$ac_ext >&5
8938 ac_cv_member_struct_ifreq_ifr_addr
=no
8941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8946 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8947 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8948 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then
8950 cat >>confdefs.h
<<_ACEOF
8951 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8959 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8960 $as_echo_n "checking for function prototypes... " >&6; }
8961 if test "$ac_cv_prog_cc_c89" != no
; then
8962 { $as_echo "$as_me:$LINENO: result: yes" >&5
8963 $as_echo "yes" >&6; }
8965 cat >>confdefs.h
<<\_ACEOF
8966 #define PROTOTYPES 1
8970 cat >>confdefs.h
<<\_ACEOF
8971 #define __PROTOTYPES 1
8975 { $as_echo "$as_me:$LINENO: result: no" >&5
8976 $as_echo "no" >&6; }
8979 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8980 $as_echo_n "checking for working volatile... " >&6; }
8981 if test "${ac_cv_c_volatile+set}" = set; then
8982 $as_echo_n "(cached) " >&6
8984 cat >conftest.
$ac_ext <<_ACEOF
8987 cat confdefs.h
>>conftest.
$ac_ext
8988 cat >>conftest.
$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8996 int * volatile y = (int *) 0;
9002 rm -f conftest.
$ac_objext
9003 if { (ac_try
="$ac_compile"
9005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010 (eval "$ac_compile") 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && {
9017 test -z "$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9019 } && test -s conftest.$ac_objext; then
9020 ac_cv_c_volatile=yes
9022 $as_echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9031 $as_echo "$ac_cv_c_volatile" >&6; }
9032 if test $ac_cv_c_volatile = no; then
9034 cat >>confdefs.h <<\_ACEOF
9035 #define volatile /**/
9040 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9041 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9042 if test "${ac_cv_c_const+set}" = set; then
9043 $as_echo_n "(cached) " >&6
9045 cat >conftest.$ac_ext <<_ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9055 /* FIXME: Include the comments suggested by Paul. */
9057 /* Ultrix mips cc rejects this. */
9058 typedef int charset[2];
9060 /* SunOS 4.1.1 cc rejects this. */
9061 char const *const *pcpcc;
9063 /* NEC SVR4.0.2 mips cc rejects this. */
9064 struct point {int x, y;};
9065 static struct point const zero = {0,0};
9066 /* AIX XL C 1.02.0.0 rejects this.
9067 It does not let you subtract one const X* pointer from another in
9068 an arm of an if-expression whose if-part is not a constant
9070 const char *g = "string";
9071 pcpcc = &g + (g ? g-g : 0);
9072 /* HPUX 7.0 cc rejects these. */
9074 ppc = (char**) pcpcc;
9075 pcpcc = (char const *const *) ppc;
9076 { /* SCO 3.2v4 cc rejects this. */
9078 char const *s = 0 ? (char *) 0 : (char const *) 0;
9083 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9085 const int *foo = &x[0];
9088 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9089 typedef const int *iptr;
9093 { /* AIX XL C 1.02.0.0 rejects this saying
9094 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9095 struct s { int j; const int *ap[3]; };
9096 struct s *b; b->j = 5;
9098 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9102 return !cs[0] && !zero.x;
9109 rm -f conftest.$ac_objext
9110 if { (ac_try="$ac_compile"
9112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9113 *) ac_try_echo
=$ac_try;;
9115 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9116 $as_echo "$ac_try_echo") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9119 grep -v '^ *+' conftest.er1
>conftest.err
9121 cat conftest.err
>&5
9122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest.
$ac_objext; then
9129 $as_echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.
$ac_ext >&5
9135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9137 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9138 $as_echo "$ac_cv_c_const" >&6; }
9139 if test $ac_cv_c_const = no
; then
9141 cat >>confdefs.h
<<\_ACEOF
9147 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9148 $as_echo_n "checking for void * support... " >&6; }
9149 if test "${emacs_cv_void_star+set}" = set; then
9150 $as_echo_n "(cached) " >&6
9152 cat >conftest.
$ac_ext <<_ACEOF
9155 cat confdefs.h
>>conftest.
$ac_ext
9156 cat >>conftest.
$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9167 rm -f conftest.
$ac_objext
9168 if { (ac_try
="$ac_compile"
9170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9177 grep -v '^ *+' conftest.er1 >conftest.err
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.$ac_objext; then
9185 emacs_cv_void_star=yes
9187 $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 emacs_cv_void_star=no
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9196 $as_echo "$emacs_cv_void_star" >&6; }
9197 if test $emacs_cv_void_star = yes; then
9198 cat >>confdefs.h <<\_ACEOF
9199 #define POINTER_TYPE void
9203 cat >>confdefs.h <<\_ACEOF
9204 #define POINTER_TYPE char
9213 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9216 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9218 $as_echo_n "(cached) " >&6
9220 cat >conftest.make <<\_ACEOF
9223 @echo '@@@%%%=$(MAKE)=@@@%%%'
9225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9226 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9228 eval ac_cv_prog_make_${ac_make}_set=yes;;
9230 eval ac_cv_prog_make_${ac_make}_set=no;;
9234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9235 { $as_echo "$as_me:$LINENO: result: yes" >&5
9236 $as_echo "yes" >&6; }
9239 { $as_echo "$as_me:$LINENO: result: no" >&5
9240 $as_echo "no" >&6; }
9241 SET_MAKE="MAKE=${MAKE-make}"
9245 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9246 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9247 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9249 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9250 if test "x$testval" != x; then
9253 ac_enable_autodepend=no
9255 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9256 $as_echo "$HAVE_GNU_MAKE" >&6; }
9257 if test $HAVE_GNU_MAKE = yes; then
9258 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9259 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9260 SAVE_CFLAGS="$CFLAGS"
9261 CFLAGS="$CFLAGS -MMD -MF deps.d"
9262 cat >conftest.$ac_ext <<_ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9281 *) ac_try_echo
=$ac_try;;
9283 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9284 $as_echo "$ac_try_echo") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1
>conftest.err
9289 cat conftest.err
>&5
9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.
$ac_objext; then
9297 $as_echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.
$ac_ext >&5
9300 ac_enable_autodepend
=no
9303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9304 CFLAGS
="$SAVE_CFLAGS"
9305 test -f deps.d || ac_enable_autodepend
=no
9307 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9308 $as_echo "$ac_enable_autodepend" >&6; }
9310 if test $ac_enable_autodepend = yes; then
9312 cat >>confdefs.h
<<\_ACEOF
9313 #define AUTO_DEPEND 1
9319 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9320 $as_echo_n "checking for long file names... " >&6; }
9321 if test "${ac_cv_sys_long_file_names+set}" = set; then
9322 $as_echo_n "(cached) " >&6
9324 ac_cv_sys_long_file_names
=yes
9325 # Test for long file names in all the places we know might matter:
9326 # . the current directory, where building will happen
9327 # $prefix/lib where we will be installing things
9328 # $exec_prefix/lib likewise
9329 # $TMPDIR if set, where it might want to write temporary files
9330 # /tmp where it might want to write temporary files
9333 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9334 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9335 # in the usual case where exec_prefix is '${prefix}'.
9337 . |
/* | ?
:[\\/]*) ;; #(
9340 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9341 ac_xdir
=$ac_dir/cf$$
9342 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9343 ac_tf1
=$ac_xdir/conftest9012345
9344 ac_tf2
=$ac_xdir/conftest9012346
9345 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9346 ac_cv_sys_long_file_names
=no
9347 rm -f -r "$ac_xdir" 2>/dev
/null
9348 test $ac_cv_sys_long_file_names = no
&& break
9351 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9352 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9353 if test $ac_cv_sys_long_file_names = yes; then
9355 cat >>confdefs.h
<<\_ACEOF
9356 #define HAVE_LONG_FILE_NAMES 1
9362 #### Choose a window system.
9364 { $as_echo "$as_me:$LINENO: checking for X" >&5
9365 $as_echo_n "checking for X... " >&6; }
9368 # Check whether --with-x was given.
9369 if test "${with_x+set}" = set; then
9373 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9374 if test "x$with_x" = xno
; then
9375 # The user explicitly disabled X.
9378 case $x_includes,$x_libraries in #(
9379 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9380 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9381 { (exit 1); exit 1; }; };; #(
9382 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9383 $as_echo_n "(cached) " >&6
9385 # One or both of the vars are not set, and there is no cached value.
9386 ac_x_includes
=no ac_x_libraries
=no
9387 rm -f -r conftest.dir
9388 if mkdir conftest.dir
; then
9390 cat >Imakefile
<<'_ACEOF'
9392 @echo incroot='${INCROOT}'
9394 @echo usrlibdir='${USRLIBDIR}'
9396 @echo libdir='${LIBDIR}'
9398 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9400 for ac_var
in incroot usrlibdir libdir
; do
9401 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9403 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9404 for ac_extension
in a so sl dylib la dll
; do
9405 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9406 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9407 ac_im_usrlibdir
=$ac_im_libdir; break
9410 # Screen out bogus values from the imake configuration. They are
9411 # bogus both because they are the default anyway, and because
9412 # using them would break gcc on systems where it needs fixed includes.
9413 case $ac_im_incroot in
9414 /usr
/include
) ac_x_includes
= ;;
9415 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9417 case $ac_im_usrlibdir in
9418 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9419 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9423 rm -f -r conftest.dir
9426 # Standard set of common directories for X headers.
9427 # Check X11 before X11Rn because it is often a symlink to the current release.
9439 /usr/local/X11/include
9440 /usr/local/X11R6/include
9441 /usr/local/X11R5/include
9442 /usr/local/X11R4/include
9444 /usr/local/include/X11
9445 /usr/local/include/X11R6
9446 /usr/local/include/X11R5
9447 /usr/local/include/X11R4
9451 /usr/XFree86/include/X11
9455 /usr/unsupported/include
9457 /usr/local/x11r5/include
9458 /usr/lpp/Xamples/include
9460 /usr/openwin/include
9461 /usr/openwin/share/include'
9463 if test "$ac_x_includes" = no
; then
9464 # Guess where to find include files, by looking for Xlib.h.
9465 # First, try using that file with no special directory specified.
9466 cat >conftest.
$ac_ext <<_ACEOF
9469 cat confdefs.h
>>conftest.
$ac_ext
9470 cat >>conftest.
$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 #include <X11/Xlib.h>
9474 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9480 $as_echo "$ac_try_echo") >&5
9481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null && {
9488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9491 # We can compile using X headers with no special include directory.
9494 $as_echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9497 for ac_dir in $ac_x_header_dirs; do
9498 if test -r "$ac_dir/X11/Xlib.h"; then
9499 ac_x_includes=$ac_dir
9505 rm -f conftest.err conftest.$ac_ext
9506 fi # $ac_x_includes = no
9508 if test "$ac_x_libraries" = no; then
9509 # Check for the libraries.
9510 # See if we find them without any special options.
9511 # Don't add to $LIBS permanently.
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 #include <X11/Xlib.h>
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9533 *) ac_try_echo
=$ac_try;;
9535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_link") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest
$ac_exeext && {
9547 test "$cross_compiling" = yes ||
9548 $as_test_x conftest
$ac_exeext
9551 # We can link X programs with no special library path.
9554 $as_echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.
$ac_ext >&5
9558 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9560 # Don't even attempt the hair of trying to link an X program!
9561 for ac_extension
in a so sl dylib la dll
; do
9562 if test -r "$ac_dir/libX11.$ac_extension"; then
9563 ac_x_libraries
=$ac_dir
9570 rm -rf conftest.dSYM
9571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9572 conftest
$ac_exeext conftest.
$ac_ext
9573 fi # $ac_x_libraries = no
9575 case $ac_x_includes,$ac_x_libraries in #(
9577 # Didn't find X, or a directory has "'" in its name.
9578 ac_cv_have_x
="have_x=no";; #(
9580 # Record where we found X for the cache.
9581 ac_cv_have_x
="have_x=yes\
9582 ac_x_includes='$ac_x_includes'\
9583 ac_x_libraries='$ac_x_libraries'"
9589 eval "$ac_cv_have_x"
9592 if test "$have_x" != yes; then
9593 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9594 $as_echo "$have_x" >&6; }
9597 # If each of the values was on the command line, it overrides each guess.
9598 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9599 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9600 # Update the cache value to reflect the command line values.
9601 ac_cv_have_x
="have_x=yes\
9602 ac_x_includes='$x_includes'\
9603 ac_x_libraries='$x_libraries'"
9604 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9605 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9608 if test "$no_x" = yes; then
9614 ## Workaround for bug in autoconf <= 2.62.
9615 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9616 ## No need to do anything special for these standard directories.
9617 ## This is an experiment, take it out if it causes problems.
9618 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9620 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9624 if test "${x_libraries}" != NONE
; then
9625 if test -n "${x_libraries}"; then
9626 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9627 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9629 x_default_search_path
=""
9630 x_search_path
=${x_libraries}
9631 if test -z "${x_search_path}"; then
9632 x_search_path
=/usr
/lib
9634 for x_library
in `echo ${x_search_path}: | \
9635 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9637 ${x_library}/X11/%L/%T/%N%C%S:\
9638 ${x_library}/X11/%l/%T/%N%C%S:\
9639 ${x_library}/X11/%T/%N%C%S:\
9640 ${x_library}/X11/%L/%T/%N%S:\
9641 ${x_library}/X11/%l/%T/%N%S:\
9642 ${x_library}/X11/%T/%N%S"
9643 if test x
"${x_default_search_path}" = x
; then
9644 x_default_search_path
=${x_search_path}
9646 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9650 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9651 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9654 if test x
"${x_includes}" = x
; then
9655 bitmapdir
=/usr
/include
/X11
/bitmaps
9657 # accumulate include directories that have X11 bitmap subdirectories
9659 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9660 if test -d "${bmd}/X11/bitmaps"; then
9661 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9663 if test -d "${bmd}/bitmaps"; then
9664 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9667 if test ${bmd_acc} != "dummyval"; then
9668 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9675 tmp_CPPFLAGS
="$CPPFLAGS"
9676 tmp_CFLAGS
="$CFLAGS"
9677 CPPFLAGS
="$CPPFLAGS -x objective-c"
9678 CFLAGS
="$CFLAGS -x objective-c"
9679 if test "${with_ns}" != no
; then
9680 if test "${opsys}" = darwin
; then
9682 ns_appdir
=`pwd`/nextstep
/Emacs.app
9683 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9684 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9685 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9686 elif test -f $GNUSTEP_CONFIG_FILE; then
9688 ns_appdir
=`pwd`/nextstep
/Emacs.app
9689 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9690 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9691 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9692 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9693 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9694 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9695 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9696 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9697 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9698 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9700 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9701 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9702 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9703 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9704 $as_echo_n "(cached) " >&6
9706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9707 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9709 # Is the header compilable?
9710 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9711 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9712 cat >conftest.
$ac_ext <<_ACEOF
9715 cat confdefs.h
>>conftest.
$ac_ext
9716 cat >>conftest.
$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 $ac_includes_default
9719 #include <AppKit/AppKit.h>
9721 rm -f conftest.
$ac_objext
9722 if { (ac_try
="$ac_compile"
9724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9728 $as_echo "$ac_try_echo") >&5
9729 (eval "$ac_compile") 2>conftest.er1
9731 grep -v '^ *+' conftest.er1 >conftest.err
9733 cat conftest.err >&5
9734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest.$ac_objext; then
9739 ac_header_compiler=yes
9741 $as_echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_header_compiler=no
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9749 $as_echo "$ac_header_compiler" >&6; }
9751 # Is the header present?
9752 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9753 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 #include <AppKit/AppKit.h>
9762 if { (ac_try="$ac_cpp conftest.$ac_ext"
9764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9765 *) ac_try_echo
=$ac_try;;
9767 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9768 $as_echo "$ac_try_echo") >&5
9769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9771 grep -v '^ *+' conftest.er1
>conftest.err
9773 cat conftest.err
>&5
9774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } >/dev
/null
&& {
9776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9779 ac_header_preproc
=yes
9781 $as_echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.
$ac_ext >&5
9784 ac_header_preproc
=no
9787 rm -f conftest.err conftest.
$ac_ext
9788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9789 $as_echo "$ac_header_preproc" >&6; }
9791 # So? What about this header?
9792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9794 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9795 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9797 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9798 ac_header_preproc
=yes
9801 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9802 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9804 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9805 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9806 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9807 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9808 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9809 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9810 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9811 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9812 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9816 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9817 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9818 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9819 $as_echo_n "(cached) " >&6
9821 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9824 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9827 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then
9830 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9831 files are missing or cannot be compiled." >&5
9832 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9833 files are missing or cannot be compiled." >&2;}
9834 { (exit 1); exit 1; }; }
9838 NS_HAVE_NSINTEGER
=yes
9839 cat >conftest.
$ac_ext <<_ACEOF
9842 cat confdefs.h
>>conftest.
$ac_ext
9843 cat >>conftest.
$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <Foundation/NSObjCRuntime.h>
9854 rm -f conftest.
$ac_objext
9855 if { (ac_try
="$ac_compile"
9857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9861 $as_echo "$ac_try_echo") >&5
9862 (eval "$ac_compile") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest.$ac_objext; then
9872 ns_have_nsinteger=yes
9874 $as_echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ns_have_nsinteger=no
9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881 if test $ns_have_nsinteger = no; then
9882 NS_HAVE_NSINTEGER=no
9885 if test "${HAVE_NS}" = yes; then
9886 window_system=nextstep
9888 # set up packaging dirs
9889 exec_prefix=${ns_appbindir}
9890 libexecdir=${ns_appbindir}/libexec
9891 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9892 prefix=${ns_appresdir}
9895 CFLAGS="$tmp_CFLAGS"
9896 CPPFLAGS="$tmp_CPPFLAGS"
9898 case "${window_system}" in
9902 case "${with_x_toolkit}" in
9903 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9904 motif ) USE_X_TOOLKIT=MOTIF ;;
9906 USE_X_TOOLKIT=none ;;
9907 no ) USE_X_TOOLKIT=none ;;
9908 * ) USE_X_TOOLKIT=maybe ;;
9918 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9919 # Extract the first word of "X", so it can be a program name with args.
9920 set dummy X; ac_word=$2
9921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9924 $as_echo_n "(cached) " >&6
9926 if test -n "$HAVE_XSERVER"; then
9927 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_HAVE_XSERVER="true"
9937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9947 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9948 if test -n "$HAVE_XSERVER"; then
9949 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9950 $as_echo "$HAVE_XSERVER" >&6; }
9952 { $as_echo "$as_me:$LINENO: result: no" >&5
9953 $as_echo "no" >&6; }
9957 if test "$HAVE_XSERVER" = true ||
9958 test -n "$DISPLAY" ||
9959 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9960 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9961 were found. You should install the relevant development files for X
9962 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9963 sure you have development files for image handling, i.e.
9964 tiff, gif, jpeg, png and xpm.
9965 If you are sure you want Emacs compiled without X window support, pass
9968 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9969 were found. You should install the relevant development files for X
9970 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9971 sure you have development files for image handling, i.e.
9972 tiff, gif, jpeg, png and xpm.
9973 If you are sure you want Emacs compiled without X window support, pass
9975 to configure." >&2;}
9976 { (exit 1); exit 1; }; }
9980 ### If we're using X11, we should use the X menu package.
9983 yes ) HAVE_MENUS=yes ;;
9986 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9987 # Assume not, until told otherwise.
9990 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9991 $as_echo_n "checking for malloc_get_state... " >&6; }
9992 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9993 $as_echo_n "(cached) " >&6
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003 #define malloc_get_state innocuous_malloc_get_state
10005 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char malloc_get_state (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10011 # include <limits.h>
10013 # include <assert.h>
10016 #undef malloc_get_state
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10024 char malloc_get_state ();
10025 /* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10035 return malloc_get_state ();
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10044 *) ac_try_echo
=$ac_try;;
10046 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10047 $as_echo "$ac_try_echo") >&5
10048 (eval "$ac_link") 2>conftest.er1
10050 grep -v '^ *+' conftest.er1
>conftest.err
10052 cat conftest.err
>&5
10053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest
$ac_exeext && {
10058 test "$cross_compiling" = yes ||
10059 $as_test_x conftest
$ac_exeext
10061 ac_cv_func_malloc_get_state
=yes
10063 $as_echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.
$ac_ext >&5
10066 ac_cv_func_malloc_get_state
=no
10069 rm -rf conftest.dSYM
10070 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10071 conftest
$ac_exeext conftest.
$ac_ext
10073 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10074 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10075 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then
10081 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10082 $as_echo_n "checking for malloc_set_state... " >&6; }
10083 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10084 $as_echo_n "(cached) " >&6
10086 cat >conftest.
$ac_ext <<_ACEOF
10089 cat confdefs.h
>>conftest.
$ac_ext
10090 cat >>conftest.
$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10094 #define malloc_set_state innocuous_malloc_set_state
10096 /* System header to define __stub macros and hopefully few prototypes,
10097 which can conflict with char malloc_set_state (); below.
10098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099 <limits.h> exists even on freestanding compilers. */
10102 # include <limits.h>
10104 # include <assert.h>
10107 #undef malloc_set_state
10109 /* Override any GCC internal prototype to avoid an error.
10110 Use char because int might match the return type of a GCC
10111 builtin and then its argument prototype would still apply. */
10115 char malloc_set_state ();
10116 /* The GNU C library defines this for functions which it implements
10117 to always fail with ENOSYS. Some functions are actually named
10118 something starting with __ and the normal name is an alias. */
10119 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10126 return malloc_set_state ();
10131 rm -f conftest.
$ac_objext conftest
$ac_exeext
10132 if { (ac_try
="$ac_link"
10133 case "(($ac_try" in
10134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10138 $as_echo "$ac_try_echo") >&5
10139 (eval "$ac_link") 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest$ac_exeext && {
10149 test "$cross_compiling" = yes ||
10150 $as_test_x conftest$ac_exeext
10152 ac_cv_func_malloc_set_state=yes
10154 $as_echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_cv_func_malloc_set_state=no
10160 rm -rf conftest.dSYM
10161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10162 conftest$ac_exeext conftest.$ac_ext
10164 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10165 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10166 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10172 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10173 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10174 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10175 $as_echo_n "(cached) " >&6
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 extern void (* __after_morecore_hook)();
10187 __after_morecore_hook = 0
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (ac_try="$ac_link"
10194 case "(($ac_try" in
10195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10196 *) ac_try_echo
=$ac_try;;
10198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10199 $as_echo "$ac_try_echo") >&5
10200 (eval "$ac_link") 2>conftest.er1
10202 grep -v '^ *+' conftest.er1
>conftest.err
10204 cat conftest.err
>&5
10205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest
$ac_exeext && {
10210 test "$cross_compiling" = yes ||
10211 $as_test_x conftest
$ac_exeext
10213 emacs_cv_var___after_morecore_hook
=yes
10215 $as_echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.
$ac_ext >&5
10218 emacs_cv_var___after_morecore_hook
=no
10221 rm -rf conftest.dSYM
10222 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10223 conftest
$ac_exeext conftest.
$ac_ext
10225 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10226 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10227 if test $emacs_cv_var___after_morecore_hook = no
; then
10230 if test "${system_malloc}" = "yes"; then
10232 GNU_MALLOC_reason
="
10233 (The GNU allocators don't work with this system configuration.)"
10235 if test "$doug_lea_malloc" = "yes" ; then
10236 if test "$GNU_MALLOC" = yes ; then
10237 GNU_MALLOC_reason
="
10238 (Using Doug Lea's new malloc from the GNU C Library.)"
10241 cat >>confdefs.h
<<\_ACEOF
10242 #define DOUG_LEA_MALLOC 1
10247 if test x
"${REL_ALLOC}" = x
; then
10248 REL_ALLOC
=${GNU_MALLOC}
10254 for ac_header
in stdlib.h unistd.h
10256 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10257 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10259 $as_echo_n "checking for $ac_header... " >&6; }
10260 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10261 $as_echo_n "(cached) " >&6
10263 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10264 $as_echo "$as_val"'`
10265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10266 $as_echo "$ac_res" >&6; }
10268 # Is the header compilable?
10269 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10270 $as_echo_n "checking $ac_header usability... " >&6; }
10271 cat >conftest.
$ac_ext <<_ACEOF
10274 cat confdefs.h
>>conftest.
$ac_ext
10275 cat >>conftest.
$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 #include <$ac_header>
10280 rm -f conftest.
$ac_objext
10281 if { (ac_try
="$ac_compile"
10282 case "(($ac_try" in
10283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10287 $as_echo "$ac_try_echo") >&5
10288 (eval "$ac_compile") 2>conftest.er1
10290 grep -v '^ *+' conftest.er1 >conftest.err
10292 cat conftest.err >&5
10293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest.$ac_objext; then
10298 ac_header_compiler=yes
10300 $as_echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 ac_header_compiler=no
10306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10308 $as_echo "$ac_header_compiler" >&6; }
10310 # Is the header present?
10311 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10312 $as_echo_n "checking $ac_header presence... " >&6; }
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 #include <$ac_header>
10321 if { (ac_try="$ac_cpp conftest.$ac_ext"
10322 case "(($ac_try" in
10323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10324 *) ac_try_echo
=$ac_try;;
10326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10327 $as_echo "$ac_try_echo") >&5
10328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10330 grep -v '^ *+' conftest.er1
>conftest.err
10332 cat conftest.err
>&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } >/dev
/null
&& {
10335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10338 ac_header_preproc
=yes
10340 $as_echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.
$ac_ext >&5
10343 ac_header_preproc
=no
10346 rm -f conftest.err conftest.
$ac_ext
10347 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10348 $as_echo "$ac_header_preproc" >&6; }
10350 # So? What about this header?
10351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10354 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10357 ac_header_preproc
=yes
10360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10361 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10363 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10365 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10367 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10371 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10376 $as_echo_n "checking for $ac_header... " >&6; }
10377 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10378 $as_echo_n "(cached) " >&6
10380 eval "$as_ac_Header=\$ac_header_preproc"
10382 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10383 $as_echo "$as_val"'`
10384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10385 $as_echo "$ac_res" >&6; }
10388 as_val
=`eval 'as_val=${'$as_ac_Header'}
10389 $as_echo "$as_val"'`
10390 if test "x$as_val" = x
""yes; then
10391 cat >>confdefs.h
<<_ACEOF
10392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10400 for ac_func
in getpagesize
10402 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10403 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10404 $as_echo_n "checking for $ac_func... " >&6; }
10405 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10406 $as_echo_n "(cached) " >&6
10408 cat >conftest.
$ac_ext <<_ACEOF
10411 cat confdefs.h
>>conftest.
$ac_ext
10412 cat >>conftest.
$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10416 #define $ac_func innocuous_$ac_func
10418 /* System header to define __stub macros and hopefully few prototypes,
10419 which can conflict with char $ac_func (); below.
10420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10421 <limits.h> exists even on freestanding compilers. */
10424 # include <limits.h>
10426 # include <assert.h>
10431 /* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
10438 /* The GNU C library defines this for functions which it implements
10439 to always fail with ENOSYS. Some functions are actually named
10440 something starting with __ and the normal name is an alias. */
10441 #if defined __stub_$ac_func || defined __stub___$ac_func
10448 return $ac_func ();
10453 rm -f conftest.
$ac_objext conftest
$ac_exeext
10454 if { (ac_try
="$ac_link"
10455 case "(($ac_try" in
10456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10460 $as_echo "$ac_try_echo") >&5
10461 (eval "$ac_link") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest$ac_exeext && {
10471 test "$cross_compiling" = yes ||
10472 $as_test_x conftest$ac_exeext
10474 eval "$as_ac_var=yes"
10476 $as_echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 eval "$as_ac_var=no"
10482 rm -rf conftest.dSYM
10483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484 conftest$ac_exeext conftest.$ac_ext
10486 ac_res=`eval 'as_val=${'$as_ac_var'}
10487 $as_echo "$as_val"'`
10488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10489 $as_echo "$ac_res" >&6; }
10490 as_val=`eval 'as_val=${'$as_ac_var'}
10491 $as_echo "$as_val"'`
10492 if test "x$as_val" = x""yes; then
10493 cat >>confdefs.h <<_ACEOF
10494 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10500 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10501 $as_echo_n "checking for working mmap... " >&6; }
10502 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10503 $as_echo_n "(cached) " >&6
10505 if test "$cross_compiling" = yes; then
10506 ac_cv_func_mmap_fixed_mapped=no
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10515 /* malloc might have been renamed as rpl_malloc. */
10518 /* Thanks to Mike Haertel and Jim Avera for this test.
10519 Here is a matrix of mmap possibilities:
10520 mmap private not fixed
10521 mmap private fixed at somewhere currently unmapped
10522 mmap private fixed at somewhere already mapped
10523 mmap shared not fixed
10524 mmap shared fixed at somewhere currently unmapped
10525 mmap shared fixed at somewhere already mapped
10526 For private mappings, we should verify that changes cannot be read()
10527 back from the file, nor mmap's back from the file at a different
10528 address. (There have been systems where private was not correctly
10529 implemented like the infamous i386 svr4.0, and systems where the
10530 VM page cache was not coherent with the file system buffer cache
10531 like early versions of FreeBSD and possibly contemporary NetBSD.)
10532 For shared mappings, we should conversely verify that changes get
10533 propagated back to all the places they're supposed to be.
10535 Grep wants private fixed already mapped.
10536 The main things grep needs to know about mmap are:
10537 * does it exist and is it safe to write into the mmap'd area
10538 * how to use it (BSD variants) */
10541 #include <sys/mman.h>
10543 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10547 /* This mess was copied from the GNU getpagesize.h. */
10548 #ifndef HAVE_GETPAGESIZE
10549 /* Assume that all systems that can run configure have sys/param.h. */
10550 # ifndef HAVE_SYS_PARAM_H
10551 # define HAVE_SYS_PARAM_H 1
10554 # ifdef _SC_PAGESIZE
10555 # define getpagesize() sysconf(_SC_PAGESIZE)
10556 # else /* no _SC_PAGESIZE */
10557 # ifdef HAVE_SYS_PARAM_H
10558 # include <sys/param.h>
10559 # ifdef EXEC_PAGESIZE
10560 # define getpagesize() EXEC_PAGESIZE
10561 # else /* no EXEC_PAGESIZE */
10563 # define getpagesize() NBPG * CLSIZE
10566 # endif /* no CLSIZE */
10567 # else /* no NBPG */
10569 # define getpagesize() NBPC
10570 # else /* no NBPC */
10572 # define getpagesize() PAGESIZE
10573 # endif /* PAGESIZE */
10574 # endif /* no NBPC */
10575 # endif /* no NBPG */
10576 # endif /* no EXEC_PAGESIZE */
10577 # else /* no HAVE_SYS_PARAM_H */
10578 # define getpagesize() 8192 /* punt totally */
10579 # endif /* no HAVE_SYS_PARAM_H */
10580 # endif /* no _SC_PAGESIZE */
10582 #endif /* no HAVE_GETPAGESIZE */
10587 char *data, *data2, *data3;
10591 pagesize = getpagesize ();
10593 /* First, make a file with some known garbage in it. */
10594 data = (char *) malloc (pagesize);
10597 for (i = 0; i < pagesize; ++i)
10598 *(data + i) = rand ();
10600 fd = creat ("conftest.mmap", 0600);
10603 if (write (fd, data, pagesize) != pagesize)
10607 /* Next, try to mmap the file at a fixed address which already has
10608 something else allocated at it. If we can, also make sure that
10609 we see the same garbage. */
10610 fd = open ("conftest.mmap", O_RDWR);
10613 data2 = (char *) malloc (2 * pagesize);
10616 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10617 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10618 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10620 for (i = 0; i < pagesize; ++i)
10621 if (*(data + i) != *(data2 + i))
10624 /* Finally, make sure that changes to the mapped area do not
10625 percolate back to the file as seen by read(). (This is a bug on
10626 some variants of i386 svr4.0.) */
10627 for (i = 0; i < pagesize; ++i)
10628 *(data2 + i) = *(data2 + i) + 1;
10629 data3 = (char *) malloc (pagesize);
10632 if (read (fd, data3, pagesize) != pagesize)
10634 for (i = 0; i < pagesize; ++i)
10635 if (*(data + i) != *(data3 + i))
10641 rm -f conftest$ac_exeext
10642 if { (ac_try="$ac_link"
10643 case "(($ac_try" in
10644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10645 *) ac_try_echo
=$ac_try;;
10647 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10648 $as_echo "$ac_try_echo") >&5
10649 (eval "$ac_link") 2>&5
10651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659 (eval "$ac_try") 2>&5
10661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_cv_func_mmap_fixed_mapped=yes
10665 $as_echo "$as_me: program exited with status $ac_status" >&5
10666 $as_echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ( exit $ac_status )
10670 ac_cv_func_mmap_fixed_mapped=no
10672 rm -rf conftest.dSYM
10673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10678 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10679 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10680 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_MMAP 1
10687 rm -f conftest.mmap
10689 if test $use_mmap_for_buffers = yes; then
10693 LIBS="$libsrc_libs $LIBS"
10696 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10697 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10698 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10699 $as_echo_n "(cached) " >&6
10701 ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-ldnet $LIBS"
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10720 return dnet_ntoa ();
10725 rm -f conftest.$ac_objext conftest$ac_exeext
10726 if { (ac_try="$ac_link"
10727 case "(($ac_try" in
10728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10729 *) ac_try_echo
=$ac_try;;
10731 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10732 $as_echo "$ac_try_echo") >&5
10733 (eval "$ac_link") 2>conftest.er1
10735 grep -v '^ *+' conftest.er1
>conftest.err
10737 cat conftest.err
>&5
10738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest
$ac_exeext && {
10743 test "$cross_compiling" = yes ||
10744 $as_test_x conftest
$ac_exeext
10746 ac_cv_lib_dnet_dnet_ntoa
=yes
10748 $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.
$ac_ext >&5
10751 ac_cv_lib_dnet_dnet_ntoa
=no
10754 rm -rf conftest.dSYM
10755 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10756 conftest
$ac_exeext conftest.
$ac_ext
10757 LIBS
=$ac_check_lib_save_LIBS
10759 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10760 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10761 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
10762 cat >>confdefs.h
<<_ACEOF
10763 #define HAVE_LIBDNET 1
10766 LIBS
="-ldnet $LIBS"
10771 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10772 $as_echo_n "checking for main in -lXbsd... " >&6; }
10773 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10774 $as_echo_n "(cached) " >&6
10776 ac_check_lib_save_LIBS
=$LIBS
10777 LIBS
="-lXbsd $LIBS"
10778 cat >conftest.
$ac_ext <<_ACEOF
10781 cat confdefs.h
>>conftest.
$ac_ext
10782 cat >>conftest.
$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10794 rm -f conftest.
$ac_objext conftest
$ac_exeext
10795 if { (ac_try
="$ac_link"
10796 case "(($ac_try" in
10797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10801 $as_echo "$ac_try_echo") >&5
10802 (eval "$ac_link") 2>conftest.er1
10804 grep -v '^ *+' conftest.er1 >conftest.err
10806 cat conftest.err >&5
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest$ac_exeext && {
10812 test "$cross_compiling" = yes ||
10813 $as_test_x conftest$ac_exeext
10815 ac_cv_lib_Xbsd_main=yes
10817 $as_echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ac_cv_lib_Xbsd_main=no
10823 rm -rf conftest.dSYM
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_check_lib_save_LIBS
10828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10829 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10830 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
10831 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10836 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10837 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10838 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10839 $as_echo_n "(cached) " >&6
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lpthreads $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10860 return cma_open ();
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10869 *) ac_try_echo
=$ac_try;;
10871 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_link") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1
>conftest.err
10877 cat conftest.err
>&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest
$ac_exeext && {
10883 test "$cross_compiling" = yes ||
10884 $as_test_x conftest
$ac_exeext
10886 ac_cv_lib_pthreads_cma_open
=yes
10888 $as_echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.
$ac_ext >&5
10891 ac_cv_lib_pthreads_cma_open
=no
10894 rm -rf conftest.dSYM
10895 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10896 conftest
$ac_exeext conftest.
$ac_ext
10897 LIBS
=$ac_check_lib_save_LIBS
10899 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10900 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10901 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then
10902 cat >>confdefs.h
<<_ACEOF
10903 #define HAVE_LIBPTHREADS 1
10906 LIBS
="-lpthreads $LIBS"
10914 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10915 $as_echo_n "checking for -bbigtoc option... " >&6; }
10916 if test "${gdb_cv_bigtoc+set}" = set; then
10917 $as_echo_n "(cached) " >&6
10921 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10922 *) gdb_cv_bigtoc
=-bbigtoc ;;
10925 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10926 cat >conftest.
$ac_ext <<_ACEOF
10929 cat confdefs.h
>>conftest.
$ac_ext
10930 cat >>conftest.
$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10941 rm -f conftest.
$ac_objext conftest
$ac_exeext
10942 if { (ac_try
="$ac_link"
10943 case "(($ac_try" in
10944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948 $as_echo "$ac_try_echo") >&5
10949 (eval "$ac_link") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest$ac_exeext && {
10959 test "$cross_compiling" = yes ||
10960 $as_test_x conftest$ac_exeext
10964 $as_echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10970 rm -rf conftest.dSYM
10971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10972 conftest$ac_exeext conftest.$ac_ext
10975 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10976 $as_echo "$gdb_cv_bigtoc" >&6; }
10980 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10981 # used for the tests that follow. We set them back to REAL_CFLAGS and
10982 # REAL_CPPFLAGS later on.
10984 REAL_CPPFLAGS="$CPPFLAGS"
10986 if test "${HAVE_X11}" = "yes"; then
10987 DEFS="$C_SWITCH_X_SITE $DEFS"
10988 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10990 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10991 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10993 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10994 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10995 # but it's more convenient here to set LD_RUN_PATH
10996 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10997 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10998 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11002 if test "${opsys}" = "gnu-linux"; then
11003 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11004 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11005 cat >conftest.$ac_ext <<_ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11015 XOpenDisplay ("foo");
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (ac_try="$ac_link"
11022 case "(($ac_try" in
11023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11024 *) ac_try_echo
=$ac_try;;
11026 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11027 $as_echo "$ac_try_echo") >&5
11028 (eval "$ac_link") 2>conftest.er1
11030 grep -v '^ *+' conftest.er1
>conftest.err
11032 cat conftest.err
>&5
11033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } && {
11035 test -z "$ac_c_werror_flag" ||
11036 test ! -s conftest.err
11037 } && test -s conftest
$ac_exeext && {
11038 test "$cross_compiling" = yes ||
11039 $as_test_x conftest
$ac_exeext
11041 xlinux_first_failure
=no
11043 $as_echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.
$ac_ext >&5
11046 xlinux_first_failure
=yes
11049 rm -rf conftest.dSYM
11050 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11051 conftest
$ac_exeext conftest.
$ac_ext
11052 if test "${xlinux_first_failure}" = "yes"; then
11053 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11054 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11055 OLD_CPPFLAGS
="$CPPFLAGS"
11057 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11058 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11059 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11060 LIBS
="$LIBS -b i486-linuxaout"
11061 cat >conftest.
$ac_ext <<_ACEOF
11064 cat confdefs.h
>>conftest.
$ac_ext
11065 cat >>conftest.
$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11071 XOpenDisplay ("foo");
11076 rm -f conftest.
$ac_objext conftest
$ac_exeext
11077 if { (ac_try
="$ac_link"
11078 case "(($ac_try" in
11079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11083 $as_echo "$ac_try_echo") >&5
11084 (eval "$ac_link") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest$ac_exeext && {
11094 test "$cross_compiling" = yes ||
11095 $as_test_x conftest$ac_exeext
11097 xlinux_second_failure=no
11099 $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 xlinux_second_failure=yes
11105 rm -rf conftest.dSYM
11106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11107 conftest$ac_exeext conftest.$ac_ext
11108 if test "${xlinux_second_failure}" = "yes"; then
11109 # If we get the same failure with -b, there is no use adding -b.
11110 # So take it out. This plays safe.
11111 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11112 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11113 CPPFLAGS="$OLD_CPPFLAGS"
11115 { $as_echo "$as_me:$LINENO: result: no" >&5
11116 $as_echo "no" >&6; }
11118 { $as_echo "$as_me:$LINENO: result: yes" >&5
11119 $as_echo "yes" >&6; }
11122 { $as_echo "$as_me:$LINENO: result: no" >&5
11123 $as_echo "no" >&6; }
11127 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11128 # header files included from there.
11129 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11130 $as_echo_n "checking for Xkb... " >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <X11/Xlib.h>
11138 #include <X11/XKBlib.h>
11142 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (ac_try="$ac_link"
11149 case "(($ac_try" in
11150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11151 *) ac_try_echo
=$ac_try;;
11153 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11154 $as_echo "$ac_try_echo") >&5
11155 (eval "$ac_link") 2>conftest.er1
11157 grep -v '^ *+' conftest.er1
>conftest.err
11159 cat conftest.err
>&5
11160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } && {
11162 test -z "$ac_c_werror_flag" ||
11163 test ! -s conftest.err
11164 } && test -s conftest
$ac_exeext && {
11165 test "$cross_compiling" = yes ||
11166 $as_test_x conftest
$ac_exeext
11170 $as_echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.
$ac_ext >&5
11176 rm -rf conftest.dSYM
11177 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11178 conftest
$ac_exeext conftest.
$ac_ext
11179 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11180 $as_echo "$emacs_xkb" >&6; }
11181 if test $emacs_xkb = yes; then
11183 cat >>confdefs.h
<<\_ACEOF
11184 #define HAVE_XKBGETKEYBOARD 1
11193 for ac_func
in XrmSetDatabase XScreenResourceString \
11194 XScreenNumberOfScreen XSetWMProtocols
11196 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11197 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11198 $as_echo_n "checking for $ac_func... " >&6; }
11199 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11200 $as_echo_n "(cached) " >&6
11202 cat >conftest.
$ac_ext <<_ACEOF
11205 cat confdefs.h
>>conftest.
$ac_ext
11206 cat >>conftest.
$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11210 #define $ac_func innocuous_$ac_func
11212 /* System header to define __stub macros and hopefully few prototypes,
11213 which can conflict with char $ac_func (); below.
11214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11215 <limits.h> exists even on freestanding compilers. */
11218 # include <limits.h>
11220 # include <assert.h>
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11232 /* The GNU C library defines this for functions which it implements
11233 to always fail with ENOSYS. Some functions are actually named
11234 something starting with __ and the normal name is an alias. */
11235 #if defined __stub_$ac_func || defined __stub___$ac_func
11242 return $ac_func ();
11247 rm -f conftest.
$ac_objext conftest
$ac_exeext
11248 if { (ac_try
="$ac_link"
11249 case "(($ac_try" in
11250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_link") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest$ac_exeext && {
11265 test "$cross_compiling" = yes ||
11266 $as_test_x conftest$ac_exeext
11268 eval "$as_ac_var=yes"
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 eval "$as_ac_var=no"
11276 rm -rf conftest.dSYM
11277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11278 conftest$ac_exeext conftest.$ac_ext
11280 ac_res=`eval 'as_val=${'$as_ac_var'}
11281 $as_echo "$as_val"'`
11282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11283 $as_echo "$ac_res" >&6; }
11284 as_val=`eval 'as_val=${'$as_ac_var'}
11285 $as_echo "$as_val"'`
11286 if test "x$as_val" = x""yes; then
11287 cat >>confdefs.h <<_ACEOF
11288 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11296 if test "${window_system}" = "x11"; then
11297 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11298 $as_echo_n "checking X11 version 6... " >&6; }
11299 if test "${emacs_cv_x11_version_6+set}" = set; then
11300 $as_echo_n "(cached) " >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <X11/Xlib.h>
11312 #if XlibSpecificationRelease < 6
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (ac_try="$ac_link"
11322 case "(($ac_try" in
11323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11324 *) ac_try_echo
=$ac_try;;
11326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11327 $as_echo "$ac_try_echo") >&5
11328 (eval "$ac_link") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1
>conftest.err
11332 cat conftest.err
>&5
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest
$ac_exeext && {
11338 test "$cross_compiling" = yes ||
11339 $as_test_x conftest
$ac_exeext
11341 emacs_cv_x11_version_6
=yes
11343 $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.
$ac_ext >&5
11346 emacs_cv_x11_version_6
=no
11349 rm -rf conftest.dSYM
11350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11351 conftest
$ac_exeext conftest.
$ac_ext
11354 if test $emacs_cv_x11_version_6 = yes; then
11355 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11356 $as_echo "6 or newer" >&6; }
11358 cat >>confdefs.h
<<\_ACEOF
11359 #define HAVE_X11R6 1
11363 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11364 $as_echo "before 6" >&6; }
11369 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11371 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11372 if test "${with_rsvg}" != "no"; then
11373 RSVG_REQUIRED
=2.11.0
11374 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11379 # Extract the first word of "pkg-config", so it can be a program name with args.
11380 set dummy pkg-config
; ac_word
=$2
11381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11384 $as_echo_n "(cached) " >&6
11386 case $PKG_CONFIG in
11388 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11392 for as_dir
in $PATH
11395 test -z "$as_dir" && as_dir
=.
11396 for ac_exec_ext
in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11410 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11411 if test -n "$PKG_CONFIG"; then
11412 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11413 $as_echo "$PKG_CONFIG" >&6; }
11415 { $as_echo "$as_me:$LINENO: result: no" >&5
11416 $as_echo "no" >&6; }
11421 if test "$PKG_CONFIG" = "no" ; then
11424 PKG_CONFIG_MIN_VERSION
=0.9.0
11425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11426 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11427 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11429 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11430 { $as_echo "$as_me:$LINENO: result: yes" >&5
11431 $as_echo "yes" >&6; }
11434 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11435 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11436 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11437 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11438 $as_echo "$RSVG_CFLAGS" >&6; }
11440 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11441 $as_echo_n "checking RSVG_LIBS... " >&6; }
11442 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11443 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11444 $as_echo "$RSVG_LIBS" >&6; }
11446 { $as_echo "$as_me:$LINENO: result: no" >&5
11447 $as_echo "no" >&6; }
11450 ## If we have a custom action on failure, don't print errors, but
11451 ## do set a variable so people can do so.
11452 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11464 if test $succeeded = yes; then
11473 if test ".${RSVG_CFLAGS}" != "."; then
11476 cat >>confdefs.h
<<\_ACEOF
11477 #define HAVE_RSVG 1
11480 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11481 LIBS
="$RSVG_LIBS $LIBS"
11486 HAVE_IMAGEMAGICK
=no
11487 if test "${HAVE_X11}" = "yes" ; then
11488 if test "${with_imagemagick}" != "no"; then
11489 IMAGEMAGICK_REQUIRED
=1
11490 IMAGEMAGICK_MODULE
="MagickWand >= $IMAGEMAGICK_REQUIRED"
11495 # Extract the first word of "pkg-config", so it can be a program name with args.
11496 set dummy pkg-config
; ac_word
=$2
11497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11498 $as_echo_n "checking for $ac_word... " >&6; }
11499 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11500 $as_echo_n "(cached) " >&6
11502 case $PKG_CONFIG in
11504 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11508 for as_dir
in $PATH
11511 test -z "$as_dir" && as_dir
=.
11512 for ac_exec_ext
in '' $ac_executable_extensions; do
11513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11514 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11526 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11527 if test -n "$PKG_CONFIG"; then
11528 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11529 $as_echo "$PKG_CONFIG" >&6; }
11531 { $as_echo "$as_me:$LINENO: result: no" >&5
11532 $as_echo "no" >&6; }
11537 if test "$PKG_CONFIG" = "no" ; then
11540 PKG_CONFIG_MIN_VERSION
=0.9.0
11541 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11542 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11543 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11545 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11546 { $as_echo "$as_me:$LINENO: result: yes" >&5
11547 $as_echo "yes" >&6; }
11550 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11551 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11552 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11553 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11554 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11556 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11557 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11558 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11559 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11560 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11562 { $as_echo "$as_me:$LINENO: result: no" >&5
11563 $as_echo "no" >&6; }
11564 IMAGEMAGICK_CFLAGS
=""
11565 IMAGEMAGICK_LIBS
=""
11566 ## If we have a custom action on failure, don't print errors, but
11567 ## do set a variable so people can do so.
11568 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11575 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11576 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11580 if test $succeeded = yes; then
11589 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11590 HAVE_IMAGEMAGICK
=yes
11592 cat >>confdefs.h
<<\_ACEOF
11593 #define HAVE_IMAGEMAGICK 1
11596 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11597 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11603 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11606 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11611 # Extract the first word of "pkg-config", so it can be a program name with args.
11612 set dummy pkg-config
; ac_word
=$2
11613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11616 $as_echo_n "(cached) " >&6
11618 case $PKG_CONFIG in
11620 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11624 for as_dir
in $PATH
11627 test -z "$as_dir" && as_dir
=.
11628 for ac_exec_ext
in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11642 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11643 if test -n "$PKG_CONFIG"; then
11644 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11645 $as_echo "$PKG_CONFIG" >&6; }
11647 { $as_echo "$as_me:$LINENO: result: no" >&5
11648 $as_echo "no" >&6; }
11653 if test "$PKG_CONFIG" = "no" ; then
11656 PKG_CONFIG_MIN_VERSION
=0.9.0
11657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11658 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11659 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11661 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11662 { $as_echo "$as_me:$LINENO: result: yes" >&5
11663 $as_echo "yes" >&6; }
11666 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11667 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11668 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11669 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11670 $as_echo "$GTK_CFLAGS" >&6; }
11672 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11673 $as_echo_n "checking GTK_LIBS... " >&6; }
11674 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11675 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11676 $as_echo "$GTK_LIBS" >&6; }
11678 { $as_echo "$as_me:$LINENO: result: no" >&5
11679 $as_echo "no" >&6; }
11682 ## If we have a custom action on failure, don't print errors, but
11683 ## do set a variable so people can do so.
11684 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11691 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11692 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11696 if test $succeeded = yes; then
11702 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11703 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11704 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11705 { (exit 1); exit 1; }; }
11710 if test x
"$pkg_check_gtk" = xyes
; then
11714 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11715 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11716 LIBS
="$GTK_LIBS $LIBS"
11719 for ac_func
in gtk_main
11721 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11722 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11723 $as_echo_n "checking for $ac_func... " >&6; }
11724 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11725 $as_echo_n "(cached) " >&6
11727 cat >conftest.
$ac_ext <<_ACEOF
11730 cat confdefs.h
>>conftest.
$ac_ext
11731 cat >>conftest.
$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735 #define $ac_func innocuous_$ac_func
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11743 # include <limits.h>
11745 # include <assert.h>
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11757 /* The GNU C library defines this for functions which it implements
11758 to always fail with ENOSYS. Some functions are actually named
11759 something starting with __ and the normal name is an alias. */
11760 #if defined __stub_$ac_func || defined __stub___$ac_func
11767 return $ac_func ();
11772 rm -f conftest.
$ac_objext conftest
$ac_exeext
11773 if { (ac_try
="$ac_link"
11774 case "(($ac_try" in
11775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780 (eval "$ac_link") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest$ac_exeext && {
11790 test "$cross_compiling" = yes ||
11791 $as_test_x conftest$ac_exeext
11793 eval "$as_ac_var=yes"
11795 $as_echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 eval "$as_ac_var=no"
11801 rm -rf conftest.dSYM
11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803 conftest$ac_exeext conftest.$ac_ext
11805 ac_res=`eval 'as_val=${'$as_ac_var'}
11806 $as_echo "$as_val"'`
11807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11808 $as_echo "$ac_res" >&6; }
11809 as_val=`eval 'as_val=${'$as_ac_var'}
11810 $as_echo "$as_val"'`
11811 if test "x$as_val" = x""yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11819 if test "${GTK_COMPILES}" != "yes"; then
11820 if test "$USE_X_TOOLKIT" != "maybe"; then
11821 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11822 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11823 { (exit 1); exit 1; }; };
11828 cat >>confdefs.h <<\_ACEOF
11833 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11836 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11837 closing open displays. This is no problem if you just use
11838 one display, but if you use more than one and close one of them
11839 Emacs may crash." >&5
11840 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11841 closing open displays. This is no problem if you just use
11842 one display, but if you use more than one and close one of them
11843 Emacs may crash." >&2;}
11851 if test "${HAVE_GTK}" = "yes"; then
11853 if test "$with_toolkit_scroll_bars" != no; then
11854 with_toolkit_scroll_bars=yes
11857 HAVE_GTK_MULTIDISPLAY=no
11859 for ac_func in gdk_display_open
11861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11862 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11863 $as_echo_n "checking for $ac_func... " >&6; }
11864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11865 $as_echo_n "(cached) " >&6
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11875 #define $ac_func innocuous_$ac_func
11877 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char $ac_func (); below.
11879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 <limits.h> exists even on freestanding compilers. */
11883 # include <limits.h>
11885 # include <assert.h>
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11897 /* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900 #if defined __stub_$ac_func || defined __stub___$ac_func
11907 return $ac_func ();
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (ac_try="$ac_link"
11914 case "(($ac_try" in
11915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11916 *) ac_try_echo
=$ac_try;;
11918 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11919 $as_echo "$ac_try_echo") >&5
11920 (eval "$ac_link") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1
>conftest.err
11924 cat conftest.err
>&5
11925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest
$ac_exeext && {
11930 test "$cross_compiling" = yes ||
11931 $as_test_x conftest
$ac_exeext
11933 eval "$as_ac_var=yes"
11935 $as_echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.
$ac_ext >&5
11938 eval "$as_ac_var=no"
11941 rm -rf conftest.dSYM
11942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11943 conftest
$ac_exeext conftest.
$ac_ext
11945 ac_res
=`eval 'as_val=${'$as_ac_var'}
11946 $as_echo "$as_val"'`
11947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11948 $as_echo "$ac_res" >&6; }
11949 as_val
=`eval 'as_val=${'$as_ac_var'}
11950 $as_echo "$as_val"'`
11951 if test "x$as_val" = x
""yes; then
11952 cat >>confdefs.h
<<_ACEOF
11953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 HAVE_GTK_MULTIDISPLAY
=yes
11959 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11961 cat >>confdefs.h
<<\_ACEOF
11962 #define HAVE_GTK_MULTIDISPLAY 1
11967 HAVE_GTK_FILE_SELECTION
=no
11968 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11969 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11970 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11971 $as_echo_n "(cached) " >&6
11973 cat >conftest.
$ac_ext <<_ACEOF
11976 cat confdefs.h
>>conftest.
$ac_ext
11977 cat >>conftest.
$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 $ac_includes_default
11980 #include <gtk/gtk.h>
11985 #ifndef GTK_TYPE_FILE_SELECTION
11986 (void) GTK_TYPE_FILE_SELECTION;
11993 rm -f conftest.
$ac_objext
11994 if { (ac_try
="$ac_compile"
11995 case "(($ac_try" in
11996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest.$ac_objext; then
12011 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12022 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12023 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then
12024 HAVE_GTK_FILE_SELECTION=yes
12026 HAVE_GTK_FILE_SELECTION=no
12029 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12031 for ac_func in gtk_file_selection_new
12033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12035 $as_echo_n "checking for $ac_func... " >&6; }
12036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12037 $as_echo_n "(cached) " >&6
12039 cat >conftest.$ac_ext <<_ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12047 #define $ac_func innocuous_$ac_func
12049 /* System header to define __stub macros and hopefully few prototypes,
12050 which can conflict with char $ac_func (); below.
12051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12052 <limits.h> exists even on freestanding compilers. */
12055 # include <limits.h>
12057 # include <assert.h>
12062 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12069 /* The GNU C library defines this for functions which it implements
12070 to always fail with ENOSYS. Some functions are actually named
12071 something starting with __ and the normal name is an alias. */
12072 #if defined __stub_$ac_func || defined __stub___$ac_func
12079 return $ac_func ();
12084 rm -f conftest.$ac_objext conftest$ac_exeext
12085 if { (ac_try="$ac_link"
12086 case "(($ac_try" in
12087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12088 *) ac_try_echo
=$ac_try;;
12090 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12091 $as_echo "$ac_try_echo") >&5
12092 (eval "$ac_link") 2>conftest.er1
12094 grep -v '^ *+' conftest.er1
>conftest.err
12096 cat conftest.err
>&5
12097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } && {
12099 test -z "$ac_c_werror_flag" ||
12100 test ! -s conftest.err
12101 } && test -s conftest
$ac_exeext && {
12102 test "$cross_compiling" = yes ||
12103 $as_test_x conftest
$ac_exeext
12105 eval "$as_ac_var=yes"
12107 $as_echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.
$ac_ext >&5
12110 eval "$as_ac_var=no"
12113 rm -rf conftest.dSYM
12114 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12115 conftest
$ac_exeext conftest.
$ac_ext
12117 ac_res
=`eval 'as_val=${'$as_ac_var'}
12118 $as_echo "$as_val"'`
12119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12120 $as_echo "$ac_res" >&6; }
12121 as_val
=`eval 'as_val=${'$as_ac_var'}
12122 $as_echo "$as_val"'`
12123 if test "x$as_val" = x
""yes; then
12124 cat >>confdefs.h
<<_ACEOF
12125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 HAVE_GTK_FILE_SELECTION
=yes
12129 HAVE_GTK_FILE_SELECTION
=no
12135 HAVE_GTK_FILE_CHOOSER
=no
12136 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12137 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12138 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12139 $as_echo_n "(cached) " >&6
12141 cat >conftest.
$ac_ext <<_ACEOF
12144 cat confdefs.h
>>conftest.
$ac_ext
12145 cat >>conftest.
$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 #include <gtk/gtk.h>
12153 #ifndef GTK_TYPE_FILE_CHOOSER
12154 (void) GTK_TYPE_FILE_CHOOSER;
12161 rm -f conftest.
$ac_objext
12162 if { (ac_try
="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12168 $as_echo "$ac_try_echo") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12171 grep -v '^ *+' conftest.er1 >conftest.err
12173 cat conftest.err >&5
12174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest.$ac_objext; then
12179 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12181 $as_echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12190 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12191 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then
12192 HAVE_GTK_FILE_CHOOSER=yes
12194 HAVE_GTK_FILE_CHOOSER=no
12197 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12199 for ac_func in gtk_file_chooser_dialog_new
12201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12202 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12203 $as_echo_n "checking for $ac_func... " >&6; }
12204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12205 $as_echo_n "(cached) " >&6
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12215 #define $ac_func innocuous_$ac_func
12217 /* System header to define __stub macros and hopefully few prototypes,
12218 which can conflict with char $ac_func (); below.
12219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220 <limits.h> exists even on freestanding compilers. */
12223 # include <limits.h>
12225 # include <assert.h>
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12237 /* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
12240 #if defined __stub_$ac_func || defined __stub___$ac_func
12247 return $ac_func ();
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12256 *) ac_try_echo
=$ac_try;;
12258 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12259 $as_echo "$ac_try_echo") >&5
12260 (eval "$ac_link") 2>conftest.er1
12262 grep -v '^ *+' conftest.er1
>conftest.err
12264 cat conftest.err
>&5
12265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest
$ac_exeext && {
12270 test "$cross_compiling" = yes ||
12271 $as_test_x conftest
$ac_exeext
12273 eval "$as_ac_var=yes"
12275 $as_echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.
$ac_ext >&5
12278 eval "$as_ac_var=no"
12281 rm -rf conftest.dSYM
12282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12283 conftest
$ac_exeext conftest.
$ac_ext
12285 ac_res
=`eval 'as_val=${'$as_ac_var'}
12286 $as_echo "$as_val"'`
12287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12288 $as_echo "$ac_res" >&6; }
12289 as_val
=`eval 'as_val=${'$as_ac_var'}
12290 $as_echo "$as_val"'`
12291 if test "x$as_val" = x
""yes; then
12292 cat >>confdefs.h
<<_ACEOF
12293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295 HAVE_GTK_FILE_CHOOSER
=yes
12297 HAVE_GTK_FILE_CHOOSER
=no
12303 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12304 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12306 cat >>confdefs.h
<<\_ACEOF
12307 #define HAVE_GTK_FILE_BOTH 1
12312 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12313 HAVE_GTK_AND_PTHREAD
=no
12315 for ac_header
in pthread.h
12317 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12320 $as_echo_n "checking for $ac_header... " >&6; }
12321 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 $as_echo_n "(cached) " >&6
12324 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12325 $as_echo "$as_val"'`
12326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12327 $as_echo "$ac_res" >&6; }
12329 # Is the header compilable?
12330 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12331 $as_echo_n "checking $ac_header usability... " >&6; }
12332 cat >conftest.
$ac_ext <<_ACEOF
12335 cat confdefs.h
>>conftest.
$ac_ext
12336 cat >>conftest.
$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12339 #include <$ac_header>
12341 rm -f conftest.
$ac_objext
12342 if { (ac_try
="$ac_compile"
12343 case "(($ac_try" in
12344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12348 $as_echo "$ac_try_echo") >&5
12349 (eval "$ac_compile") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest.$ac_objext; then
12359 ac_header_compiler=yes
12361 $as_echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ac_header_compiler=no
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12369 $as_echo "$ac_header_compiler" >&6; }
12371 # Is the header present?
12372 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12373 $as_echo_n "checking $ac_header presence... " >&6; }
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 #include <$ac_header>
12382 if { (ac_try="$ac_cpp conftest.$ac_ext"
12383 case "(($ac_try" in
12384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12385 *) ac_try_echo
=$ac_try;;
12387 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12388 $as_echo "$ac_try_echo") >&5
12389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12391 grep -v '^ *+' conftest.er1
>conftest.err
12393 cat conftest.err
>&5
12394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } >/dev
/null
&& {
12396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12397 test ! -s conftest.err
12399 ac_header_preproc
=yes
12401 $as_echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.
$ac_ext >&5
12404 ac_header_preproc
=no
12407 rm -f conftest.err conftest.
$ac_ext
12408 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12409 $as_echo "$ac_header_preproc" >&6; }
12411 # So? What about this header?
12412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12415 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12418 ac_header_preproc
=yes
12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12422 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12424 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12426 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12428 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12432 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12437 $as_echo_n "checking for $ac_header... " >&6; }
12438 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12439 $as_echo_n "(cached) " >&6
12441 eval "$as_ac_Header=\$ac_header_preproc"
12443 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12444 $as_echo "$as_val"'`
12445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12446 $as_echo "$ac_res" >&6; }
12449 as_val
=`eval 'as_val=${'$as_ac_Header'}
12450 $as_echo "$as_val"'`
12451 if test "x$as_val" = x
""yes; then
12452 cat >>confdefs.h
<<_ACEOF
12453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12460 if test "$ac_cv_header_pthread_h"; then
12461 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12462 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12463 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12464 $as_echo_n "(cached) " >&6
12466 ac_check_lib_save_LIBS
=$LIBS
12467 LIBS
="-lpthread $LIBS"
12468 cat >conftest.
$ac_ext <<_ACEOF
12471 cat confdefs.h
>>conftest.
$ac_ext
12472 cat >>conftest.
$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12481 char pthread_self ();
12485 return pthread_self ();
12490 rm -f conftest.
$ac_objext conftest
$ac_exeext
12491 if { (ac_try
="$ac_link"
12492 case "(($ac_try" in
12493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12497 $as_echo "$ac_try_echo") >&5
12498 (eval "$ac_link") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest$ac_exeext && {
12508 test "$cross_compiling" = yes ||
12509 $as_test_x conftest$ac_exeext
12511 ac_cv_lib_pthread_pthread_self=yes
12513 $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_cv_lib_pthread_pthread_self=no
12519 rm -rf conftest.dSYM
12520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12525 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12526 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12527 HAVE_GTK_AND_PTHREAD=yes
12531 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12532 case "${canonical}" in
12534 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_GTK_AND_PTHREAD 1
12546 if test "${with_dbus}" = "yes"; then
12550 # Extract the first word of "pkg-config", so it can be a program name with args.
12551 set dummy pkg-config; ac_word=$2
12552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12555 $as_echo_n "(cached) " >&6
12557 case $PKG_CONFIG in
12559 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12582 if test -n "$PKG_CONFIG"; then
12583 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12584 $as_echo "$PKG_CONFIG" >&6; }
12586 { $as_echo "$as_me:$LINENO: result: no" >&5
12587 $as_echo "no" >&6; }
12592 if test "$PKG_CONFIG" = "no" ; then
12595 PKG_CONFIG_MIN_VERSION=0.9.0
12596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12597 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12598 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12600 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12601 { $as_echo "$as_me:$LINENO: result: yes" >&5
12602 $as_echo "yes" >&6; }
12605 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12606 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12607 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12608 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12609 $as_echo "$DBUS_CFLAGS" >&6; }
12611 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12612 $as_echo_n "checking DBUS_LIBS... " >&6; }
12613 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12614 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12615 $as_echo "$DBUS_LIBS" >&6; }
12617 { $as_echo "$as_me:$LINENO: result: no" >&5
12618 $as_echo "no" >&6; }
12621 ## If we have a custom action on failure, don't print errors, but
12622 ## do set a variable so people can do so.
12623 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12635 if test $succeeded = yes; then
12641 if test "$HAVE_DBUS" = yes; then
12642 LIBS="$LIBS $DBUS_LIBS"
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_DBUS 1
12649 for ac_func in dbus_watch_get_unix_fd
12651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12652 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12653 $as_echo_n "checking for $ac_func... " >&6; }
12654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12655 $as_echo_n "(cached) " >&6
12657 cat >conftest.$ac_ext <<_ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12665 #define $ac_func innocuous_$ac_func
12667 /* System header to define __stub macros and hopefully few prototypes,
12668 which can conflict with char $ac_func (); below.
12669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12670 <limits.h> exists even on freestanding compilers. */
12673 # include <limits.h>
12675 # include <assert.h>
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12687 /* The GNU C library defines this for functions which it implements
12688 to always fail with ENOSYS. Some functions are actually named
12689 something starting with __ and the normal name is an alias. */
12690 #if defined __stub_$ac_func || defined __stub___$ac_func
12697 return $ac_func ();
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (ac_try="$ac_link"
12704 case "(($ac_try" in
12705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12706 *) ac_try_echo
=$ac_try;;
12708 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12709 $as_echo "$ac_try_echo") >&5
12710 (eval "$ac_link") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1
>conftest.err
12714 cat conftest.err
>&5
12715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } && {
12717 test -z "$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 } && test -s conftest
$ac_exeext && {
12720 test "$cross_compiling" = yes ||
12721 $as_test_x conftest
$ac_exeext
12723 eval "$as_ac_var=yes"
12725 $as_echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12728 eval "$as_ac_var=no"
12731 rm -rf conftest.dSYM
12732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12733 conftest
$ac_exeext conftest.
$ac_ext
12735 ac_res
=`eval 'as_val=${'$as_ac_var'}
12736 $as_echo "$as_val"'`
12737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12738 $as_echo "$ac_res" >&6; }
12739 as_val
=`eval 'as_val=${'$as_ac_var'}
12740 $as_echo "$as_val"'`
12741 if test "x$as_val" = x
""yes; then
12742 cat >>confdefs.h
<<_ACEOF
12743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12753 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12757 # Extract the first word of "pkg-config", so it can be a program name with args.
12758 set dummy pkg-config
; ac_word
=$2
12759 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12762 $as_echo_n "(cached) " >&6
12764 case $PKG_CONFIG in
12766 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12770 for as_dir
in $PATH
12773 test -z "$as_dir" && as_dir
=.
12774 for ac_exec_ext
in '' $ac_executable_extensions; do
12775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12776 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12788 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12789 if test -n "$PKG_CONFIG"; then
12790 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12791 $as_echo "$PKG_CONFIG" >&6; }
12793 { $as_echo "$as_me:$LINENO: result: no" >&5
12794 $as_echo "no" >&6; }
12799 if test "$PKG_CONFIG" = "no" ; then
12802 PKG_CONFIG_MIN_VERSION
=0.9.0
12803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12804 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12805 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12807 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12808 { $as_echo "$as_me:$LINENO: result: yes" >&5
12809 $as_echo "yes" >&6; }
12812 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12813 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12814 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12815 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12816 $as_echo "$GCONF_CFLAGS" >&6; }
12818 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12819 $as_echo_n "checking GCONF_LIBS... " >&6; }
12820 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12821 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12822 $as_echo "$GCONF_LIBS" >&6; }
12824 { $as_echo "$as_me:$LINENO: result: no" >&5
12825 $as_echo "no" >&6; }
12828 ## If we have a custom action on failure, don't print errors, but
12829 ## do set a variable so people can do so.
12830 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12842 if test $succeeded = yes; then
12848 if test "$HAVE_GCONF" = yes; then
12850 cat >>confdefs.h
<<\_ACEOF
12851 #define HAVE_GCONF 1
12858 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12859 if test "$with_xaw3d" != no
; then
12860 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12861 $as_echo_n "checking for xaw3d... " >&6; }
12862 if test "${emacs_cv_xaw3d+set}" = set; then
12863 $as_echo_n "(cached) " >&6
12865 cat >conftest.
$ac_ext <<_ACEOF
12868 cat confdefs.h
>>conftest.
$ac_ext
12869 cat >>conftest.
$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12872 #include <X11/Intrinsic.h>
12873 #include <X11/Xaw3d/Simple.h>
12882 rm -f conftest.
$ac_objext conftest
$ac_exeext
12883 if { (ac_try
="$ac_link"
12884 case "(($ac_try" in
12885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890 (eval "$ac_link") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest$ac_exeext && {
12900 test "$cross_compiling" = yes ||
12901 $as_test_x conftest$ac_exeext
12905 $as_echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12911 rm -rf conftest.dSYM
12912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12913 conftest$ac_exeext conftest.$ac_ext
12919 if test $emacs_cv_xaw3d = yes; then
12920 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12921 $as_echo "yes; using Lucid toolkit" >&6; }
12922 USE_X_TOOLKIT=LUCID
12925 cat >>confdefs.h <<\_ACEOF
12926 #define HAVE_XAW3D 1
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931 $as_echo "no" >&6; }
12932 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12933 $as_echo_n "checking for libXaw... " >&6; }
12934 if test "${emacs_cv_xaw+set}" = set; then
12935 $as_echo_n "(cached) " >&6
12937 cat >conftest.$ac_ext <<_ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12944 #include <X11/Intrinsic.h>
12945 #include <X11/Xaw/Simple.h>
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (ac_try="$ac_link"
12956 case "(($ac_try" in
12957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12958 *) ac_try_echo
=$ac_try;;
12960 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962 (eval "$ac_link") 2>conftest.er1
12964 grep -v '^ *+' conftest.er1
>conftest.err
12966 cat conftest.err
>&5
12967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
12971 } && test -s conftest
$ac_exeext && {
12972 test "$cross_compiling" = yes ||
12973 $as_test_x conftest
$ac_exeext
12977 $as_echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.
$ac_ext >&5
12983 rm -rf conftest.dSYM
12984 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12985 conftest
$ac_exeext conftest.
$ac_ext
12988 if test $emacs_cv_xaw = yes; then
12989 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12990 $as_echo "yes; using Lucid toolkit" >&6; }
12991 USE_X_TOOLKIT
=LUCID
12992 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12993 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12994 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12995 { (exit 1); exit 1; }; }
12997 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12998 $as_echo "no; do not use toolkit by default" >&6; }
13004 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
13006 if test "${USE_X_TOOLKIT}" != "none"; then
13007 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13008 $as_echo_n "checking X11 toolkit version... " >&6; }
13009 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13012 cat >conftest.
$ac_ext <<_ACEOF
13015 cat confdefs.h
>>conftest.
$ac_ext
13016 cat >>conftest.
$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include <X11/Intrinsic.h>
13022 #if XtSpecificationRelease < 6
13030 rm -f conftest.
$ac_objext conftest
$ac_exeext
13031 if { (ac_try
="$ac_link"
13032 case "(($ac_try" in
13033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13037 $as_echo "$ac_try_echo") >&5
13038 (eval "$ac_link") 2>conftest.er1
13040 grep -v '^ *+' conftest.er1 >conftest.err
13042 cat conftest.err >&5
13043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } && {
13045 test -z "$ac_c_werror_flag" ||
13046 test ! -s conftest.err
13047 } && test -s conftest$ac_exeext && {
13048 test "$cross_compiling" = yes ||
13049 $as_test_x conftest$ac_exeext
13051 emacs_cv_x11_toolkit_version_6=yes
13053 $as_echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 emacs_cv_x11_toolkit_version_6=no
13059 rm -rf conftest.dSYM
13060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13061 conftest$ac_exeext conftest.$ac_ext
13064 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13065 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13066 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13067 $as_echo "6 or newer" >&6; }
13069 cat >>confdefs.h <<\_ACEOF
13070 #define HAVE_X11XTR6 1
13074 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13075 $as_echo "before 6" >&6; }
13079 if test x$HAVE_X11XTR6 = xyes; then
13080 LIBS="-lXt -lSM -lICE $LIBS"
13085 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13086 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13087 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13088 $as_echo_n "(cached) " >&6
13090 ac_check_lib_save_LIBS=$LIBS
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13105 char XmuConvertStandardSelection ();
13109 return XmuConvertStandardSelection ();
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (ac_try="$ac_link"
13116 case "(($ac_try" in
13117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13118 *) ac_try_echo
=$ac_try;;
13120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13121 $as_echo "$ac_try_echo") >&5
13122 (eval "$ac_link") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1
>conftest.err
13126 cat conftest.err
>&5
13127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } && {
13129 test -z "$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13131 } && test -s conftest
$ac_exeext && {
13132 test "$cross_compiling" = yes ||
13133 $as_test_x conftest
$ac_exeext
13135 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
13137 $as_echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.
$ac_ext >&5
13140 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
13143 rm -rf conftest.dSYM
13144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13145 conftest
$ac_exeext conftest.
$ac_ext
13146 LIBS
=$ac_check_lib_save_LIBS
13148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13149 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13150 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then
13151 cat >>confdefs.h
<<_ACEOF
13152 #define HAVE_LIBXMU 1
13159 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
13162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13163 if test "${HAVE_X11}" = "yes"; then
13164 if test "${USE_X_TOOLKIT}" != "none"; then
13166 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13167 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13168 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13169 $as_echo_n "(cached) " >&6
13171 ac_check_lib_save_LIBS
=$LIBS
13172 LIBS
="-lXext $LIBS"
13173 cat >conftest.
$ac_ext <<_ACEOF
13176 cat confdefs.h
>>conftest.
$ac_ext
13177 cat >>conftest.
$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13186 char XShapeQueryExtension ();
13190 return XShapeQueryExtension ();
13195 rm -f conftest.
$ac_objext conftest
$ac_exeext
13196 if { (ac_try
="$ac_link"
13197 case "(($ac_try" in
13198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13202 $as_echo "$ac_try_echo") >&5
13203 (eval "$ac_link") 2>conftest.er1
13205 grep -v '^ *+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } && {
13210 test -z "$ac_c_werror_flag" ||
13211 test ! -s conftest.err
13212 } && test -s conftest$ac_exeext && {
13213 test "$cross_compiling" = yes ||
13214 $as_test_x conftest$ac_exeext
13216 ac_cv_lib_Xext_XShapeQueryExtension=yes
13218 $as_echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_cv_lib_Xext_XShapeQueryExtension=no
13224 rm -rf conftest.dSYM
13225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13230 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13231 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
13232 cat >>confdefs.h <<_ACEOF
13233 #define HAVE_LIBXEXT 1
13236 LIBS="-lXext $LIBS"
13243 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13244 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13245 $as_echo_n "checking for Motif version 2.1... " >&6; }
13246 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13247 $as_echo_n "(cached) " >&6
13249 cat >conftest.$ac_ext <<_ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13259 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13262 Motif version prior to 2.1.
13268 rm -f conftest.$ac_objext
13269 if { (ac_try="$ac_compile"
13270 case "(($ac_try" in
13271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13272 *) ac_try_echo
=$ac_try;;
13274 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13275 $as_echo "$ac_try_echo") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13278 grep -v '^ *+' conftest.er1
>conftest.err
13280 cat conftest.err
>&5
13281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && {
13283 test -z "$ac_c_werror_flag" ||
13284 test ! -s conftest.err
13285 } && test -s conftest.
$ac_objext; then
13286 emacs_cv_motif_version_2_1
=yes
13288 $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.
$ac_ext >&5
13291 emacs_cv_motif_version_2_1
=no
13294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13296 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13297 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13298 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
13299 if test $emacs_cv_motif_version_2_1 = yes; then
13302 cat >>confdefs.h
<<\_ACEOF
13303 #define HAVE_MOTIF_2_1 1
13306 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13307 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13308 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13309 $as_echo_n "(cached) " >&6
13311 ac_check_lib_save_LIBS
=$LIBS
13313 cat >conftest.
$ac_ext <<_ACEOF
13316 cat confdefs.h
>>conftest.
$ac_ext
13317 cat >>conftest.
$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13326 char XpCreateContext ();
13330 return XpCreateContext ();
13335 rm -f conftest.
$ac_objext conftest
$ac_exeext
13336 if { (ac_try
="$ac_link"
13337 case "(($ac_try" in
13338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13342 $as_echo "$ac_try_echo") >&5
13343 (eval "$ac_link") 2>conftest.er1
13345 grep -v '^ *+' conftest.er1 >conftest.err
13347 cat conftest.err >&5
13348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest$ac_exeext && {
13353 test "$cross_compiling" = yes ||
13354 $as_test_x conftest$ac_exeext
13356 ac_cv_lib_Xp_XpCreateContext=yes
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_cv_lib_Xp_XpCreateContext=no
13364 rm -rf conftest.dSYM
13365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13370 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13371 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
13375 if test ${HAVE_LIBXP} = yes; then
13377 cat >>confdefs.h <<\_ACEOF
13378 #define HAVE_LIBXP 1
13383 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13384 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13385 if test "${emacs_cv_lesstif+set}" = set; then
13386 $as_echo_n "(cached) " >&6
13388 # We put this in CFLAGS temporarily to precede other -I options
13389 # that might be in CFLAGS temporarily.
13390 # We put this in CPPFLAGS where it precedes the other -I options.
13391 OLD_CPPFLAGS=$CPPFLAGS
13393 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13394 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13414 *) ac_try_echo
=$ac_try;;
13416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13417 $as_echo "$ac_try_echo") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13420 grep -v '^ *+' conftest.er1
>conftest.err
13422 cat conftest.err
>&5
13423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && {
13425 test -z "$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 } && test -s conftest.
$ac_objext; then
13428 emacs_cv_lesstif
=yes
13430 $as_echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.
$ac_ext >&5
13433 emacs_cv_lesstif
=no
13436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13438 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13439 $as_echo "$emacs_cv_lesstif" >&6; }
13440 if test $emacs_cv_lesstif = yes; then
13441 # Make sure this -I option remains in CPPFLAGS after it is set
13442 # back to REAL_CPPFLAGS.
13443 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13444 # have those other -I options anyway. Ultimately, having this
13445 # directory ultimately in CPPFLAGS will be enough.
13446 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13447 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13450 CPPFLAGS
=$OLD_CPPFLAGS
13457 USE_TOOLKIT_SCROLL_BARS
=no
13458 if test "${with_toolkit_scroll_bars}" != "no"; then
13459 if test "${USE_X_TOOLKIT}" != "none"; then
13460 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13461 cat >>confdefs.h
<<\_ACEOF
13462 #define USE_TOOLKIT_SCROLL_BARS 1
13466 USE_TOOLKIT_SCROLL_BARS
=yes
13467 elif test "${HAVE_XAW3D}" = "yes"; then
13468 cat >>confdefs.h
<<\_ACEOF
13469 #define USE_TOOLKIT_SCROLL_BARS 1
13472 USE_TOOLKIT_SCROLL_BARS
=yes
13474 elif test "${HAVE_GTK}" = "yes"; then
13475 cat >>confdefs.h
<<\_ACEOF
13476 #define USE_TOOLKIT_SCROLL_BARS 1
13479 USE_TOOLKIT_SCROLL_BARS
=yes
13480 elif test "${HAVE_NS}" = "yes"; then
13481 cat >>confdefs.h
<<\_ACEOF
13482 #define USE_TOOLKIT_SCROLL_BARS 1
13485 USE_TOOLKIT_SCROLL_BARS
=yes
13489 cat >conftest.
$ac_ext <<_ACEOF
13492 cat confdefs.h
>>conftest.
$ac_ext
13493 cat >>conftest.
$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13496 #include <X11/Xlib.h>
13497 #include <X11/Xresource.h>
13506 rm -f conftest.
$ac_objext
13507 if { (ac_try
="$ac_compile"
13508 case "(($ac_try" in
13509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13513 $as_echo "$ac_try_echo") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13516 grep -v '^ *+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest.$ac_objext; then
13526 cat >>confdefs.h <<\_ACEOF
13531 $as_echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 if test "${with_xim}" != "no"; then
13542 cat >>confdefs.h <<\_ACEOF
13549 if test "${HAVE_XIM}" != "no"; then
13550 late_CFLAGS=$CFLAGS
13551 if test "$GCC" = yes; then
13552 CFLAGS="$CFLAGS --pedantic-errors"
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 #include <X11/Xlib.h>
13562 #include <X11/Xresource.h>
13571 XPointer *client_data;
13573 /* If we're not using GCC, it's probably not XFree86, and this is
13574 probably right, but we can't use something like --pedantic-errors. */
13575 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13576 char*, XIMProc, XPointer*);
13578 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13584 rm -f conftest.$ac_objext
13585 if { (ac_try="$ac_compile"
13586 case "(($ac_try" in
13587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13588 *) ac_try_echo
=$ac_try;;
13590 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13591 $as_echo "$ac_try_echo") >&5
13592 (eval "$ac_compile") 2>conftest.er1
13594 grep -v '^ *+' conftest.er1
>conftest.err
13596 cat conftest.err
>&5
13597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest.
$ac_objext; then
13602 emacs_cv_arg6_star
=yes
13604 $as_echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.
$ac_ext >&5
13610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13612 if test "$emacs_cv_arg6_star" = yes; then
13613 cat >>confdefs.h
<<\_ACEOF
13614 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13618 cat >>confdefs.h
<<\_ACEOF
13619 #define XRegisterIMInstantiateCallback_arg6 XPointer
13623 CFLAGS
=$late_CFLAGS
13626 ### Start of font-backend (under any platform) section.
13627 # (nothing here yet -- this is a placeholder)
13628 ### End of font-backend (under any platform) section.
13630 ### Start of font-backend (under X11) section.
13631 if test "${HAVE_X11}" = "yes"; then
13635 # Extract the first word of "pkg-config", so it can be a program name with args.
13636 set dummy pkg-config
; ac_word
=$2
13637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13640 $as_echo_n "(cached) " >&6
13642 case $PKG_CONFIG in
13644 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13648 for as_dir
in $PATH
13651 test -z "$as_dir" && as_dir
=.
13652 for ac_exec_ext
in '' $ac_executable_extensions; do
13653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13654 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13666 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13667 if test -n "$PKG_CONFIG"; then
13668 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13669 $as_echo "$PKG_CONFIG" >&6; }
13671 { $as_echo "$as_me:$LINENO: result: no" >&5
13672 $as_echo "no" >&6; }
13677 if test "$PKG_CONFIG" = "no" ; then
13680 PKG_CONFIG_MIN_VERSION
=0.9.0
13681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13682 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13683 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13685 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13686 { $as_echo "$as_me:$LINENO: result: yes" >&5
13687 $as_echo "yes" >&6; }
13690 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13691 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13692 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13693 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13694 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13696 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13697 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13698 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13699 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13700 $as_echo "$FONTCONFIG_LIBS" >&6; }
13702 { $as_echo "$as_me:$LINENO: result: no" >&5
13703 $as_echo "no" >&6; }
13704 FONTCONFIG_CFLAGS
=""
13706 ## If we have a custom action on failure, don't print errors, but
13707 ## do set a variable so people can do so.
13708 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13720 if test $succeeded = yes; then
13727 ## Use -lXft if available, unless `--with-xft=no'.
13729 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13732 if test "x${with_xft}" != "xno"; then
13737 # Extract the first word of "pkg-config", so it can be a program name with args.
13738 set dummy pkg-config
; ac_word
=$2
13739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13742 $as_echo_n "(cached) " >&6
13744 case $PKG_CONFIG in
13746 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13750 for as_dir
in $PATH
13753 test -z "$as_dir" && as_dir
=.
13754 for ac_exec_ext
in '' $ac_executable_extensions; do
13755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13756 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13768 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13769 if test -n "$PKG_CONFIG"; then
13770 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13771 $as_echo "$PKG_CONFIG" >&6; }
13773 { $as_echo "$as_me:$LINENO: result: no" >&5
13774 $as_echo "no" >&6; }
13779 if test "$PKG_CONFIG" = "no" ; then
13782 PKG_CONFIG_MIN_VERSION
=0.9.0
13783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13784 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13785 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13787 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13788 { $as_echo "$as_me:$LINENO: result: yes" >&5
13789 $as_echo "yes" >&6; }
13792 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13793 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13794 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13795 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13796 $as_echo "$XFT_CFLAGS" >&6; }
13798 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13799 $as_echo_n "checking XFT_LIBS... " >&6; }
13800 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13801 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13802 $as_echo "$XFT_LIBS" >&6; }
13804 { $as_echo "$as_me:$LINENO: result: no" >&5
13805 $as_echo "no" >&6; }
13808 ## If we have a custom action on failure, don't print errors, but
13809 ## do set a variable so people can do so.
13810 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13822 if test $succeeded = yes; then
13828 ## Because xftfont.c uses XRenderQueryExtension, we also
13829 ## need to link to -lXrender.
13831 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13832 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13833 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13834 $as_echo_n "(cached) " >&6
13836 ac_check_lib_save_LIBS
=$LIBS
13837 LIBS
="-lXrender $LIBS"
13838 cat >conftest.
$ac_ext <<_ACEOF
13841 cat confdefs.h
>>conftest.
$ac_ext
13842 cat >>conftest.
$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13845 /* Override any GCC internal prototype to avoid an error.
13846 Use char because int might match the return type of a GCC
13847 builtin and then its argument prototype would still apply. */
13851 char XRenderQueryExtension ();
13855 return XRenderQueryExtension ();
13860 rm -f conftest.
$ac_objext conftest
$ac_exeext
13861 if { (ac_try
="$ac_link"
13862 case "(($ac_try" in
13863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868 (eval "$ac_link") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest$ac_exeext && {
13878 test "$cross_compiling" = yes ||
13879 $as_test_x conftest$ac_exeext
13881 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13883 $as_echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 ac_cv_lib_Xrender_XRenderQueryExtension=no
13889 rm -rf conftest.dSYM
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13895 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13896 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
13900 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13901 OLD_CPPFLAGS="$CPPFLAGS"
13902 OLD_CFLAGS="$CFLAGS"
13904 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13905 CFLAGS="$CFLAGS $XFT_CFLAGS"
13906 XFT_LIBS="-lXrender $XFT_LIBS"
13907 LIBS="$XFT_LIBS $LIBS"
13908 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13909 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13910 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13911 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13912 $as_echo_n "(cached) " >&6
13914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13915 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13917 # Is the header compilable?
13918 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13919 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 $ac_includes_default
13927 #include <X11/Xft/Xft.h>
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13933 *) ac_try_echo
=$ac_try;;
13935 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13936 $as_echo "$ac_try_echo") >&5
13937 (eval "$ac_compile") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1
>conftest.err
13941 cat conftest.err
>&5
13942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest.
$ac_objext; then
13947 ac_header_compiler
=yes
13949 $as_echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.
$ac_ext >&5
13952 ac_header_compiler
=no
13955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13957 $as_echo "$ac_header_compiler" >&6; }
13959 # Is the header present?
13960 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13961 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13962 cat >conftest.
$ac_ext <<_ACEOF
13965 cat confdefs.h
>>conftest.
$ac_ext
13966 cat >>conftest.
$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <X11/Xft/Xft.h>
13970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13971 case "(($ac_try" in
13972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976 $as_echo "$ac_try_echo") >&5
13977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13979 grep -v '^ *+' conftest.er1 >conftest.err
13981 cat conftest.err >&5
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } >/dev/null && {
13984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13987 ac_header_preproc=yes
13989 $as_echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_header_preproc=no
13995 rm -f conftest.err conftest.$ac_ext
13996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13997 $as_echo "$ac_header_preproc" >&6; }
13999 # So? What about this header?
14000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14002 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14003 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14004 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14005 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14006 ac_header_preproc=yes
14009 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14010 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14011 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14012 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14013 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14014 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14015 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14016 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14018 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14020 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14024 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14025 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14026 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14027 $as_echo_n "(cached) " >&6
14029 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14032 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14035 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14036 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14037 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14038 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14039 $as_echo_n "(cached) " >&6
14041 ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lXft $XFT_LIBS $LIBS"
14043 cat >conftest.$ac_ext <<_ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14050 /* Override any GCC internal prototype to avoid an error.
14051 Use char because int might match the return type of a GCC
14052 builtin and then its argument prototype would still apply. */
14056 char XftFontOpen ();
14060 return XftFontOpen ();
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (ac_try="$ac_link"
14067 case "(($ac_try" in
14068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14069 *) ac_try_echo
=$ac_try;;
14071 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14072 $as_echo "$ac_try_echo") >&5
14073 (eval "$ac_link") 2>conftest.er1
14075 grep -v '^ *+' conftest.er1
>conftest.err
14077 cat conftest.err
>&5
14078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest
$ac_exeext && {
14083 test "$cross_compiling" = yes ||
14084 $as_test_x conftest
$ac_exeext
14086 ac_cv_lib_Xft_XftFontOpen
=yes
14088 $as_echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.
$ac_ext >&5
14091 ac_cv_lib_Xft_XftFontOpen
=no
14094 rm -rf conftest.dSYM
14095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14096 conftest
$ac_exeext conftest.
$ac_ext
14097 LIBS
=$ac_check_lib_save_LIBS
14099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14100 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14101 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then
14109 if test "${HAVE_XFT}" = "yes"; then
14111 cat >>confdefs.h
<<\_ACEOF
14116 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14118 CPPFLAGS
="$OLD_CPPFLAGS"
14119 CFLAGS
="$OLD_CFLAGS"
14121 fi # "${HAVE_XFT}" = "yes"
14122 fi # "$HAVE_XFT" != no
14123 fi # "x${with_xft}" != "xno"
14125 if test "$HAVE_XFT" != "yes"; then
14131 ## We used to allow building with FreeType and without Xft.
14132 ## However, the ftx font backend driver is not in good shape.
14133 if test "${HAVE_XFT}" = "yes"; then
14140 if test "${HAVE_FREETYPE}" = "yes"; then
14142 cat >>confdefs.h
<<\_ACEOF
14143 #define HAVE_FREETYPE 1
14146 if test "${with_libotf}" != "no"; then
14150 # Extract the first word of "pkg-config", so it can be a program name with args.
14151 set dummy pkg-config
; ac_word
=$2
14152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14153 $as_echo_n "checking for $ac_word... " >&6; }
14154 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14155 $as_echo_n "(cached) " >&6
14157 case $PKG_CONFIG in
14159 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14163 for as_dir
in $PATH
14166 test -z "$as_dir" && as_dir
=.
14167 for ac_exec_ext
in '' $ac_executable_extensions; do
14168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14169 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14181 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14182 if test -n "$PKG_CONFIG"; then
14183 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14184 $as_echo "$PKG_CONFIG" >&6; }
14186 { $as_echo "$as_me:$LINENO: result: no" >&5
14187 $as_echo "no" >&6; }
14192 if test "$PKG_CONFIG" = "no" ; then
14195 PKG_CONFIG_MIN_VERSION
=0.9.0
14196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14197 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14198 $as_echo_n "checking for libotf... " >&6; }
14200 if $PKG_CONFIG --exists "libotf" 2>&5; then
14201 { $as_echo "$as_me:$LINENO: result: yes" >&5
14202 $as_echo "yes" >&6; }
14205 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14206 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14207 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14208 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14209 $as_echo "$LIBOTF_CFLAGS" >&6; }
14211 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14212 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14213 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14214 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14215 $as_echo "$LIBOTF_LIBS" >&6; }
14217 { $as_echo "$as_me:$LINENO: result: no" >&5
14218 $as_echo "no" >&6; }
14221 ## If we have a custom action on failure, don't print errors, but
14222 ## do set a variable so people can do so.
14223 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14230 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14231 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14235 if test $succeeded = yes; then
14241 if test "$HAVE_LIBOTF" = "yes"; then
14243 cat >>confdefs.h
<<\_ACEOF
14244 #define HAVE_LIBOTF 1
14247 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14248 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14249 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14250 $as_echo_n "(cached) " >&6
14252 ac_check_lib_save_LIBS
=$LIBS
14254 cat >conftest.
$ac_ext <<_ACEOF
14257 cat confdefs.h
>>conftest.
$ac_ext
14258 cat >>conftest.
$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14267 char OTF_get_variation_glyphs ();
14271 return OTF_get_variation_glyphs ();
14276 rm -f conftest.
$ac_objext conftest
$ac_exeext
14277 if { (ac_try
="$ac_link"
14278 case "(($ac_try" in
14279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14283 $as_echo "$ac_try_echo") >&5
14284 (eval "$ac_link") 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest$ac_exeext && {
14294 test "$cross_compiling" = yes ||
14295 $as_test_x conftest$ac_exeext
14297 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14299 $as_echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14305 rm -rf conftest.dSYM
14306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14311 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14312 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14313 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14315 HAVE_OTF_GET_VARIATION_GLYPHS=no
14318 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14330 if test "${HAVE_LIBOTF}" = yes; then
14331 if test "${with_m17n_flt}" != "no"; then
14335 # Extract the first word of "pkg-config", so it can be a program name with args.
14336 set dummy pkg-config; ac_word=$2
14337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14338 $as_echo_n "checking for $ac_word... " >&6; }
14339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14340 $as_echo_n "(cached) " >&6
14342 case $PKG_CONFIG in
14344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14362 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14367 if test -n "$PKG_CONFIG"; then
14368 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14369 $as_echo "$PKG_CONFIG" >&6; }
14371 { $as_echo "$as_me:$LINENO: result: no" >&5
14372 $as_echo "no" >&6; }
14377 if test "$PKG_CONFIG" = "no" ; then
14380 PKG_CONFIG_MIN_VERSION=0.9.0
14381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14382 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14383 $as_echo_n "checking for m17n-flt... " >&6; }
14385 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14386 { $as_echo "$as_me:$LINENO: result: yes" >&5
14387 $as_echo "yes" >&6; }
14390 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14391 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14392 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14393 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14394 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14396 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14397 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14398 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14399 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14400 $as_echo "$M17N_FLT_LIBS" >&6; }
14402 { $as_echo "$as_me:$LINENO: result: no" >&5
14403 $as_echo "no" >&6; }
14406 ## If we have a custom action on failure, don't print errors, but
14407 ## do set a variable so people can do so.
14408 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14420 if test $succeeded = yes; then
14426 if test "$HAVE_M17N_FLT" = "yes"; then
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_M17N_FLT 1
14441 ### End of font-backend (under X11) section.
14452 ### Use -lXpm if available, unless `--with-xpm=no
'.
14455 if test "${HAVE_X11}" = "yes"; then
14456 if test "${with_xpm}" != "no"; then
14457 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14458 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14459 $as_echo_n "checking for X11/xpm.h... " >&6; }
14460 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14461 $as_echo_n "(cached) " >&6
14463 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14464 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14466 # Is the header compilable?
14467 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14468 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 $ac_includes_default
14476 #include <X11/xpm.h>
14478 rm -f conftest.$ac_objext
14479 if { (ac_try="$ac_compile"
14480 case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14485 $as_echo "$ac_try_echo") >&5
14486 (eval "$ac_compile") 2>conftest.er1
14488 grep -v '^
*+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest.$ac_objext; then
14496 ac_header_compiler=yes
14498 $as_echo "$as_me: failed program was:" >&5
14499 sed 's
/^
/|
/' conftest.$ac_ext >&5
14501 ac_header_compiler=no
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14506 $as_echo "$ac_header_compiler" >&6; }
14508 # Is the header present?
14509 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14510 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <X11/xpm.h>
14519 if { (ac_try="$ac_cpp conftest.$ac_ext"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14525 $as_echo "$ac_try_echo") >&5
14526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14528 grep -v '^
*+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } >/dev/null && {
14533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14534 test ! -s conftest.err
14536 ac_header_preproc=yes
14538 $as_echo "$as_me: failed program was:" >&5
14539 sed 's
/^
/|
/' conftest.$ac_ext >&5
14541 ac_header_preproc=no
14544 rm -f conftest.err conftest.$ac_ext
14545 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546 $as_echo "$ac_header_preproc" >&6; }
14548 # So? What about this header?
14549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14552 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14554 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14555 ac_header_preproc=yes
14558 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14559 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14560 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14561 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14562 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14563 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14565 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14567 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14569 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14573 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14574 $as_echo_n "checking for X11/xpm.h... " >&6; }
14575 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14576 $as_echo_n "(cached) " >&6
14578 ac_cv_header_X11_xpm_h=$ac_header_preproc
14580 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14581 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14584 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
14585 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14586 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14587 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14588 $as_echo_n "(cached) " >&6
14590 ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-lXpm -lX11 $LIBS"
14592 cat >conftest.$ac_ext <<_ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14605 char XpmReadFileToPixmap ();
14609 return XpmReadFileToPixmap ();
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14621 $as_echo "$ac_try_echo") >&5
14622 (eval "$ac_link") 2>conftest.er1
14624 grep -v '^
*+' conftest.er1 >conftest.err
14626 cat conftest.err >&5
14627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext && {
14632 test "$cross_compiling" = yes ||
14633 $as_test_x conftest$ac_exeext
14635 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14637 $as_echo "$as_me: failed program was:" >&5
14638 sed 's
/^
/|
/' conftest.$ac_ext >&5
14640 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14643 rm -rf conftest.dSYM
14644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14645 conftest$ac_exeext conftest.$ac_ext
14646 LIBS=$ac_check_lib_save_LIBS
14648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14649 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14650 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
14657 if test "${HAVE_XPM}" = "yes"; then
14658 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14659 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include "X11/xpm.h"
14667 #ifndef XpmReturnAllocPixels
14668 no_return_alloc_pixels
14672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14673 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14681 if test "${HAVE_XPM}" = "yes"; then
14682 { $as_echo "$as_me:$LINENO: result: yes" >&5
14683 $as_echo "yes" >&6; }
14685 { $as_echo "$as_me:$LINENO: result: no" >&5
14686 $as_echo "no" >&6; }
14691 if test "${HAVE_XPM}" = "yes"; then
14693 cat >>confdefs.h <<\_ACEOF
14702 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14705 if test "${HAVE_X11}" = "yes"; then
14706 if test "${with_jpeg}" != "no"; then
14707 if test "${ac_cv_header_jerror_h+set}" = set; then
14708 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14709 $as_echo_n "checking for jerror.h... " >&6; }
14710 if test "${ac_cv_header_jerror_h+set}" = set; then
14711 $as_echo_n "(cached) " >&6
14713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14714 $as_echo "$ac_cv_header_jerror_h" >&6; }
14716 # Is the header compilable?
14717 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14718 $as_echo_n "checking jerror.h usability... " >&6; }
14719 cat >conftest.
$ac_ext <<_ACEOF
14722 cat confdefs.h
>>conftest.
$ac_ext
14723 cat >>conftest.
$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14726 #include <jerror.h>
14728 rm -f conftest.
$ac_objext
14729 if { (ac_try
="$ac_compile"
14730 case "(($ac_try" in
14731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736 (eval "$ac_compile") 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14740 cat conftest.err >&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && {
14743 test -z "$ac_c_werror_flag" ||
14744 test ! -s conftest.err
14745 } && test -s conftest.$ac_objext; then
14746 ac_header_compiler=yes
14748 $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_header_compiler=no
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14756 $as_echo "$ac_header_compiler" >&6; }
14758 # Is the header present?
14759 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14760 $as_echo_n "checking jerror.h presence... " >&6; }
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 #include <jerror.h>
14769 if { (ac_try="$ac_cpp conftest.$ac_ext"
14770 case "(($ac_try" in
14771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14772 *) ac_try_echo
=$ac_try;;
14774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14775 $as_echo "$ac_try_echo") >&5
14776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14778 grep -v '^ *+' conftest.er1
>conftest.err
14780 cat conftest.err
>&5
14781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } >/dev
/null
&& {
14783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14786 ac_header_preproc
=yes
14788 $as_echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.
$ac_ext >&5
14791 ac_header_preproc
=no
14794 rm -f conftest.err conftest.
$ac_ext
14795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14796 $as_echo "$ac_header_preproc" >&6; }
14798 # So? What about this header?
14799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14801 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14802 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14804 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14805 ac_header_preproc
=yes
14808 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14809 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14810 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14811 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14812 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14813 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14814 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14815 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14816 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14817 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14819 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14823 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14824 $as_echo_n "checking for jerror.h... " >&6; }
14825 if test "${ac_cv_header_jerror_h+set}" = set; then
14826 $as_echo_n "(cached) " >&6
14828 ac_cv_header_jerror_h
=$ac_header_preproc
14830 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14831 $as_echo "$ac_cv_header_jerror_h" >&6; }
14834 if test "x$ac_cv_header_jerror_h" = x
""yes; then
14835 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14836 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14837 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14838 $as_echo_n "(cached) " >&6
14840 ac_check_lib_save_LIBS
=$LIBS
14841 LIBS
="-ljpeg $LIBS"
14842 cat >conftest.
$ac_ext <<_ACEOF
14845 cat confdefs.h
>>conftest.
$ac_ext
14846 cat >>conftest.
$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14849 /* Override any GCC internal prototype to avoid an error.
14850 Use char because int might match the return type of a GCC
14851 builtin and then its argument prototype would still apply. */
14855 char jpeg_destroy_compress ();
14859 return jpeg_destroy_compress ();
14864 rm -f conftest.
$ac_objext conftest
$ac_exeext
14865 if { (ac_try
="$ac_link"
14866 case "(($ac_try" in
14867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14871 $as_echo "$ac_try_echo") >&5
14872 (eval "$ac_link") 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } && {
14879 test -z "$ac_c_werror_flag" ||
14880 test ! -s conftest.err
14881 } && test -s conftest$ac_exeext && {
14882 test "$cross_compiling" = yes ||
14883 $as_test_x conftest$ac_exeext
14885 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14887 $as_echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14893 rm -rf conftest.dSYM
14894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14898 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14899 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14900 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
14910 if test "${HAVE_JPEG}" = "yes"; then
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_JPEG 1
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 <jpeglib.h>
14922 version=JPEG_LIB_VERSION
14925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14926 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define HAVE_JPEG 1
14932 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14933 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14939 if test "${HAVE_JPEG}" = "yes"; then
14945 ### Use -lpng if available, unless `--with-png=no
'.
14948 if test "${HAVE_X11}" = "yes"; then
14949 if test "${with_png}" != "no"; then
14950 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14951 # in /usr/include/libpng.
14954 for ac_header in png.h libpng/png.h
14956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14959 $as_echo_n "checking for $ac_header... " >&6; }
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 $as_echo_n "(cached) " >&6
14963 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14964 $as_echo "$as_val"'`
14965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14966 $as_echo "$ac_res" >&6; }
14968 # Is the header compilable?
14969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970 $as_echo_n "checking $ac_header usability... " >&6; }
14971 cat >conftest.$ac_ext <<_ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 $ac_includes_default
14978 #include <$ac_header>
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14987 $as_echo "$ac_try_echo") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14990 grep -v '^
*+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } && {
14995 test -z "$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest.$ac_objext; then
14998 ac_header_compiler=yes
15000 $as_echo "$as_me: failed program was:" >&5
15001 sed 's
/^
/|
/' conftest.$ac_ext >&5
15003 ac_header_compiler=no
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008 $as_echo "$ac_header_compiler" >&6; }
15010 # Is the header present?
15011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15012 $as_echo_n "checking $ac_header presence... " >&6; }
15013 cat >conftest.$ac_ext <<_ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 #include <$ac_header>
15021 if { (ac_try="$ac_cpp conftest.$ac_ext"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15027 $as_echo "$ac_try_echo") >&5
15028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15030 grep -v '^
*+' conftest.er1 >conftest.err
15032 cat conftest.err >&5
15033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } >/dev/null && {
15035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15036 test ! -s conftest.err
15038 ac_header_preproc=yes
15040 $as_echo "$as_me: failed program was:" >&5
15041 sed 's
/^
/|
/' conftest.$ac_ext >&5
15043 ac_header_preproc=no
15046 rm -f conftest.err conftest.$ac_ext
15047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048 $as_echo "$ac_header_preproc" >&6; }
15050 # So? What about this header?
15051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15056 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15057 ac_header_preproc=yes
15060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15063 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15067 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15069 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15076 $as_echo_n "checking for $ac_header... " >&6; }
15077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15078 $as_echo_n "(cached) " >&6
15080 eval "$as_ac_Header=\$ac_header_preproc"
15082 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15083 $as_echo "$as_val"'`
15084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15085 $as_echo "$ac_res" >&6; }
15088 as_val=`eval 'as_val
=${'$as_ac_Header'}
15089 $as_echo "$as_val"'`
15090 if test "x$as_val" = x""yes; then
15091 cat >>confdefs.h <<_ACEOF
15092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15099 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15100 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15101 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15102 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15105 ac_check_lib_save_LIBS=$LIBS
15106 LIBS="-lpng -lz -lm $LIBS"
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15114 /* Override any GCC internal prototype to avoid an error.
15115 Use char because int might match the return type of a GCC
15116 builtin and then its argument prototype would still apply. */
15120 char png_get_channels ();
15124 return png_get_channels ();
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15136 $as_echo "$ac_try_echo") >&5
15137 (eval "$ac_link") 2>conftest.er1
15139 grep -v '^
*+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest$ac_exeext && {
15147 test "$cross_compiling" = yes ||
15148 $as_test_x conftest$ac_exeext
15150 ac_cv_lib_png_png_get_channels=yes
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's
/^
/|
/' conftest.$ac_ext >&5
15155 ac_cv_lib_png_png_get_channels=no
15158 rm -rf conftest.dSYM
15159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15160 conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_lib_save_LIBS
15163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15164 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15165 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15172 if test "${HAVE_PNG}" = "yes"; then
15174 cat >>confdefs.h <<\_ACEOF
15178 LIBPNG="-lpng -lz -lm"
15183 ### Use -ltiff if available, unless `--with-tiff=no'.
15186 if test "${HAVE_X11}" = "yes"; then
15187 if test "${with_tiff}" != "no"; then
15188 if test "${ac_cv_header_tiffio_h+set}" = set; then
15189 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15190 $as_echo_n "checking for tiffio.h... " >&6; }
15191 if test "${ac_cv_header_tiffio_h+set}" = set; then
15192 $as_echo_n "(cached) " >&6
15194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15195 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15197 # Is the header compilable?
15198 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15199 $as_echo_n "checking tiffio.h usability... " >&6; }
15200 cat >conftest.
$ac_ext <<_ACEOF
15203 cat confdefs.h
>>conftest.
$ac_ext
15204 cat >>conftest.
$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 $ac_includes_default
15207 #include <tiffio.h>
15209 rm -f conftest.
$ac_objext
15210 if { (ac_try
="$ac_compile"
15211 case "(($ac_try" in
15212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216 $as_echo "$ac_try_echo") >&5
15217 (eval "$ac_compile") 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } && {
15224 test -z "$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15226 } && test -s conftest.$ac_objext; then
15227 ac_header_compiler=yes
15229 $as_echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_header_compiler=no
15235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15237 $as_echo "$ac_header_compiler" >&6; }
15239 # Is the header present?
15240 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15241 $as_echo_n "checking tiffio.h presence... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <tiffio.h>
15250 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
15264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15267 ac_header_preproc
=yes
15269 $as_echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.
$ac_ext >&5
15272 ac_header_preproc
=no
15275 rm -f conftest.err conftest.
$ac_ext
15276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15277 $as_echo "$ac_header_preproc" >&6; }
15279 # So? What about this header?
15280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15282 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15283 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15284 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15285 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15286 ac_header_preproc
=yes
15289 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15290 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15291 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15292 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15293 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15294 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15295 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15296 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15297 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15298 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15299 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15300 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15304 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15305 $as_echo_n "checking for tiffio.h... " >&6; }
15306 if test "${ac_cv_header_tiffio_h+set}" = set; then
15307 $as_echo_n "(cached) " >&6
15309 ac_cv_header_tiffio_h
=$ac_header_preproc
15311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15312 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15315 if test "x$ac_cv_header_tiffio_h" = x
""yes; then
15317 # At least one tiff package requires the jpeg library.
15318 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15319 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15320 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15321 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15322 $as_echo_n "(cached) " >&6
15324 ac_check_lib_save_LIBS
=$LIBS
15325 LIBS
="-ltiff $tifflibs $LIBS"
15326 cat >conftest.
$ac_ext <<_ACEOF
15329 cat confdefs.h
>>conftest.
$ac_ext
15330 cat >>conftest.
$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15339 char TIFFGetVersion ();
15343 return TIFFGetVersion ();
15348 rm -f conftest.
$ac_objext conftest
$ac_exeext
15349 if { (ac_try
="$ac_link"
15350 case "(($ac_try" in
15351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15355 $as_echo "$ac_try_echo") >&5
15356 (eval "$ac_link") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest$ac_exeext && {
15366 test "$cross_compiling" = yes ||
15367 $as_test_x conftest$ac_exeext
15369 ac_cv_lib_tiff_TIFFGetVersion=yes
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_cv_lib_tiff_TIFFGetVersion=no
15377 rm -rf conftest.dSYM
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379 conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15382 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15383 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15384 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15393 if test "${HAVE_TIFF}" = "yes"; then
15395 cat >>confdefs.h <<\_ACEOF
15396 #define HAVE_TIFF 1
15404 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15407 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15408 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15409 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15410 $as_echo_n "checking for gif_lib.h... " >&6; }
15411 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15412 $as_echo_n "(cached) " >&6
15414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15415 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15417 # Is the header compilable?
15418 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15419 $as_echo_n "checking gif_lib.h usability... " >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <gif_lib.h>
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436 $as_echo "$ac_try_echo") >&5
15437 (eval "$ac_compile") 2>conftest.er1
15439 grep -v '^
*+' conftest.er1 >conftest.err
15441 cat conftest.err >&5
15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } && {
15444 test -z "$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 } && test -s conftest.$ac_objext; then
15447 ac_header_compiler=yes
15449 $as_echo "$as_me: failed program was:" >&5
15450 sed 's
/^
/|
/' conftest.$ac_ext >&5
15452 ac_header_compiler=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 $as_echo "$ac_header_compiler" >&6; }
15459 # Is the header present?
15460 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15461 $as_echo_n "checking gif_lib.h presence... " >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 #include <gif_lib.h>
15470 if { (ac_try="$ac_cpp conftest.$ac_ext"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15476 $as_echo "$ac_try_echo") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479 grep -v '^
*+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null && {
15484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15487 ac_header_preproc=yes
15489 $as_echo "$as_me: failed program was:" >&5
15490 sed 's
/^
/|
/' conftest.$ac_ext >&5
15492 ac_header_preproc=no
15495 rm -f conftest.err conftest.$ac_ext
15496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15497 $as_echo "$ac_header_preproc" >&6; }
15499 # So? What about this header?
15500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15502 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15503 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15504 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15505 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15506 ac_header_preproc=yes
15509 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15510 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15511 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15512 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15513 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15514 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15515 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15516 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15517 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15518 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15519 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15520 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15524 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15525 $as_echo_n "checking for gif_lib.h... " >&6; }
15526 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15527 $as_echo_n "(cached) " >&6
15529 ac_cv_header_gif_lib_h=$ac_header_preproc
15531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15532 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15535 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
15536 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15537 # Earlier versions can crash Emacs.
15538 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15539 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15540 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15541 $as_echo_n "(cached) " >&6
15543 ac_check_lib_save_LIBS=$LIBS
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15558 char EGifPutExtensionLast ();
15562 return EGifPutExtensionLast ();
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15574 $as_echo "$ac_try_echo") >&5
15575 (eval "$ac_link") 2>conftest.er1
15577 grep -v '^
*+' conftest.er1 >conftest.err
15579 cat conftest.err >&5
15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest$ac_exeext && {
15585 test "$cross_compiling" = yes ||
15586 $as_test_x conftest$ac_exeext
15588 ac_cv_lib_gif_EGifPutExtensionLast=yes
15590 $as_echo "$as_me: failed program was:" >&5
15591 sed 's
/^
/|
/' conftest.$ac_ext >&5
15593 ac_cv_lib_gif_EGifPutExtensionLast=no
15596 rm -rf conftest.dSYM
15597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15602 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15603 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
15613 if test "$HAVE_GIF" = yes; then
15615 elif test "$HAVE_GIF" = maybe; then
15616 # If gif_lib.h but no libgif, try libungif.
15617 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15618 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15619 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15620 $as_echo_n "(cached) " >&6
15622 ac_check_lib_save_LIBS=$LIBS
15623 LIBS="-lungif $LIBS"
15624 cat >conftest.$ac_ext <<_ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15637 char EGifPutExtensionLast ();
15641 return EGifPutExtensionLast ();
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (ac_try="$ac_link"
15648 case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15653 $as_echo "$ac_try_echo") >&5
15654 (eval "$ac_link") 2>conftest.er1
15656 grep -v '^
*+' conftest.er1 >conftest.err
15658 cat conftest.err >&5
15659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } && {
15661 test -z "$ac_c_werror_flag" ||
15662 test ! -s conftest.err
15663 } && test -s conftest$ac_exeext && {
15664 test "$cross_compiling" = yes ||
15665 $as_test_x conftest$ac_exeext
15667 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15669 $as_echo "$as_me: failed program was:" >&5
15670 sed 's
/^
/|
/' conftest.$ac_ext >&5
15672 ac_cv_lib_ungif_EGifPutExtensionLast=no
15675 rm -rf conftest.dSYM
15676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15677 conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15681 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15682 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
15688 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15691 if test "${HAVE_GIF}" = "yes"; then
15693 cat >>confdefs.h <<\_ACEOF
15701 if test "${HAVE_X11}" = "yes"; then
15704 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15705 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15706 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15707 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15708 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15709 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15710 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15711 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15712 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15713 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15715 if test "X${MISSING}" != X; then
15716 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15718 Maybe some development libraries/packages are missing?
15719 If you don't want to link with them give
15721 as options to configure
" >&5
15722 $as_echo "$as_me: error
: The following required libraries were not found
:
15724 Maybe some development libraries
/packages are missing?
15725 If you don
't want to link with them give
15727 as options to configure" >&2;}
15728 { (exit 1); exit 1; }; }
15732 ### Use -lgpm if available, unless `--with-gpm=no'.
15735 if test "${with_gpm}" != "no"; then
15736 if test "${ac_cv_header_gpm_h+set}" = set; then
15737 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15738 $as_echo_n "checking for gpm.h... " >&6; }
15739 if test "${ac_cv_header_gpm_h+set}" = set; then
15740 $as_echo_n "(cached) " >&6
15742 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15743 $as_echo "$ac_cv_header_gpm_h" >&6; }
15745 # Is the header compilable?
15746 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15747 $as_echo_n "checking gpm.h usability... " >&6; }
15748 cat >conftest.
$ac_ext <<_ACEOF
15751 cat confdefs.h
>>conftest.
$ac_ext
15752 cat >>conftest.
$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15757 rm -f conftest.
$ac_objext
15758 if { (ac_try
="$ac_compile"
15759 case "(($ac_try" in
15760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15764 $as_echo "$ac_try_echo") >&5
15765 (eval "$ac_compile") 2>conftest.er1
15767 grep -v '^ *+' conftest.er1 >conftest.err
15769 cat conftest.err >&5
15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } && {
15772 test -z "$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15774 } && test -s conftest.$ac_objext; then
15775 ac_header_compiler=yes
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_compiler=no
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 $as_echo "$ac_header_compiler" >&6; }
15787 # Is the header present?
15788 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15789 $as_echo_n "checking gpm.h presence... " >&6; }
15790 cat >conftest.$ac_ext <<_ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15798 if { (ac_try="$ac_cpp conftest.$ac_ext"
15799 case "(($ac_try" in
15800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15801 *) ac_try_echo
=$ac_try;;
15803 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15804 $as_echo "$ac_try_echo") >&5
15805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1
>conftest.err
15809 cat conftest.err
>&5
15810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } >/dev
/null
&& {
15812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15815 ac_header_preproc
=yes
15817 $as_echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.
$ac_ext >&5
15820 ac_header_preproc
=no
15823 rm -f conftest.err conftest.
$ac_ext
15824 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 $as_echo "$ac_header_preproc" >&6; }
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15831 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15833 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc
=yes
15837 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15838 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15839 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15840 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15841 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15842 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15843 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15844 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15846 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15847 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15848 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15852 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15853 $as_echo_n "checking for gpm.h... " >&6; }
15854 if test "${ac_cv_header_gpm_h+set}" = set; then
15855 $as_echo_n "(cached) " >&6
15857 ac_cv_header_gpm_h
=$ac_header_preproc
15859 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15860 $as_echo "$ac_cv_header_gpm_h" >&6; }
15863 if test "x$ac_cv_header_gpm_h" = x
""yes; then
15864 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15865 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15866 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15867 $as_echo_n "(cached) " >&6
15869 ac_check_lib_save_LIBS
=$LIBS
15871 cat >conftest.
$ac_ext <<_ACEOF
15874 cat confdefs.h
>>conftest.
$ac_ext
15875 cat >>conftest.
$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15878 /* Override any GCC internal prototype to avoid an error.
15879 Use char because int might match the return type of a GCC
15880 builtin and then its argument prototype would still apply. */
15888 return Gpm_Open ();
15893 rm -f conftest.
$ac_objext conftest
$ac_exeext
15894 if { (ac_try
="$ac_link"
15895 case "(($ac_try" in
15896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15900 $as_echo "$ac_try_echo") >&5
15901 (eval "$ac_link") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_c_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest$ac_exeext && {
15911 test "$cross_compiling" = yes ||
15912 $as_test_x conftest$ac_exeext
15914 ac_cv_lib_gpm_Gpm_Open=yes
15916 $as_echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_cv_lib_gpm_Gpm_Open=no
15922 rm -rf conftest.dSYM
15923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15924 conftest$ac_exeext conftest.$ac_ext
15925 LIBS=$ac_check_lib_save_LIBS
15927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15928 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15929 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
15937 if test "${HAVE_GPM}" = "yes"; then
15939 cat >>confdefs.h <<\_ACEOF
15948 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15949 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15950 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15951 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15952 $as_echo_n "(cached) " >&6
15954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15955 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15957 # Is the header compilable?
15958 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15959 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 #include <malloc/malloc.h>
15969 rm -f conftest.$ac_objext
15970 if { (ac_try="$ac_compile"
15971 case "(($ac_try" in
15972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15973 *) ac_try_echo
=$ac_try;;
15975 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15976 $as_echo "$ac_try_echo") >&5
15977 (eval "$ac_compile") 2>conftest.er1
15979 grep -v '^ *+' conftest.er1
>conftest.err
15981 cat conftest.err
>&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } && {
15984 test -z "$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 } && test -s conftest.
$ac_objext; then
15987 ac_header_compiler
=yes
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.
$ac_ext >&5
15992 ac_header_compiler
=no
15995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15996 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15997 $as_echo "$ac_header_compiler" >&6; }
15999 # Is the header present?
16000 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16001 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16002 cat >conftest.
$ac_ext <<_ACEOF
16005 cat confdefs.h
>>conftest.
$ac_ext
16006 cat >>conftest.
$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 #include <malloc/malloc.h>
16010 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16011 case "(($ac_try" in
16012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16016 $as_echo "$ac_try_echo") >&5
16017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16019 grep -v '^ *+' conftest.er1 >conftest.err
16021 cat conftest.err >&5
16022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } >/dev/null && {
16024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16027 ac_header_preproc=yes
16029 $as_echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 ac_header_preproc=no
16035 rm -f conftest.err conftest.$ac_ext
16036 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16037 $as_echo "$ac_header_preproc" >&6; }
16039 # So? What about this header?
16040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16043 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16044 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16045 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16046 ac_header_preproc=yes
16049 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16050 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16051 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16052 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16053 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16054 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16055 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16056 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16057 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16058 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16059 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16060 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16064 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16065 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16066 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16067 $as_echo_n "(cached) " >&6
16069 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16072 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16075 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16077 cat >>confdefs.h <<\_ACEOF
16078 #define HAVE_MALLOC_MALLOC_H 1
16085 ### Use NeXTstep API to implement GUI.
16086 if test "${HAVE_NS}" = "yes"; then
16088 cat >>confdefs.h <<\_ACEOF
16092 if test "${NS_IMPL_COCOA}" = "yes"; then
16094 cat >>confdefs.h <<\_ACEOF
16095 #define NS_IMPL_COCOA 1
16100 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16102 cat >>confdefs.h <<\_ACEOF
16103 #define NS_IMPL_GNUSTEP 1
16106 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16108 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16110 cat >>confdefs.h <<\_ACEOF
16111 #define NS_HAVE_NSINTEGER 1
16115 # We also have mouse menus.
16121 ### Use session management (-lSM -lICE) if available
16123 if test "${HAVE_X11}" = "yes"; then
16124 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16125 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16126 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16127 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16128 $as_echo_n "(cached) " >&6
16130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16131 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16133 # Is the header compilable?
16134 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16135 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 $ac_includes_default
16143 #include <X11/SM/SMlib.h>
16145 rm -f conftest.$ac_objext
16146 if { (ac_try="$ac_compile"
16147 case "(($ac_try" in
16148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16149 *) ac_try_echo
=$ac_try;;
16151 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16152 $as_echo "$ac_try_echo") >&5
16153 (eval "$ac_compile") 2>conftest.er1
16155 grep -v '^ *+' conftest.er1
>conftest.err
16157 cat conftest.err
>&5
16158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } && {
16160 test -z "$ac_c_werror_flag" ||
16161 test ! -s conftest.err
16162 } && test -s conftest.
$ac_objext; then
16163 ac_header_compiler
=yes
16165 $as_echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.
$ac_ext >&5
16168 ac_header_compiler
=no
16171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16173 $as_echo "$ac_header_compiler" >&6; }
16175 # Is the header present?
16176 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16177 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16178 cat >conftest.
$ac_ext <<_ACEOF
16181 cat confdefs.h
>>conftest.
$ac_ext
16182 cat >>conftest.
$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 #include <X11/SM/SMlib.h>
16186 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16187 case "(($ac_try" in
16188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } >/dev/null && {
16200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16203 ac_header_preproc=yes
16205 $as_echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_header_preproc=no
16211 rm -f conftest.err conftest.$ac_ext
16212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16213 $as_echo "$ac_header_preproc" >&6; }
16215 # So? What about this header?
16216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16219 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16220 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16221 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16222 ac_header_preproc=yes
16225 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16226 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16227 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16228 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16229 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16230 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16231 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16232 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16233 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16234 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16236 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16240 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16241 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16242 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16243 $as_echo_n "(cached) " >&6
16245 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16248 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16251 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16252 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16253 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16254 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16255 $as_echo_n "(cached) " >&6
16257 ac_check_lib_save_LIBS=$LIBS
16258 LIBS="-lSM -lICE $LIBS"
16259 cat >conftest.$ac_ext <<_ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16266 /* Override any GCC internal prototype to avoid an error.
16267 Use char because int might match the return type of a GCC
16268 builtin and then its argument prototype would still apply. */
16272 char SmcOpenConnection ();
16276 return SmcOpenConnection ();
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (ac_try="$ac_link"
16283 case "(($ac_try" in
16284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16285 *) ac_try_echo
=$ac_try;;
16287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16288 $as_echo "$ac_try_echo") >&5
16289 (eval "$ac_link") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1
>conftest.err
16293 cat conftest.err
>&5
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest
$ac_exeext && {
16299 test "$cross_compiling" = yes ||
16300 $as_test_x conftest
$ac_exeext
16302 ac_cv_lib_SM_SmcOpenConnection
=yes
16304 $as_echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.
$ac_ext >&5
16307 ac_cv_lib_SM_SmcOpenConnection
=no
16310 rm -rf conftest.dSYM
16311 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16312 conftest
$ac_exeext conftest.
$ac_ext
16313 LIBS
=$ac_check_lib_save_LIBS
16315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16316 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16317 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then
16325 if test "${HAVE_X_SM}" = "yes"; then
16327 cat >>confdefs.h
<<\_ACEOF
16328 #define HAVE_X_SM 1
16333 *) LIBS
="-lSM -lICE $LIBS" ;;
16338 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16339 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16340 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16341 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16342 $as_echo_n "(cached) " >&6
16344 cat >conftest.
$ac_ext <<_ACEOF
16347 cat confdefs.h
>>conftest.
$ac_ext
16348 cat >>conftest.
$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16359 rm -f conftest.
$ac_objext conftest
$ac_exeext
16360 if { (ac_try
="$ac_link"
16361 case "(($ac_try" in
16362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367 (eval "$ac_link") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest$ac_exeext && {
16377 test "$cross_compiling" = yes ||
16378 $as_test_x conftest$ac_exeext
16380 emacs_cv_netdb_declares_h_errno=yes
16382 $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 emacs_cv_netdb_declares_h_errno=no
16388 rm -rf conftest.dSYM
16389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16390 conftest$ac_exeext conftest.$ac_ext
16392 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16393 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16394 if test $emacs_cv_netdb_declares_h_errno = yes; then
16396 cat >>confdefs.h <<\_ACEOF
16397 #define HAVE_H_ERRNO 1
16402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16403 # for constant arguments. Useless!
16404 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16405 $as_echo_n "checking for working alloca.h... " >&6; }
16406 if test "${ac_cv_working_alloca_h+set}" = set; then
16407 $as_echo_n "(cached) " >&6
16409 cat >conftest.$ac_ext <<_ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #include <alloca.h>
16419 char *p = (char *) alloca (2 * sizeof (int));
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16429 *) ac_try_echo
=$ac_try;;
16431 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16432 $as_echo "$ac_try_echo") >&5
16433 (eval "$ac_link") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1
>conftest.err
16437 cat conftest.err
>&5
16438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && {
16440 test -z "$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 } && test -s conftest
$ac_exeext && {
16443 test "$cross_compiling" = yes ||
16444 $as_test_x conftest
$ac_exeext
16446 ac_cv_working_alloca_h
=yes
16448 $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.
$ac_ext >&5
16451 ac_cv_working_alloca_h
=no
16454 rm -rf conftest.dSYM
16455 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16456 conftest
$ac_exeext conftest.
$ac_ext
16458 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16459 $as_echo "$ac_cv_working_alloca_h" >&6; }
16460 if test $ac_cv_working_alloca_h = yes; then
16462 cat >>confdefs.h
<<\_ACEOF
16463 #define HAVE_ALLOCA_H 1
16468 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16469 $as_echo_n "checking for alloca... " >&6; }
16470 if test "${ac_cv_func_alloca_works+set}" = set; then
16471 $as_echo_n "(cached) " >&6
16473 cat >conftest.
$ac_ext <<_ACEOF
16476 cat confdefs.h
>>conftest.
$ac_ext
16477 cat >>conftest.
$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16480 # define alloca __builtin_alloca
16483 # include <malloc.h>
16484 # define alloca _alloca
16486 # ifdef HAVE_ALLOCA_H
16487 # include <alloca.h>
16492 # ifndef alloca /* predefined by HP cc +Olibcalls */
16503 char *p = (char *) alloca (1);
16509 rm -f conftest.
$ac_objext conftest
$ac_exeext
16510 if { (ac_try
="$ac_link"
16511 case "(($ac_try" in
16512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16516 $as_echo "$ac_try_echo") >&5
16517 (eval "$ac_link") 2>conftest.er1
16519 grep -v '^ *+' conftest.er1 >conftest.err
16521 cat conftest.err >&5
16522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest$ac_exeext && {
16527 test "$cross_compiling" = yes ||
16528 $as_test_x conftest$ac_exeext
16530 ac_cv_func_alloca_works=yes
16532 $as_echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_cv_func_alloca_works=no
16538 rm -rf conftest.dSYM
16539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16540 conftest$ac_exeext conftest.$ac_ext
16542 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16543 $as_echo "$ac_cv_func_alloca_works" >&6; }
16545 if test $ac_cv_func_alloca_works = yes; then
16547 cat >>confdefs.h <<\_ACEOF
16548 #define HAVE_ALLOCA 1
16552 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16553 # that cause trouble. Some versions do not even contain alloca or
16554 # contain a buggy version. If you still want to use their alloca,
16555 # use ar to extract alloca.o from them instead of compiling alloca.c.
16557 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16559 cat >>confdefs.h <<\_ACEOF
16564 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16565 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16566 if test "${ac_cv_os_cray+set}" = set; then
16567 $as_echo_n "(cached
) " >&6
16569 cat >conftest.$ac_ext <<_ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 #if defined CRAY && ! defined CRAY2
16582 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16583 $EGREP "webecray
" >/dev/null 2>&1; then
16591 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16592 $as_echo "$ac_cv_os_cray" >&6; }
16593 if test $ac_cv_os_cray = yes; then
16594 for ac_func in _getb67 GETB67 getb67; do
16595 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16596 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16597 $as_echo_n "checking
for $ac_func...
" >&6; }
16598 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16599 $as_echo_n "(cached
) " >&6
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16609 #define $ac_func innocuous_$ac_func
16611 /* System header to define __stub macros and hopefully few prototypes,
16612 which can conflict with char $ac_func (); below.
16613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16614 <limits.h> exists even on freestanding compilers. */
16617 # include <limits.h>
16619 # include <assert.h>
16624 /* Override any GCC internal prototype to avoid an error.
16625 Use char because int might match the return type of a GCC
16626 builtin and then its argument prototype would still apply. */
16631 /* The GNU C library defines this for functions which it implements
16632 to always fail with ENOSYS. Some functions are actually named
16633 something starting with __ and the normal name is an alias. */
16634 #if defined __stub_$ac_func || defined __stub___$ac_func
16641 return $ac_func ();
16646 rm -f conftest.$ac_objext conftest$ac_exeext
16647 if { (ac_try="$ac_link"
16648 case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16653 $as_echo "$ac_try_echo") >&5
16654 (eval "$ac_link") 2>conftest.er1
16656 grep -v '^ *+' conftest.er1 >conftest.err
16658 cat conftest.err >&5
16659 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16660 (exit $ac_status); } && {
16661 test -z "$ac_c_werror_flag" ||
16662 test ! -s conftest.err
16663 } && test -s conftest$ac_exeext && {
16664 test "$cross_compiling" = yes ||
16665 $as_test_x conftest$ac_exeext
16667 eval "$as_ac_var=yes"
16669 $as_echo "$as_me: failed program was
:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 eval "$as_ac_var=no
"
16675 rm -rf conftest.dSYM
16676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16677 conftest$ac_exeext conftest.$ac_ext
16679 ac_res=`eval 'as_val=${'$as_ac_var'}
16680 $as_echo "$as_val"'`
16681 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16682 $as_echo "$ac_res" >&6; }
16683 as_val=`eval 'as_val=${'$as_ac_var'}
16684 $as_echo "$as_val"'`
16685 if test "x
$as_val" = x""yes; then
16687 cat >>confdefs.h <<_ACEOF
16688 #define CRAY_STACKSEG_END $ac_func
16697 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16698 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16699 if test "${ac_cv_c_stack_direction+set}" = set; then
16700 $as_echo_n "(cached
) " >&6
16702 if test "$cross_compiling" = yes; then
16703 ac_cv_c_stack_direction=0
16705 cat >conftest.$ac_ext <<_ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 $ac_includes_default
16713 find_stack_direction ()
16715 static char *addr = 0;
16720 return find_stack_direction ();
16723 return (&dummy > addr) ? 1 : -1;
16729 return find_stack_direction () < 0;
16732 rm -f conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16739 $as_echo "$ac_try_echo") >&5
16740 (eval "$ac_link") 2>&5
16742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16749 $as_echo "$ac_try_echo") >&5
16750 (eval "$ac_try") 2>&5
16752 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_c_stack_direction=1
16756 $as_echo "$as_me: program exited with status
$ac_status" >&5
16757 $as_echo "$as_me: failed program was
:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ( exit $ac_status )
16761 ac_cv_c_stack_direction=-1
16763 rm -rf conftest.dSYM
16764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16769 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16770 $as_echo "$ac_cv_c_stack_direction" >&6; }
16772 cat >>confdefs.h <<_ACEOF
16773 #define STACK_DIRECTION $ac_cv_c_stack_direction
16780 if test x"$ac_cv_func_alloca_works" != xyes; then
16781 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16782 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16783 { (exit 1); exit 1; }; }
16786 # fmod, logb, and frexp are found in -lm on most systems.
16787 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16789 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16790 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16791 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16792 $as_echo_n "(cached
) " >&6
16794 ac_check_lib_save_LIBS=$LIBS
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16803 /* Override any GCC internal prototype to avoid an error.
16804 Use char because int might match the return type of a GCC
16805 builtin and then its argument prototype would still apply. */
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16825 $as_echo "$ac_try_echo") >&5
16826 (eval "$ac_link") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest$ac_exeext && {
16836 test "$cross_compiling" = yes ||
16837 $as_test_x conftest$ac_exeext
16839 ac_cv_lib_m_sqrt=yes
16841 $as_echo "$as_me: failed program was
:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_cv_lib_m_sqrt=no
16847 rm -rf conftest.dSYM
16848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16849 conftest$ac_exeext conftest.$ac_ext
16850 LIBS=$ac_check_lib_save_LIBS
16852 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16853 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16854 if test "x
$ac_cv_lib_m_sqrt" = x""yes; then
16855 cat >>confdefs.h <<_ACEOF
16856 #define HAVE_LIBM 1
16864 # Check for mail-locking functions in a "mail" library. Probably this should
16865 # have the same check as for liblockfile below.
16866 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16867 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16868 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16869 $as_echo_n "(cached
) " >&6
16871 ac_check_lib_save_LIBS=$LIBS
16872 LIBS="-lmail $LIBS"
16873 cat >conftest.$ac_ext <<_ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16880 /* Override any GCC internal prototype to avoid an error.
16881 Use char because int might match the return type of a GCC
16882 builtin and then its argument prototype would still apply. */
16890 return maillock ();
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16902 $as_echo "$ac_try_echo") >&5
16903 (eval "$ac_link") 2>conftest.er1
16905 grep -v '^ *+' conftest.er1 >conftest.err
16907 cat conftest.err >&5
16908 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16909 (exit $ac_status); } && {
16910 test -z "$ac_c_werror_flag" ||
16911 test ! -s conftest.err
16912 } && test -s conftest$ac_exeext && {
16913 test "$cross_compiling" = yes ||
16914 $as_test_x conftest$ac_exeext
16916 ac_cv_lib_mail_maillock=yes
16918 $as_echo "$as_me: failed program was
:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ac_cv_lib_mail_maillock=no
16924 rm -rf conftest.dSYM
16925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16926 conftest$ac_exeext conftest.$ac_ext
16927 LIBS=$ac_check_lib_save_LIBS
16929 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16930 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16931 if test "x
$ac_cv_lib_mail_maillock" = x""yes; then
16937 if test $have_mail = yes; then
16939 LIBS="$LIBS_MAIL $LIBS"
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE_LIBMAIL 1
16948 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16949 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16950 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16951 $as_echo_n "(cached
) " >&6
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-llockfile $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16972 return maillock ();
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_link") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest$ac_exeext && {
16995 test "$cross_compiling" = yes ||
16996 $as_test_x conftest$ac_exeext
16998 ac_cv_lib_lockfile_maillock=yes
17000 $as_echo "$as_me: failed program was
:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 ac_cv_lib_lockfile_maillock=no
17006 rm -rf conftest.dSYM
17007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS
17011 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17012 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17013 if test "x
$ac_cv_lib_lockfile_maillock" = x""yes; then
17019 if test $have_lockfile = yes; then
17020 LIBS_MAIL=-llockfile
17021 LIBS="$LIBS_MAIL $LIBS"
17023 cat >>confdefs.h <<\_ACEOF
17024 #define HAVE_LIBLOCKFILE 1
17028 # If we have the shared liblockfile, assume we must use it for mail
17029 # locking (e.g. Debian). If we couldn't link against liblockfile
17030 # (no liblockfile.a installed), ensure that we don't need to.
17031 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17032 set dummy liblockfile.so; ac_word=$2
17033 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17034 $as_echo_n "checking
for $ac_word...
" >&6; }
17035 if test "${ac_cv_prog_liblockfile+set}" = set; then
17036 $as_echo_n "(cached
) " >&6
17038 if test -n "$liblockfile"; then
17039 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17042 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17043 for as_dir in $as_dummy
17046 test -z "$as_dir" && as_dir=.
17047 for ac_exec_ext in '' $ac_executable_extensions; do
17048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17049 ac_cv_prog_liblockfile="yes"
17050 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17057 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17060 liblockfile=$ac_cv_prog_liblockfile
17061 if test -n "$liblockfile"; then
17062 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17063 $as_echo "$liblockfile" >&6; }
17065 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17066 $as_echo "no
" >&6; }
17070 if test $ac_cv_prog_liblockfile = yes; then
17071 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17072 This probably means that movemail could lose mail.
17073 There may be a \`development' package to
install containing liblockfile.
" >&5
17074 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17075 This probably means that movemail could lose mail.
17076 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17077 { (exit 1); exit 1; }; }
17081 for ac_func in touchlock
17083 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17084 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17085 $as_echo_n "checking
for $ac_func...
" >&6; }
17086 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17087 $as_echo_n "(cached
) " >&6
17089 cat >conftest.$ac_ext <<_ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17097 #define $ac_func innocuous_$ac_func
17099 /* System header to define __stub macros and hopefully few prototypes,
17100 which can conflict with char $ac_func (); below.
17101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17102 <limits.h> exists even on freestanding compilers. */
17105 # include <limits.h>
17107 # include <assert.h>
17112 /* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17119 /* The GNU C library defines this for functions which it implements
17120 to always fail with ENOSYS. Some functions are actually named
17121 something starting with __ and the normal name is an alias. */
17122 #if defined __stub_$ac_func || defined __stub___$ac_func
17129 return $ac_func ();
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (ac_try="$ac_link"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17141 $as_echo "$ac_try_echo") >&5
17142 (eval "$ac_link") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest$ac_exeext && {
17152 test "$cross_compiling" = yes ||
17153 $as_test_x conftest$ac_exeext
17155 eval "$as_ac_var=yes"
17157 $as_echo "$as_me: failed program was
:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17160 eval "$as_ac_var=no
"
17163 rm -rf conftest.dSYM
17164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17165 conftest$ac_exeext conftest.$ac_ext
17167 ac_res=`eval 'as_val=${'$as_ac_var'}
17168 $as_echo "$as_val"'`
17169 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17170 $as_echo "$ac_res" >&6; }
17171 as_val=`eval 'as_val=${'$as_ac_var'}
17172 $as_echo "$as_val"'`
17173 if test "x
$as_val" = x""yes; then
17174 cat >>confdefs.h <<_ACEOF
17175 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17182 for ac_header in maillock.h
17184 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17186 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17187 $as_echo_n "checking
for $ac_header...
" >&6; }
17188 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17189 $as_echo_n "(cached
) " >&6
17191 ac_res=`eval 'as_val=${'$as_ac_Header'}
17192 $as_echo "$as_val"'`
17193 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17194 $as_echo "$ac_res" >&6; }
17196 # Is the header compilable?
17197 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17198 $as_echo_n "checking
$ac_header usability...
" >&6; }
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17206 #include <$ac_header>
17208 rm -f conftest.$ac_objext
17209 if { (ac_try="$ac_compile"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17215 $as_echo "$ac_try_echo") >&5
17216 (eval "$ac_compile") 2>conftest.er1
17218 grep -v '^ *+' conftest.er1 >conftest.err
17220 cat conftest.err >&5
17221 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17222 (exit $ac_status); } && {
17223 test -z "$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 } && test -s conftest.$ac_objext; then
17226 ac_header_compiler=yes
17228 $as_echo "$as_me: failed program was
:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_header_compiler=no
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17236 $as_echo "$ac_header_compiler" >&6; }
17238 # Is the header present?
17239 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17240 $as_echo_n "checking
$ac_header presence...
" >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #include <$ac_header>
17249 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17255 $as_echo "$ac_try_echo") >&5
17256 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17262 (exit $ac_status); } >/dev/null && {
17263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17266 ac_header_preproc=yes
17268 $as_echo "$as_me: failed program was
:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_header_preproc=no
17274 rm -f conftest.err conftest.$ac_ext
17275 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17276 $as_echo "$ac_header_preproc" >&6; }
17278 # So? What about this header?
17279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17281 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17282 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17283 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17285 ac_header_preproc=yes
17288 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17289 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17290 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17291 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17292 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17293 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17294 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17295 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17296 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17298 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17299 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17303 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17304 $as_echo_n "checking
for $ac_header...
" >&6; }
17305 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17306 $as_echo_n "(cached
) " >&6
17308 eval "$as_ac_Header=\
$ac_header_preproc"
17310 ac_res=`eval 'as_val=${'$as_ac_Header'}
17311 $as_echo "$as_val"'`
17312 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17313 $as_echo "$ac_res" >&6; }
17316 as_val=`eval 'as_val=${'$as_ac_Header'}
17317 $as_echo "$as_val"'`
17318 if test "x
$as_val" = x""yes; then
17319 cat >>confdefs.h <<_ACEOF
17320 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17400 for ac_func in gethostname getdomainname dup2 \
17401 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17402 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17403 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17404 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17405 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17406 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17407 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17408 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17409 cfmakeraw cfsetspeed
17411 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17412 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17413 $as_echo_n "checking
for $ac_func...
" >&6; }
17414 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17415 $as_echo_n "(cached
) " >&6
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17425 #define $ac_func innocuous_$ac_func
17427 /* System header to define __stub macros and hopefully few prototypes,
17428 which can conflict with char $ac_func (); below.
17429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17430 <limits.h> exists even on freestanding compilers. */
17433 # include <limits.h>
17435 # include <assert.h>
17440 /* Override any GCC internal prototype to avoid an error.
17441 Use char because int might match the return type of a GCC
17442 builtin and then its argument prototype would still apply. */
17447 /* The GNU C library defines this for functions which it implements
17448 to always fail with ENOSYS. Some functions are actually named
17449 something starting with __ and the normal name is an alias. */
17450 #if defined __stub_$ac_func || defined __stub___$ac_func
17457 return $ac_func ();
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17469 $as_echo "$ac_try_echo") >&5
17470 (eval "$ac_link") 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17476 (exit $ac_status); } && {
17477 test -z "$ac_c_werror_flag" ||
17478 test ! -s conftest.err
17479 } && test -s conftest$ac_exeext && {
17480 test "$cross_compiling" = yes ||
17481 $as_test_x conftest$ac_exeext
17483 eval "$as_ac_var=yes"
17485 $as_echo "$as_me: failed program was
:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 eval "$as_ac_var=no
"
17491 rm -rf conftest.dSYM
17492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17495 ac_res=`eval 'as_val=${'$as_ac_var'}
17496 $as_echo "$as_val"'`
17497 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17498 $as_echo "$ac_res" >&6; }
17499 as_val=`eval 'as_val=${'$as_ac_var'}
17500 $as_echo "$as_val"'`
17501 if test "x
$as_val" = x""yes; then
17502 cat >>confdefs.h <<_ACEOF
17503 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17511 for ac_header in sys/un.h
17513 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17515 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17516 $as_echo_n "checking
for $ac_header...
" >&6; }
17517 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17518 $as_echo_n "(cached
) " >&6
17520 ac_res=`eval 'as_val=${'$as_ac_Header'}
17521 $as_echo "$as_val"'`
17522 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17523 $as_echo "$ac_res" >&6; }
17525 # Is the header compilable?
17526 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17527 $as_echo_n "checking
$ac_header usability...
" >&6; }
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 $ac_includes_default
17535 #include <$ac_header>
17537 rm -f conftest.$ac_objext
17538 if { (ac_try="$ac_compile"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17544 $as_echo "$ac_try_echo") >&5
17545 (eval "$ac_compile") 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17551 (exit $ac_status); } && {
17552 test -z "$ac_c_werror_flag" ||
17553 test ! -s conftest.err
17554 } && test -s conftest.$ac_objext; then
17555 ac_header_compiler=yes
17557 $as_echo "$as_me: failed program was
:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_header_compiler=no
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17565 $as_echo "$ac_header_compiler" >&6; }
17567 # Is the header present?
17568 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17569 $as_echo_n "checking
$ac_header presence...
" >&6; }
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 #include <$ac_header>
17578 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17584 $as_echo "$ac_try_echo") >&5
17585 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17587 grep -v '^ *+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17591 (exit $ac_status); } >/dev/null && {
17592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17593 test ! -s conftest.err
17595 ac_header_preproc=yes
17597 $as_echo "$as_me: failed program was
:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_header_preproc=no
17603 rm -f conftest.err conftest.$ac_ext
17604 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17605 $as_echo "$ac_header_preproc" >&6; }
17607 # So? What about this header?
17608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17610 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17611 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17612 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17614 ac_header_preproc=yes
17617 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17618 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17619 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17620 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17621 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17622 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17623 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17624 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17625 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17628 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17632 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17633 $as_echo_n "checking
for $ac_header...
" >&6; }
17634 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17635 $as_echo_n "(cached
) " >&6
17637 eval "$as_ac_Header=\
$ac_header_preproc"
17639 ac_res=`eval 'as_val=${'$as_ac_Header'}
17640 $as_echo "$as_val"'`
17641 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17642 $as_echo "$ac_res" >&6; }
17645 as_val=`eval 'as_val=${'$as_ac_Header'}
17646 $as_echo "$as_val"'`
17647 if test "x
$as_val" = x""yes; then
17648 cat >>confdefs.h <<_ACEOF
17649 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17661 for ac_header in $ac_header_list
17663 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17665 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17666 $as_echo_n "checking
for $ac_header...
" >&6; }
17667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17668 $as_echo_n "(cached
) " >&6
17670 ac_res=`eval 'as_val=${'$as_ac_Header'}
17671 $as_echo "$as_val"'`
17672 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17673 $as_echo "$ac_res" >&6; }
17675 # Is the header compilable?
17676 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17677 $as_echo_n "checking
$ac_header usability...
" >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 $ac_includes_default
17685 #include <$ac_header>
17687 rm -f conftest.$ac_objext
17688 if { (ac_try="$ac_compile"
17689 case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17693 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17694 $as_echo "$ac_try_echo") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17697 grep -v '^ *+' conftest.er1 >conftest.err
17699 cat conftest.err >&5
17700 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17701 (exit $ac_status); } && {
17702 test -z "$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 } && test -s conftest.$ac_objext; then
17705 ac_header_compiler=yes
17707 $as_echo "$as_me: failed program was
:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_header_compiler=no
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17715 $as_echo "$ac_header_compiler" >&6; }
17717 # Is the header present?
17718 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17719 $as_echo_n "checking
$ac_header presence...
" >&6; }
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <$ac_header>
17728 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17734 $as_echo "$ac_try_echo") >&5
17735 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17741 (exit $ac_status); } >/dev/null && {
17742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17745 ac_header_preproc=yes
17747 $as_echo "$as_me: failed program was
:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_header_preproc=no
17753 rm -f conftest.err conftest.$ac_ext
17754 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17755 $as_echo "$ac_header_preproc" >&6; }
17757 # So? What about this header?
17758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17760 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17761 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17762 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17764 ac_header_preproc=yes
17767 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17768 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17769 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17770 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17771 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17772 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17773 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17774 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17775 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17777 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17778 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17782 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17783 $as_echo_n "checking
for $ac_header...
" >&6; }
17784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17785 $as_echo_n "(cached
) " >&6
17787 eval "$as_ac_Header=\
$ac_header_preproc"
17789 ac_res=`eval 'as_val=${'$as_ac_Header'}
17790 $as_echo "$as_val"'`
17791 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17792 $as_echo "$ac_res" >&6; }
17795 as_val=`eval 'as_val=${'$as_ac_Header'}
17796 $as_echo "$as_val"'`
17797 if test "x
$as_val" = x""yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17814 for ac_func in $ac_func_list
17816 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17817 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17818 $as_echo_n "checking
for $ac_func...
" >&6; }
17819 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17820 $as_echo_n "(cached
) " >&6
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17830 #define $ac_func innocuous_$ac_func
17832 /* System header to define __stub macros and hopefully few prototypes,
17833 which can conflict with char $ac_func (); below.
17834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17835 <limits.h> exists even on freestanding compilers. */
17838 # include <limits.h>
17840 # include <assert.h>
17845 /* Override any GCC internal prototype to avoid an error.
17846 Use char because int might match the return type of a GCC
17847 builtin and then its argument prototype would still apply. */
17852 /* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855 #if defined __stub_$ac_func || defined __stub___$ac_func
17862 return $ac_func ();
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17873 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17874 $as_echo "$ac_try_echo") >&5
17875 (eval "$ac_link") 2>conftest.er1
17877 grep -v '^ *+' conftest.er1 >conftest.err
17879 cat conftest.err >&5
17880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest$ac_exeext && {
17885 test "$cross_compiling" = yes ||
17886 $as_test_x conftest$ac_exeext
17888 eval "$as_ac_var=yes"
17890 $as_echo "$as_me: failed program was
:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 eval "$as_ac_var=no
"
17896 rm -rf conftest.dSYM
17897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17898 conftest$ac_exeext conftest.$ac_ext
17900 ac_res=`eval 'as_val=${'$as_ac_var'}
17901 $as_echo "$as_val"'`
17902 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17903 $as_echo "$ac_res" >&6; }
17904 as_val=`eval 'as_val=${'$as_ac_var'}
17905 $as_echo "$as_val"'`
17906 if test "x
$as_val" = x""yes; then
17907 cat >>confdefs.h <<_ACEOF
17908 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17930 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17931 $as_echo_n "checking
for working mktime...
" >&6; }
17932 if test "${ac_cv_func_working_mktime+set}" = set; then
17933 $as_echo_n "(cached
) " >&6
17935 if test "$cross_compiling" = yes; then
17936 ac_cv_func_working_mktime=no
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 /* Test program from Paul Eggert and Tony Leneis. */
17945 #ifdef TIME_WITH_SYS_TIME
17946 # include <sys/time.h>
17949 # ifdef HAVE_SYS_TIME_H
17950 # include <sys/time.h>
17956 #include <limits.h>
17957 #include <stdlib.h>
17959 #ifdef HAVE_UNISTD_H
17960 # include <unistd.h>
17964 # define alarm(X) /* empty */
17967 /* Work around redefinition to rpl_putenv by other config tests. */
17970 static time_t time_t_max;
17971 static time_t time_t_min;
17973 /* Values we'll use to set the TZ environment variable. */
17974 static char *tz_strings[] = {
17975 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17976 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17978 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17980 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17981 Based on a problem report from Andreas Jaeger. */
17983 spring_forward_gap ()
17985 /* glibc (up to about 1998-10-07) failed this test. */
17988 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17989 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17990 on systems that don't support the Olson extension, or don't have the
17991 full zoneinfo tables installed. */
17992 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18001 return mktime (&tm) != (time_t) -1;
18009 return ! (lt = localtime (&now)) || mktime (lt) == now;
18016 return (mktime_test1 (now)
18017 && mktime_test1 ((time_t) (time_t_max - now))
18018 && mktime_test1 ((time_t) (time_t_min + now)));
18024 /* Based on code from Ariel Faigon. */
18034 return tm.tm_mon == 2 && tm.tm_mday == 31;
18043 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18044 now = mktime (&tm);
18045 if (now != (time_t) -1)
18047 struct tm *lt = localtime (&now);
18049 && lt->tm_year == tm.tm_year
18050 && lt->tm_mon == tm.tm_mon
18051 && lt->tm_mday == tm.tm_mday
18052 && lt->tm_hour == tm.tm_hour
18053 && lt->tm_min == tm.tm_min
18054 && lt->tm_sec == tm.tm_sec
18055 && lt->tm_yday == tm.tm_yday
18056 && lt->tm_wday == tm.tm_wday
18057 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18058 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18067 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18068 ignoring leap seconds. */
18069 unsigned long int answer = 2527315200UL;
18073 tm.tm_year = 2050 - 1900;
18076 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18079 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18080 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18081 on systems that don't support the Olson extension, or don't have the
18082 full zoneinfo tables installed. */
18083 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18087 /* Check that the result is either a failure, or close enough
18088 to the correct answer that we can assume the discrepancy is
18089 due to leap seconds. */
18090 return (t == (time_t) -1
18091 || (0 < t && answer - 120 <= t && t <= answer + 120));
18100 /* This test makes some buggy mktime implementations loop.
18101 Give up after 60 seconds; a mktime slower than that
18102 isn't worth using anyway. */
18107 t = (time_t_max << 1) + 1;
18108 if (t <= time_t_max)
18112 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18114 delta = time_t_max / 997; /* a suitable prime number */
18115 for (i = 0; i < N_STRINGS; i++)
18118 putenv (tz_strings[i]);
18120 for (t = 0; t <= time_t_max - delta; t += delta)
18121 if (! mktime_test (t))
18123 if (! (mktime_test ((time_t) 1)
18124 && mktime_test ((time_t) (60 * 60))
18125 && mktime_test ((time_t) (60 * 60 * 24))))
18128 for (j = 1; ; j <<= 1)
18129 if (! bigtime_test (j))
18131 else if (INT_MAX / 2 < j)
18133 if (! bigtime_test (INT_MAX))
18136 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18139 rm -f conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18145 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18146 $as_echo "$ac_try_echo") >&5
18147 (eval "$ac_link") 2>&5
18149 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18156 $as_echo "$ac_try_echo") >&5
18157 (eval "$ac_try") 2>&5
18159 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_func_working_mktime=yes
18163 $as_echo "$as_me: program exited with status
$ac_status" >&5
18164 $as_echo "$as_me: failed program was
:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 ( exit $ac_status )
18168 ac_cv_func_working_mktime=no
18170 rm -rf conftest.dSYM
18171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18176 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18177 $as_echo "$ac_cv_func_working_mktime" >&6; }
18178 if test $ac_cv_func_working_mktime = no; then
18179 case " $LIBOBJS " in
18180 *" mktime.
$ac_objext "* ) ;;
18181 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18187 if test "$ac_cv_func_working_mktime" = no; then
18189 cat >>confdefs.h <<\_ACEOF
18190 #define BROKEN_MKTIME 1
18195 ac_have_func=no # yes means we've found a way to get the load average.
18197 # Make sure getloadavg.c is where it belongs, at configure-time.
18198 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18199 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18200 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18201 { (exit 1); exit 1; }; }
18205 # Check for getloadavg, but be sure not to touch the cache variable.
18206 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18207 $as_echo_n "checking
for getloadavg...
" >&6; }
18208 if test "${ac_cv_func_getloadavg+set}" = set; then
18209 $as_echo_n "(cached
) " >&6
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18219 #define getloadavg innocuous_getloadavg
18221 /* System header to define __stub macros and hopefully few prototypes,
18222 which can conflict with char getloadavg (); below.
18223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18224 <limits.h> exists even on freestanding compilers. */
18227 # include <limits.h>
18229 # include <assert.h>
18234 /* Override any GCC internal prototype to avoid an error.
18235 Use char because int might match the return type of a GCC
18236 builtin and then its argument prototype would still apply. */
18240 char getloadavg ();
18241 /* The GNU C library defines this for functions which it implements
18242 to always fail with ENOSYS. Some functions are actually named
18243 something starting with __ and the normal name is an alias. */
18244 #if defined __stub_getloadavg || defined __stub___getloadavg
18251 return getloadavg ();
18256 rm -f conftest.$ac_objext conftest$ac_exeext
18257 if { (ac_try="$ac_link"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18263 $as_echo "$ac_try_echo") >&5
18264 (eval "$ac_link") 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18270 (exit $ac_status); } && {
18271 test -z "$ac_c_werror_flag" ||
18272 test ! -s conftest.err
18273 } && test -s conftest$ac_exeext && {
18274 test "$cross_compiling" = yes ||
18275 $as_test_x conftest$ac_exeext
18277 ac_cv_func_getloadavg=yes
18279 $as_echo "$as_me: failed program was
:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_cv_func_getloadavg=no
18285 rm -rf conftest.dSYM
18286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18287 conftest$ac_exeext conftest.$ac_ext
18289 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18290 $as_echo "$ac_cv_func_getloadavg" >&6; }
18291 if test "x
$ac_cv_func_getloadavg" = x""yes; then
18296 ) && ac_have_func=yes
18298 # On HPUX9, an unprivileged user can get load averages through this function.
18300 for ac_func in pstat_getdynamic
18302 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18303 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18304 $as_echo_n "checking
for $ac_func...
" >&6; }
18305 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18306 $as_echo_n "(cached
) " >&6
18308 cat >conftest.$ac_ext <<_ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18316 #define $ac_func innocuous_$ac_func
18318 /* System header to define __stub macros and hopefully few prototypes,
18319 which can conflict with char $ac_func (); below.
18320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18321 <limits.h> exists even on freestanding compilers. */
18324 # include <limits.h>
18326 # include <assert.h>
18331 /* Override any GCC internal prototype to avoid an error.
18332 Use char because int might match the return type of a GCC
18333 builtin and then its argument prototype would still apply. */
18338 /* The GNU C library defines this for functions which it implements
18339 to always fail with ENOSYS. Some functions are actually named
18340 something starting with __ and the normal name is an alias. */
18341 #if defined __stub_$ac_func || defined __stub___$ac_func
18348 return $ac_func ();
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18359 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18360 $as_echo "$ac_try_echo") >&5
18361 (eval "$ac_link") 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest$ac_exeext && {
18371 test "$cross_compiling" = yes ||
18372 $as_test_x conftest$ac_exeext
18374 eval "$as_ac_var=yes"
18376 $as_echo "$as_me: failed program was
:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 eval "$as_ac_var=no
"
18382 rm -rf conftest.dSYM
18383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18384 conftest$ac_exeext conftest.$ac_ext
18386 ac_res=`eval 'as_val=${'$as_ac_var'}
18387 $as_echo "$as_val"'`
18388 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18389 $as_echo "$ac_res" >&6; }
18390 as_val=`eval 'as_val=${'$as_ac_var'}
18391 $as_echo "$as_val"'`
18392 if test "x
$as_val" = x""yes; then
18393 cat >>confdefs.h <<_ACEOF
18394 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18401 # Solaris has libkstat which does not require root.
18403 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18404 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18405 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18406 $as_echo_n "(cached
) " >&6
18408 ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-lkstat $LIBS"
18410 cat >conftest.$ac_ext <<_ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18423 char kstat_open ();
18427 return kstat_open ();
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18439 $as_echo "$ac_try_echo") >&5
18440 (eval "$ac_link") 2>conftest.er1
18442 grep -v '^ *+' conftest.er1 >conftest.err
18444 cat conftest.err >&5
18445 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest$ac_exeext && {
18450 test "$cross_compiling" = yes ||
18451 $as_test_x conftest$ac_exeext
18453 ac_cv_lib_kstat_kstat_open=yes
18455 $as_echo "$as_me: failed program was
:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ac_cv_lib_kstat_kstat_open=no
18461 rm -rf conftest.dSYM
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463 conftest$ac_exeext conftest.$ac_ext
18464 LIBS=$ac_check_lib_save_LIBS
18466 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18467 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18468 if test "x
$ac_cv_lib_kstat_kstat_open" = x""yes; then
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_LIBKSTAT 1
18473 LIBS="-lkstat $LIBS"
18477 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18479 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18480 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18481 # to get the right answer into the cache.
18482 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18483 if test $ac_have_func = no; then
18484 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18485 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18486 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18487 $as_echo_n "(cached
) " >&6
18489 ac_check_lib_save_LIBS=$LIBS
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18508 return elf_begin ();
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18519 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18520 $as_echo "$ac_try_echo") >&5
18521 (eval "$ac_link") 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest$ac_exeext && {
18531 test "$cross_compiling" = yes ||
18532 $as_test_x conftest$ac_exeext
18534 ac_cv_lib_elf_elf_begin=yes
18536 $as_echo "$as_me: failed program was
:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_cv_lib_elf_elf_begin=no
18542 rm -rf conftest.dSYM
18543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18547 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18548 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18549 if test "x
$ac_cv_lib_elf_elf_begin" = x""yes; then
18554 if test $ac_have_func = no; then
18555 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18556 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18557 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18558 $as_echo_n "(cached
) " >&6
18560 ac_check_lib_save_LIBS=$LIBS
18562 cat >conftest.$ac_ext <<_ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18579 return kvm_open ();
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18591 $as_echo "$ac_try_echo") >&5
18592 (eval "$ac_link") 2>conftest.er1
18594 grep -v '^ *+' conftest.er1 >conftest.err
18596 cat conftest.err >&5
18597 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18598 (exit $ac_status); } && {
18599 test -z "$ac_c_werror_flag" ||
18600 test ! -s conftest.err
18601 } && test -s conftest$ac_exeext && {
18602 test "$cross_compiling" = yes ||
18603 $as_test_x conftest$ac_exeext
18605 ac_cv_lib_kvm_kvm_open=yes
18607 $as_echo "$as_me: failed program was
:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_cv_lib_kvm_kvm_open=no
18613 rm -rf conftest.dSYM
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS
18618 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18619 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18620 if test "x
$ac_cv_lib_kvm_kvm_open" = x""yes; then
18624 # Check for the 4.4BSD definition of getloadavg.
18625 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18626 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18627 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18628 $as_echo_n "(cached
) " >&6
18630 ac_check_lib_save_LIBS=$LIBS
18631 LIBS="-lutil $LIBS"
18632 cat >conftest.$ac_ext <<_ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18639 /* Override any GCC internal prototype to avoid an error.
18640 Use char because int might match the return type of a GCC
18641 builtin and then its argument prototype would still apply. */
18645 char getloadavg ();
18649 return getloadavg ();
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (ac_try="$ac_link"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18660 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18661 $as_echo "$ac_try_echo") >&5
18662 (eval "$ac_link") 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest$ac_exeext && {
18672 test "$cross_compiling" = yes ||
18673 $as_test_x conftest$ac_exeext
18675 ac_cv_lib_util_getloadavg=yes
18677 $as_echo "$as_me: failed program was
:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_cv_lib_util_getloadavg=no
18683 rm -rf conftest.dSYM
18684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18685 conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS
18688 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18689 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18690 if test "x
$ac_cv_lib_util_getloadavg" = x""yes; then
18691 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18696 if test $ac_have_func = no; then
18697 # There is a commonly available library for RS/6000 AIX.
18698 # Since it is not a standard part of AIX, it might be installed locally.
18699 ac_getloadavg_LIBS=$LIBS
18700 LIBS="-L/usr
/local
/lib
$LIBS"
18701 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18702 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18703 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18704 $as_echo_n "(cached
) " >&6
18706 ac_check_lib_save_LIBS=$LIBS
18707 LIBS="-lgetloadavg $LIBS"
18708 cat >conftest.$ac_ext <<_ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18721 char getloadavg ();
18725 return getloadavg ();
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18737 $as_echo "$ac_try_echo") >&5
18738 (eval "$ac_link") 2>conftest.er1
18740 grep -v '^ *+' conftest.er1 >conftest.err
18742 cat conftest.err >&5
18743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest$ac_exeext && {
18748 test "$cross_compiling" = yes ||
18749 $as_test_x conftest$ac_exeext
18751 ac_cv_lib_getloadavg_getloadavg=yes
18753 $as_echo "$as_me: failed program was
:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_cv_lib_getloadavg_getloadavg=no
18759 rm -rf conftest.dSYM
18760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18761 conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS
18764 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18765 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18766 if test "x
$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
18767 LIBS="-lgetloadavg $LIBS"
18769 LIBS=$ac_getloadavg_LIBS
18774 # Make sure it is really in the library, if we think we found it,
18775 # otherwise set up the replacement function.
18777 for ac_func in getloadavg
18779 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18780 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18781 $as_echo_n "checking
for $ac_func...
" >&6; }
18782 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18783 $as_echo_n "(cached
) " >&6
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18793 #define $ac_func innocuous_$ac_func
18795 /* System header to define __stub macros and hopefully few prototypes,
18796 which can conflict with char $ac_func (); below.
18797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18798 <limits.h> exists even on freestanding compilers. */
18801 # include <limits.h>
18803 # include <assert.h>
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18815 /* The GNU C library defines this for functions which it implements
18816 to always fail with ENOSYS. Some functions are actually named
18817 something starting with __ and the normal name is an alias. */
18818 #if defined __stub_$ac_func || defined __stub___$ac_func
18825 return $ac_func ();
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18837 $as_echo "$ac_try_echo") >&5
18838 (eval "$ac_link") 2>conftest.er1
18840 grep -v '^ *+' conftest.er1 >conftest.err
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext && {
18848 test "$cross_compiling" = yes ||
18849 $as_test_x conftest$ac_exeext
18851 eval "$as_ac_var=yes"
18853 $as_echo "$as_me: failed program was
:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 eval "$as_ac_var=no
"
18859 rm -rf conftest.dSYM
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18863 ac_res=`eval 'as_val=${'$as_ac_var'}
18864 $as_echo "$as_val"'`
18865 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18866 $as_echo "$ac_res" >&6; }
18867 as_val=`eval 'as_val=${'$as_ac_var'}
18868 $as_echo "$as_val"'`
18869 if test "x
$as_val" = x""yes; then
18870 cat >>confdefs.h <<_ACEOF
18871 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18875 case " $LIBOBJS " in
18876 *" getloadavg.
$ac_objext "* ) ;;
18877 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18882 cat >>confdefs.h <<\_ACEOF
18883 #define C_GETLOADAVG 1
18886 # Figure out what our getloadavg.c needs.
18888 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18889 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18890 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18891 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18892 $as_echo_n "(cached
) " >&6
18894 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18895 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18897 # Is the header compilable?
18898 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18899 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 $ac_includes_default
18907 #include <sys/dg_sys_info.h>
18909 rm -f conftest.$ac_objext
18910 if { (ac_try="$ac_compile"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917 (eval "$ac_compile") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest.$ac_objext; then
18927 ac_header_compiler=yes
18929 $as_echo "$as_me: failed program was
:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_header_compiler=no
18935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18937 $as_echo "$ac_header_compiler" >&6; }
18939 # Is the header present?
18940 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18941 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18942 cat >conftest.$ac_ext <<_ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 #include <sys/dg_sys_info.h>
18950 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18956 $as_echo "$ac_try_echo") >&5
18957 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18963 (exit $ac_status); } >/dev/null && {
18964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18967 ac_header_preproc=yes
18969 $as_echo "$as_me: failed program was
:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_header_preproc=no
18975 rm -f conftest.err conftest.$ac_ext
18976 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18977 $as_echo "$ac_header_preproc" >&6; }
18979 # So? What about this header?
18980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18982 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18983 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18984 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18985 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18986 ac_header_preproc=yes
18989 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18990 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18991 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18992 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18993 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18994 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18995 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18996 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18997 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18998 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18999 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19000 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19004 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19005 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19006 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19007 $as_echo_n "(cached
) " >&6
19009 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19011 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19012 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19015 if test "x
$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19018 cat >>confdefs.h <<\_ACEOF
19023 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19024 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19025 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19026 $as_echo_n "(cached
) " >&6
19028 ac_check_lib_save_LIBS=$LIBS
19030 cat >conftest.$ac_ext <<_ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19037 /* Override any GCC internal prototype to avoid an error.
19038 Use char because int might match the return type of a GCC
19039 builtin and then its argument prototype would still apply. */
19043 char dg_sys_info ();
19047 return dg_sys_info ();
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (ac_try="$ac_link"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19058 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19059 $as_echo "$ac_try_echo") >&5
19060 (eval "$ac_link") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest$ac_exeext && {
19070 test "$cross_compiling" = yes ||
19071 $as_test_x conftest$ac_exeext
19073 ac_cv_lib_dgc_dg_sys_info=yes
19075 $as_echo "$as_me: failed program was
:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_cv_lib_dgc_dg_sys_info=no
19081 rm -rf conftest.dSYM
19082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19083 conftest$ac_exeext conftest.$ac_ext
19084 LIBS=$ac_check_lib_save_LIBS
19086 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19087 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19088 if test "x
$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19089 cat >>confdefs.h <<_ACEOF
19090 #define HAVE_LIBDGC 1
19101 if test "${ac_cv_header_locale_h+set}" = set; then
19102 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19103 $as_echo_n "checking
for locale.h...
" >&6; }
19104 if test "${ac_cv_header_locale_h+set}" = set; then
19105 $as_echo_n "(cached
) " >&6
19107 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19108 $as_echo "$ac_cv_header_locale_h" >&6; }
19110 # Is the header compilable?
19111 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19112 $as_echo_n "checking locale.h usability...
" >&6; }
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 $ac_includes_default
19120 #include <locale.h>
19122 rm -f conftest.$ac_objext
19123 if { (ac_try="$ac_compile"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130 (eval "$ac_compile") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19136 (exit $ac_status); } && {
19137 test -z "$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 } && test -s conftest.$ac_objext; then
19140 ac_header_compiler=yes
19142 $as_echo "$as_me: failed program was
:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_header_compiler=no
19148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19150 $as_echo "$ac_header_compiler" >&6; }
19152 # Is the header present?
19153 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19154 $as_echo_n "checking locale.h presence...
" >&6; }
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 #include <locale.h>
19163 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19169 $as_echo "$ac_try_echo") >&5
19170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19176 (exit $ac_status); } >/dev/null && {
19177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19178 test ! -s conftest.err
19180 ac_header_preproc=yes
19182 $as_echo "$as_me: failed program was
:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ac_header_preproc=no
19188 rm -f conftest.err conftest.$ac_ext
19189 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19190 $as_echo "$ac_header_preproc" >&6; }
19192 # So? What about this header?
19193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19195 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19196 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19197 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19198 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19199 ac_header_preproc=yes
19202 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19203 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19204 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19205 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19206 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19207 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19208 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19209 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19210 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19211 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19212 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19213 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19217 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19218 $as_echo_n "checking
for locale.h...
" >&6; }
19219 if test "${ac_cv_header_locale_h+set}" = set; then
19220 $as_echo_n "(cached
) " >&6
19222 ac_cv_header_locale_h=$ac_header_preproc
19224 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19225 $as_echo "$ac_cv_header_locale_h" >&6; }
19231 for ac_func in setlocale
19233 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19234 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19235 $as_echo_n "checking
for $ac_func...
" >&6; }
19236 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19237 $as_echo_n "(cached
) " >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19247 #define $ac_func innocuous_$ac_func
19249 /* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char $ac_func (); below.
19251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19252 <limits.h> exists even on freestanding compilers. */
19255 # include <limits.h>
19257 # include <assert.h>
19262 /* Override any GCC internal prototype to avoid an error.
19263 Use char because int might match the return type of a GCC
19264 builtin and then its argument prototype would still apply. */
19269 /* The GNU C library defines this for functions which it implements
19270 to always fail with ENOSYS. Some functions are actually named
19271 something starting with __ and the normal name is an alias. */
19272 #if defined __stub_$ac_func || defined __stub___$ac_func
19279 return $ac_func ();
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19291 $as_echo "$ac_try_echo") >&5
19292 (eval "$ac_link") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest$ac_exeext && {
19302 test "$cross_compiling" = yes ||
19303 $as_test_x conftest$ac_exeext
19305 eval "$as_ac_var=yes"
19307 $as_echo "$as_me: failed program was
:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 eval "$as_ac_var=no
"
19313 rm -rf conftest.dSYM
19314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19315 conftest$ac_exeext conftest.$ac_ext
19317 ac_res=`eval 'as_val=${'$as_ac_var'}
19318 $as_echo "$as_val"'`
19319 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19320 $as_echo "$ac_res" >&6; }
19321 as_val=`eval 'as_val=${'$as_ac_var'}
19322 $as_echo "$as_val"'`
19323 if test "x
$as_val" = x""yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19332 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19333 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19334 # Irix 4.0.5F has the header but not the library.
19335 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19338 cat >>confdefs.h <<\_ACEOF
19344 if test $ac_have_func = no; then
19345 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19346 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19347 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19349 $as_echo_n "(cached
) " >&6
19351 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19352 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19354 # Is the header compilable?
19355 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19356 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19364 #include <inq_stats/cpustats.h>
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19373 $as_echo "$ac_try_echo") >&5
19374 (eval "$ac_compile") 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19378 cat conftest.err >&5
19379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest.$ac_objext; then
19384 ac_header_compiler=yes
19386 $as_echo "$as_me: failed program was
:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_compiler=no
19392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19393 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19394 $as_echo "$ac_header_compiler" >&6; }
19396 # Is the header present?
19397 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19398 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <inq_stats/cpustats.h>
19407 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19413 $as_echo "$ac_try_echo") >&5
19414 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19420 (exit $ac_status); } >/dev/null && {
19421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19424 ac_header_preproc=yes
19426 $as_echo "$as_me: failed program was
:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_header_preproc=no
19432 rm -f conftest.err conftest.$ac_ext
19433 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19434 $as_echo "$ac_header_preproc" >&6; }
19436 # So? What about this header?
19437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19439 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19440 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19441 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19442 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19443 ac_header_preproc=yes
19446 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19447 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19448 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19449 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19450 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19451 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19452 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19453 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19454 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19455 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19456 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19457 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19461 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19462 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19463 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19464 $as_echo_n "(cached
) " >&6
19466 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19468 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19469 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19472 if test "x
$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
19475 cat >>confdefs.h <<\_ACEOF
19480 cat >>confdefs.h <<\_ACEOF
19489 if test $ac_have_func = no; then
19490 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19491 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19492 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19493 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19494 $as_echo_n "(cached
) " >&6
19496 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19497 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19499 # Is the header compilable?
19500 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19501 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 $ac_includes_default
19509 #include <sys/cpustats.h>
19511 rm -f conftest.$ac_objext
19512 if { (ac_try="$ac_compile"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19518 $as_echo "$ac_try_echo") >&5
19519 (eval "$ac_compile") 2>conftest.er1
19521 grep -v '^ *+' conftest.er1 >conftest.err
19523 cat conftest.err >&5
19524 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19525 (exit $ac_status); } && {
19526 test -z "$ac_c_werror_flag" ||
19527 test ! -s conftest.err
19528 } && test -s conftest.$ac_objext; then
19529 ac_header_compiler=yes
19531 $as_echo "$as_me: failed program was
:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 ac_header_compiler=no
19537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19539 $as_echo "$ac_header_compiler" >&6; }
19541 # Is the header present?
19542 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19543 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19544 cat >conftest.$ac_ext <<_ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 #include <sys/cpustats.h>
19552 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19558 $as_echo "$ac_try_echo") >&5
19559 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19565 (exit $ac_status); } >/dev/null && {
19566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19569 ac_header_preproc=yes
19571 $as_echo "$as_me: failed program was
:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_header_preproc=no
19577 rm -f conftest.err conftest.$ac_ext
19578 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19579 $as_echo "$ac_header_preproc" >&6; }
19581 # So? What about this header?
19582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19584 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19585 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19586 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19587 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19588 ac_header_preproc=yes
19591 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19592 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19593 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19594 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19595 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19596 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19597 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19598 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19599 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19600 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19601 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19602 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19606 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19607 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19608 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19609 $as_echo_n "(cached
) " >&6
19611 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19613 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19614 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19617 if test "x
$ac_cv_header_sys_cpustats_h" = x""yes; then
19618 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19627 if test $ac_have_func = no; then
19629 for ac_header in mach/mach.h
19631 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19633 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19634 $as_echo_n "checking
for $ac_header...
" >&6; }
19635 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19636 $as_echo_n "(cached
) " >&6
19638 ac_res=`eval 'as_val=${'$as_ac_Header'}
19639 $as_echo "$as_val"'`
19640 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19641 $as_echo "$ac_res" >&6; }
19643 # Is the header compilable?
19644 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19645 $as_echo_n "checking
$ac_header usability...
" >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19653 #include <$ac_header>
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19662 $as_echo "$ac_try_echo") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest.$ac_objext; then
19673 ac_header_compiler=yes
19675 $as_echo "$as_me: failed program was
:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_header_compiler=no
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19682 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19683 $as_echo "$ac_header_compiler" >&6; }
19685 # Is the header present?
19686 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19687 $as_echo_n "checking
$ac_header presence...
" >&6; }
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <$ac_header>
19696 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19702 $as_echo "$ac_try_echo") >&5
19703 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19709 (exit $ac_status); } >/dev/null && {
19710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19713 ac_header_preproc=yes
19715 $as_echo "$as_me: failed program was
:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_header_preproc=no
19721 rm -f conftest.err conftest.$ac_ext
19722 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19723 $as_echo "$ac_header_preproc" >&6; }
19725 # So? What about this header?
19726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19728 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19729 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19730 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19732 ac_header_preproc=yes
19735 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19736 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19737 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19738 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19739 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19740 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19741 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19742 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19743 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19745 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19746 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19750 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19751 $as_echo_n "checking
for $ac_header...
" >&6; }
19752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19753 $as_echo_n "(cached
) " >&6
19755 eval "$as_ac_Header=\
$ac_header_preproc"
19757 ac_res=`eval 'as_val=${'$as_ac_Header'}
19758 $as_echo "$as_val"'`
19759 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19760 $as_echo "$ac_res" >&6; }
19763 as_val=`eval 'as_val=${'$as_ac_Header'}
19764 $as_echo "$as_val"'`
19765 if test "x
$as_val" = x""yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19777 for ac_header in nlist.h
19779 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19781 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19782 $as_echo_n "checking
for $ac_header...
" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19784 $as_echo_n "(cached
) " >&6
19786 ac_res=`eval 'as_val=${'$as_ac_Header'}
19787 $as_echo "$as_val"'`
19788 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19789 $as_echo "$ac_res" >&6; }
19791 # Is the header compilable?
19792 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19793 $as_echo_n "checking
$ac_header usability...
" >&6; }
19794 cat >conftest.$ac_ext <<_ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19801 #include <$ac_header>
19803 rm -f conftest.$ac_objext
19804 if { (ac_try="$ac_compile"
19805 case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19810 $as_echo "$ac_try_echo") >&5
19811 (eval "$ac_compile") 2>conftest.er1
19813 grep -v '^ *+' conftest.er1 >conftest.err
19815 cat conftest.err >&5
19816 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest.$ac_objext; then
19821 ac_header_compiler=yes
19823 $as_echo "$as_me: failed program was
:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_compiler=no
19829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19830 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19831 $as_echo "$ac_header_compiler" >&6; }
19833 # Is the header present?
19834 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19835 $as_echo_n "checking
$ac_header presence...
" >&6; }
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <$ac_header>
19844 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19850 $as_echo "$ac_try_echo") >&5
19851 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19853 grep -v '^ *+' conftest.er1 >conftest.err
19855 cat conftest.err >&5
19856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19857 (exit $ac_status); } >/dev/null && {
19858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19859 test ! -s conftest.err
19861 ac_header_preproc=yes
19863 $as_echo "$as_me: failed program was
:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_header_preproc=no
19869 rm -f conftest.err conftest.$ac_ext
19870 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19871 $as_echo "$ac_header_preproc" >&6; }
19873 # So? What about this header?
19874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19876 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19877 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19878 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19880 ac_header_preproc=yes
19883 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19884 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19885 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19886 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19887 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19888 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19889 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19890 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19891 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19893 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19894 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19898 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19899 $as_echo_n "checking
for $ac_header...
" >&6; }
19900 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19901 $as_echo_n "(cached
) " >&6
19903 eval "$as_ac_Header=\
$ac_header_preproc"
19905 ac_res=`eval 'as_val=${'$as_ac_Header'}
19906 $as_echo "$as_val"'`
19907 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19908 $as_echo "$ac_res" >&6; }
19911 as_val=`eval 'as_val=${'$as_ac_Header'}
19912 $as_echo "$as_val"'`
19913 if test "x
$as_val" = x""yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19917 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19918 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19919 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19920 $as_echo_n "(cached
) " >&6
19922 cat >conftest.$ac_ext <<_ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19933 static struct nlist ac_aggr;
19934 if (ac_aggr.n_un.n_name)
19940 rm -f conftest.$ac_objext
19941 if { (ac_try="$ac_compile"
19942 case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19946 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19947 $as_echo "$ac_try_echo") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19954 (exit $ac_status); } && {
19955 test -z "$ac_c_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest.$ac_objext; then
19958 ac_cv_member_struct_nlist_n_un_n_name=yes
19960 $as_echo "$as_me: failed program was
:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19974 static struct nlist ac_aggr;
19975 if (sizeof ac_aggr.n_un.n_name)
19981 rm -f conftest.$ac_objext
19982 if { (ac_try="$ac_compile"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19987 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19988 $as_echo "$ac_try_echo") >&5
19989 (eval "$ac_compile") 2>conftest.er1
19991 grep -v '^ *+' conftest.er1 >conftest.err
19993 cat conftest.err >&5
19994 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest.$ac_objext; then
19999 ac_cv_member_struct_nlist_n_un_n_name=yes
20001 $as_echo "$as_me: failed program was
:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_member_struct_nlist_n_un_n_name=no
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20013 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20014 if test "x
$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20016 cat >>confdefs.h <<_ACEOF
20017 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20021 cat >>confdefs.h <<\_ACEOF
20022 #define NLIST_NAME_UNION 1
20036 # Some definitions of getloadavg require that the program be installed setgid.
20037 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20038 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20039 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20040 $as_echo_n "(cached
) " >&6
20042 cat >conftest.$ac_ext <<_ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20049 #ifdef LDAV_PRIVILEGED
20050 Yowza Am I SETGID yet
20053 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20054 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20055 ac_cv_func_getloadavg_setgid=yes
20057 ac_cv_func_getloadavg_setgid=no
20062 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20063 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20064 if test $ac_cv_func_getloadavg_setgid = yes; then
20067 cat >>confdefs.h <<\_ACEOF
20068 #define GETLOADAVG_PRIVILEGED 1
20075 if test $ac_cv_func_getloadavg_setgid = yes; then
20076 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20077 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20078 if test "${ac_cv_group_kmem+set}" = set; then
20079 $as_echo_n "(cached
) " >&6
20081 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20082 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20083 # If we got an error (system does not support symlinks), try without -L.
20084 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20085 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20086 | sed -ne 's/[ ][ ]*/ /g;
20087 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20091 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20092 $as_echo "$ac_cv_group_kmem" >&6; }
20093 KMEM_GROUP=$ac_cv_group_kmem
20095 if test "x
$ac_save_LIBS" = x; then
20096 GETLOADAVG_LIBS=$LIBS
20098 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20104 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20105 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20106 if test "${ac_cv_sys_largefile_source+set}" = set; then
20107 $as_echo_n "(cached
) " >&6
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 #include <sys/types.h> /* for off_t */
20121 int (*fp) (FILE *, off_t, int) = fseeko;
20122 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20134 $as_echo "$ac_try_echo") >&5
20135 (eval "$ac_link") 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20141 (exit $ac_status); } && {
20142 test -z "$ac_c_werror_flag" ||
20143 test ! -s conftest.err
20144 } && test -s conftest$ac_exeext && {
20145 test "$cross_compiling" = yes ||
20146 $as_test_x conftest$ac_exeext
20148 ac_cv_sys_largefile_source=no; break
20150 $as_echo "$as_me: failed program was
:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20156 rm -rf conftest.dSYM
20157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20158 conftest$ac_exeext conftest.$ac_ext
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #define _LARGEFILE_SOURCE 1
20166 #include <sys/types.h> /* for off_t */
20171 int (*fp) (FILE *, off_t, int) = fseeko;
20172 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20183 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20184 $as_echo "$ac_try_echo") >&5
20185 (eval "$ac_link") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest$ac_exeext && {
20195 test "$cross_compiling" = yes ||
20196 $as_test_x conftest$ac_exeext
20198 ac_cv_sys_largefile_source=1; break
20200 $as_echo "$as_me: failed program was
:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20206 rm -rf conftest.dSYM
20207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20208 conftest$ac_exeext conftest.$ac_ext
20209 ac_cv_sys_largefile_source=unknown
20213 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20214 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20215 case $ac_cv_sys_largefile_source in #(
20218 cat >>confdefs.h <<_ACEOF
20219 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20225 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20226 # in glibc 2.1.3, but that breaks too many other things.
20227 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20228 if test $ac_cv_sys_largefile_source != unknown; then
20230 cat >>confdefs.h <<\_ACEOF
20231 #define HAVE_FSEEKO 1
20237 # Configure getopt.
20238 # getopt.m4 serial 10
20240 # The getopt module assume you want GNU getopt, with getopt_long etc,
20241 # rather than vanilla POSIX getopt. This means your your code should
20242 # always include <getopt.h> for the getopt prototypes.
20254 # Prerequisites of lib/getopt*.
20261 for ac_header in getopt.h
20263 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20265 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20266 $as_echo_n "checking
for $ac_header...
" >&6; }
20267 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20268 $as_echo_n "(cached
) " >&6
20270 ac_res=`eval 'as_val=${'$as_ac_Header'}
20271 $as_echo "$as_val"'`
20272 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20273 $as_echo "$ac_res" >&6; }
20275 # Is the header compilable?
20276 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20277 $as_echo_n "checking
$ac_header usability...
" >&6; }
20278 cat >conftest.$ac_ext <<_ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <$ac_header>
20287 rm -f conftest.$ac_objext
20288 if { (ac_try="$ac_compile"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20294 $as_echo "$ac_try_echo") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest.$ac_objext; then
20305 ac_header_compiler=yes
20307 $as_echo "$as_me: failed program was
:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ac_header_compiler=no
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20315 $as_echo "$ac_header_compiler" >&6; }
20317 # Is the header present?
20318 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20319 $as_echo_n "checking
$ac_header presence...
" >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 #include <$ac_header>
20328 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20329 case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20333 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20334 $as_echo "$ac_try_echo") >&5
20335 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20341 (exit $ac_status); } >/dev/null && {
20342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20343 test ! -s conftest.err
20345 ac_header_preproc=yes
20347 $as_echo "$as_me: failed program was
:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_header_preproc=no
20353 rm -f conftest.err conftest.$ac_ext
20354 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20355 $as_echo "$ac_header_preproc" >&6; }
20357 # So? What about this header?
20358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20360 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20361 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20362 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20364 ac_header_preproc=yes
20367 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20368 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20369 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20370 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20371 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20372 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20373 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20374 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20375 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20377 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20378 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20382 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20383 $as_echo_n "checking
for $ac_header...
" >&6; }
20384 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20385 $as_echo_n "(cached
) " >&6
20387 eval "$as_ac_Header=\
$ac_header_preproc"
20389 ac_res=`eval 'as_val=${'$as_ac_Header'}
20390 $as_echo "$as_val"'`
20391 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20392 $as_echo "$ac_res" >&6; }
20395 as_val=`eval 'as_val=${'$as_ac_Header'}
20396 $as_echo "$as_val"'`
20397 if test "x
$as_val" = x""yes; then
20398 cat >>confdefs.h <<_ACEOF
20399 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20408 if test -z "$GETOPT_H"; then
20410 for ac_func in getopt_long_only
20412 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20413 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20414 $as_echo_n "checking
for $ac_func...
" >&6; }
20415 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20416 $as_echo_n "(cached
) " >&6
20418 cat >conftest.$ac_ext <<_ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20426 #define $ac_func innocuous_$ac_func
20428 /* System header to define __stub macros and hopefully few prototypes,
20429 which can conflict with char $ac_func (); below.
20430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20431 <limits.h> exists even on freestanding compilers. */
20434 # include <limits.h>
20436 # include <assert.h>
20441 /* Override any GCC internal prototype to avoid an error.
20442 Use char because int might match the return type of a GCC
20443 builtin and then its argument prototype would still apply. */
20448 /* The GNU C library defines this for functions which it implements
20449 to always fail with ENOSYS. Some functions are actually named
20450 something starting with __ and the normal name is an alias. */
20451 #if defined __stub_$ac_func || defined __stub___$ac_func
20458 return $ac_func ();
20463 rm -f conftest.$ac_objext conftest$ac_exeext
20464 if { (ac_try="$ac_link"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20470 $as_echo "$ac_try_echo") >&5
20471 (eval "$ac_link") 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest$ac_exeext && {
20481 test "$cross_compiling" = yes ||
20482 $as_test_x conftest$ac_exeext
20484 eval "$as_ac_var=yes"
20486 $as_echo "$as_me: failed program was
:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 eval "$as_ac_var=no
"
20492 rm -rf conftest.dSYM
20493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20494 conftest$ac_exeext conftest.$ac_ext
20496 ac_res=`eval 'as_val=${'$as_ac_var'}
20497 $as_echo "$as_val"'`
20498 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20499 $as_echo "$ac_res" >&6; }
20500 as_val=`eval 'as_val=${'$as_ac_var'}
20501 $as_echo "$as_val"'`
20502 if test "x
$as_val" = x""yes; then
20503 cat >>confdefs.h <<_ACEOF
20504 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20514 if test -z "$GETOPT_H"; then
20515 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20516 $as_echo_n "checking whether optreset is declared...
" >&6; }
20517 if test "${ac_cv_have_decl_optreset+set}" = set; then
20518 $as_echo_n "(cached
) " >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 #include <getopt.h>
20539 rm -f conftest.$ac_objext
20540 if { (ac_try="$ac_compile"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20545 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20546 $as_echo "$ac_try_echo") >&5
20547 (eval "$ac_compile") 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20553 (exit $ac_status); } && {
20554 test -z "$ac_c_werror_flag" ||
20555 test ! -s conftest.err
20556 } && test -s conftest.$ac_objext; then
20557 ac_cv_have_decl_optreset=yes
20559 $as_echo "$as_me: failed program was
:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ac_cv_have_decl_optreset=no
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20568 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20569 if test "x
$ac_cv_have_decl_optreset" = x""yes; then
20575 if test -z "$GETOPT_H"; then
20576 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20577 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20578 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20579 $as_echo_n "(cached
) " >&6
20581 if test "$cross_compiling" = yes; then
20582 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20583 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20584 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20585 $as_echo_n "(cached
) " >&6
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <getopt.h>
20598 #ifndef getopt_clip
20599 (void) getopt_clip;
20606 rm -f conftest.$ac_objext
20607 if { (ac_try="$ac_compile"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20613 $as_echo "$ac_try_echo") >&5
20614 (eval "$ac_compile") 2>conftest.er1
20616 grep -v '^ *+' conftest.er1 >conftest.err
20618 cat conftest.err >&5
20619 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest.$ac_objext; then
20624 ac_cv_have_decl_getopt_clip=yes
20626 $as_echo "$as_me: failed program was
:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_cv_have_decl_getopt_clip=no
20632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20635 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20636 if test "x
$ac_cv_have_decl_getopt_clip" = x""yes; then
20637 gl_cv_func_gnu_getopt=no
20639 gl_cv_func_gnu_getopt=yes
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 #include <getopt.h>
20655 myargv[0] = "conftest
";
20658 return getopt (2, myargv, "+a
") != '?';
20664 rm -f conftest$ac_exeext
20665 if { (ac_try="$ac_link"
20666 case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20670 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20671 $as_echo "$ac_try_echo") >&5
20672 (eval "$ac_link") 2>&5
20674 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20676 { (case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20681 $as_echo "$ac_try_echo") >&5
20682 (eval "$ac_try") 2>&5
20684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 gl_cv_func_gnu_getopt=yes
20688 $as_echo "$as_me: program exited with status
$ac_status" >&5
20689 $as_echo "$as_me: failed program was
:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ( exit $ac_status )
20693 gl_cv_func_gnu_getopt=no
20695 rm -rf conftest.dSYM
20696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20701 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20702 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20703 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20710 if test -n "$GETOPT_H"; then
20715 cat >>confdefs.h <<\_ACEOF
20716 #define __GETOPT_PREFIX rpl_
20722 GETOPTOBJS='getopt.o getopt1.o'
20729 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20730 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20731 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20732 $as_echo_n "(cached
) " >&6
20734 # Use it with a single arg.
20735 cat >conftest.$ac_ext <<_ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 $ac_includes_default
20750 rm -f conftest.$ac_objext
20751 if { (ac_try="$ac_compile"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20757 $as_echo "$ac_try_echo") >&5
20758 (eval "$ac_compile") 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20764 (exit $ac_status); } && {
20765 test -z "$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20767 } && test -s conftest.$ac_objext; then
20768 ac_cv_func_getpgrp_void=no
20770 $as_echo "$as_me: failed program was
:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_cv_func_getpgrp_void=yes
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20779 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20780 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20781 if test $ac_cv_func_getpgrp_void = yes; then
20783 cat >>confdefs.h <<\_ACEOF
20784 #define GETPGRP_VOID 1
20791 for ac_func in strftime
20793 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20794 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20795 $as_echo_n "checking
for $ac_func...
" >&6; }
20796 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20797 $as_echo_n "(cached
) " >&6
20799 cat >conftest.$ac_ext <<_ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20807 #define $ac_func innocuous_$ac_func
20809 /* System header to define __stub macros and hopefully few prototypes,
20810 which can conflict with char $ac_func (); below.
20811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20812 <limits.h> exists even on freestanding compilers. */
20815 # include <limits.h>
20817 # include <assert.h>
20822 /* Override any GCC internal prototype to avoid an error.
20823 Use char because int might match the return type of a GCC
20824 builtin and then its argument prototype would still apply. */
20829 /* The GNU C library defines this for functions which it implements
20830 to always fail with ENOSYS. Some functions are actually named
20831 something starting with __ and the normal name is an alias. */
20832 #if defined __stub_$ac_func || defined __stub___$ac_func
20839 return $ac_func ();
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (ac_try="$ac_link"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20851 $as_echo "$ac_try_echo") >&5
20852 (eval "$ac_link") 2>conftest.er1
20854 grep -v '^ *+' conftest.er1 >conftest.err
20856 cat conftest.err >&5
20857 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20858 (exit $ac_status); } && {
20859 test -z "$ac_c_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest$ac_exeext && {
20862 test "$cross_compiling" = yes ||
20863 $as_test_x conftest$ac_exeext
20865 eval "$as_ac_var=yes"
20867 $as_echo "$as_me: failed program was
:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 eval "$as_ac_var=no
"
20873 rm -rf conftest.dSYM
20874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20875 conftest$ac_exeext conftest.$ac_ext
20877 ac_res=`eval 'as_val=${'$as_ac_var'}
20878 $as_echo "$as_val"'`
20879 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20880 $as_echo "$ac_res" >&6; }
20881 as_val=`eval 'as_val=${'$as_ac_var'}
20882 $as_echo "$as_val"'`
20883 if test "x
$as_val" = x""yes; then
20884 cat >>confdefs.h <<_ACEOF
20885 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20889 # strftime is in -lintl on SCO UNIX.
20890 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20891 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20892 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20893 $as_echo_n "(cached
) " >&6
20895 ac_check_lib_save_LIBS=$LIBS
20896 LIBS="-lintl $LIBS"
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20904 /* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20914 return strftime ();
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20926 $as_echo "$ac_try_echo") >&5
20927 (eval "$ac_link") 2>conftest.er1
20929 grep -v '^ *+' conftest.er1 >conftest.err
20931 cat conftest.err >&5
20932 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20933 (exit $ac_status); } && {
20934 test -z "$ac_c_werror_flag" ||
20935 test ! -s conftest.err
20936 } && test -s conftest$ac_exeext && {
20937 test "$cross_compiling" = yes ||
20938 $as_test_x conftest$ac_exeext
20940 ac_cv_lib_intl_strftime=yes
20942 $as_echo "$as_me: failed program was
:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_lib_intl_strftime=no
20948 rm -rf conftest.dSYM
20949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20950 conftest$ac_exeext conftest.$ac_ext
20951 LIBS=$ac_check_lib_save_LIBS
20953 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20954 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20955 if test "x
$ac_cv_lib_intl_strftime" = x""yes; then
20956 cat >>confdefs.h <<\_ACEOF
20957 #define HAVE_STRFTIME 1
20960 LIBS="-lintl $LIBS"
20969 for ac_func in grantpt
20971 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20972 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20973 $as_echo_n "checking
for $ac_func...
" >&6; }
20974 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20975 $as_echo_n "(cached
) " >&6
20977 cat >conftest.$ac_ext <<_ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20985 #define $ac_func innocuous_$ac_func
20987 /* System header to define __stub macros and hopefully few prototypes,
20988 which can conflict with char $ac_func (); below.
20989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20990 <limits.h> exists even on freestanding compilers. */
20993 # include <limits.h>
20995 # include <assert.h>
21000 /* Override any GCC internal prototype to avoid an error.
21001 Use char because int might match the return type of a GCC
21002 builtin and then its argument prototype would still apply. */
21007 /* The GNU C library defines this for functions which it implements
21008 to always fail with ENOSYS. Some functions are actually named
21009 something starting with __ and the normal name is an alias. */
21010 #if defined __stub_$ac_func || defined __stub___$ac_func
21017 return $ac_func ();
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (ac_try="$ac_link"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21029 $as_echo "$ac_try_echo") >&5
21030 (eval "$ac_link") 2>conftest.er1
21032 grep -v '^ *+' conftest.er1 >conftest.err
21034 cat conftest.err >&5
21035 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest$ac_exeext && {
21040 test "$cross_compiling" = yes ||
21041 $as_test_x conftest$ac_exeext
21043 eval "$as_ac_var=yes"
21045 $as_echo "$as_me: failed program was
:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 eval "$as_ac_var=no
"
21051 rm -rf conftest.dSYM
21052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21053 conftest$ac_exeext conftest.$ac_ext
21055 ac_res=`eval 'as_val=${'$as_ac_var'}
21056 $as_echo "$as_val"'`
21057 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21058 $as_echo "$ac_res" >&6; }
21059 as_val=`eval 'as_val=${'$as_ac_var'}
21060 $as_echo "$as_val"'`
21061 if test "x
$as_val" = x""yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21070 # PTY-related GNU extensions.
21072 for ac_func in getpt
21074 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21075 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21076 $as_echo_n "checking
for $ac_func...
" >&6; }
21077 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21078 $as_echo_n "(cached
) " >&6
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21088 #define $ac_func innocuous_$ac_func
21090 /* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char $ac_func (); below.
21092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093 <limits.h> exists even on freestanding compilers. */
21096 # include <limits.h>
21098 # include <assert.h>
21103 /* Override any GCC internal prototype to avoid an error.
21104 Use char because int might match the return type of a GCC
21105 builtin and then its argument prototype would still apply. */
21110 /* The GNU C library defines this for functions which it implements
21111 to always fail with ENOSYS. Some functions are actually named
21112 something starting with __ and the normal name is an alias. */
21113 #if defined __stub_$ac_func || defined __stub___$ac_func
21120 return $ac_func ();
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest$ac_exeext
21146 eval "$as_ac_var=yes"
21148 $as_echo "$as_me: failed program was
:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 eval "$as_ac_var=no
"
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21158 ac_res=`eval 'as_val=${'$as_ac_var'}
21159 $as_echo "$as_val"'`
21160 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21161 $as_echo "$ac_res" >&6; }
21162 as_val=`eval 'as_val=${'$as_ac_var'}
21163 $as_echo "$as_val"'`
21164 if test "x
$as_val" = x""yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21173 # Check this now, so that we will NOT find the above functions in ncurses.
21174 # That is because we have not set up to link ncurses in lib-src.
21175 # It's better to believe a function is not available
21176 # than to expect to find it in ncurses.
21177 # Also we need tputs and frieds to be able to build at all.
21178 have_tputs_et_al=true
21179 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21180 $as_echo_n "checking
for library containing tputs...
" >&6; }
21181 if test "${ac_cv_search_tputs+set}" = set; then
21182 $as_echo_n "(cached
) " >&6
21184 ac_func_search_save_LIBS=$LIBS
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21192 /* Override any GCC internal prototype to avoid an error.
21193 Use char because int might match the return type of a GCC
21194 builtin and then its argument prototype would still apply. */
21207 for ac_lib in '' ncurses terminfo termcap; do
21208 if test -z "$ac_lib"; then
21209 ac_res="none required
"
21212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (ac_try="$ac_link"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21220 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21221 $as_echo "$ac_try_echo") >&5
21222 (eval "$ac_link") 2>conftest.er1
21224 grep -v '^ *+' conftest.er1 >conftest.err
21226 cat conftest.err >&5
21227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21228 (exit $ac_status); } && {
21229 test -z "$ac_c_werror_flag" ||
21230 test ! -s conftest.err
21231 } && test -s conftest$ac_exeext && {
21232 test "$cross_compiling" = yes ||
21233 $as_test_x conftest$ac_exeext
21235 ac_cv_search_tputs=$ac_res
21237 $as_echo "$as_me: failed program was
:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21243 rm -rf conftest.dSYM
21244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21246 if test "${ac_cv_search_tputs+set}" = set; then
21250 if test "${ac_cv_search_tputs+set}" = set; then
21253 ac_cv_search_tputs=no
21255 rm conftest.$ac_ext
21256 LIBS=$ac_func_search_save_LIBS
21258 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21259 $as_echo "$ac_cv_search_tputs" >&6; }
21260 ac_res=$ac_cv_search_tputs
21261 if test "$ac_res" != no; then
21262 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21265 have_tputs_et_al=false
21268 if test "$have_tputs_et_al" != true; then
21269 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21270 Maybe some development libraries/packages are missing? Try installing
21271 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21272 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21273 Maybe some development libraries
/packages are missing? Try installing
21274 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21275 { (exit 1); exit 1; }; }
21277 # Must define this when any termcap library is found.
21279 cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_LIBNCURSES 1
21284 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21287 cat >conftest.$ac_ext <<_ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <netinet/in.h>
21294 #include <arpa/nameser.h>
21295 #include <resolv.h>
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21327 $as_echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21333 rm -rf conftest.dSYM
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21336 if test "$have_res_init" = no; then
21338 LIBS="$LIBS -lresolv"
21339 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21340 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21341 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include <netinet/in.h>
21348 #include <arpa/nameser.h>
21349 #include <resolv.h>
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21365 $as_echo "$ac_try_echo") >&5
21366 (eval "$ac_link") 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest$ac_exeext && {
21376 test "$cross_compiling" = yes ||
21377 $as_test_x conftest$ac_exeext
21381 $as_echo "$as_me: failed program was
:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21387 rm -rf conftest.dSYM
21388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21389 conftest$ac_exeext conftest.$ac_ext
21390 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21391 $as_echo "$have_res_init" >&6; }
21392 if test "$have_res_init" = yes ; then
21398 if test "$have_res_init" = yes; then
21400 cat >>confdefs.h <<\_ACEOF
21401 #define HAVE_RES_INIT 1
21406 # Do we need the Hesiod library to provide the support routines?
21408 if test "$with_hesiod" != no ; then
21409 # Don't set $LIBS here -- see comments above. FIXME which comments?
21410 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21411 $as_echo_n "checking
for res_send...
" >&6; }
21412 if test "${ac_cv_func_res_send+set}" = set; then
21413 $as_echo_n "(cached
) " >&6
21415 cat >conftest.$ac_ext <<_ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21423 #define res_send innocuous_res_send
21425 /* System header to define __stub macros and hopefully few prototypes,
21426 which can conflict with char res_send (); below.
21427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428 <limits.h> exists even on freestanding compilers. */
21431 # include <limits.h>
21433 # include <assert.h>
21438 /* Override any GCC internal prototype to avoid an error.
21439 Use char because int might match the return type of a GCC
21440 builtin and then its argument prototype would still apply. */
21445 /* The GNU C library defines this for functions which it implements
21446 to always fail with ENOSYS. Some functions are actually named
21447 something starting with __ and the normal name is an alias. */
21448 #if defined __stub_res_send || defined __stub___res_send
21455 return res_send ();
21460 rm -f conftest.$ac_objext conftest$ac_exeext
21461 if { (ac_try="$ac_link"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21466 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21467 $as_echo "$ac_try_echo") >&5
21468 (eval "$ac_link") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest$ac_exeext && {
21478 test "$cross_compiling" = yes ||
21479 $as_test_x conftest$ac_exeext
21481 ac_cv_func_res_send=yes
21483 $as_echo "$as_me: failed program was
:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ac_cv_func_res_send=no
21489 rm -rf conftest.dSYM
21490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491 conftest$ac_exeext conftest.$ac_ext
21493 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21494 $as_echo "$ac_cv_func_res_send" >&6; }
21495 if test "x
$ac_cv_func_res_send" = x""yes; then
21498 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21499 $as_echo_n "checking
for __res_send...
" >&6; }
21500 if test "${ac_cv_func___res_send+set}" = set; then
21501 $as_echo_n "(cached
) " >&6
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21511 #define __res_send innocuous___res_send
21513 /* System header to define __stub macros and hopefully few prototypes,
21514 which can conflict with char __res_send (); below.
21515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21516 <limits.h> exists even on freestanding compilers. */
21519 # include <limits.h>
21521 # include <assert.h>
21526 /* Override any GCC internal prototype to avoid an error.
21527 Use char because int might match the return type of a GCC
21528 builtin and then its argument prototype would still apply. */
21532 char __res_send ();
21533 /* The GNU C library defines this for functions which it implements
21534 to always fail with ENOSYS. Some functions are actually named
21535 something starting with __ and the normal name is an alias. */
21536 #if defined __stub___res_send || defined __stub_____res_send
21543 return __res_send ();
21548 rm -f conftest.$ac_objext conftest$ac_exeext
21549 if { (ac_try="$ac_link"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21554 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21555 $as_echo "$ac_try_echo") >&5
21556 (eval "$ac_link") 2>conftest.er1
21558 grep -v '^ *+' conftest.er1 >conftest.err
21560 cat conftest.err >&5
21561 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21562 (exit $ac_status); } && {
21563 test -z "$ac_c_werror_flag" ||
21564 test ! -s conftest.err
21565 } && test -s conftest$ac_exeext && {
21566 test "$cross_compiling" = yes ||
21567 $as_test_x conftest$ac_exeext
21569 ac_cv_func___res_send=yes
21571 $as_echo "$as_me: failed program was
:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_cv_func___res_send=no
21577 rm -rf conftest.dSYM
21578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21579 conftest$ac_exeext conftest.$ac_ext
21581 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21582 $as_echo "$ac_cv_func___res_send" >&6; }
21583 if test "x
$ac_cv_func___res_send" = x""yes; then
21586 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21587 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21588 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21589 $as_echo_n "(cached
) " >&6
21591 ac_check_lib_save_LIBS=$LIBS
21592 LIBS="-lresolv $LIBS"
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 /* Override any GCC internal prototype to avoid an error.
21601 Use char because int might match the return type of a GCC
21602 builtin and then its argument prototype would still apply. */
21610 return res_send ();
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616 if { (ac_try="$ac_link"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21621 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21622 $as_echo "$ac_try_echo") >&5
21623 (eval "$ac_link") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest$ac_exeext && {
21633 test "$cross_compiling" = yes ||
21634 $as_test_x conftest$ac_exeext
21636 ac_cv_lib_resolv_res_send=yes
21638 $as_echo "$as_me: failed program was
:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ac_cv_lib_resolv_res_send=no
21644 rm -rf conftest.dSYM
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646 conftest$ac_exeext conftest.$ac_ext
21647 LIBS=$ac_check_lib_save_LIBS
21649 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21650 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21651 if test "x
$ac_cv_lib_resolv_res_send" = x""yes; then
21654 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21655 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21656 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21657 $as_echo_n "(cached
) " >&6
21659 ac_check_lib_save_LIBS=$LIBS
21660 LIBS="-lresolv $LIBS"
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* Override any GCC internal prototype to avoid an error.
21669 Use char because int might match the return type of a GCC
21670 builtin and then its argument prototype would still apply. */
21674 char __res_send ();
21678 return __res_send ();
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21690 $as_echo "$ac_try_echo") >&5
21691 (eval "$ac_link") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest$ac_exeext && {
21701 test "$cross_compiling" = yes ||
21702 $as_test_x conftest$ac_exeext
21704 ac_cv_lib_resolv___res_send=yes
21706 $as_echo "$as_me: failed program was
:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_cv_lib_resolv___res_send=no
21712 rm -rf conftest.dSYM
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21717 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21718 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21719 if test "x
$ac_cv_lib_resolv___res_send" = x""yes; then
21729 if test "$resolv" = yes ; then
21734 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21735 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21736 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21737 $as_echo_n "(cached
) " >&6
21739 cat >conftest.$ac_ext <<_ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21747 #define hes_getmailhost innocuous_hes_getmailhost
21749 /* System header to define __stub macros and hopefully few prototypes,
21750 which can conflict with char hes_getmailhost (); below.
21751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21752 <limits.h> exists even on freestanding compilers. */
21755 # include <limits.h>
21757 # include <assert.h>
21760 #undef hes_getmailhost
21762 /* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21768 char hes_getmailhost ();
21769 /* The GNU C library defines this for functions which it implements
21770 to always fail with ENOSYS. Some functions are actually named
21771 something starting with __ and the normal name is an alias. */
21772 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21779 return hes_getmailhost ();
21784 rm -f conftest.$ac_objext conftest$ac_exeext
21785 if { (ac_try="$ac_link"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21790 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21791 $as_echo "$ac_try_echo") >&5
21792 (eval "$ac_link") 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21798 (exit $ac_status); } && {
21799 test -z "$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 } && test -s conftest$ac_exeext && {
21802 test "$cross_compiling" = yes ||
21803 $as_test_x conftest$ac_exeext
21805 ac_cv_func_hes_getmailhost=yes
21807 $as_echo "$as_me: failed program was
:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_cv_func_hes_getmailhost=no
21813 rm -rf conftest.dSYM
21814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21815 conftest$ac_exeext conftest.$ac_ext
21817 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21818 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21819 if test "x
$ac_cv_func_hes_getmailhost" = x""yes; then
21822 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21823 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21824 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21825 $as_echo_n "(cached
) " >&6
21827 ac_check_lib_save_LIBS=$LIBS
21828 LIBS="-lhesiod $RESOLVLIB $LIBS"
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 /* Override any GCC internal prototype to avoid an error.
21837 Use char because int might match the return type of a GCC
21838 builtin and then its argument prototype would still apply. */
21842 char hes_getmailhost ();
21846 return hes_getmailhost ();
21851 rm -f conftest.$ac_objext conftest$ac_exeext
21852 if { (ac_try="$ac_link"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21857 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21858 $as_echo "$ac_try_echo") >&5
21859 (eval "$ac_link") 2>conftest.er1
21861 grep -v '^ *+' conftest.er1 >conftest.err
21863 cat conftest.err >&5
21864 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21865 (exit $ac_status); } && {
21866 test -z "$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21868 } && test -s conftest$ac_exeext && {
21869 test "$cross_compiling" = yes ||
21870 $as_test_x conftest$ac_exeext
21872 ac_cv_lib_hesiod_hes_getmailhost=yes
21874 $as_echo "$as_me: failed program was
:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_cv_lib_hesiod_hes_getmailhost=no
21880 rm -rf conftest.dSYM
21881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21882 conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21885 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21886 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21887 if test "x
$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
21896 if test x"$hesiod" = xyes; then
21898 cat >>confdefs.h <<\_ACEOF
21899 #define HAVE_LIBHESIOD 1
21907 # Do we need libresolv (due to res_init or Hesiod)?
21908 if test "$resolv" = yes ; then
21910 cat >>confdefs.h <<\_ACEOF
21911 #define HAVE_LIBRESOLV 1
21920 # These tell us which Kerberos-related libraries to use.
21927 if test "${with_kerberos}" != no; then
21928 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21929 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21930 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21931 $as_echo_n "(cached
) " >&6
21933 ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-lcom_err $LIBS"
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21942 /* Override any GCC internal prototype to avoid an error.
21943 Use char because int might match the return type of a GCC
21944 builtin and then its argument prototype would still apply. */
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21964 $as_echo "$ac_try_echo") >&5
21965 (eval "$ac_link") 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest$ac_exeext && {
21975 test "$cross_compiling" = yes ||
21976 $as_test_x conftest$ac_exeext
21978 ac_cv_lib_com_err_com_err=yes
21980 $as_echo "$as_me: failed program was
:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_cv_lib_com_err_com_err=no
21986 rm -rf conftest.dSYM
21987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21988 conftest$ac_exeext conftest.$ac_ext
21989 LIBS=$ac_check_lib_save_LIBS
21991 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21992 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21993 if test "x
$ac_cv_lib_com_err_com_err" = x""yes; then
21999 if test $have_com_err = yes; then
22000 COM_ERRLIB=-lcom_err
22001 LIBS="$COM_ERRLIB $LIBS"
22003 cat >>confdefs.h <<\_ACEOF
22004 #define HAVE_LIBCOM_ERR 1
22008 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22009 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22010 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22011 $as_echo_n "(cached
) " >&6
22013 ac_check_lib_save_LIBS=$LIBS
22014 LIBS="-lcrypto $LIBS"
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 /* Override any GCC internal prototype to avoid an error.
22023 Use char because int might match the return type of a GCC
22024 builtin and then its argument prototype would still apply. */
22028 char mit_des_cbc_encrypt ();
22032 return mit_des_cbc_encrypt ();
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (ac_try="$ac_link"
22039 case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22043 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22044 $as_echo "$ac_try_echo") >&5
22045 (eval "$ac_link") 2>conftest.er1
22047 grep -v '^ *+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest$ac_exeext && {
22055 test "$cross_compiling" = yes ||
22056 $as_test_x conftest$ac_exeext
22058 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22060 $as_echo "$as_me: failed program was
:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22066 rm -rf conftest.dSYM
22067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22068 conftest$ac_exeext conftest.$ac_ext
22069 LIBS=$ac_check_lib_save_LIBS
22071 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22072 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22073 if test "x
$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22079 if test $have_crypto = yes; then
22081 LIBS="$CRYPTOLIB $LIBS"
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_LIBCRYPTO 1
22088 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22089 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22090 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22091 $as_echo_n "(cached
) " >&6
22093 ac_check_lib_save_LIBS=$LIBS
22094 LIBS="-lk5crypto $LIBS"
22095 cat >conftest.$ac_ext <<_ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22102 /* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
22108 char mit_des_cbc_encrypt ();
22112 return mit_des_cbc_encrypt ();
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22124 $as_echo "$ac_try_echo") >&5
22125 (eval "$ac_link") 2>conftest.er1
22127 grep -v '^ *+' conftest.er1 >conftest.err
22129 cat conftest.err >&5
22130 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22131 (exit $ac_status); } && {
22132 test -z "$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 } && test -s conftest$ac_exeext && {
22135 test "$cross_compiling" = yes ||
22136 $as_test_x conftest$ac_exeext
22138 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22140 $as_echo "$as_me: failed program was
:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22146 rm -rf conftest.dSYM
22147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22148 conftest$ac_exeext conftest.$ac_ext
22149 LIBS=$ac_check_lib_save_LIBS
22151 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22152 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22153 if test "x
$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22159 if test $have_k5crypto = yes; then
22160 CRYPTOLIB=-lk5crypto
22161 LIBS="$CRYPTOLIB $LIBS"
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_LIBK5CRYPTO 1
22168 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22169 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22170 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22171 $as_echo_n "(cached
) " >&6
22173 ac_check_lib_save_LIBS=$LIBS
22174 LIBS="-lkrb5 $LIBS"
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22182 /* Override any GCC internal prototype to avoid an error.
22183 Use char because int might match the return type of a GCC
22184 builtin and then its argument prototype would still apply. */
22188 char krb5_init_context ();
22192 return krb5_init_context ();
22197 rm -f conftest.$ac_objext conftest$ac_exeext
22198 if { (ac_try="$ac_link"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22204 $as_echo "$ac_try_echo") >&5
22205 (eval "$ac_link") 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest$ac_exeext && {
22215 test "$cross_compiling" = yes ||
22216 $as_test_x conftest$ac_exeext
22218 ac_cv_lib_krb5_krb5_init_context=yes
22220 $as_echo "$as_me: failed program was
:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_cv_lib_krb5_krb5_init_context=no
22226 rm -rf conftest.dSYM
22227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22228 conftest$ac_exeext conftest.$ac_ext
22229 LIBS=$ac_check_lib_save_LIBS
22231 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22232 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22233 if test "x
$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22239 if test $have_krb5=yes; then
22241 LIBS="$KRB5LIB $LIBS"
22243 cat >>confdefs.h <<\_ACEOF
22244 #define HAVE_LIBKRB5 1
22248 if test "${with_kerberos5}" = no; then
22249 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22250 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22251 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22252 $as_echo_n "(cached
) " >&6
22254 ac_check_lib_save_LIBS=$LIBS
22255 LIBS="-ldes425 $LIBS"
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22263 /* Override any GCC internal prototype to avoid an error.
22264 Use char because int might match the return type of a GCC
22265 builtin and then its argument prototype would still apply. */
22269 char des_cbc_encrypt ();
22273 return des_cbc_encrypt ();
22278 rm -f conftest.$ac_objext conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22285 $as_echo "$ac_try_echo") >&5
22286 (eval "$ac_link") 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest$ac_exeext && {
22296 test "$cross_compiling" = yes ||
22297 $as_test_x conftest$ac_exeext
22299 ac_cv_lib_des425_des_cbc_encrypt=yes
22301 $as_echo "$as_me: failed program was
:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ac_cv_lib_des425_des_cbc_encrypt=no
22307 rm -rf conftest.dSYM
22308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22309 conftest$ac_exeext conftest.$ac_ext
22310 LIBS=$ac_check_lib_save_LIBS
22312 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22313 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22314 if test "x
$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22320 if test $have_des425 = yes; then
22322 LIBS="$DESLIB $LIBS"
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_LIBDES425 1
22329 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22330 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22331 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22332 $as_echo_n "(cached
) " >&6
22334 ac_check_lib_save_LIBS=$LIBS
22336 cat >conftest.$ac_ext <<_ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22343 /* Override any GCC internal prototype to avoid an error.
22344 Use char because int might match the return type of a GCC
22345 builtin and then its argument prototype would still apply. */
22349 char des_cbc_encrypt ();
22353 return des_cbc_encrypt ();
22358 rm -f conftest.$ac_objext conftest$ac_exeext
22359 if { (ac_try="$ac_link"
22360 case "(($ac_try" in
22361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362 *) ac_try_echo=$ac_try;;
22364 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22365 $as_echo "$ac_try_echo") >&5
22366 (eval "$ac_link") 2>conftest.er1
22368 grep -v '^ *+' conftest.er1 >conftest.err
22370 cat conftest.err >&5
22371 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22372 (exit $ac_status); } && {
22373 test -z "$ac_c_werror_flag" ||
22374 test ! -s conftest.err
22375 } && test -s conftest$ac_exeext && {
22376 test "$cross_compiling" = yes ||
22377 $as_test_x conftest$ac_exeext
22379 ac_cv_lib_des_des_cbc_encrypt=yes
22381 $as_echo "$as_me: failed program was
:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_cv_lib_des_des_cbc_encrypt=no
22387 rm -rf conftest.dSYM
22388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22389 conftest$ac_exeext conftest.$ac_ext
22390 LIBS=$ac_check_lib_save_LIBS
22392 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22393 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22394 if test "x
$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
22400 if test $have_des = yes; then
22402 LIBS="$DESLIB $LIBS"
22404 cat >>confdefs.h <<\_ACEOF
22405 #define HAVE_LIBDES 1
22410 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22411 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22412 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22413 $as_echo_n "(cached
) " >&6
22415 ac_check_lib_save_LIBS=$LIBS
22416 LIBS="-lkrb4 $LIBS"
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22424 /* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22430 char krb_get_cred ();
22434 return krb_get_cred ();
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (ac_try="$ac_link"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22445 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22446 $as_echo "$ac_try_echo") >&5
22447 (eval "$ac_link") 2>conftest.er1
22449 grep -v '^ *+' conftest.er1 >conftest.err
22451 cat conftest.err >&5
22452 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest$ac_exeext && {
22457 test "$cross_compiling" = yes ||
22458 $as_test_x conftest$ac_exeext
22460 ac_cv_lib_krb4_krb_get_cred=yes
22462 $as_echo "$as_me: failed program was
:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ac_cv_lib_krb4_krb_get_cred=no
22468 rm -rf conftest.dSYM
22469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470 conftest$ac_exeext conftest.$ac_ext
22471 LIBS=$ac_check_lib_save_LIBS
22473 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22474 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22475 if test "x
$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
22481 if test $have_krb4 = yes; then
22483 LIBS="$KRB4LIB $LIBS"
22485 cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_LIBKRB4 1
22490 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22491 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22492 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22493 $as_echo_n "(cached
) " >&6
22495 ac_check_lib_save_LIBS=$LIBS
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22504 /* Override any GCC internal prototype to avoid an error.
22505 Use char because int might match the return type of a GCC
22506 builtin and then its argument prototype would still apply. */
22510 char krb_get_cred ();
22514 return krb_get_cred ();
22519 rm -f conftest.$ac_objext conftest$ac_exeext
22520 if { (ac_try="$ac_link"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22526 $as_echo "$ac_try_echo") >&5
22527 (eval "$ac_link") 2>conftest.er1
22529 grep -v '^ *+' conftest.er1 >conftest.err
22531 cat conftest.err >&5
22532 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22533 (exit $ac_status); } && {
22534 test -z "$ac_c_werror_flag" ||
22535 test ! -s conftest.err
22536 } && test -s conftest$ac_exeext && {
22537 test "$cross_compiling" = yes ||
22538 $as_test_x conftest$ac_exeext
22540 ac_cv_lib_krb_krb_get_cred=yes
22542 $as_echo "$as_me: failed program was
:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 ac_cv_lib_krb_krb_get_cred=no
22548 rm -rf conftest.dSYM
22549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22550 conftest$ac_exeext conftest.$ac_ext
22551 LIBS=$ac_check_lib_save_LIBS
22553 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22554 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22555 if test "x
$ac_cv_lib_krb_krb_get_cred" = x""yes; then
22561 if test $have_krb = yes; then
22563 LIBS="$KRB4LIB $LIBS"
22565 cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_LIBKRB 1
22573 if test "${with_kerberos5}" != no; then
22575 for ac_header in krb5.h
22577 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22578 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
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 ac_res=`eval 'as_val=${'$as_ac_Header'}
22585 $as_echo "$as_val"'`
22586 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22587 $as_echo "$ac_res" >&6; }
22589 # Is the header compilable?
22590 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22591 $as_echo_n "checking
$ac_header usability...
" >&6; }
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 $ac_includes_default
22599 #include <$ac_header>
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22607 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22608 $as_echo "$ac_try_echo") >&5
22609 (eval "$ac_compile") 2>conftest.er1
22611 grep -v '^ *+' conftest.er1 >conftest.err
22613 cat conftest.err >&5
22614 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22615 (exit $ac_status); } && {
22616 test -z "$ac_c_werror_flag" ||
22617 test ! -s conftest.err
22618 } && test -s conftest.$ac_objext; then
22619 ac_header_compiler=yes
22621 $as_echo "$as_me: failed program was
:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 ac_header_compiler=no
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22629 $as_echo "$ac_header_compiler" >&6; }
22631 # Is the header present?
22632 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22633 $as_echo_n "checking
$ac_header presence...
" >&6; }
22634 cat >conftest.$ac_ext <<_ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22640 #include <$ac_header>
22642 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22647 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22648 $as_echo "$ac_try_echo") >&5
22649 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22655 (exit $ac_status); } >/dev/null && {
22656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22659 ac_header_preproc=yes
22661 $as_echo "$as_me: failed program was
:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22664 ac_header_preproc=no
22667 rm -f conftest.err conftest.$ac_ext
22668 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22669 $as_echo "$ac_header_preproc" >&6; }
22671 # So? What about this header?
22672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22674 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22675 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22678 ac_header_preproc=yes
22681 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22682 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22683 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22684 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22685 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22686 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22687 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22688 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22689 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22691 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22692 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22696 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22697 $as_echo_n "checking
for $ac_header...
" >&6; }
22698 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22699 $as_echo_n "(cached
) " >&6
22701 eval "$as_ac_Header=\
$ac_header_preproc"
22703 ac_res=`eval 'as_val=${'$as_ac_Header'}
22704 $as_echo "$as_val"'`
22705 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22706 $as_echo "$ac_res" >&6; }
22709 as_val=`eval 'as_val=${'$as_ac_Header'}
22710 $as_echo "$as_val"'`
22711 if test "x
$as_val" = x""yes; then
22712 cat >>confdefs.h <<_ACEOF
22713 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22715 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22716 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22717 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22718 $as_echo_n "(cached
) " >&6
22720 cat >conftest.$ac_ext <<_ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22731 static krb5_error ac_aggr;
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22744 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22745 $as_echo "$ac_try_echo") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_member_krb5_error_text=yes
22758 $as_echo "$as_me: failed program was
:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 cat >conftest.$ac_ext <<_ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22772 static krb5_error ac_aggr;
22773 if (sizeof ac_aggr.text)
22779 rm -f conftest.$ac_objext
22780 if { (ac_try="$ac_compile"
22781 case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22785 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22786 $as_echo "$ac_try_echo") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22797 ac_cv_member_krb5_error_text=yes
22799 $as_echo "$as_me: failed program was
:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 ac_cv_member_krb5_error_text=no
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22811 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22812 if test "x
$ac_cv_member_krb5_error_text" = x""yes; then
22814 cat >>confdefs.h <<_ACEOF
22815 #define HAVE_KRB5_ERROR_TEXT 1
22820 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22821 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22822 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22823 $as_echo_n "(cached
) " >&6
22825 cat >conftest.$ac_ext <<_ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22836 static krb5_error ac_aggr;
22837 if (ac_aggr.e_text)
22843 rm -f conftest.$ac_objext
22844 if { (ac_try="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22850 $as_echo "$ac_try_echo") >&5
22851 (eval "$ac_compile") 2>conftest.er1
22853 grep -v '^ *+' conftest.er1 >conftest.err
22855 cat conftest.err >&5
22856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22857 (exit $ac_status); } && {
22858 test -z "$ac_c_werror_flag" ||
22859 test ! -s conftest.err
22860 } && test -s conftest.$ac_objext; then
22861 ac_cv_member_krb5_error_e_text=yes
22863 $as_echo "$as_me: failed program was
:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 cat >conftest.$ac_ext <<_ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22877 static krb5_error ac_aggr;
22878 if (sizeof ac_aggr.e_text)
22884 rm -f conftest.$ac_objext
22885 if { (ac_try="$ac_compile"
22886 case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22890 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22891 $as_echo "$ac_try_echo") >&5
22892 (eval "$ac_compile") 2>conftest.er1
22894 grep -v '^ *+' conftest.er1 >conftest.err
22896 cat conftest.err >&5
22897 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22898 (exit $ac_status); } && {
22899 test -z "$ac_c_werror_flag" ||
22900 test ! -s conftest.err
22901 } && test -s conftest.$ac_objext; then
22902 ac_cv_member_krb5_error_e_text=yes
22904 $as_echo "$as_me: failed program was
:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22907 ac_cv_member_krb5_error_e_text=no
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22916 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22917 if test "x
$ac_cv_member_krb5_error_e_text" = x""yes; then
22919 cat >>confdefs.h <<_ACEOF
22920 #define HAVE_KRB5_ERROR_E_TEXT 1
22932 for ac_header in des.h
22934 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22936 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22937 $as_echo_n "checking
for $ac_header...
" >&6; }
22938 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22939 $as_echo_n "(cached
) " >&6
22941 ac_res=`eval 'as_val=${'$as_ac_Header'}
22942 $as_echo "$as_val"'`
22943 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22944 $as_echo "$ac_res" >&6; }
22946 # Is the header compilable?
22947 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22948 $as_echo_n "checking
$ac_header usability...
" >&6; }
22949 cat >conftest.$ac_ext <<_ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 $ac_includes_default
22956 #include <$ac_header>
22958 rm -f conftest.$ac_objext
22959 if { (ac_try="$ac_compile"
22960 case "(($ac_try" in
22961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962 *) ac_try_echo=$ac_try;;
22964 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22965 $as_echo "$ac_try_echo") >&5
22966 (eval "$ac_compile") 2>conftest.er1
22968 grep -v '^ *+' conftest.er1 >conftest.err
22970 cat conftest.err >&5
22971 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22972 (exit $ac_status); } && {
22973 test -z "$ac_c_werror_flag" ||
22974 test ! -s conftest.err
22975 } && test -s conftest.$ac_objext; then
22976 ac_header_compiler=yes
22978 $as_echo "$as_me: failed program was
:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 ac_header_compiler=no
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22986 $as_echo "$ac_header_compiler" >&6; }
22988 # Is the header present?
22989 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22990 $as_echo_n "checking
$ac_header presence...
" >&6; }
22991 cat >conftest.$ac_ext <<_ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #include <$ac_header>
22999 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23005 $as_echo "$ac_try_echo") >&5
23006 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23008 grep -v '^ *+' conftest.er1 >conftest.err
23010 cat conftest.err >&5
23011 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23012 (exit $ac_status); } >/dev/null && {
23013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23016 ac_header_preproc=yes
23018 $as_echo "$as_me: failed program was
:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 ac_header_preproc=no
23024 rm -f conftest.err conftest.$ac_ext
23025 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23026 $as_echo "$ac_header_preproc" >&6; }
23028 # So? What about this header?
23029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23031 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23032 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23033 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23034 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23035 ac_header_preproc=yes
23038 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23039 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23040 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23041 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23042 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23043 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23044 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23045 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23046 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23047 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23048 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23049 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23053 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23054 $as_echo_n "checking
for $ac_header...
" >&6; }
23055 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23056 $as_echo_n "(cached
) " >&6
23058 eval "$as_ac_Header=\
$ac_header_preproc"
23060 ac_res=`eval 'as_val=${'$as_ac_Header'}
23061 $as_echo "$as_val"'`
23062 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23063 $as_echo "$ac_res" >&6; }
23066 as_val=`eval 'as_val=${'$as_ac_Header'}
23067 $as_echo "$as_val"'`
23068 if test "x
$as_val" = x""yes; then
23069 cat >>confdefs.h <<_ACEOF
23070 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23075 for ac_header in kerberosIV/des.h
23077 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23078 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23079 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23080 $as_echo_n "checking
for $ac_header...
" >&6; }
23081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23082 $as_echo_n "(cached
) " >&6
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; }
23089 # Is the header compilable?
23090 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23091 $as_echo_n "checking
$ac_header usability...
" >&6; }
23092 cat >conftest.$ac_ext <<_ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23098 $ac_includes_default
23099 #include <$ac_header>
23101 rm -f conftest.$ac_objext
23102 if { (ac_try="$ac_compile"
23103 case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23107 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23108 $as_echo "$ac_try_echo") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 ac_header_compiler=yes
23121 $as_echo "$as_me: failed program was
:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23124 ac_header_compiler=no
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23129 $as_echo "$ac_header_compiler" >&6; }
23131 # Is the header present?
23132 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23133 $as_echo_n "checking
$ac_header presence...
" >&6; }
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 #include <$ac_header>
23142 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23148 $as_echo "$ac_try_echo") >&5
23149 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23155 (exit $ac_status); } >/dev/null && {
23156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23157 test ! -s conftest.err
23159 ac_header_preproc=yes
23161 $as_echo "$as_me: failed program was
:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23164 ac_header_preproc=no
23167 rm -f conftest.err conftest.$ac_ext
23168 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23169 $as_echo "$ac_header_preproc" >&6; }
23171 # So? What about this header?
23172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23174 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23175 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23178 ac_header_preproc=yes
23181 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23182 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23183 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23184 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23185 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23186 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23187 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23188 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23189 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23191 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23192 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23196 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23197 $as_echo_n "checking
for $ac_header...
" >&6; }
23198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23199 $as_echo_n "(cached
) " >&6
23201 eval "$as_ac_Header=\
$ac_header_preproc"
23203 ac_res=`eval 'as_val=${'$as_ac_Header'}
23204 $as_echo "$as_val"'`
23205 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23206 $as_echo "$ac_res" >&6; }
23209 as_val=`eval 'as_val=${'$as_ac_Header'}
23210 $as_echo "$as_val"'`
23211 if test "x
$as_val" = x""yes; then
23212 cat >>confdefs.h <<_ACEOF
23213 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23218 for ac_header in kerberos/des.h
23220 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23221 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23222 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23223 $as_echo_n "checking
for $ac_header...
" >&6; }
23224 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23225 $as_echo_n "(cached
) " >&6
23227 ac_res=`eval 'as_val=${'$as_ac_Header'}
23228 $as_echo "$as_val"'`
23229 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23230 $as_echo "$ac_res" >&6; }
23232 # Is the header compilable?
23233 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23234 $as_echo_n "checking
$ac_header usability...
" >&6; }
23235 cat >conftest.$ac_ext <<_ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 $ac_includes_default
23242 #include <$ac_header>
23244 rm -f conftest.$ac_objext
23245 if { (ac_try="$ac_compile"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23250 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23251 $as_echo "$ac_try_echo") >&5
23252 (eval "$ac_compile") 2>conftest.er1
23254 grep -v '^ *+' conftest.er1 >conftest.err
23256 cat conftest.err >&5
23257 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23258 (exit $ac_status); } && {
23259 test -z "$ac_c_werror_flag" ||
23260 test ! -s conftest.err
23261 } && test -s conftest.$ac_objext; then
23262 ac_header_compiler=yes
23264 $as_echo "$as_me: failed program was
:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ac_header_compiler=no
23270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23272 $as_echo "$ac_header_compiler" >&6; }
23274 # Is the header present?
23275 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23276 $as_echo_n "checking
$ac_header presence...
" >&6; }
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23283 #include <$ac_header>
23285 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23286 case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23290 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23291 $as_echo "$ac_try_echo") >&5
23292 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23294 grep -v '^ *+' conftest.er1 >conftest.err
23296 cat conftest.err >&5
23297 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23298 (exit $ac_status); } >/dev/null && {
23299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23302 ac_header_preproc=yes
23304 $as_echo "$as_me: failed program was
:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_header_preproc=no
23310 rm -f conftest.err conftest.$ac_ext
23311 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23312 $as_echo "$ac_header_preproc" >&6; }
23314 # So? What about this header?
23315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23317 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23318 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23319 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23321 ac_header_preproc=yes
23324 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23325 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23326 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23327 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23328 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23329 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23330 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23331 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23332 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23334 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23335 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23339 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23340 $as_echo_n "checking
for $ac_header...
" >&6; }
23341 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23342 $as_echo_n "(cached
) " >&6
23344 eval "$as_ac_Header=\
$ac_header_preproc"
23346 ac_res=`eval 'as_val=${'$as_ac_Header'}
23347 $as_echo "$as_val"'`
23348 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23349 $as_echo "$ac_res" >&6; }
23352 as_val=`eval 'as_val=${'$as_ac_Header'}
23353 $as_echo "$as_val"'`
23354 if test "x
$as_val" = x""yes; then
23355 cat >>confdefs.h <<_ACEOF
23356 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23372 for ac_header in krb.h
23374 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23376 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23377 $as_echo_n "checking
for $ac_header...
" >&6; }
23378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23379 $as_echo_n "(cached
) " >&6
23381 ac_res=`eval 'as_val=${'$as_ac_Header'}
23382 $as_echo "$as_val"'`
23383 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23384 $as_echo "$ac_res" >&6; }
23386 # Is the header compilable?
23387 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23388 $as_echo_n "checking
$ac_header usability...
" >&6; }
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 $ac_includes_default
23396 #include <$ac_header>
23398 rm -f conftest.$ac_objext
23399 if { (ac_try="$ac_compile"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23405 $as_echo "$ac_try_echo") >&5
23406 (eval "$ac_compile") 2>conftest.er1
23408 grep -v '^ *+' conftest.er1 >conftest.err
23410 cat conftest.err >&5
23411 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23412 (exit $ac_status); } && {
23413 test -z "$ac_c_werror_flag" ||
23414 test ! -s conftest.err
23415 } && test -s conftest.$ac_objext; then
23416 ac_header_compiler=yes
23418 $as_echo "$as_me: failed program was
:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23421 ac_header_compiler=no
23424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23426 $as_echo "$ac_header_compiler" >&6; }
23428 # Is the header present?
23429 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23430 $as_echo_n "checking
$ac_header presence...
" >&6; }
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 #include <$ac_header>
23439 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23445 $as_echo "$ac_try_echo") >&5
23446 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23452 (exit $ac_status); } >/dev/null && {
23453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23454 test ! -s conftest.err
23456 ac_header_preproc=yes
23458 $as_echo "$as_me: failed program was
:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23461 ac_header_preproc=no
23464 rm -f conftest.err conftest.$ac_ext
23465 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23466 $as_echo "$ac_header_preproc" >&6; }
23468 # So? What about this header?
23469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23471 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23472 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23475 ac_header_preproc=yes
23478 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23479 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23480 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23481 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23482 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23483 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23484 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23485 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23486 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23487 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23489 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23493 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23494 $as_echo_n "checking
for $ac_header...
" >&6; }
23495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23496 $as_echo_n "(cached
) " >&6
23498 eval "$as_ac_Header=\
$ac_header_preproc"
23500 ac_res=`eval 'as_val=${'$as_ac_Header'}
23501 $as_echo "$as_val"'`
23502 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23503 $as_echo "$ac_res" >&6; }
23506 as_val=`eval 'as_val=${'$as_ac_Header'}
23507 $as_echo "$as_val"'`
23508 if test "x
$as_val" = x""yes; then
23509 cat >>confdefs.h <<_ACEOF
23510 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23515 for ac_header in kerberosIV/krb.h
23517 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23519 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23520 $as_echo_n "checking
for $ac_header...
" >&6; }
23521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23522 $as_echo_n "(cached
) " >&6
23524 ac_res=`eval 'as_val=${'$as_ac_Header'}
23525 $as_echo "$as_val"'`
23526 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23527 $as_echo "$ac_res" >&6; }
23529 # Is the header compilable?
23530 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23531 $as_echo_n "checking
$ac_header usability...
" >&6; }
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23538 $ac_includes_default
23539 #include <$ac_header>
23541 rm -f conftest.$ac_objext
23542 if { (ac_try="$ac_compile"
23543 case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23547 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23548 $as_echo "$ac_try_echo") >&5
23549 (eval "$ac_compile") 2>conftest.er1
23551 grep -v '^ *+' conftest.er1 >conftest.err
23553 cat conftest.err >&5
23554 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23555 (exit $ac_status); } && {
23556 test -z "$ac_c_werror_flag" ||
23557 test ! -s conftest.err
23558 } && test -s conftest.$ac_objext; then
23559 ac_header_compiler=yes
23561 $as_echo "$as_me: failed program was
:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_header_compiler=no
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23568 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23569 $as_echo "$ac_header_compiler" >&6; }
23571 # Is the header present?
23572 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23573 $as_echo_n "checking
$ac_header presence...
" >&6; }
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #include <$ac_header>
23582 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23583 case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23587 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23588 $as_echo "$ac_try_echo") >&5
23589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23591 grep -v '^ *+' conftest.er1 >conftest.err
23593 cat conftest.err >&5
23594 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23595 (exit $ac_status); } >/dev/null && {
23596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23597 test ! -s conftest.err
23599 ac_header_preproc=yes
23601 $as_echo "$as_me: failed program was
:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 ac_header_preproc=no
23607 rm -f conftest.err conftest.$ac_ext
23608 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23609 $as_echo "$ac_header_preproc" >&6; }
23611 # So? What about this header?
23612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23614 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23615 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23616 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23618 ac_header_preproc=yes
23621 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23622 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23623 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23624 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23625 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23626 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23628 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23629 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23631 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23632 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23636 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23637 $as_echo_n "checking
for $ac_header...
" >&6; }
23638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23639 $as_echo_n "(cached
) " >&6
23641 eval "$as_ac_Header=\
$ac_header_preproc"
23643 ac_res=`eval 'as_val=${'$as_ac_Header'}
23644 $as_echo "$as_val"'`
23645 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23646 $as_echo "$ac_res" >&6; }
23649 as_val=`eval 'as_val=${'$as_ac_Header'}
23650 $as_echo "$as_val"'`
23651 if test "x
$as_val" = x""yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23658 for ac_header in kerberos/krb.h
23660 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23662 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23663 $as_echo_n "checking
for $ac_header...
" >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached
) " >&6
23667 ac_res=`eval 'as_val=${'$as_ac_Header'}
23668 $as_echo "$as_val"'`
23669 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23670 $as_echo "$ac_res" >&6; }
23672 # Is the header compilable?
23673 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23674 $as_echo_n "checking
$ac_header usability...
" >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 #include <$ac_header>
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_header_compiler=yes
23704 $as_echo "$as_me: failed program was
:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_header_compiler=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23712 $as_echo "$ac_header_compiler" >&6; }
23714 # Is the header present?
23715 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23716 $as_echo_n "checking
$ac_header presence...
" >&6; }
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <$ac_header>
23725 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23726 case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23730 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23731 $as_echo "$ac_try_echo") >&5
23732 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23738 (exit $ac_status); } >/dev/null && {
23739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23742 ac_header_preproc=yes
23744 $as_echo "$as_me: failed program was
:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23747 ac_header_preproc=no
23750 rm -f conftest.err conftest.$ac_ext
23751 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23752 $as_echo "$ac_header_preproc" >&6; }
23754 # So? What about this header?
23755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23757 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23758 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23761 ac_header_preproc=yes
23764 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23765 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23766 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23767 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23768 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23769 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23771 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23775 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23779 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23780 $as_echo_n "checking
for $ac_header...
" >&6; }
23781 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23782 $as_echo_n "(cached
) " >&6
23784 eval "$as_ac_Header=\
$ac_header_preproc"
23786 ac_res=`eval 'as_val=${'$as_ac_Header'}
23787 $as_echo "$as_val"'`
23788 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23789 $as_echo "$ac_res" >&6; }
23792 as_val=`eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'`
23794 if test "x
$as_val" = x""yes; then
23795 cat >>confdefs.h <<_ACEOF
23796 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23813 for ac_header in com_err.h
23815 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23817 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23818 $as_echo_n "checking
for $ac_header...
" >&6; }
23819 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23820 $as_echo_n "(cached
) " >&6
23822 ac_res=`eval 'as_val=${'$as_ac_Header'}
23823 $as_echo "$as_val"'`
23824 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23825 $as_echo "$ac_res" >&6; }
23827 # Is the header compilable?
23828 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23829 $as_echo_n "checking
$ac_header usability...
" >&6; }
23830 cat >conftest.$ac_ext <<_ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h. */
23836 $ac_includes_default
23837 #include <$ac_header>
23839 rm -f conftest.$ac_objext
23840 if { (ac_try="$ac_compile"
23841 case "(($ac_try" in
23842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843 *) ac_try_echo=$ac_try;;
23845 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23846 $as_echo "$ac_try_echo") >&5
23847 (eval "$ac_compile") 2>conftest.er1
23849 grep -v '^ *+' conftest.er1 >conftest.err
23851 cat conftest.err >&5
23852 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23853 (exit $ac_status); } && {
23854 test -z "$ac_c_werror_flag" ||
23855 test ! -s conftest.err
23856 } && test -s conftest.$ac_objext; then
23857 ac_header_compiler=yes
23859 $as_echo "$as_me: failed program was
:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23862 ac_header_compiler=no
23865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23866 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23867 $as_echo "$ac_header_compiler" >&6; }
23869 # Is the header present?
23870 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23871 $as_echo_n "checking
$ac_header presence...
" >&6; }
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #include <$ac_header>
23880 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23885 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23886 $as_echo "$ac_try_echo") >&5
23887 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23889 grep -v '^ *+' conftest.er1 >conftest.err
23891 cat conftest.err >&5
23892 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23893 (exit $ac_status); } >/dev/null && {
23894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23897 ac_header_preproc=yes
23899 $as_echo "$as_me: failed program was
:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23902 ac_header_preproc=no
23905 rm -f conftest.err conftest.$ac_ext
23906 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23907 $as_echo "$ac_header_preproc" >&6; }
23909 # So? What about this header?
23910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23912 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23913 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23914 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23916 ac_header_preproc=yes
23919 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23920 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23921 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23922 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23923 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23924 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23925 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23926 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23927 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23928 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23929 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23930 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23934 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23935 $as_echo_n "checking
for $ac_header...
" >&6; }
23936 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23937 $as_echo_n "(cached
) " >&6
23939 eval "$as_ac_Header=\
$ac_header_preproc"
23941 ac_res=`eval 'as_val=${'$as_ac_Header'}
23942 $as_echo "$as_val"'`
23943 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23944 $as_echo "$ac_res" >&6; }
23947 as_val=`eval 'as_val=${'$as_ac_Header'}
23948 $as_echo "$as_val"'`
23949 if test "x
$as_val" = x""yes; then
23950 cat >>confdefs.h <<_ACEOF
23951 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23966 # Solaris requires -lintl if you want strerror (which calls dgettext)
23967 # to return localized messages.
23969 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23970 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23971 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23972 $as_echo_n "(cached
) " >&6
23974 ac_check_lib_save_LIBS=$LIBS
23975 LIBS="-lintl $LIBS"
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23983 /* Override any GCC internal prototype to avoid an error.
23984 Use char because int might match the return type of a GCC
23985 builtin and then its argument prototype would still apply. */
23993 return dgettext ();
23998 rm -f conftest.$ac_objext conftest$ac_exeext
23999 if { (ac_try="$ac_link"
24000 case "(($ac_try" in
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24004 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24005 $as_echo "$ac_try_echo") >&5
24006 (eval "$ac_link") 2>conftest.er1
24008 grep -v '^ *+' conftest.er1 >conftest.err
24010 cat conftest.err >&5
24011 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24012 (exit $ac_status); } && {
24013 test -z "$ac_c_werror_flag" ||
24014 test ! -s conftest.err
24015 } && test -s conftest$ac_exeext && {
24016 test "$cross_compiling" = yes ||
24017 $as_test_x conftest$ac_exeext
24019 ac_cv_lib_intl_dgettext=yes
24021 $as_echo "$as_me: failed program was
:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24024 ac_cv_lib_intl_dgettext=no
24027 rm -rf conftest.dSYM
24028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24029 conftest$ac_exeext conftest.$ac_ext
24030 LIBS=$ac_check_lib_save_LIBS
24032 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24033 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24034 if test "x
$ac_cv_lib_intl_dgettext" = x""yes; then
24035 cat >>confdefs.h <<_ACEOF
24036 #define HAVE_LIBINTL 1
24039 LIBS="-lintl $LIBS"
24044 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24045 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24046 if test "${emacs_cv_localtime_cache+set}" = set; then
24047 $as_echo_n "(cached
) " >&6
24049 if test x$ac_cv_func_tzset = xyes; then
24050 if test "$cross_compiling" = yes; then
24051 # If we have tzset, assume the worst when cross-compiling.
24052 emacs_cv_localtime_cache=yes
24054 cat >conftest.$ac_ext <<_ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h. */
24061 extern char **environ;
24065 for (to = from = environ; (*to = *from); from++)
24066 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24069 char TZ_GMT0[] = "TZ
=GMT0
";
24070 char TZ_PST8[] = "TZ
=PST8
";
24073 time_t now = time ((time_t *) 0);
24074 int hour_GMT0, hour_unset;
24075 if (putenv (TZ_GMT0) != 0)
24077 hour_GMT0 = localtime (&now)->tm_hour;
24079 hour_unset = localtime (&now)->tm_hour;
24080 if (putenv (TZ_PST8) != 0)
24082 if (localtime (&now)->tm_hour == hour_GMT0)
24085 if (localtime (&now)->tm_hour != hour_unset)
24090 rm -f conftest$ac_exeext
24091 if { (ac_try="$ac_link"
24092 case "(($ac_try" in
24093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24097 $as_echo "$ac_try_echo") >&5
24098 (eval "$ac_link") 2>&5
24100 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24102 { (case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24106 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24107 $as_echo "$ac_try_echo") >&5
24108 (eval "$ac_try") 2>&5
24110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 emacs_cv_localtime_cache=no
24114 $as_echo "$as_me: program exited with status
$ac_status" >&5
24115 $as_echo "$as_me: failed program was
:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ( exit $ac_status )
24119 emacs_cv_localtime_cache=yes
24121 rm -rf conftest.dSYM
24122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24127 # If we lack tzset, report that localtime does not cache TZ,
24128 # since we can't invalidate the cache if we don't have tzset.
24129 emacs_cv_localtime_cache=no
24132 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24133 $as_echo "$emacs_cv_localtime_cache" >&6; }
24134 if test $emacs_cv_localtime_cache = yes; then
24136 cat >>confdefs.h <<\_ACEOF
24137 #define LOCALTIME_CACHE 1
24142 if test "x
$HAVE_TIMEVAL" = xyes; then
24144 for ac_func in gettimeofday
24146 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24147 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24148 $as_echo_n "checking
for $ac_func...
" >&6; }
24149 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24150 $as_echo_n "(cached
) " >&6
24152 cat >conftest.$ac_ext <<_ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24160 #define $ac_func innocuous_$ac_func
24162 /* System header to define __stub macros and hopefully few prototypes,
24163 which can conflict with char $ac_func (); below.
24164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24165 <limits.h> exists even on freestanding compilers. */
24168 # include <limits.h>
24170 # include <assert.h>
24175 /* Override any GCC internal prototype to avoid an error.
24176 Use char because int might match the return type of a GCC
24177 builtin and then its argument prototype would still apply. */
24182 /* The GNU C library defines this for functions which it implements
24183 to always fail with ENOSYS. Some functions are actually named
24184 something starting with __ and the normal name is an alias. */
24185 #if defined __stub_$ac_func || defined __stub___$ac_func
24192 return $ac_func ();
24197 rm -f conftest.$ac_objext conftest$ac_exeext
24198 if { (ac_try="$ac_link"
24199 case "(($ac_try" in
24200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201 *) ac_try_echo=$ac_try;;
24203 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24204 $as_echo "$ac_try_echo") >&5
24205 (eval "$ac_link") 2>conftest.er1
24207 grep -v '^ *+' conftest.er1 >conftest.err
24209 cat conftest.err >&5
24210 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest$ac_exeext && {
24215 test "$cross_compiling" = yes ||
24216 $as_test_x conftest$ac_exeext
24218 eval "$as_ac_var=yes"
24220 $as_echo "$as_me: failed program was
:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24223 eval "$as_ac_var=no
"
24226 rm -rf conftest.dSYM
24227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24228 conftest$ac_exeext conftest.$ac_ext
24230 ac_res=`eval 'as_val=${'$as_ac_var'}
24231 $as_echo "$as_val"'`
24232 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24233 $as_echo "$ac_res" >&6; }
24234 as_val=`eval 'as_val=${'$as_ac_var'}
24235 $as_echo "$as_val"'`
24236 if test "x
$as_val" = x""yes; then
24237 cat >>confdefs.h <<_ACEOF
24238 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24244 if test $ac_cv_func_gettimeofday = yes; then
24245 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24246 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24247 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24248 $as_echo_n "(cached
) " >&6
24250 cat >conftest.$ac_ext <<_ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h. */
24257 #ifdef TIME_WITH_SYS_TIME
24258 #include <sys/time.h>
24261 #ifdef HAVE_SYS_TIME_H
24262 #include <sys/time.h>
24270 struct timeval time;
24271 gettimeofday (&time, 0);
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24283 $as_echo "$ac_try_echo") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24286 grep -v '^ *+' conftest.er1 >conftest.err
24288 cat conftest.err >&5
24289 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24294 emacs_cv_gettimeofday_two_arguments=yes
24296 $as_echo "$as_me: failed program was
:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 emacs_cv_gettimeofday_two_arguments=no
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24305 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24306 if test $emacs_cv_gettimeofday_two_arguments = no; then
24308 cat >>confdefs.h <<\_ACEOF
24309 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24317 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24318 $as_echo_n "checking
for socket...
" >&6; }
24319 if test "${ac_cv_func_socket+set}" = set; then
24320 $as_echo_n "(cached
) " >&6
24322 cat >conftest.$ac_ext <<_ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24328 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24330 #define socket innocuous_socket
24332 /* System header to define __stub macros and hopefully few prototypes,
24333 which can conflict with char socket (); below.
24334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24335 <limits.h> exists even on freestanding compilers. */
24338 # include <limits.h>
24340 # include <assert.h>
24345 /* Override any GCC internal prototype to avoid an error.
24346 Use char because int might match the return type of a GCC
24347 builtin and then its argument prototype would still apply. */
24352 /* The GNU C library defines this for functions which it implements
24353 to always fail with ENOSYS. Some functions are actually named
24354 something starting with __ and the normal name is an alias. */
24355 #if defined __stub_socket || defined __stub___socket
24367 rm -f conftest.$ac_objext conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24373 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375 (eval "$ac_link") 2>conftest.er1
24377 grep -v '^ *+' conftest.er1 >conftest.err
24379 cat conftest.err >&5
24380 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest$ac_exeext && {
24385 test "$cross_compiling" = yes ||
24386 $as_test_x conftest$ac_exeext
24388 ac_cv_func_socket=yes
24390 $as_echo "$as_me: failed program was
:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24393 ac_cv_func_socket=no
24396 rm -rf conftest.dSYM
24397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24398 conftest$ac_exeext conftest.$ac_ext
24400 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24401 $as_echo "$ac_cv_func_socket" >&6; }
24402 if test "x
$ac_cv_func_socket" = x""yes; then
24408 if test $ok_so_far = yes; then
24409 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24410 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24411 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24412 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24413 $as_echo_n "(cached
) " >&6
24415 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24416 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24418 # Is the header compilable?
24419 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24420 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 #include <netinet/in.h>
24430 rm -f conftest.$ac_objext
24431 if { (ac_try="$ac_compile"
24432 case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24436 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24437 $as_echo "$ac_try_echo") >&5
24438 (eval "$ac_compile") 2>conftest.er1
24440 grep -v '^ *+' conftest.er1 >conftest.err
24442 cat conftest.err >&5
24443 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24444 (exit $ac_status); } && {
24445 test -z "$ac_c_werror_flag" ||
24446 test ! -s conftest.err
24447 } && test -s conftest.$ac_objext; then
24448 ac_header_compiler=yes
24450 $as_echo "$as_me: failed program was
:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 ac_header_compiler=no
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24458 $as_echo "$ac_header_compiler" >&6; }
24460 # Is the header present?
24461 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24462 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 #include <netinet/in.h>
24471 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24472 case "(($ac_try" in
24473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474 *) ac_try_echo=$ac_try;;
24476 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24477 $as_echo "$ac_try_echo") >&5
24478 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24484 (exit $ac_status); } >/dev/null && {
24485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24488 ac_header_preproc=yes
24490 $as_echo "$as_me: failed program was
:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_header_preproc=no
24496 rm -f conftest.err conftest.$ac_ext
24497 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24498 $as_echo "$ac_header_preproc" >&6; }
24500 # So? What about this header?
24501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24503 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24504 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24505 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24506 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24507 ac_header_preproc=yes
24510 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24511 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24512 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24513 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24514 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24515 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24516 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24517 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24518 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24519 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24520 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24521 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24525 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24526 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24527 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24528 $as_echo_n "(cached
) " >&6
24530 ac_cv_header_netinet_in_h=$ac_header_preproc
24532 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24533 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24536 if test "x
$ac_cv_header_netinet_in_h" = x""yes; then
24544 if test $ok_so_far = yes; then
24545 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24546 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24547 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24548 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24549 $as_echo_n "(cached
) " >&6
24551 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24552 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24554 # Is the header compilable?
24555 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24556 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 $ac_includes_default
24564 #include <arpa/inet.h>
24566 rm -f conftest.$ac_objext
24567 if { (ac_try="$ac_compile"
24568 case "(($ac_try" in
24569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570 *) ac_try_echo=$ac_try;;
24572 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24573 $as_echo "$ac_try_echo") >&5
24574 (eval "$ac_compile") 2>conftest.er1
24576 grep -v '^ *+' conftest.er1 >conftest.err
24578 cat conftest.err >&5
24579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24580 (exit $ac_status); } && {
24581 test -z "$ac_c_werror_flag" ||
24582 test ! -s conftest.err
24583 } && test -s conftest.$ac_objext; then
24584 ac_header_compiler=yes
24586 $as_echo "$as_me: failed program was
:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ac_header_compiler=no
24592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24593 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24594 $as_echo "$ac_header_compiler" >&6; }
24596 # Is the header present?
24597 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24598 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24599 cat >conftest.$ac_ext <<_ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24605 #include <arpa/inet.h>
24607 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24608 case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24612 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24613 $as_echo "$ac_try_echo") >&5
24614 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24616 grep -v '^ *+' conftest.er1 >conftest.err
24618 cat conftest.err >&5
24619 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24620 (exit $ac_status); } >/dev/null && {
24621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24622 test ! -s conftest.err
24624 ac_header_preproc=yes
24626 $as_echo "$as_me: failed program was
:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24629 ac_header_preproc=no
24632 rm -f conftest.err conftest.$ac_ext
24633 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24634 $as_echo "$ac_header_preproc" >&6; }
24636 # So? What about this header?
24637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24639 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24640 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24641 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24642 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24643 ac_header_preproc=yes
24646 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24647 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24648 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24649 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24650 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24651 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24652 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24653 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24654 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24655 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24656 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24657 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24661 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24662 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24663 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24664 $as_echo_n "(cached
) " >&6
24666 ac_cv_header_arpa_inet_h=$ac_header_preproc
24668 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24669 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24672 if test "x
$ac_cv_header_arpa_inet_h" = x""yes; then
24680 if test $ok_so_far = yes; then
24682 cat >>confdefs.h <<\_ACEOF
24683 #define HAVE_INET_SOCKETS 1
24689 for ac_header in sys/ioctl.h
24691 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24692 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24693 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24694 $as_echo_n "checking
for $ac_header...
" >&6; }
24695 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24696 $as_echo_n "(cached
) " >&6
24698 ac_res=`eval 'as_val=${'$as_ac_Header'}
24699 $as_echo "$as_val"'`
24700 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24701 $as_echo "$ac_res" >&6; }
24703 # Is the header compilable?
24704 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24705 $as_echo_n "checking
$ac_header usability...
" >&6; }
24706 cat >conftest.$ac_ext <<_ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 $ac_includes_default
24713 #include <$ac_header>
24715 rm -f conftest.$ac_objext
24716 if { (ac_try="$ac_compile"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24721 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24722 $as_echo "$ac_try_echo") >&5
24723 (eval "$ac_compile") 2>conftest.er1
24725 grep -v '^ *+' conftest.er1 >conftest.err
24727 cat conftest.err >&5
24728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24729 (exit $ac_status); } && {
24730 test -z "$ac_c_werror_flag" ||
24731 test ! -s conftest.err
24732 } && test -s conftest.$ac_objext; then
24733 ac_header_compiler=yes
24735 $as_echo "$as_me: failed program was
:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ac_header_compiler=no
24741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24742 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24743 $as_echo "$ac_header_compiler" >&6; }
24745 # Is the header present?
24746 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24747 $as_echo_n "checking
$ac_header presence...
" >&6; }
24748 cat >conftest.$ac_ext <<_ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 #include <$ac_header>
24756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24757 case "(($ac_try" in
24758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759 *) ac_try_echo=$ac_try;;
24761 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24762 $as_echo "$ac_try_echo") >&5
24763 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24765 grep -v '^ *+' conftest.er1 >conftest.err
24767 cat conftest.err >&5
24768 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24769 (exit $ac_status); } >/dev/null && {
24770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24773 ac_header_preproc=yes
24775 $as_echo "$as_me: failed program was
:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24778 ac_header_preproc=no
24781 rm -f conftest.err conftest.$ac_ext
24782 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24783 $as_echo "$ac_header_preproc" >&6; }
24785 # So? What about this header?
24786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24788 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24789 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24790 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24792 ac_header_preproc=yes
24795 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24796 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24797 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24798 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24799 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24800 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24801 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24802 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24803 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24805 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24806 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24810 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24811 $as_echo_n "checking
for $ac_header...
" >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24813 $as_echo_n "(cached
) " >&6
24815 eval "$as_ac_Header=\
$ac_header_preproc"
24817 ac_res=`eval 'as_val=${'$as_ac_Header'}
24818 $as_echo "$as_val"'`
24819 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24820 $as_echo "$ac_res" >&6; }
24823 as_val=`eval 'as_val=${'$as_ac_Header'}
24824 $as_echo "$as_val"'`
24825 if test "x
$as_val" = x""yes; then
24826 cat >>confdefs.h <<_ACEOF
24827 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24835 if test -f /usr/lpp/X11/bin/smt.exp; then
24837 cat >>confdefs.h <<\_ACEOF
24838 #define HAVE_AIX_SMT_EXP 1
24843 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24844 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24845 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24846 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24847 $as_echo "yes" >&6; }
24849 cat >>confdefs.h <<\_ACEOF
24850 #define HAVE_DEV_PTMX 1
24854 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24855 $as_echo "no
" >&6; }
24858 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24859 $as_echo_n "checking
for pid_t...
" >&6; }
24860 if test "${ac_cv_type_pid_t+set}" = set; then
24861 $as_echo_n "(cached
) " >&6
24863 ac_cv_type_pid_t=no
24864 cat >conftest.$ac_ext <<_ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h. */
24870 $ac_includes_default
24874 if (sizeof (pid_t))
24880 rm -f conftest.$ac_objext
24881 if { (ac_try="$ac_compile"
24882 case "(($ac_try" in
24883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 *) ac_try_echo=$ac_try;;
24886 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24887 $as_echo "$ac_try_echo") >&5
24888 (eval "$ac_compile") 2>conftest.er1
24890 grep -v '^ *+' conftest.er1 >conftest.err
24892 cat conftest.err >&5
24893 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24894 (exit $ac_status); } && {
24895 test -z "$ac_c_werror_flag" ||
24896 test ! -s conftest.err
24897 } && test -s conftest.$ac_objext; then
24898 cat >conftest.$ac_ext <<_ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24904 $ac_includes_default
24908 if (sizeof ((pid_t)))
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24921 $as_echo "$ac_try_echo") >&5
24922 (eval "$ac_compile") 2>conftest.er1
24924 grep -v '^ *+' conftest.er1 >conftest.err
24926 cat conftest.err >&5
24927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24928 (exit $ac_status); } && {
24929 test -z "$ac_c_werror_flag" ||
24930 test ! -s conftest.err
24931 } && test -s conftest.$ac_objext; then
24934 $as_echo "$as_me: failed program was
:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24937 ac_cv_type_pid_t=yes
24940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24942 $as_echo "$as_me: failed program was
:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24951 $as_echo "$ac_cv_type_pid_t" >&6; }
24952 if test "x
$ac_cv_type_pid_t" = x""yes; then
24956 cat >>confdefs.h <<_ACEOF
24963 for ac_header in vfork.h
24965 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24967 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24968 $as_echo_n "checking
for $ac_header...
" >&6; }
24969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24970 $as_echo_n "(cached
) " >&6
24972 ac_res=`eval 'as_val=${'$as_ac_Header'}
24973 $as_echo "$as_val"'`
24974 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24975 $as_echo "$ac_res" >&6; }
24977 # Is the header compilable?
24978 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24979 $as_echo_n "checking
$ac_header usability...
" >&6; }
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 $ac_includes_default
24987 #include <$ac_header>
24989 rm -f conftest.$ac_objext
24990 if { (ac_try="$ac_compile"
24991 case "(($ac_try" in
24992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24993 *) ac_try_echo=$ac_try;;
24995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24996 $as_echo "$ac_try_echo") >&5
24997 (eval "$ac_compile") 2>conftest.er1
24999 grep -v '^ *+' conftest.er1 >conftest.err
25001 cat conftest.err >&5
25002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest.$ac_objext; then
25007 ac_header_compiler=yes
25009 $as_echo "$as_me: failed program was
:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ac_header_compiler=no
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25017 $as_echo "$ac_header_compiler" >&6; }
25019 # Is the header present?
25020 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25021 $as_echo_n "checking
$ac_header presence...
" >&6; }
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 #include <$ac_header>
25030 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25031 case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25035 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25036 $as_echo "$ac_try_echo") >&5
25037 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1 >conftest.err
25041 cat conftest.err >&5
25042 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25043 (exit $ac_status); } >/dev/null && {
25044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25047 ac_header_preproc=yes
25049 $as_echo "$as_me: failed program was
:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25052 ac_header_preproc=no
25055 rm -f conftest.err conftest.$ac_ext
25056 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25057 $as_echo "$ac_header_preproc" >&6; }
25059 # So? What about this header?
25060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25062 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25063 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25064 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25066 ac_header_preproc=yes
25069 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25070 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25071 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25072 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25074 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25076 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25077 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25078 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25079 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25080 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25084 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25085 $as_echo_n "checking
for $ac_header...
" >&6; }
25086 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25087 $as_echo_n "(cached
) " >&6
25089 eval "$as_ac_Header=\
$ac_header_preproc"
25091 ac_res=`eval 'as_val=${'$as_ac_Header'}
25092 $as_echo "$as_val"'`
25093 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25094 $as_echo "$ac_res" >&6; }
25097 as_val=`eval 'as_val=${'$as_ac_Header'}
25098 $as_echo "$as_val"'`
25099 if test "x
$as_val" = x""yes; then
25100 cat >>confdefs.h <<_ACEOF
25101 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25110 for ac_func in fork vfork
25112 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25113 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25114 $as_echo_n "checking
for $ac_func...
" >&6; }
25115 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25116 $as_echo_n "(cached
) " >&6
25118 cat >conftest.$ac_ext <<_ACEOF
25121 cat confdefs.h >>conftest.$ac_ext
25122 cat >>conftest.$ac_ext <<_ACEOF
25123 /* end confdefs.h. */
25124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25126 #define $ac_func innocuous_$ac_func
25128 /* System header to define __stub macros and hopefully few prototypes,
25129 which can conflict with char $ac_func (); below.
25130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25131 <limits.h> exists even on freestanding compilers. */
25134 # include <limits.h>
25136 # include <assert.h>
25141 /* Override any GCC internal prototype to avoid an error.
25142 Use char because int might match the return type of a GCC
25143 builtin and then its argument prototype would still apply. */
25148 /* The GNU C library defines this for functions which it implements
25149 to always fail with ENOSYS. Some functions are actually named
25150 something starting with __ and the normal name is an alias. */
25151 #if defined __stub_$ac_func || defined __stub___$ac_func
25158 return $ac_func ();
25163 rm -f conftest.$ac_objext conftest$ac_exeext
25164 if { (ac_try="$ac_link"
25165 case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25170 $as_echo "$ac_try_echo") >&5
25171 (eval "$ac_link") 2>conftest.er1
25173 grep -v '^ *+' conftest.er1 >conftest.err
25175 cat conftest.err >&5
25176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25177 (exit $ac_status); } && {
25178 test -z "$ac_c_werror_flag" ||
25179 test ! -s conftest.err
25180 } && test -s conftest$ac_exeext && {
25181 test "$cross_compiling" = yes ||
25182 $as_test_x conftest$ac_exeext
25184 eval "$as_ac_var=yes"
25186 $as_echo "$as_me: failed program was
:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25189 eval "$as_ac_var=no
"
25192 rm -rf conftest.dSYM
25193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25194 conftest$ac_exeext conftest.$ac_ext
25196 ac_res=`eval 'as_val=${'$as_ac_var'}
25197 $as_echo "$as_val"'`
25198 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25199 $as_echo "$ac_res" >&6; }
25200 as_val=`eval 'as_val=${'$as_ac_var'}
25201 $as_echo "$as_val"'`
25202 if test "x
$as_val" = x""yes; then
25203 cat >>confdefs.h <<_ACEOF
25204 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25210 if test "x
$ac_cv_func_fork" = xyes; then
25211 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25212 $as_echo_n "checking
for working fork...
" >&6; }
25213 if test "${ac_cv_func_fork_works+set}" = set; then
25214 $as_echo_n "(cached
) " >&6
25216 if test "$cross_compiling" = yes; then
25217 ac_cv_func_fork_works=cross
25219 cat >conftest.$ac_ext <<_ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 $ac_includes_default
25230 /* By Ruediger Kuhlmann. */
25231 return fork () < 0;
25237 rm -f conftest$ac_exeext
25238 if { (ac_try="$ac_link"
25239 case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25243 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25244 $as_echo "$ac_try_echo") >&5
25245 (eval "$ac_link") 2>&5
25247 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25249 { (case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25254 $as_echo "$ac_try_echo") >&5
25255 (eval "$ac_try") 2>&5
25257 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_cv_func_fork_works=yes
25261 $as_echo "$as_me: program exited with status
$ac_status" >&5
25262 $as_echo "$as_me: failed program was
:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ( exit $ac_status )
25266 ac_cv_func_fork_works=no
25268 rm -rf conftest.dSYM
25269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25274 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25275 $as_echo "$ac_cv_func_fork_works" >&6; }
25278 ac_cv_func_fork_works=$ac_cv_func_fork
25280 if test "x
$ac_cv_func_fork_works" = xcross; then
25282 *-*-amigaos* | *-*-msdosdjgpp*)
25283 # Override, as these systems have only a dummy fork() stub
25284 ac_cv_func_fork_works=no
25287 ac_cv_func_fork_works=yes
25290 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25291 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25293 ac_cv_func_vfork_works=$ac_cv_func_vfork
25294 if test "x
$ac_cv_func_vfork" = xyes; then
25295 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25296 $as_echo_n "checking
for working vfork...
" >&6; }
25297 if test "${ac_cv_func_vfork_works+set}" = set; then
25298 $as_echo_n "(cached
) " >&6
25300 if test "$cross_compiling" = yes; then
25301 ac_cv_func_vfork_works=cross
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 /* Thanks to Paul Eggert for this test. */
25310 $ac_includes_default
25311 #include <sys/wait.h>
25312 #ifdef HAVE_VFORK_H
25313 # include <vfork.h>
25315 /* On some sparc systems, changes by the child to local and incoming
25316 argument registers are propagated back to the parent. The compiler
25317 is told about this with #include <vfork.h>, but some compilers
25318 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25319 static variable whose address is put into a register that is
25320 clobbered by the vfork. */
25323 sparc_address_test (int arg)
25325 sparc_address_test (arg) int arg;
25328 static pid_t child;
25346 pid_t parent = getpid ();
25349 sparc_address_test (0);
25354 /* Here is another test for sparc vfork register problems. This
25355 test uses lots of local variables, at least as many local
25356 variables as main has allocated so far including compiler
25357 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25358 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25359 reuse the register of parent for one of the local variables,
25360 since it will think that parent can't possibly be used any more
25361 in this routine. Assigning to the local variable will thus
25362 munge parent in the parent process. */
25364 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25365 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25366 /* Convince the compiler that p..p7 are live; otherwise, it might
25367 use the same hardware register for all 8 local variables. */
25368 if (p != p1 || p != p2 || p != p3 || p != p4
25369 || p != p5 || p != p6 || p != p7)
25372 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25373 from child file descriptors. If the child closes a descriptor
25374 before it execs or exits, this munges the parent's descriptor
25375 as well. Test for this by closing stdout in the child. */
25376 _exit(close(fileno(stdout)) != 0);
25381 while (wait(&status) != child)
25384 /* Was there some problem with vforking? */
25387 /* Did the child fail? (This shouldn't happen.) */
25390 /* Did the vfork/compiler bug occur? */
25391 || parent != getpid()
25393 /* Did the file descriptor bug occur? */
25394 || fstat(fileno(stdout), &st) != 0
25399 rm -f conftest$ac_exeext
25400 if { (ac_try="$ac_link"
25401 case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25405 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25406 $as_echo "$ac_try_echo") >&5
25407 (eval "$ac_link") 2>&5
25409 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25411 { (case "(($ac_try" in
25412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413 *) ac_try_echo=$ac_try;;
25415 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25416 $as_echo "$ac_try_echo") >&5
25417 (eval "$ac_try") 2>&5
25419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25420 (exit $ac_status); }; }; then
25421 ac_cv_func_vfork_works=yes
25423 $as_echo "$as_me: program exited with status
$ac_status" >&5
25424 $as_echo "$as_me: failed program was
:" >&5
25425 sed 's/^/| /' conftest.$ac_ext >&5
25427 ( exit $ac_status )
25428 ac_cv_func_vfork_works=no
25430 rm -rf conftest.dSYM
25431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25436 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25437 $as_echo "$ac_cv_func_vfork_works" >&6; }
25440 if test "x
$ac_cv_func_fork_works" = xcross; then
25441 ac_cv_func_vfork_works=$ac_cv_func_vfork
25442 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25443 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25446 if test "x
$ac_cv_func_vfork_works" = xyes; then
25448 cat >>confdefs.h <<\_ACEOF
25449 #define HAVE_WORKING_VFORK 1
25454 cat >>confdefs.h <<\_ACEOF
25459 if test "x
$ac_cv_func_fork_works" = xyes; then
25461 cat >>confdefs.h <<\_ACEOF
25462 #define HAVE_WORKING_FORK 1
25468 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25469 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25470 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25471 $as_echo_n "(cached
) " >&6
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 #include <langinfo.h>
25483 char* cs = nl_langinfo(CODESET);
25488 rm -f conftest.$ac_objext conftest$ac_exeext
25489 if { (ac_try="$ac_link"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496 (eval "$ac_link") 2>conftest.er1
25498 grep -v '^ *+' conftest.er1 >conftest.err
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest$ac_exeext && {
25506 test "$cross_compiling" = yes ||
25507 $as_test_x conftest$ac_exeext
25509 emacs_cv_langinfo_codeset=yes
25511 $as_echo "$as_me: failed program was
:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25514 emacs_cv_langinfo_codeset=no
25517 rm -rf conftest.dSYM
25518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25519 conftest$ac_exeext conftest.$ac_ext
25522 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25523 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25524 if test $emacs_cv_langinfo_codeset = yes; then
25526 cat >>confdefs.h <<\_ACEOF
25527 #define HAVE_LANGINFO_CODESET 1
25532 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25533 $as_echo_n "checking
for size_t...
" >&6; }
25534 if test "${ac_cv_type_size_t+set}" = set; then
25535 $as_echo_n "(cached
) " >&6
25537 ac_cv_type_size_t=no
25538 cat >conftest.$ac_ext <<_ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 $ac_includes_default
25548 if (sizeof (size_t))
25554 rm -f conftest.$ac_objext
25555 if { (ac_try="$ac_compile"
25556 case "(($ac_try" in
25557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558 *) ac_try_echo=$ac_try;;
25560 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25561 $as_echo "$ac_try_echo") >&5
25562 (eval "$ac_compile") 2>conftest.er1
25564 grep -v '^ *+' conftest.er1 >conftest.err
25566 cat conftest.err >&5
25567 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest.$ac_objext; then
25572 cat >conftest.$ac_ext <<_ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25578 $ac_includes_default
25582 if (sizeof ((size_t)))
25588 rm -f conftest.$ac_objext
25589 if { (ac_try="$ac_compile"
25590 case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25594 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25595 $as_echo "$ac_try_echo") >&5
25596 (eval "$ac_compile") 2>conftest.er1
25598 grep -v '^ *+' conftest.er1 >conftest.err
25600 cat conftest.err >&5
25601 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25602 (exit $ac_status); } && {
25603 test -z "$ac_c_werror_flag" ||
25604 test ! -s conftest.err
25605 } && test -s conftest.$ac_objext; then
25608 $as_echo "$as_me: failed program was
:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25611 ac_cv_type_size_t=yes
25614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25616 $as_echo "$as_me: failed program was
:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25625 $as_echo "$ac_cv_type_size_t" >&6; }
25626 if test "x
$ac_cv_type_size_t" = x""yes; then
25628 cat >>confdefs.h <<_ACEOF
25629 #define HAVE_SIZE_T 1
25636 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25637 $as_echo_n "checking
for mbstate_t...
" >&6; }
25638 if test "${ac_cv_type_mbstate_t+set}" = set; then
25639 $as_echo_n "(cached
) " >&6
25641 cat >conftest.$ac_ext <<_ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h. */
25647 $ac_includes_default
25648 # include <wchar.h>
25652 mbstate_t x; return sizeof x;
25657 rm -f conftest.$ac_objext
25658 if { (ac_try="$ac_compile"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25664 $as_echo "$ac_try_echo") >&5
25665 (eval "$ac_compile") 2>conftest.er1
25667 grep -v '^ *+' conftest.er1 >conftest.err
25669 cat conftest.err >&5
25670 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25671 (exit $ac_status); } && {
25672 test -z "$ac_c_werror_flag" ||
25673 test ! -s conftest.err
25674 } && test -s conftest.$ac_objext; then
25675 ac_cv_type_mbstate_t=yes
25677 $as_echo "$as_me: failed program was
:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25680 ac_cv_type_mbstate_t=no
25683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25685 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25686 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25687 if test $ac_cv_type_mbstate_t = yes; then
25689 cat >>confdefs.h <<\_ACEOF
25690 #define HAVE_MBSTATE_T 1
25695 cat >>confdefs.h <<\_ACEOF
25696 #define mbstate_t int
25701 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25702 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25703 if test "${emacs_cv_c_restrict+set}" = set; then
25704 $as_echo_n "(cached
) " >&6
25706 cat >conftest.$ac_ext <<_ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 void fred (int *restrict x);
25721 rm -f conftest.$ac_objext
25722 if { (ac_try="$ac_compile"
25723 case "(($ac_try" in
25724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725 *) ac_try_echo=$ac_try;;
25727 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25728 $as_echo "$ac_try_echo") >&5
25729 (eval "$ac_compile") 2>conftest.er1
25731 grep -v '^ *+' conftest.er1 >conftest.err
25733 cat conftest.err >&5
25734 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25735 (exit $ac_status); } && {
25736 test -z "$ac_c_werror_flag" ||
25737 test ! -s conftest.err
25738 } && test -s conftest.$ac_objext; then
25739 emacs_cv_c_restrict=yes
25741 $as_echo "$as_me: failed program was
:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25744 cat >conftest.$ac_ext <<_ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */
25750 void fred (int *__restrict x);
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25765 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25766 $as_echo "$ac_try_echo") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25769 grep -v '^ *+' conftest.er1 >conftest.err
25771 cat conftest.err >&5
25772 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25777 emacs_cv_c_restrict=__restrict
25779 $as_echo "$as_me: failed program was
:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25782 emacs_cv_c_restrict=no
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25791 $as_echo "$emacs_cv_c_restrict" >&6; }
25792 case "$emacs_cv_c_restrict" in
25793 yes) emacs_restrict=restrict;;
25794 no) emacs_restrict="";;
25795 *) emacs_restrict="$emacs_cv_c_restrict";;
25797 if test "$emacs_restrict" != __restrict; then
25799 cat >>confdefs.h <<_ACEOF
25800 #define __restrict $emacs_restrict
25805 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25806 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25807 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25808 $as_echo_n "(cached
) " >&6
25810 cat >conftest.$ac_ext <<_ACEOF
25813 cat confdefs.h >>conftest.$ac_ext
25814 cat >>conftest.$ac_ext <<_ACEOF
25815 /* end confdefs.h. */
25816 void fred (int x[__restrict]);
25825 rm -f conftest.$ac_objext
25826 if { (ac_try="$ac_compile"
25827 case "(($ac_try" in
25828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25829 *) ac_try_echo=$ac_try;;
25831 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25832 $as_echo "$ac_try_echo") >&5
25833 (eval "$ac_compile") 2>conftest.er1
25835 grep -v '^ *+' conftest.er1 >conftest.err
25837 cat conftest.err >&5
25838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25839 (exit $ac_status); } && {
25840 test -z "$ac_c_werror_flag" ||
25841 test ! -s conftest.err
25842 } && test -s conftest.$ac_objext; then
25843 emacs_cv_c_restrict_arr=yes
25845 $as_echo "$as_me: failed program was
:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25848 emacs_cv_c_restrict_arr=no
25851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25854 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25855 if test "$emacs_cv_c_restrict_arr" = yes; then
25857 cat >>confdefs.h <<\_ACEOF
25858 #define __restrict_arr __restrict
25865 # Set up the CFLAGS for real compilation, so we can substitute it.
25866 CFLAGS="$REAL_CFLAGS"
25867 CPPFLAGS="$REAL_CPPFLAGS"
25869 #### Find out which version of Emacs this is.
25870 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25871 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25872 if test x"${version}" = x; then
25873 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25874 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25875 { (exit 1); exit 1; }; }
25877 if test x"${version}" != x"$PACKAGE_VERSION"; then
25878 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25879 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25882 ### Specify what sort of things we'll be editing into Makefile and config.h.
25883 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25928 cat >>confdefs.h
<<_ACEOF
25929 #define EMACS_CONFIGURATION "${canonical}"
25933 cat >>confdefs.h
<<_ACEOF
25934 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25938 cat >>confdefs.h
<<_ACEOF
25939 #define config_machfile "${machfile}"
25943 cat >>confdefs.h
<<_ACEOF
25944 #define config_opsysfile "${opsysfile}"
25948 cat >>confdefs.h
<<_ACEOF
25949 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25953 cat >>confdefs.h
<<_ACEOF
25954 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25958 cat >>confdefs.h
<<_ACEOF
25959 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25963 cat >>confdefs.h
<<_ACEOF
25964 #define UNEXEC_SRC ${UNEXEC_SRC}
25968 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25970 cat >>confdefs.h
<<\_ACEOF
25971 #define HAVE_X_WINDOWS 1
25975 if test "${USE_X_TOOLKIT}" != "none" ; then
25977 cat >>confdefs.h
<<\_ACEOF
25978 #define USE_X_TOOLKIT 1
25981 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25983 cat >>confdefs.h
<<\_ACEOF
25984 #define USE_LUCID 1
25987 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25989 cat >>confdefs.h
<<\_ACEOF
25990 #define USE_MOTIF 1
25995 if test "${HAVE_X11}" = "yes" ; then
25997 cat >>confdefs.h
<<\_ACEOF
26002 if test "${HAVE_MENUS}" = "yes" ; then
26004 cat >>confdefs.h
<<\_ACEOF
26005 #define HAVE_MENUS 1
26009 if test "${GNU_MALLOC}" = "yes" ; then
26011 cat >>confdefs.h
<<\_ACEOF
26012 #define GNU_MALLOC 1
26016 if test "${REL_ALLOC}" = "yes" ; then
26018 cat >>confdefs.h
<<\_ACEOF
26019 #define REL_ALLOC 1
26029 #### Report on what we decided to do.
26030 #### Report GTK as a toolkit, even if it doesn't use Xt.
26031 #### It makes printing result more understandable as using GTK sets
26032 #### toolkit_scroll_bars to yes by default.
26033 if test "${HAVE_GTK}" = "yes"; then
26038 Configured for \`${canonical}'.
26040 Where should the build process find the source code? ${srcdir}
26041 What operating system and machine description files should Emacs use?
26042 \`${opsysfile}' and \`${machfile}'
26043 What compiler should emacs be built with? ${CC} ${CFLAGS}
26044 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26045 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26046 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26047 What window system should Emacs use? ${window_system}
26048 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26050 if test -n "${x_includes}"; then
26051 echo " Where do we find X Windows header files? ${x_includes}"
26053 echo " Where do we find X Windows header files? Standard dirs"
26055 if test -n "${x_libraries}"; then
26056 echo " Where do we find X Windows libraries? ${x_libraries}"
26058 echo " Where do we find X Windows libraries? Standard dirs"
26061 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26062 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26063 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26064 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26065 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26066 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26067 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26068 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26069 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26070 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26071 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26073 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26074 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26075 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26076 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26078 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26081 if test $USE_XASSERTS = yes; then
26082 echo " Compiling with asserts turned on."
26083 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26088 if test "$HAVE_NS" = "yes"; then
26090 echo "You must run \"make install\" in order to test the built application.
26091 The installed application will go to nextstep/Emacs.app and can be
26092 run or moved from there."
26093 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26094 echo "The application will be fully self-contained."
26096 echo "The lisp resources for the application will be installed under ${prefix}.
26097 You may need to run \"make install\" with sudo. The application will fail
26098 to run if these resources are not installed."
26103 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26104 echo "D-Bus integration has been tested for GNU/Linux only."
26109 # Remove any trailing slashes in these variables.
26110 test "${prefix}" != NONE
&&
26111 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26112 test "${exec_prefix}" != NONE
&&
26113 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26115 # Now get this: Some word that is part of the ${srcdir} directory name
26116 # or the ${configuration} value might, just might, happen to be an
26117 # identifier like `sun4' or `i386' or something, and be predefined by
26118 # the C preprocessor to some helpful value like 1, or maybe the empty
26119 # string. Needless to say consequent macro substitutions are less
26120 # than conducive to the makefile finding the correct directory.
26121 cpp_undefs
="`echo $srcdir $configuration $canonical |
26122 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26123 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26125 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26126 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26127 ## from Makefile.c can correctly provide the arg `-traditional' to the
26130 cat >conftest.
$ac_ext <<_ACEOF
26133 cat confdefs.h
>>conftest.
$ac_ext
26134 cat >>conftest.
$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26139 $EGREP "yes..yes" >/dev
/null
2>&1; then
26140 CPP_NEED_TRADITIONAL
=no
26142 CPP_NEED_TRADITIONAL
=yes
26147 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"
26149 ac_config_commands
="$ac_config_commands default"
26151 cat >confcache
<<\_ACEOF
26152 # This file is a shell script that caches the results of configure
26153 # tests run on this system so they can be shared between configure
26154 # scripts and configure runs, see configure's option --config-cache.
26155 # It is not useful on other systems. If it contains results you don't
26156 # want to keep, you may remove or edit it.
26158 # config.status only pays attention to the cache file if you give it
26159 # the --recheck option to rerun configure.
26161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26163 # following values.
26167 # The following way of writing the cache mishandles newlines in values,
26168 # but we know of no workaround that is simple, portable, and efficient.
26169 # So, we kill variables containing newlines.
26170 # Ultrix sh set writes to stderr and can't be redirected directly,
26171 # and sets the high bit in the cache file unless we assign to the vars.
26173 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26174 eval ac_val
=\$
$ac_var
26178 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26182 _ | IFS | as_nl
) ;; #(
26183 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26184 *) $as_unset $ac_var ;;
26190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26191 *${as_nl}ac_space
=\
*)
26192 # `set' does not quote correctly, so add quotes (double-quote
26193 # substitution turns \\\\ into \\, and sed turns \\ into \).
26196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26199 # `set' quotes correctly as required by POSIX, so do not add quotes.
26200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26213 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26214 if test -w "$cache_file"; then
26215 test "x$cache_file" != "x/dev/null" &&
26216 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26217 $as_echo "$as_me: updating cache $cache_file" >&6;}
26218 cat confcache
>$cache_file
26220 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26221 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26226 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26227 # Let make expand exec_prefix.
26228 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26230 DEFS
=-DHAVE_CONFIG_H
26234 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26235 # 1. Remove the extension, and $U if already installed.
26236 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26237 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26238 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26239 # will be set to the directory where LIBOBJS objects are built.
26240 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26241 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26243 LIBOBJS
=$ac_libobjs
26245 LTLIBOBJS
=$ac_ltlibobjs
26249 : ${CONFIG_STATUS=./config.status}
26251 ac_clean_files_save
=$ac_clean_files
26252 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26253 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26254 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26255 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26257 # Generated by $as_me.
26258 # Run this file to recreate the current configuration.
26259 # Compiler output produced by configure, useful for debugging
26260 # configure, is in config.log if it exists.
26263 ac_cs_recheck=false
26265 SHELL=\${CONFIG_SHELL-$SHELL}
26268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26269 ## --------------------- ##
26270 ## M4sh Initialization. ##
26271 ## --------------------- ##
26273 # Be more Bourne compatible
26274 DUALCASE
=1; export DUALCASE
# for MKS sh
26275 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26279 # is contrary to our usage. Disable this feature.
26280 alias -g '${1+"$@"}'='"$@"'
26281 setopt NO_GLOB_SUBST
26283 case `(set -o) 2>/dev/null` in
26284 *posix
*) set -o posix
;;
26293 # Avoid depending upon Character Ranges.
26294 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26295 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26296 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26297 as_cr_digits
='0123456789'
26298 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26304 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26307 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26308 as_echo='printf %s
\n'
26309 as_echo_n='printf %s
'
26311 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26312 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26313 as_echo_n='/usr
/ucb
/echo -n'
26315 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26316 as_echo_n_body='eval
26320 expr "X$arg" : "X\\(.*\\)$as_nl";
26321 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26323 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26325 export as_echo_n_body
26326 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26328 export as_echo_body
26329 as_echo='sh
-c $as_echo_body as_echo
'
26332 # The user is always right.
26333 if test "${PATH_SEPARATOR+set}" != set; then
26335 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26336 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26341 # Support unset when possible.
26342 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26350 # We need space, tab and new line, in precisely that order. Quoting is
26351 # there to prevent editors from complaining about space-tab.
26352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26353 # splitting by setting IFS to empty value.)
26356 # Find who we are. Look in the path if we contain no directory separator.
26358 *[\\/]* ) as_myself=$0 ;;
26359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26360 for as_dir in $PATH
26363 test -z "$as_dir" && as_dir=.
26364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26370 # We did not find ourselves, most probably we were run as `sh COMMAND'
26371 # in which case we are not to be found in the path.
26372 if test "x$as_myself" = x
; then
26375 if test ! -f "$as_myself"; then
26376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26377 { (exit 1); exit 1; }
26380 # Work around bugs in pre-3.0 UWIN ksh.
26381 for as_var
in ENV MAIL MAILPATH
26382 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26394 # Required to use basename.
26395 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26396 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26402 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26403 as_basename
=basename
26409 # Name of the executable.
26410 as_me
=`$as_basename -- "$0" ||
26411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26412 X"$0" : 'X\(//\)$' \| \
26413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26415 sed '/^.*\/\([^/][^/]*\)\/*$/{
26434 as_lineno_1
=$LINENO
26435 as_lineno_2
=$LINENO
26436 test "x$as_lineno_1" != "x$as_lineno_2" &&
26437 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26439 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26440 # uniformly replaced by the line number. The first 'sed' inserts a
26441 # line-number line after each line using $LINENO; the second 'sed'
26442 # does the real work. The second script uses 'N' to pair each
26443 # line-number line with the line containing $LINENO, and appends
26444 # trailing '-' during substitution so that $LINENO is not a special
26445 # case at line end.
26446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26447 # scripts with optimization help from Paolo Bonzini. Blame Lee
26448 # E. McMahon (1931-1989) for sed's syntax. :-)
26460 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26463 ' >$as_me.lineno
&&
26464 chmod +x
"$as_me.lineno" ||
26465 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26466 { (exit 1); exit 1; }; }
26468 # Don't try to exec as it changes $[0], causing all sort of problems
26469 # (the dirname of $[0] is not the place where we might find the
26470 # original and so on. Autoconf is especially sensitive to this).
26471 .
"./$as_me.lineno"
26472 # Exit status is that of the last command.
26477 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26483 ECHO_C
= ECHO_N
= ECHO_T
=
26484 case `echo -n x` in
26486 case `echo 'x\c'` in
26487 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26493 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26494 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26500 rm -f conf$$ conf$$.exe conf$$.
file
26501 if test -d conf$$.dir
; then
26502 rm -f conf$$.dir
/conf$$.
file
26505 mkdir conf$$.dir
2>/dev
/null
26507 if (echo >conf$$.
file) 2>/dev
/null
; then
26508 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26510 # ... but there are two gotchas:
26511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26513 # In both cases, we have to default to `cp -p'.
26514 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26516 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26524 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26525 rmdir conf$$.dir
2>/dev
/null
26527 if mkdir
-p .
2>/dev
/null
; then
26530 test -d .
/-p && rmdir .
/-p
26534 if test -x / >/dev
/null
2>&1; then
26535 as_test_x
='test -x'
26537 if ls -dL / >/dev
/null
2>&1; then
26544 if test -d "$1"; then
26550 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26551 ???[sx]*):;;*)false;;esac;fi
26555 as_executable_p
=$as_test_x
26557 # Sed expression to map a string onto a valid CPP name.
26558 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26560 # Sed expression to map a string onto a valid variable name.
26561 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26566 # Save the log message, to keep $[0] and so on meaningful, and to
26567 # report actual input values of CONFIG_FILES etc. instead of their
26568 # values after options handling.
26570 This file was extended by emacs $as_me 24.0.50, which was
26571 generated by GNU Autoconf 2.63. Invocation command line was
26573 CONFIG_FILES = $CONFIG_FILES
26574 CONFIG_HEADERS = $CONFIG_HEADERS
26575 CONFIG_LINKS = $CONFIG_LINKS
26576 CONFIG_COMMANDS = $CONFIG_COMMANDS
26579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26584 case $ac_config_files in *"
26585 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26588 case $ac_config_headers in *"
26589 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26594 # Files that config.status was made for.
26595 config_files="$ac_config_files"
26596 config_headers="$ac_config_headers"
26597 config_commands="$ac_config_commands"
26601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26603 \`$as_me' instantiates files from templates according to the
26604 current configuration.
26606 Usage: $0 [OPTION]... [FILE]...
26608 -h, --help print this help, then exit
26609 -V, --version print version number and configuration settings, then exit
26610 -q, --quiet, --silent
26611 do not print progress messages
26612 -d, --debug don't remove temporary files
26613 --recheck update $as_me by reconfiguring in the same conditions
26614 --file=FILE[:TEMPLATE]
26615 instantiate the configuration file FILE
26616 --header=FILE[:TEMPLATE]
26617 instantiate the configuration header FILE
26619 Configuration files:
26622 Configuration headers:
26625 Configuration commands:
26628 Report bugs to <bug-autoconf@gnu.org>."
26631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26633 emacs config.status 24.0.50
26634 configured by $0, generated by GNU Autoconf 2.63,
26635 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26637 Copyright (C) 2008 Free Software Foundation, Inc.
26638 This config.status script is free software; the Free Software Foundation
26639 gives unlimited permission to copy, distribute and modify it."
26644 test -n "\$AWK" || AWK=awk
26647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26648 # The default lists apply if the user does not specify any file.
26654 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26655 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26666 # Handling of the options.
26667 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26669 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26670 $as_echo "$ac_cs_version"; exit ;;
26671 --debug |
--debu |
--deb |
--de |
--d |
-d )
26673 --file |
--fil |
--fi |
--f )
26676 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26678 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26679 ac_need_defaults
=false
;;
26680 --header |
--heade |
--head |
--hea )
26683 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26685 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26686 ac_need_defaults
=false
;;
26688 # Conflict between --help and --header
26689 { $as_echo "$as_me: error: ambiguous option: $1
26690 Try \`$0 --help' for more information." >&2
26691 { (exit 1); exit 1; }; };;
26692 --help |
--hel |
-h )
26693 $as_echo "$ac_cs_usage"; exit ;;
26694 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26695 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26698 # This is an error.
26699 -*) { $as_echo "$as_me: error: unrecognized option: $1
26700 Try \`$0 --help' for more information." >&2
26701 { (exit 1); exit 1; }; } ;;
26703 *) ac_config_targets
="$ac_config_targets $1"
26704 ac_need_defaults
=false
;;
26710 ac_configure_extra_args
=
26712 if $ac_cs_silent; then
26714 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26719 if \$ac_cs_recheck; then
26720 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26722 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26723 CONFIG_SHELL='$SHELL'
26724 export CONFIG_SHELL
26729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26734 ## Running $as_me. ##
26740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26744 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26750 # Handling of arguments.
26751 for ac_config_target
in $ac_config_targets
26753 case $ac_config_target in
26754 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26755 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26756 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26757 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26758 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26759 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26760 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26761 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26762 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26763 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26764 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26765 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26766 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26768 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26769 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26770 { (exit 1); exit 1; }; };;
26775 # If the user did not use the arguments to specify the items to instantiate,
26776 # then the envvar interface is used. Set only those that are not.
26777 # We use the long form for the default assignment because of an extremely
26778 # bizarre bug on SunOS 4.1.3.
26779 if $ac_need_defaults; then
26780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26785 # Have a temporary directory for convenience. Make it in the build tree
26786 # simply because there is no reason against having it here, and in addition,
26787 # creating and moving files from /tmp can sometimes cause problems.
26788 # Hook for its removal unless debugging.
26789 # Note that there is a small window in which the directory will not be cleaned:
26790 # after its creation but before its name has been assigned to `$tmp'.
26794 trap 'exit_status=$?
26795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26797 trap '{ (exit 1); exit 1; }' 1 2 13 15
26799 # Create a (secure) tmp directory for tmp files.
26802 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26803 test -n "$tmp" && test -d "$tmp"
26806 tmp
=.
/conf$$
-$RANDOM
26807 (umask 077 && mkdir
"$tmp")
26810 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26811 { (exit 1); exit 1; }
26814 # Set up the scripts for CONFIG_FILES section.
26815 # No need to generate them if there are no CONFIG_FILES.
26816 # This happens for instance with `./config.status config.h'.
26817 if test -n "$CONFIG_FILES"; then
26821 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26825 ac_cs_awk_cr
=$ac_cr
26828 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26833 echo "cat >conf$$subs.awk <<_ACEOF" &&
26834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26836 } >conf$$subs.sh ||
26837 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26838 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26839 { (exit 1); exit 1; }; }
26840 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26842 for ac_last_try in false false false false false :; do
26843 . ./conf$$subs.sh ||
26844 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26845 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26846 { (exit 1); exit 1; }; }
26848 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26849 if test $ac_delim_n = $ac_delim_num; then
26851 elif $ac_last_try; then
26852 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26853 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26854 { (exit 1); exit 1; }; }
26856 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26859 rm -f conf$$subs.sh
26861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26862 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26866 s/^/S["/; s
/!.
*/"]=/
26876 s/\(.\{148\}\).*/\1/
26878 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26883 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26890 s/\(.\{148\}\).*/\1/
26892 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26896 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26901 ' <conf$$subs.awk | sed '
26906 ' >>$CONFIG_STATUS || ac_write_fail=1
26907 rm -f conf$$subs.awk
26908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26910 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26911 for (key in S) S_is_set[key] = 1
26917 nfields = split(line, field, "@
")
26919 len = length(field[1])
26920 for (i = 2; i < nfields; i++) {
26922 keylen = length(key)
26923 if (S_is_set[key]) {
26925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26926 len += length(value) + length(field[++i])
26937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26938 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26939 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26942 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26943 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26944 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26945 { (exit 1); exit 1; }; }
26948 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26949 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26950 # trailing colons and then remove the whole line if VPATH becomes empty
26951 # (actually we leave an empty line to preserve line numbers).
26952 if test "x
$srcdir" = x.; then
26953 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26954 s/:*\$(srcdir):*/:/
26955 s/:*\${srcdir}:*/:/
26957 s/^\([^=]*=[ ]*\):*/\1/
26963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26964 fi # test -n "$CONFIG_FILES"
26966 # Set up the scripts for CONFIG_HEADERS section.
26967 # No need to generate them if there are no CONFIG_HEADERS.
26968 # This happens for instance with `./config.status Makefile'.
26969 if test -n "$CONFIG_HEADERS"; then
26970 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26974 # Transform confdefs.h into an awk script `defines.awk', embedded as
26975 # here-document in config.status, that substitutes the proper values into
26976 # config.h.in to produce config.h.
26978 # Create a delimiter string that does not exist in confdefs.h, to ease
26979 # handling of long lines.
26981 for ac_last_try in false false :; do
26982 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26983 if test -z "$ac_t"; then
26985 elif $ac_last_try; then
26986 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26987 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26988 { (exit 1); exit 1; }; }
26990 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26994 # For the awk script, D is an array of macro values keyed by name,
26995 # likewise P contains macro parameters if any. Preserve backslash
26996 # newline sequences.
26998 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27000 s/.\{148\}/&'"$ac_delim"'/g
27003 s/^[ ]*#[ ]*define[ ][ ]*/ /
27010 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27012 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27017 D["\
1"]=" \
3\\\\\\n
"\\/p
27019 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27024 s/.\{148\}/&'"$ac_delim"'/g
27029 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27032 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27034 ' <confdefs.h | sed '
27035 s/'"$ac_delim"'/"\\\
27036 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27039 for (key in D) D_is_set[key] = 1
27042 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27044 split(line, arg, " ")
27045 if (arg[1] == "#") {
27049 defundef
= substr
(arg
[1], 2)
27052 split(mac1
, mac2
, "(") #)
27054 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27055 if (D_is_set
[macro
]) {
27056 # Preserve the white space surrounding the "#".
27057 print prefix
"define", macro P
[macro
] D
[macro
]
27060 # Replace #undef with comments. This is necessary, for example,
27061 # in the case of _POSIX_SOURCE, which is predefined and required
27062 # on some systems where configure will not decide to define it.
27063 if (defundef
== "undef") {
27064 print
"/*", prefix defundef
, macro
, "*/"
27072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27073 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27074 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27075 { (exit 1); exit 1; }; }
27076 fi # test -n "$CONFIG_HEADERS"
27079 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27084 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27086 case $ac_mode$ac_tag in
27088 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27089 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27090 { (exit 1); exit 1; }; };;
27091 :[FH
]-) ac_tag
=-:-;;
27092 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27109 -) ac_f
="$tmp/stdin";;
27110 *) # Look for the file first in the build tree, then in the source tree
27111 # (if the path is not absolute). The absolute path cannot be DOS-style,
27112 # because $ac_f cannot contain `:'.
27116 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27118 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27119 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27120 { (exit 1); exit 1; }; };;
27122 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27123 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27126 # Let's still pretend it is `configure' which instantiates (i.e., don't
27127 # use $as_me), people would be surprised to read:
27128 # /* config.h. Generated by config.status. */
27129 configure_input
='Generated from '`
27130 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27132 if test x
"$ac_file" != x-
; then
27133 configure_input
="$ac_file. $configure_input"
27134 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27135 $as_echo "$as_me: creating $ac_file" >&6;}
27137 # Neutralize special characters interpreted by sed in replacement strings.
27138 case $configure_input in #(
27139 *\
&* |
*\|
* |
*\\* )
27140 ac_sed_conf_input
=`$as_echo "$configure_input" |
27141 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27142 *) ac_sed_conf_input
=$configure_input;;
27146 *:-:* |
*:-) cat >"$tmp/stdin" \
27147 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27148 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27149 { (exit 1); exit 1; }; } ;;
27154 ac_dir
=`$as_dirname -- "$ac_file" ||
27155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27156 X"$ac_file" : 'X\(//\)[^/]' \| \
27157 X"$ac_file" : 'X\(//\)$' \| \
27158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27159 $as_echo X"$ac_file" |
27160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27164 /^X\(\/\/\)[^/].*/{
27179 -*) as_dir
=.
/$as_dir;;
27181 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27185 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27186 *) as_qdir
=$as_dir;;
27188 as_dirs
="'$as_qdir' $as_dirs"
27189 as_dir
=`$as_dirname -- "$as_dir" ||
27190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27191 X"$as_dir" : 'X\(//\)[^/]' \| \
27192 X"$as_dir" : 'X\(//\)$' \| \
27193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27194 $as_echo X"$as_dir" |
27195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27199 /^X\(\/\/\)[^/].*/{
27212 test -d "$as_dir" && break
27214 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27215 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27216 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27217 { (exit 1); exit 1; }; }; }
27221 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27223 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27224 # A ".." for each directory in $ac_dir_suffix.
27225 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27226 case $ac_top_builddir_sub in
27227 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27228 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27231 ac_abs_top_builddir
=$ac_pwd
27232 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27233 # for backward compatibility:
27234 ac_top_builddir
=$ac_top_build_prefix
27237 .
) # We are building in place.
27239 ac_top_srcdir
=$ac_top_builddir_sub
27240 ac_abs_top_srcdir
=$ac_pwd ;;
27241 [\\/]* | ?
:[\\/]* ) # Absolute name.
27242 ac_srcdir
=$srcdir$ac_dir_suffix;
27243 ac_top_srcdir
=$srcdir
27244 ac_abs_top_srcdir
=$srcdir ;;
27245 *) # Relative name.
27246 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27247 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27248 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27250 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27260 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27261 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27266 # If the template does not know about datarootdir, expand it.
27267 # FIXME: This hack should be removed a few years after 2.60.
27268 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27281 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27282 *datarootdir
*) ac_datarootdir_seen
=yes;;
27283 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27284 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27285 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27288 ac_datarootdir_hack='
27289 s&@datadir@&$datadir&g
27290 s&@docdir@&$docdir&g
27291 s&@infodir@&$infodir&g
27292 s&@localedir@&$localedir&g
27293 s&@mandir@&$mandir&g
27294 s&\\\${datarootdir}&$datarootdir&g' ;;
27298 # Neutralize VPATH when `$srcdir' = `.'.
27299 # Shell code in configure.ac might set extrasub.
27300 # FIXME: do we really want to maintain this feature?
27301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27302 ac_sed_extra="$ac_vpsub
27305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27307 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27308 s|@configure_input@|
$ac_sed_conf_input|
;t t
27309 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27310 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27311 s
&@srcdir@
&$ac_srcdir&;t t
27312 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27313 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27314 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27315 s
&@builddir@
&$ac_builddir&;t t
27316 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27317 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27318 s
&@INSTALL@
&$ac_INSTALL&;t t
27319 $ac_datarootdir_hack
27321 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27322 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27323 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27324 { (exit 1); exit 1; }; }
27326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27327 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27328 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27329 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27330 which seems to be undefined. Please make sure it is defined." >&5
27331 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27332 which seems to be undefined. Please make sure it is defined." >&2;}
27336 -) cat "$tmp/out" && rm -f "$tmp/out";;
27337 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27339 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27340 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27341 { (exit 1); exit 1; }; }
27347 if test x"$ac_file" != x-; then
27349 $as_echo "/* $configure_input */" \
27350 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27351 } >"$tmp/config.h" \
27352 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27353 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27354 { (exit 1); exit 1; }; }
27355 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27356 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27357 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27360 mv "$tmp/config.h" "$ac_file" \
27361 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27362 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27363 { (exit 1); exit 1; }; }
27366 $as_echo "/* $configure_input */" \
27367 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27368 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27369 $as_echo "$as_me: error: could not create -" >&2;}
27370 { (exit 1); exit 1; }; }
27374 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27375 $as_echo "$as_me: executing $ac_file commands" >&6;}
27380 case $ac_file$ac_mode in
27383 ### Make the necessary directories, if they don't exist.
27384 for dir
in etc lisp
; do
27385 test -d ${dir} || mkdir
${dir}
27388 # Build src/Makefile from ${srcdir}/src/Makefile.c
27389 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27390 # This must be done after src/config.h is built, since we rely on that file.
27392 echo creating src
/epaths.h
27393 ${MAKE-make} epaths-force
27395 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27396 # `..' to `. .' unless invoked with -traditional
27398 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27399 CPPFLAGS
="$CPPFLAGS -traditional"
27402 echo creating lib-src
/Makefile
27404 rm -f junk.c junk1.c junk2.c
27405 sed -e '/start of cpp stuff/q' \
27406 < Makefile.c
> junk1.c
27407 sed -e '1,/start of cpp stuff/d'\
27408 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27409 < Makefile.c
> junk.c
27410 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27411 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27412 cat junk1.c junk2.c
> Makefile.new
27413 rm -f junk.c junk1.c junk2.c
27414 chmod 444 Makefile.new
27415 mv -f Makefile.new Makefile
27418 echo creating src
/Makefile
27420 rm -f junk.c junk1.c junk2.c
27421 sed -e '/start of cpp stuff/q' \
27422 < Makefile.c
> junk1.c
27423 sed -e '1,/start of cpp stuff/d'\
27424 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27425 < Makefile.c
> junk.c
27426 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27427 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27428 cat junk1.c junk2.c
> Makefile.new
27429 rm -f junk.c junk1.c junk2.c
27430 chmod 444 Makefile.new
27431 mv -f Makefile.new Makefile
27434 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27435 echo creating src
/.gdbinit
27436 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27445 { (exit 0); exit 0; }
27447 chmod +x
$CONFIG_STATUS
27448 ac_clean_files
=$ac_clean_files_save
27450 test $ac_write_fail = 0 ||
27451 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27452 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27453 { (exit 1); exit 1; }; }
27456 # configure is writing to config.log, and then calls config.status.
27457 # config.status does its own redirection, appending to config.log.
27458 # Unfortunately, on DOS this fails, as config.log is still kept open
27459 # by configure, so config.status won't be able to write to it; its
27460 # output is simply discarded. So we exec the FD to /dev/null,
27461 # effectively closing config.log, so it can be properly (re)opened and
27462 # appended to by config.status. When coming back to configure, we
27463 # need to make the FD available again.
27464 if test "$no_create" != yes; then
27466 ac_config_status_args
=
27467 test "$silent" = yes &&
27468 ac_config_status_args
="$ac_config_status_args --quiet"
27470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27473 # would make configure fail if this is the last instruction.
27474 $ac_cs_success ||
{ (exit 1); exit 1; }
27476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27477 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}