2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='23.1.50'
598 PACKAGE_STRING
='emacs 23.1.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
746 x_default_search_path
765 GNUSTEP_SYSTEM_HEADERS
766 GNUSTEP_SYSTEM_LIBRARIES
768 LIB_SRC_EXTRA_INSTALLABLES
773 enable_option_checking
790 with_toolkit_scroll_bars
802 enable_ns_self_contained
804 enable_maintainer_mode
812 ac_precious_vars
='build_alias
824 # Initialize some variables set by options.
826 ac_init_version
=false
827 ac_unrecognized_opts
=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name
=s
,x
,x
,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir
='${exec_prefix}/bin'
853 sbindir
='${exec_prefix}/sbin'
854 libexecdir
='${exec_prefix}/libexec'
855 datarootdir
='${prefix}/share'
856 datadir
='${datarootdir}'
857 sysconfdir
='${prefix}/etc'
858 sharedstatedir
='${prefix}/com'
859 localstatedir
='${prefix}/var'
860 includedir
='${prefix}/include'
861 oldincludedir
='/usr/include'
862 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir
='${datarootdir}/info'
868 libdir
='${exec_prefix}/lib'
869 localedir
='${datarootdir}/locale'
870 mandir
='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\
$ac_option
884 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
896 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
899 -build |
--build |
--buil |
--bui |
--bu)
900 ac_prev
=build_alias
;;
901 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
902 build_alias
=$ac_optarg ;;
904 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
905 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
906 ac_prev
=cache_file
;;
907 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
908 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
909 cache_file
=$ac_optarg ;;
912 cache_file
=config.cache
;;
914 -datadir |
--datadir |
--datadi |
--datad)
916 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
917 datadir
=$ac_optarg ;;
919 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
920 |
--dataroo |
--dataro |
--datar)
921 ac_prev
=datarootdir
;;
922 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
923 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
924 datarootdir
=$ac_optarg ;;
926 -disable-* |
--disable-*)
927 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
930 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
931 { (exit 1); exit 1; }; }
932 ac_useropt_orig
=$ac_useropt
933 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
938 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep
=', ';;
941 eval enable_
$ac_useropt=no
;;
943 -docdir |
--docdir |
--docdi |
--doc |
--do)
945 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
948 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
950 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
953 -enable-* |
--enable-*)
954 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
957 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
958 { (exit 1); exit 1; }; }
959 ac_useropt_orig
=$ac_useropt
960 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep
=', ';;
968 eval enable_
$ac_useropt=\
$ac_optarg ;;
970 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
971 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
972 |
--exec |
--exe |
--ex)
973 ac_prev
=exec_prefix
;;
974 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
975 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
976 |
--exec=* |
--exe=* |
--ex=*)
977 exec_prefix
=$ac_optarg ;;
979 -gas |
--gas |
--ga |
--g)
980 # Obsolete; use --with-gas.
983 -help |
--help |
--hel |
--he |
-h)
985 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
986 ac_init_help
=recursive
;;
987 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
988 ac_init_help
=short
;;
990 -host |
--host |
--hos |
--ho)
991 ac_prev
=host_alias
;;
992 -host=* |
--host=* |
--hos=* |
--ho=*)
993 host_alias
=$ac_optarg ;;
995 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
997 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
999 htmldir
=$ac_optarg ;;
1001 -includedir |
--includedir |
--includedi |
--included |
--include \
1002 |
--includ |
--inclu |
--incl |
--inc)
1003 ac_prev
=includedir
;;
1004 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1005 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1006 includedir
=$ac_optarg ;;
1008 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1010 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1011 infodir
=$ac_optarg ;;
1013 -libdir |
--libdir |
--libdi |
--libd)
1015 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1016 libdir
=$ac_optarg ;;
1018 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1019 |
--libexe |
--libex |
--libe)
1020 ac_prev
=libexecdir
;;
1021 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1022 |
--libexe=* |
--libex=* |
--libe=*)
1023 libexecdir
=$ac_optarg ;;
1025 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1026 ac_prev
=localedir
;;
1027 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1028 localedir
=$ac_optarg ;;
1030 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1031 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1032 ac_prev
=localstatedir
;;
1033 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1034 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1035 localstatedir
=$ac_optarg ;;
1037 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1039 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1040 mandir
=$ac_optarg ;;
1042 -nfp |
--nfp |
--nf)
1043 # Obsolete; use --without-fp.
1046 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1047 |
--no-cr |
--no-c |
-n)
1050 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1051 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1054 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1055 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1056 |
--oldin |
--oldi |
--old |
--ol |
--o)
1057 ac_prev
=oldincludedir
;;
1058 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1059 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1060 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1061 oldincludedir
=$ac_optarg ;;
1063 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1065 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1066 prefix
=$ac_optarg ;;
1068 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1069 |
--program-pre |
--program-pr |
--program-p)
1070 ac_prev
=program_prefix
;;
1071 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1072 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1073 program_prefix
=$ac_optarg ;;
1075 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1076 |
--program-suf |
--program-su |
--program-s)
1077 ac_prev
=program_suffix
;;
1078 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1079 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1080 program_suffix
=$ac_optarg ;;
1082 -program-transform-name |
--program-transform-name \
1083 |
--program-transform-nam |
--program-transform-na \
1084 |
--program-transform-n |
--program-transform- \
1085 |
--program-transform |
--program-transfor \
1086 |
--program-transfo |
--program-transf \
1087 |
--program-trans |
--program-tran \
1088 |
--progr-tra |
--program-tr |
--program-t)
1089 ac_prev
=program_transform_name
;;
1090 -program-transform-name=* |
--program-transform-name=* \
1091 |
--program-transform-nam=* |
--program-transform-na=* \
1092 |
--program-transform-n=* |
--program-transform-=* \
1093 |
--program-transform=* |
--program-transfor=* \
1094 |
--program-transfo=* |
--program-transf=* \
1095 |
--program-trans=* |
--program-tran=* \
1096 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1097 program_transform_name
=$ac_optarg ;;
1099 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1101 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1102 pdfdir
=$ac_optarg ;;
1104 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1106 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1109 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1110 |
-silent |
--silent |
--silen |
--sile |
--sil)
1113 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1115 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1117 sbindir
=$ac_optarg ;;
1119 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1120 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1121 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1123 ac_prev
=sharedstatedir
;;
1124 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1125 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1126 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1128 sharedstatedir
=$ac_optarg ;;
1130 -site |
--site |
--sit)
1132 -site=* |
--site=* |
--sit=*)
1135 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1137 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1138 srcdir
=$ac_optarg ;;
1140 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1141 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1142 ac_prev
=sysconfdir
;;
1143 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1144 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1145 sysconfdir
=$ac_optarg ;;
1147 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1148 ac_prev
=target_alias
;;
1149 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1150 target_alias
=$ac_optarg ;;
1152 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1155 -version |
--version |
--versio |
--versi |
--vers |
-V)
1156 ac_init_version
=: ;;
1159 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_useropt_orig
=$ac_useropt
1165 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep
=', ';;
1173 eval with_
$ac_useropt=\
$ac_optarg ;;
1175 -without-* |
--without-*)
1176 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=no
;;
1193 # Obsolete; use --with-x.
1196 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1197 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1198 ac_prev
=x_includes
;;
1199 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1200 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1201 x_includes
=$ac_optarg ;;
1203 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1204 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1205 ac_prev
=x_libraries
;;
1206 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1207 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1208 x_libraries
=$ac_optarg ;;
1210 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1216 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1219 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\
$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 if test -n "$ac_prev"; then
1236 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1237 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1244 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1245 { (exit 1); exit 1; }; } ;;
1246 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 # Check all directory arguments for consistency.
1251 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val
=\$
$ac_var
1257 # Remove trailing slashes.
1260 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\
$ac_val;;
1263 # Be sure to have absolute directory names.
1265 [\\/$
]* | ?
:[\\/]* ) continue;;
1266 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1268 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target
=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x
; then
1281 if test "x$build_alias" = x
; then
1282 cross_compiling
=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1293 test "$silent" = yes && exec 6>/dev
/null
1296 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di
=`ls -di .` &&
1298 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1299 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted
=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir
=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1338 ac_srcdir_defaulted
=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1342 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var
in $ac_precious_vars; do
1361 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1363 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1437 --x-includes=DIR X include files are
in DIR
1438 --x-libraries=DIR X library files are
in DIR
1441 --build=BUILD configure
for building on BUILD
[guessed
]
1442 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1453 --disable-option-checking ignore unrecognized
--enable/--with options
1454 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1455 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1456 --disable-ns-self-contained
1457 disable self contained build under NeXTstep
1458 --enable-asserts compile code with asserts enabled
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful
(and
1461 sometimes confusing
) to the casual installer
1462 --enable-locallisppath=PATH
1463 directories Emacs should search
for lisp files
1464 specific to this site
1465 --enable-checking[=LIST
]
1466 enable expensive run-time checks. With LIST
, enable
1467 only specific categories of checks. Categories are
:
1468 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1469 stringfreelist
, xmallocoverrun
, conslist
1470 --enable-profiling build emacs with profiling support. This might not
1471 work on all platforms
1472 --enable-autodepend automatically generate dependencies to .h-files.
1473 Requires GNU Make and Gcc. Enabled
if GNU Make and
1475 --disable-largefile omit support
for large files
1478 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1479 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1480 --without-pop don
't support POP mail retrieval with movemail
1481 --with-kerberos support Kerberos-authenticated POP
1482 --with-kerberos5 support Kerberos version 5 authenticated POP
1483 --with-hesiod support Hesiod to get the POP server host
1484 --without-sound don't compile with sound support
1485 --without-sync-input process async input synchronously
1486 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1488 --without-xpm don
't compile with XPM image support
1489 --without-jpeg don't compile with JPEG image support
1490 --without-tiff don
't compile with TIFF image support
1491 --without-gif don't compile with GIF image support
1492 --without-png don
't compile with PNG image support
1493 --without-rsvg don't compile with SVG image support
1494 --without-xft don
't use XFT for anti aliased fonts
1495 --without-libotf don't use libotf
for OpenType font support
1496 --without-m17n-flt don
't use m17n-flt for text shaping
1497 --without-toolkit-scroll-bars
1498 don't use Motif or Xaw3d scroll bars
1499 --without-xaw3d don
't use Xaw3d
1500 --without-xim don't use X11 XIM
1501 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1502 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1504 --without-dbus don't compile with D-Bus support
1505 --without-gconf don
't compile with GConf support
1506 --without-makeinfo don't require makeinfo
for building manuals
1508 --with-pkg-config-prog=PATH
1509 path to pkg-config
for finding GTK and librsvg
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1512 or
/etc
/GNUstep
/GNUstep.conf
1513 --with-x use the X Window System
1515 Some influential environment variables
:
1516 CC C compiler
command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1519 nonstandard directory
<lib dir
>
1520 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1521 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1522 you have headers
in a nonstandard directory
<include dir
>
1524 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1526 Use these variables to override the choices made by
`configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1558 .) # We are building in place.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1591 emacs configure 23.1.50
1592 generated by GNU Autoconf 2.62
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by emacs $as_me 23.1.50, which was
1606 generated by GNU Autoconf 2.62. Invocation command line was
1618 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1619 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1620 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1621 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1622 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1624 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1625 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1627 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1628 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1629 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1631 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1633 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_must_keep_next=false
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1677 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 -* ) ac_must_keep_next=true ;;
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1725 eval ac_val=\$$ac_var
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 $as_echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 $as_echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1882 ac_header_list="$ac_header_list sys/time.h"
1883 ac_header_list="$ac_header_list unistd.h"
1884 ac_func_list="$ac_func_list alarm"
1885 # Check that the precious variables saved in the cache have kept the same
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1896 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1900 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 # differences in whitespace do not lead to failure.
1906 ac_old_val_w=`echo x
$ac_old_val`
1907 ac_new_val_w=`echo x
$ac_new_val`
1908 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1909 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1911 ac_cache_corrupted=:
1913 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1914 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1915 eval $ac_var=\$ac_old_val
1917 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1918 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1919 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1920 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1923 # Pass precious variables to config.status.
1924 if test "$ac_new_set" = set; then
1926 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1927 *) ac_arg=$ac_var=$ac_new_val ;;
1929 case " $ac_configure_args " in
1930 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1931 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935 if $ac_cache_corrupted; then
1936 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1937 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1938 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1940 { (exit 1); exit 1; }; }
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1978 test "$program_prefix" != NONE &&
1979 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1980 # Use a double $ so make ignores it.
1981 test "$program_suffix" != NONE &&
1982 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1983 # Double any \ or $.
1984 # By default was `s
,x
,x
', remove it if useless.
1985 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
1986 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1989 lispdir='${datadir}/emacs
/${version}/lisp
'
1990 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1991 '${datadir}/emacs
/site-lisp
'
1992 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1993 etcdir='${datadir}/emacs
/${version}/etc
'
1994 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1995 docdir='${datadir}/emacs
/${version}/etc
'
1996 gamedir='${localstatedir}/games
/emacs
'
2003 # Check whether --with-pop was given.
2004 if test "${with_pop+set}" = set; then
2010 if test "$with_pop" = yes; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define MAIL_USE_POP 1
2019 # Check whether --with-kerberos was given.
2020 if test "${with_kerberos+set}" = set; then
2021 withval=$with_kerberos;
2026 if test "$with_kerberos" != no; then
2027 cat >>confdefs.h <<\_ACEOF
2035 # Check whether --with-kerberos5 was given.
2036 if test "${with_kerberos5+set}" = set; then
2037 withval=$with_kerberos5;
2042 if test "${with_kerberos5}" != no; then
2043 if test "${with_kerberos}" = no; then
2045 cat >>confdefs.h <<\_ACEOF
2051 cat >>confdefs.h <<\_ACEOF
2058 # Check whether --with-hesiod was given.
2059 if test "${with_hesiod+set}" = set; then
2060 withval=$with_hesiod;
2065 if test "$with_hesiod" != no; then
2067 cat >>confdefs.h <<\_ACEOF
2074 # Check whether --with-sound was given.
2075 if test "${with_sound+set}" = set; then
2076 withval=$with_sound;
2083 # Check whether --with-sync-input was given.
2084 if test "${with_sync_input+set}" = set; then
2085 withval=$with_sync_input;
2090 if test "$with_sync_input" = yes; then
2092 cat >>confdefs.h <<\_ACEOF
2093 #define SYNC_INPUT 1
2099 # Check whether --with-x-toolkit was given.
2100 if test "${with_x_toolkit+set}" = set; then
2101 withval=$with_x_toolkit; case "${withval}" in
2102 y | ye | yes ) val=gtk ;;
2104 l | lu | luc | luci | lucid ) val=lucid ;;
2105 a | at | ath | athe | athen | athena ) val=athena ;;
2106 m | mo | mot | moti | motif ) val=motif ;;
2107 g | gt | gtk ) val=gtk ;;
2109 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
2110 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2111 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
2112 $as_echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
2113 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2114 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
2115 { (exit 1); exit 1; }; }
2124 # Check whether --with-xpm was given.
2125 if test "${with_xpm+set}" = set; then
2132 # Check whether --with-jpeg was given.
2133 if test "${with_jpeg+set}" = set; then
2140 # Check whether --with-tiff was given.
2141 if test "${with_tiff+set}" = set; then
2148 # Check whether --with-gif was given.
2149 if test "${with_gif+set}" = set; then
2156 # Check whether --with-png was given.
2157 if test "${with_png+set}" = set; then
2164 # Check whether --with-rsvg was given.
2165 if test "${with_rsvg+set}" = set; then
2173 # Check whether --with-xft was given.
2174 if test "${with_xft+set}" = set; then
2181 # Check whether --with-libotf was given.
2182 if test "${with_libotf+set}" = set; then
2183 withval=$with_libotf;
2189 # Check whether --with-m17n-flt was given.
2190 if test "${with_m17n_flt+set}" = set; then
2191 withval=$with_m17n_flt;
2198 # Check whether --with-toolkit-scroll-bars was given.
2199 if test "${with_toolkit_scroll_bars+set}" = set; then
2200 withval=$with_toolkit_scroll_bars;
2202 with_toolkit_scroll_bars=yes
2206 # Check whether --with-xaw3d was given.
2207 if test "${with_xaw3d+set}" = set; then
2208 withval=$with_xaw3d;
2214 # Check whether --with-xim was given.
2215 if test "${with_xim+set}" = set; then
2222 # Check whether --with-ns was given.
2223 if test "${with_ns+set}" = set; then
2231 # Check whether --with-gpm was given.
2232 if test "${with_gpm+set}" = set; then
2239 # Check whether --with-dbus was given.
2240 if test "${with_dbus+set}" = set; then
2247 # Check whether --with-gconf was given.
2248 if test "${with_gconf+set}" = set; then
2249 withval=$with_gconf;
2255 ## For the times when you want to build Emacs but don't have
2256 ## a suitable makeinfo, and can live without the manuals.
2258 # Check whether --with-makeinfo was given.
2259 if test "${with_makeinfo+set}" = set; then
2260 withval
=$with_makeinfo;
2267 # Check whether --with-gtk was given.
2268 if test "${with_gtk+set}" = set; then
2269 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2270 specify a toolkit." >&5
2271 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2272 specify a toolkit." >&2;}
2273 { (exit 1); exit 1; }; }
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2280 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2281 variable to specify a compiler." >&5
2282 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2283 variable to specify a compiler." >&2;}
2284 { (exit 1); exit 1; }; }
2289 # Check whether --with-pkg-config-prog was given.
2290 if test "${with_pkg_config_prog+set}" = set; then
2291 withval
=$with_pkg_config_prog;
2294 if test "X${with_pkg_config_prog}" != X
; then
2295 if test "${with_pkg_config_prog}" != yes; then
2296 PKG_CONFIG
="${with_pkg_config_prog}"
2301 # Check whether --with-gnustep-conf was given.
2302 if test "${with_gnustep_conf+set}" = set; then
2303 withval
=$with_gnustep_conf;
2306 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2307 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2308 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2309 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2311 # Check whether --enable-ns-self-contained was given.
2312 if test "${enable_ns_self_contained+set}" = set; then
2313 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2315 EN_NS_SELF_CONTAINED
=yes
2319 # Check whether --enable-asserts was given.
2320 if test "${enable_asserts+set}" = set; then
2321 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2327 # Check whether --enable-maintainer-mode was given.
2328 if test "${enable_maintainer_mode+set}" = set; then
2329 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2331 USE_MAINTAINER_MODE
=no
2334 if test $USE_MAINTAINER_MODE = yes; then
2341 # Check whether --enable-locallisppath was given.
2342 if test "${enable_locallisppath+set}" = set; then
2343 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2345 elif test "${enableval}" != "yes"; then
2346 locallisppath
=${enableval}
2351 # Check whether --enable-checking was given.
2352 if test "${enable_checking+set}" = set; then
2353 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2356 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2357 for check
in $ac_checking_flags
2360 # these set all the flags to specific states
2361 yes) ac_enable_checking
=1 ;;
2362 no
) ac_enable_checking
= ;
2363 ac_gc_check_stringbytes
= ;
2364 ac_gc_check_string_overrun
= ;
2365 ac_gc_check_string_free_list
= ;
2366 ac_xmalloc_overrun
= ;
2367 ac_gc_check_cons_list
= ;;
2368 all
) ac_enable_checking
=1 ;
2369 ac_gc_check_stringbytes
=1 ;
2370 ac_gc_check_string_overrun
=1 ;
2371 ac_gc_check_string_free_list
=1 ;
2372 ac_xmalloc_overrun
=1 ;
2373 ac_gc_check_cons_list
=1 ;;
2374 # these enable particular checks
2375 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2376 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2377 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2378 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2379 conslist
) ac_gc_check_cons_list
=1 ;;
2380 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2381 $as_echo "$as_me: error: unknown check category $check" >&2;}
2382 { (exit 1); exit 1; }; } ;;
2387 if test x
$ac_enable_checking != x
; then
2389 cat >>confdefs.h
<<\_ACEOF
2390 #define ENABLE_CHECKING 1
2394 if test x
$ac_gc_check_stringbytes != x
; then
2396 cat >>confdefs.h
<<\_ACEOF
2397 #define GC_CHECK_STRING_BYTES 1
2401 if test x
$ac_gc_check_stringoverrun != x
; then
2403 cat >>confdefs.h
<<\_ACEOF
2404 #define GC_CHECK_STRING_OVERRUN 1
2408 if test x
$ac_gc_check_string_free_list != x
; then
2410 cat >>confdefs.h
<<\_ACEOF
2411 #define GC_CHECK_STRING_FREE_LIST 1
2415 if test x
$ac_xmalloc_overrun != x
; then
2417 cat >>confdefs.h
<<\_ACEOF
2418 #define XMALLOC_OVERRUN_CHECK 1
2422 if test x
$ac_gc_check_cons_list != x
; then
2424 cat >>confdefs.h
<<\_ACEOF
2425 #define GC_CHECK_CONS_LIST 1
2430 # Check whether --enable-profiling was given.
2431 if test "${enable_profiling+set}" = set; then
2432 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2435 if test x
$ac_enable_profiling != x
; then
2436 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2437 PROFILING_LDFLAGS
="-pg"
2443 # Check whether --enable-autodepend was given.
2444 if test "${enable_autodepend+set}" = set; then
2445 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2447 ac_enable_autodepend
=yes
2451 #### Make srcdir absolute, if it isn't already. It's important to
2452 #### avoid running the path through pwd unnecessarily, since pwd can
2453 #### give you automounter prefixes, which can go away. We do all this
2454 #### so Emacs can find its files when run uninstalled.
2455 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2460 ## We may be able to use the $PWD environment variable to make this
2461 ## absolute. But sometimes PWD is inaccurate.
2462 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2463 ## but that tested only for a well-formed and valid PWD,
2464 ## it did not object when PWD was well-formed and valid but just wrong.
2465 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2469 srcdir
="`(cd ${srcdir}; pwd)`"
2472 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2475 #### Check if the source directory already has a configured system in it.
2476 if test `pwd` != `(cd ${srcdir} && pwd)` \
2477 && test -f "${srcdir}/src/config.h" ; then
2478 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2479 as a build directory right now; it has been configured in its own
2480 right. To configure in another directory as well, you MUST
2481 use GNU make. If you do not have GNU make, then you must
2482 now do \`make distclean' in ${srcdir},
2483 and then run $0 again." >&5
2484 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2485 as a build directory right now; it has been configured in its own
2486 right. To configure in another directory as well, you MUST
2487 use GNU make. If you do not have GNU make, then you must
2488 now do \`make distclean' in ${srcdir},
2489 and then run $0 again." >&2;}
2492 #### Given the configuration name, set machfile and opsysfile to the
2493 #### names of the m/*.h and s/*.h files we should use.
2495 ### Canonicalize the configuration name.
2498 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2501 ac_install_sh
="$ac_aux_dir/install-sh -c"
2503 elif test -f "$ac_dir/install.sh"; then
2505 ac_install_sh
="$ac_aux_dir/install.sh -c"
2507 elif test -f "$ac_dir/shtool"; then
2509 ac_install_sh
="$ac_aux_dir/shtool install -c"
2513 if test -z "$ac_aux_dir"; then
2514 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2515 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2516 { (exit 1); exit 1; }; }
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2528 # Make sure we can run config.sub.
2529 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2530 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2532 { (exit 1); exit 1; }; }
2534 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if test "${ac_cv_build+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2539 ac_build_alias
=$build_alias
2540 test "x$ac_build_alias" = x
&&
2541 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x
&&
2543 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2544 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2548 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2549 { (exit 1); exit 1; }; }
2552 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2556 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2557 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2558 { (exit 1); exit 1; }; };;
2561 ac_save_IFS
=$IFS; IFS
='-'
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2571 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2579 if test "x$host_alias" = x
; then
2580 ac_cv_host
=$ac_cv_build
2582 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2584 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2585 { (exit 1); exit 1; }; }
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2593 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2594 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2595 { (exit 1); exit 1; }; };;
2598 ac_save_IFS
=$IFS; IFS
='-'
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2608 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2612 configuration
=${host_alias-${build_alias-$host}}
2616 ### If you add support for a new configuration, add code to this
2617 ### switch statement to recognize your configuration name and select
2618 ### the appropriate operating system and machine description files.
2620 ### You would hope that you could choose an m/*.h file pretty much
2621 ### based on the machine portion of the configuration name, and an s-
2622 ### file based on the operating system portion. However, it turns out
2623 ### that each m/*.h file is pretty manufacturer-specific - for
2624 ### example mips.h is MIPS
2625 ### So we basically have to have a special case for each
2626 ### configuration name.
2628 ### As far as handling version numbers on operating systems is
2629 ### concerned, make sure things will fail in a fixable way. If
2630 ### /etc/MACHINES doesn't say anything about version numbers, be
2631 ### prepared to handle anything reasonably. If version numbers
2632 ### matter, be sure /etc/MACHINES says something about it.
2634 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2635 ### "System V Release 4"; he writes, "The old convention encouraged
2636 ### confusion between `system' and `release' levels'."
2638 machine
='' opsys
='' unported
=no
2639 case "${canonical}" in
2644 case "${canonical}" in
2645 alpha
*-*-freebsd*) machine
=alpha
;;
2646 arm
*-*-freebsd*) machine
=arm
;;
2647 ia64-
*-freebsd*) machine
=ia64
;;
2648 sparc-
*-freebsd*) machine
=sparc
;;
2649 sparc64-
*-freebsd*) machine
=sparc
;;
2650 powerpc-
*-freebsd*) machine
=macppc
;;
2651 i
[3456]86-*-freebsd*) machine
=intel386
;;
2652 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2656 ## FreeBSD kernel + glibc based userland
2659 case "${canonical}" in
2660 alpha
*-*-kfreebsd*) machine
=alpha
;;
2661 ia64-
*-kfreebsd*) machine
=ia64
;;
2662 sparc-
*-kfreebsd*) machine
=sparc
;;
2663 sparc64-
*-kfreebsd*) machine
=sparc
;;
2664 powerpc-
*-kfreebsd*) machine
=macppc
;;
2665 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2666 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2673 if test -f /usr
/lib
/crti.o
; then
2675 cat >>confdefs.h
<<\_ACEOF
2676 #define HAVE_CRTIN /**/
2681 case "${canonical}" in
2682 alpha
*-*-netbsd*) machine
=alpha
;;
2683 i
[3456]86-*-netbsd*) machine
=intel386
;;
2684 mips-
*-netbsd*) machine
=mips
;;
2685 mipsel-
*-netbsd*) machine
=mips
;;
2686 mipseb-
*-netbsd*) machine
=mips
;;
2687 powerpc-
*-netbsd*) machine
=macppc
;;
2688 sparc
*-*-netbsd*) machine
=sparc
;;
2689 vax-
*-netbsd*) machine
=vax
;;
2690 arm-
*-netbsd*) machine
=arm
;;
2691 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2692 hppa-
*-netbsd*) machine
=hp800
;;
2693 m68k-
*-netbsd*) machine
=m68k
;;
2700 case "${canonical}" in
2701 alpha
*-*-openbsd*) machine
=alpha
;;
2702 arm-
*-openbsd*) machine
=arm
;;
2703 i386-
*-openbsd*) machine
=intel386
;;
2704 powerpc-
*-openbsd*) machine
=macppc
;;
2705 sparc
*-*-openbsd*) machine
=sparc
;;
2706 vax-
*-openbsd*) machine
=vax
;;
2707 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2708 hppa-
*-openbsd*) machine
=hp800
;;
2715 case "${canonical}" in
2716 i
[3456]86-*-lynxos*) machine
=intel386
;;
2717 powerpc-
*-lynxos*) machine
=powerpc
;;
2721 alpha
*-*-linux-gnu* )
2722 machine
=alpha opsys
=gnu-linux
2726 machine
=arm opsys
=gnu-linux
2729 ## Apple Darwin / Mac OS X
2731 case "${canonical}" in
2732 i
[3456]86-* ) machine
=intel386
;;
2733 powerpc-
* ) machine
=macppc
;;
2734 x86_64-
* ) machine
=amdx86-64
;;
2738 # Define CPP as follows to make autoconf work correctly.
2739 CPP
="${CC-cc} -E -no-cpp-precomp"
2740 # Use fink packages if available.
2741 if test -d /sw
/include
&& test -d /sw
/lib
; then
2742 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2743 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2744 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2748 ## HP 9000 series 700 and 800, running HP/UX
2749 hppa
*-hp-hpux10.2
* )
2750 machine
=hp800 opsys
=hpux10-20
2752 hppa
*-hp-hpux1[1-9]* )
2753 machine
=hp800 opsys
=hpux11
2754 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2757 hppa
*-*-linux-gnu* )
2758 machine
=hp800 opsys
=gnu-linux
2763 machine
=ibms390 opsys
=gnu-linux
2765 s390x-
*-linux-gnu* )
2766 machine
=ibms390x opsys
=gnu-linux
2768 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2769 machine
=ibmrs6000 opsys
=aix4-2
2771 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2772 machine
=ibmrs6000 opsys
=aix4-2
2774 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2775 machine
=ibmrs6000 opsys
=aix4-2
2777 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2778 machine
=ibmrs6000 opsys
=aix4-2
2781 ## Macintosh PowerPC
2782 powerpc
*-*-linux-gnu* )
2783 machine
=macppc opsys
=gnu-linux
2786 ## Silicon Graphics machines
2789 machine
=iris4d opsys
=irix6-5
2790 # Without defining _LANGUAGE_C, things get masked out in the headers
2791 # so that, for instance, grepping for `free' in stdlib.h fails and
2792 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2793 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2794 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2798 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2799 machine
=sparc opsys
=gnu-linux
2803 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2804 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2805 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2806 case "${canonical}" in
2807 i
[3456]86-*-* ) machine
=intel386
;;
2808 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2809 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2810 sparc
* ) machine
=sparc
;;
2813 case "${canonical}" in
2814 *-sunos5.3
* |
*-solaris2.3
* )
2816 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2818 *-sunos5.4
* |
*-solaris2.4
* )
2820 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2823 *-sunos5.5
* |
*-solaris2.5
* )
2825 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2828 *-sunos5.6
* |
*-solaris2.6
* )
2830 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2833 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2835 emacs_check_sunpro_c
=yes
2836 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2838 *-sunos5* |
*-solaris* )
2840 emacs_check_sunpro_c
=yes
2841 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2844 ## Watch out for a compiler that we know will not work.
2845 case "${canonical}" in
2846 *-solaris* |
*-sunos5* )
2847 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2848 ## /usr/ucb/cc doesn't work;
2849 ## we should find some other compiler that does work.
2859 machine
=ia64 opsys
=gnu-linux
2862 ## Intel 386 machines where we don't care about the manufacturer
2865 case "${canonical}" in
2866 *-cygwin ) opsys
=cygwin
;;
2867 *-darwin* ) opsys
=darwin
2868 CPP
="${CC-cc} -E -no-cpp-precomp"
2870 *-linux-gnu* ) opsys
=gnu-linux
;;
2871 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2872 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2873 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2874 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2878 ## m68k Linux-based GNU system
2880 machine
=m68k opsys
=gnu-linux
2883 ## Mips Linux-based GNU system
2884 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2885 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2886 machine
=mips opsys
=gnu-linux
2889 ## AMD x86-64 Linux-based GNU system
2890 x86_64-
*-linux-gnu* )
2891 machine
=amdx86-64 opsys
=gnu-linux
2894 ## Tensilica Xtensa Linux-based GNU system
2895 xtensa
*-*-linux-gnu* )
2896 machine
=xtensa opsys
=gnu-linux
2899 ## SuperH Linux-based GNU system
2900 sh
[34]*-*-linux-gnu* )
2901 machine
=sh3 opsys
=gnu-linux
2909 ### If the code above didn't choose an operating system, just choose
2910 ### an operating system based on the configuration name. You really
2911 ### only want to use this when you have no idea what the right
2912 ### operating system is; if you know what operating systems a machine
2913 ### runs, it's cleaner to make it explicit in the case statement
2915 if test x
"${opsys}" = x
; then
2916 case "${canonical}" in
2917 *-gnu* ) opsys
=gnu
;;
2918 *-sysv4.2uw
* ) opsys
=unixware
;;
2919 *-sysv5uw* ) opsys
=unixware
;;
2920 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2921 *-sysv4.1
* |
*-sysvr4.1
* )
2922 NON_GNU_CPP
=/usr
/lib
/cpp
2924 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2925 if [ x
$NON_GNU_CPP = x
]; then
2926 if [ -f /usr
/ccs
/lib
/cpp
]; then
2927 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2929 NON_GNU_CPP
=/lib
/cpp
2933 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2942 if test $unported = yes; then
2943 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2944 Check \`etc/MACHINES' for recognized configuration names." >&5
2945 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2946 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2947 { (exit 1); exit 1; }; }
2950 machfile
="m/${machine}.h"
2951 opsysfile
="s/${opsys}.h"
2954 #### Choose a compiler.
2955 test -n "$CC" && cc_specified
=yes
2957 # Save the value of CFLAGS that the user specified.
2958 SPECIFIED_CFLAGS
="$CFLAGS"
2961 ac_cpp
='$CPP $CPPFLAGS'
2962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC
="$CC" # Let the user override the test.
2976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir
=.
2981 for ac_exec_ext
in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999 $as_echo "no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc
; ac_word
=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC
="gcc"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3042 if test "x$ac_ct_CC" = x
; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned
=yes ;;
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC
="$CC" # Let the user override the test.
3073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir
=.
3078 for ac_exec_ext
in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc
; ac_word
=$2
3105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC
="$CC" # Let the user override the test.
3114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir
=.
3119 for ac_exec_ext
in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected
=yes
3126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy
$ac_cv_prog_CC
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3142 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog
in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC
="$CC" # Let the user override the test.
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$CC"; then
3191 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3192 $as_echo "$CC" >&6; }
3194 { $as_echo "$as_me:$LINENO: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$CC" && break
3202 if test -z "$CC"; then
3204 for ac_prog
in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy
$ac_prog; ac_word
=$2
3208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir
=.
3221 for ac_exec_ext
in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC
="$ac_prog"
3224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3238 { $as_echo "$as_me:$LINENO: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$ac_ct_CC" && break
3246 if test "x$ac_ct_CC" = x
; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned
=yes ;;
3266 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3276 { (ac_try
="$ac_compiler --version >&5"
3278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compiler --version >&5") 2>&5
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287 { (ac_try="$ac_compiler -v >&5"
3289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3290 *) ac_try_echo
=$ac_try;;
3292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compiler -v >&5") 2>&5
3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try
="$ac_compiler -V >&5"
3300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compiler -V >&5") 2>&5
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3325 ac_clean_files_save=$ac_clean_files
3326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3327 # Try to create an executable without -o first, disregard a.out.
3328 # It will help us diagnose broken compilers, and finding out an intuition
3330 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3334 # The possible output files:
3335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3338 for ac_file in $ac_files
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3347 if { (ac_try="$ac_link_default"
3349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3350 *) ac_try_echo
=$ac_try;;
3352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_link_default") 2>&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3363 for ac_file
in $ac_files ''
3365 test -f "$ac_file" ||
continue
3367 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3370 # We found the default executable, but exeext='' is most
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3376 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3388 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3394 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 if test -z "$ac_file"; then
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.
$ac_ext >&5
3400 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: C compiler cannot create executables
3403 See \`config.log' for more details." >&2;}
3404 { (exit 77); exit 77; }; }
3407 ac_exeext
=$ac_cv_exeext
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3412 $as_echo_n "checking whether the C compiler works... " >&6; }
3413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3414 # If not cross compiling, check that we can run a simple program.
3415 if test "$cross_compiling" != yes; then
3416 if { ac_try
='./$ac_file'
3417 { (case "(($ac_try" in
3418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_try") 2>&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3429 if test "$cross_compiling" = maybe; then
3432 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details.
" >&5
3435 $as_echo "$as_me: error
: cannot run C compiled programs.
3436 If you meant to cross compile
, use \
`--host'.
3437 See \`config.log
' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3442 { $as_echo "$as_me:$LINENO: result: yes" >&5
3443 $as_echo "yes" >&6; }
3445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3446 ac_clean_files=$ac_clean_files_save
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3452 $as_echo "$cross_compiling" >&6; }
3454 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3455 $as_echo_n "checking for suffix of executables... " >&6; }
3456 if { (ac_try="$ac_link"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_link") 2>&5
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
3467 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3468 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3469 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3471 for ac_file
in conftest.exe conftest conftest.
*; do
3472 test -f "$ac_file" ||
continue
3474 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3475 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3488 rm -f conftest
$ac_cv_exeext
3489 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3492 rm -f conftest.
$ac_ext
3493 EXEEXT
=$ac_cv_exeext
3495 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if test "${ac_cv_objext+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3500 cat >conftest.
$ac_ext <<_ACEOF
3503 cat confdefs.h
>>conftest.
$ac_ext
3504 cat >>conftest.
$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3515 rm -f conftest.o conftest.obj
3516 if { (ac_try
="$ac_compile"
3518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3540 See \`config.log
' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details.
" >&2;}
3543 { (exit 1); exit 1; }; }
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3552 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3555 $as_echo_n "(cached
) " >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 $as_echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3615 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3616 if test "${ac_cv_prog_cc_g+set}" = set; then
3617 $as_echo_n "(cached
) " >&6
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3658 $as_echo "$as_me: failed program was
:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3697 $as_echo "$as_me: failed program was
:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3737 $as_echo "$as_me: failed program was
:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3763 if test "$GCC" = yes; then
3769 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3770 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then
3772 $as_echo_n "(cached
) " >&6
3774 ac_cv_prog_cc_c89=no
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3800 s = g (p, va_arg (v,int));
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3844 $as_echo "$ac_try_echo") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_prog_cc_c89=$ac_arg
3857 $as_echo "$as_me: failed program was
:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3863 rm -f core conftest.err conftest.$ac_objext
3864 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3866 rm -f conftest.$ac_ext
3871 case "x
$ac_cv_prog_cc_c89" in
3873 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3874 $as_echo "none needed
" >&6; } ;;
3876 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3877 $as_echo "unsupported
" >&6; } ;;
3879 CC="$CC $ac_cv_prog_cc_c89"
3880 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3881 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3897 ## If not using gcc, and on Solaris, and no CPP specified, see if
3898 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3899 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3900 test x"$CPP" = x; then
3901 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3902 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3904 if test "${emacs_cv_sunpro_c+set}" = set; then
3905 $as_echo_n "(cached
) " >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_link") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest$ac_exeext && {
3943 test "$cross_compiling" = yes ||
3944 $as_test_x conftest$ac_exeext
3946 emacs_cv_sunpro_c=yes
3948 $as_echo "$as_me: failed program was
:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 emacs_cv_sunpro_c=no
3954 rm -rf conftest.dSYM
3955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 conftest$ac_exeext conftest.$ac_ext
3959 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3960 $as_echo "$emacs_cv_sunpro_c" >&6; }
3962 if test x"$emacs_cv_sunpro_c" = xyes; then
3963 NON_GNU_CPP="$CC -E -Xs"
3967 #### Some systems specify a CPP to use unless we are using GCC.
3968 #### Now that we know whether we are using GCC, we can decide whether
3969 #### to use that one.
3970 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3975 #### Some systems specify a CC to use unless we are using GCC.
3976 #### Now that we know whether we are using GCC, we can decide whether
3977 #### to use that one.
3978 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3979 test x$cc_specified != xyes
3984 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3986 CC="$CC $GCC_TEST_OPTIONS"
3989 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3991 CC="$CC $NON_GCC_TEST_OPTIONS"
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4000 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4001 # On Suns, sometimes $CPP names a directory.
4002 if test -n "$CPP" && test -d "$CPP"; then
4005 if test -z "$CPP"; then
4006 if test "${ac_cv_prog_CPP+set}" = set; then
4007 $as_echo_n "(cached
) " >&6
4009 # Double quotes because CPP needs to be expanded
4010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4013 for ac_c_preproc_warn_flag in '' yes
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error
" is here to catch this case.
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4028 # include <limits.h>
4030 # include <assert.h>
4034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4053 $as_echo "$as_me: failed program was
:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Broken: fails on valid input.
4060 rm -f conftest.err conftest.$ac_ext
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4072 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4085 (exit $ac_status); } >/dev/null && {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4089 # Broken: success on invalid input.
4092 $as_echo "$as_me: failed program was
:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Passes both tests.
4100 rm -f conftest.err conftest.$ac_ext
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4117 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4118 $as_echo "$CPP" >&6; }
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error
" is here to catch this case.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4135 # include <limits.h>
4137 # include <assert.h>
4141 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4154 (exit $ac_status); } >/dev/null && {
4155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4160 $as_echo "$as_me: failed program was
:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 # Broken: fails on valid input.
4167 rm -f conftest.err conftest.$ac_ext
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4179 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4188 grep -v '^ *+' conftest.er1 >conftest.err
4190 cat conftest.err >&5
4191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4196 # Broken: success on invalid input.
4199 $as_echo "$as_me: failed program was
:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Passes both tests.
4207 rm -f conftest.err conftest.$ac_ext
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4215 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4216 See \
`config.log' for more details." >&5
4217 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log
' for more details." >&2;}
4219 { (exit 1); exit 1; }; }
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4225 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and
test for each of PROGNAME-LIST
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4238 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_prog
in grep ggrep
; do
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4250 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4253 $as_echo_n 0123456789 >"conftest.in"
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4261 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4262 ac_count
=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP
="$ac_path_GREP"
4266 ac_path_GREP_max
=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4271 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4274 $ac_path_GREP_found && break 3
4279 if test -z "$ac_cv_path_GREP"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4285 ac_cv_path_GREP
=$GREP
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP
="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4299 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4300 then ac_cv_path_EGREP
="$GREP -E"
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found
=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4306 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4309 test -z "$as_dir" && as_dir
=.
4310 for ac_prog
in egrep; do
4311 for ac_exec_ext
in '' $ac_executable_extensions; do
4312 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4318 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4321 $as_echo_n 0123456789 >"conftest.in"
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4329 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4330 ac_count
=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP
="$ac_path_EGREP"
4334 ac_path_EGREP_max
=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4339 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4342 $ac_path_EGREP_found && break 3
4347 if test -z "$ac_cv_path_EGREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4353 ac_cv_path_EGREP
=$EGREP
4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP
="$ac_cv_path_EGREP"
4363 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4364 $as_echo_n "checking for ANSI C header files... " >&6; }
4365 if test "${ac_cv_header_stdc+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4368 cat >conftest.
$ac_ext <<_ACEOF
4371 cat confdefs.h
>>conftest.
$ac_ext
4372 cat >>conftest.
$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4387 rm -f conftest.
$ac_objext
4388 if { (ac_try
="$ac_compile"
4390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest.$ac_objext; then
4405 ac_cv_header_stdc=yes
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_cv_header_stdc=no
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "memchr" >/dev/null 2>&1; then
4430 ac_cv_header_stdc=no
4436 if test $ac_cv_header_stdc = yes; then
4437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "free" >/dev/null 2>&1; then
4451 ac_cv_header_stdc=no
4457 if test $ac_cv_header_stdc = yes; then
4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4459 if test "$cross_compiling" = yes; then
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4493 rm -f conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4497 *) ac_try_echo
=$ac_try;;
4499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501 (eval "$ac_link") 2>&5
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4505 { (case "(($ac_try" in
4506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_try") 2>&5
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4517 $as_echo "$as_me: program exited with status $ac_status" >&5
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4522 ac_cv_header_stdc=no
4524 rm -rf conftest.dSYM
4525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4532 $as_echo "$ac_cv_header_stdc" >&6; }
4533 if test $ac_cv_header_stdc = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define STDC_HEADERS 1
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4552 inttypes.h stdint.h unistd.h
4554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 $as_echo_n "checking for $ac_header... " >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558 $as_echo_n "(cached) " >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4568 #include <$ac_header>
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4574 *) ac_try_echo
=$ac_try;;
4576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4577 $as_echo "$ac_try_echo") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4580 grep -v '^ *+' conftest.er1
>conftest.err
4582 cat conftest.err
>&5
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.
$ac_objext; then
4588 eval "$as_ac_Header=yes"
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.
$ac_ext >&5
4593 eval "$as_ac_Header=no"
4596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4598 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4599 $as_echo "$as_val"'`
4600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4601 $as_echo "$ac_res" >&6; }
4602 if test `eval 'as_val=${'$as_ac_Header'}
4603 $as_echo "$as_val"'` = yes; then
4604 cat >>confdefs.h
<<_ACEOF
4605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4614 if test "${ac_cv_header_minix_config_h+set}" = set; then
4615 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4616 $as_echo_n "checking for minix/config.h... " >&6; }
4617 if test "${ac_cv_header_minix_config_h+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4621 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4623 # Is the header compilable?
4624 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4625 $as_echo_n "checking minix/config.h usability... " >&6; }
4626 cat >conftest.
$ac_ext <<_ACEOF
4629 cat confdefs.h
>>conftest.
$ac_ext
4630 cat >>conftest.
$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <minix/config.h>
4635 rm -f conftest.
$ac_objext
4636 if { (ac_try
="$ac_compile"
4638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_header_compiler=yes
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_header_compiler=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663 $as_echo "$ac_header_compiler" >&6; }
4665 # Is the header present?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4667 $as_echo_n "checking minix/config.h presence... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <minix/config.h>
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4679 *) ac_try_echo
=$ac_try;;
4681 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1
>conftest.err
4687 cat conftest.err
>&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev
/null
&& {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4693 ac_header_preproc
=yes
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.
$ac_ext >&5
4698 ac_header_preproc
=no
4701 rm -f conftest.err conftest.
$ac_ext
4702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 $as_echo "$ac_header_preproc" >&6; }
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4711 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc
=yes
4715 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4716 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4717 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4718 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4720 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4722 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4724 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4726 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4730 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4731 $as_echo_n "checking for minix/config.h... " >&6; }
4732 if test "${ac_cv_header_minix_config_h+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4735 ac_cv_header_minix_config_h
=$ac_header_preproc
4737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4738 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4741 if test $ac_cv_header_minix_config_h = yes; then
4748 if test "$MINIX" = yes; then
4750 cat >>confdefs.h
<<\_ACEOF
4751 #define _POSIX_SOURCE 1
4755 cat >>confdefs.h
<<\_ACEOF
4756 #define _POSIX_1_SOURCE 2
4760 cat >>confdefs.h
<<\_ACEOF
4768 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4769 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4770 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 # define __EXTENSIONS__ 1
4781 $ac_includes_default
4790 rm -f conftest.
$ac_objext
4791 if { (ac_try
="$ac_compile"
4793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_safe_to_define___extensions__=yes
4810 $as_echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_safe_to_define___extensions__=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4819 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4820 test $ac_cv_safe_to_define___extensions__ = yes &&
4821 cat >>confdefs.h <<\_ACEOF
4822 #define __EXTENSIONS__ 1
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _ALL_SOURCE 1
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _GNU_SOURCE 1
4833 cat >>confdefs.h <<\_ACEOF
4834 #define _POSIX_PTHREAD_SEMANTICS 1
4837 cat >>confdefs.h <<\_ACEOF
4838 #define _TANDEM_SOURCE 1
4843 ### Use -Wno-pointer-sign if the compiler supports it
4844 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4845 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -Wno-pointer-sign"
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4863 rm -f conftest.$ac_objext
4864 if { (ac_try="$ac_compile"
4866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4867 *) ac_try_echo
=$ac_try;;
4869 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1
>conftest.err
4875 cat conftest.err
>&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.
$ac_objext; then
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.
$ac_ext >&5
4889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4890 if test $has_option = yes; then
4891 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4893 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4894 $as_echo "$has_option" >&6; }
4895 CFLAGS
="$SAVE_CFLAGS"
4899 ### Use -Wdeclaration-after-statement if the compiler supports it
4900 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4901 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4902 SAVE_CFLAGS
="$CFLAGS"
4903 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4919 rm -f conftest.
$ac_objext
4920 if { (ac_try
="$ac_compile"
4922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 if test $has_option = yes; then
4947 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4949 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4950 $as_echo "$has_option" >&6; }
4951 CFLAGS="$SAVE_CFLAGS"
4955 #### Some other nice autoconf tests.
4957 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 $as_echo_n "checking whether ln -s works... " >&6; }
4960 if test "$LN_S" = "ln -s"; then
4961 { $as_echo "$as_me:$LINENO: result: yes" >&5
4962 $as_echo "yes" >&6; }
4964 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4965 $as_echo "no, using $LN_S" >&6; }
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat >conftest.$ac_ext <<_ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5002 # include <limits.h>
5004 # include <assert.h>
5008 if { (ac_try="$ac_cpp conftest.$ac_ext"
5010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5011 *) ac_try_echo
=$ac_try;;
5013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 grep -v '^ *+' conftest.er1
>conftest.err
5019 cat conftest.err
>&5
5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev
/null
&& {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.
$ac_ext >&5
5030 # Broken: fails on valid input.
5034 rm -f conftest.err conftest.
$ac_ext
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat >conftest.
$ac_ext <<_ACEOF
5041 cat confdefs.h
>>conftest.
$ac_ext
5042 cat >>conftest.
$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #include <ac_nonexistent.h>
5046 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5052 $as_echo "$ac_try_echo") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null && {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5063 # Broken: success on invalid input.
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 # Passes both tests.
5074 rm -f conftest.err conftest.$ac_ext
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.
$ac_ext
5079 if $ac_preproc_ok; then
5091 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5092 $as_echo "$CPP" >&6; }
5094 for ac_c_preproc_warn_flag
in '' yes
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat >conftest.
$ac_ext <<_ACEOF
5105 cat confdefs.h
>>conftest.
$ac_ext
5106 cat >>conftest.
$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5109 # include <limits.h>
5111 # include <assert.h>
5115 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121 $as_echo "$ac_try_echo") >&5
5122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5124 grep -v '^ *+' conftest.er1 >conftest.err
5126 cat conftest.err >&5
5127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null && {
5129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5134 $as_echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 # Broken: fails on valid input.
5141 rm -f conftest.err conftest.$ac_ext
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <ac_nonexistent.h>
5153 if { (ac_try="$ac_cpp conftest.$ac_ext"
5155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5156 *) ac_try_echo
=$ac_try;;
5158 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5159 $as_echo "$ac_try_echo") >&5
5160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1
>conftest.err
5164 cat conftest.err
>&5
5165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } >/dev
/null
&& {
5167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5170 # Broken: success on invalid input.
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.
$ac_ext >&5
5176 # Passes both tests.
5181 rm -f conftest.err conftest.
$ac_ext
5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5185 rm -f conftest.err conftest.
$ac_ext
5186 if $ac_preproc_ok; then
5189 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5190 See \`config.log' for more details." >&5
5191 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }
5197 ac_cpp
='$CPP $CPPFLAGS'
5198 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5202 # Find a good install program. We prefer a C program (faster),
5203 # so one script is as good as another. But avoid the broken or
5204 # incompatible versions:
5205 # SysV /etc/install, /usr/sbin/install
5206 # SunOS /usr/etc/install
5207 # IRIX /sbin/install
5209 # AmigaOS /C/install, which installs bootblocks on floppy discs
5210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5213 # OS/2's system install, which has a completely different semantic
5214 # ./install, which can be erroneously created by make from ./install.sh.
5215 # Reject install programs that cannot install multiple files.
5216 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5218 if test -z "$INSTALL"; then
5219 if test "${ac_cv_path_install+set}" = set; then
5220 $as_echo_n "(cached) " >&6
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir
=.
5227 # Account for people who put trailing slashes in PATH elements.
5229 .
/ | .
// |
/cC
/* | \
5230 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5231 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5234 # OSF1 and SCO ODT 3.0 have their own names for install.
5235 # Don't use installbsd from OSF since it installs stuff as root
5237 for ac_prog
in ginstall scoinst
install; do
5238 for ac_exec_ext
in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5240 if test $ac_prog = install &&
5241 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5242 # AIX install. It has an incompatible calling convention.
5244 elif test $ac_prog = install &&
5245 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5246 # program-specific install script used by HP pwplus--don't use.
5249 rm -rf conftest.one conftest.two conftest.dir
5250 echo one
> conftest.one
5251 echo two
> conftest.two
5253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5254 test -s conftest.one
&& test -s conftest.two
&&
5255 test -s conftest.dir
/conftest.one
&&
5256 test -s conftest.dir
/conftest.two
5258 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5271 rm -rf conftest.one conftest.two conftest.dir
5274 if test "${ac_cv_path_install+set}" = set; then
5275 INSTALL
=$ac_cv_path_install
5277 # As a last resort, use the slow shell script. Don't cache a
5278 # value for INSTALL within a source directory, because that will
5279 # break other packages using the cache if that directory is
5280 # removed, or if the value is a relative name.
5281 INSTALL
=$ac_install_sh
5284 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5285 $as_echo "$INSTALL" >&6; }
5287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5288 # It thinks the first close brace ends the variable substitution.
5289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5293 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5295 if test "x$RANLIB" = x
; then
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5298 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_RANLIB+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5304 if test -n "$RANLIB"; then
5305 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir
=.
5312 for ac_exec_ext
in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 RANLIB
=$ac_cv_prog_RANLIB
5325 if test -n "$RANLIB"; then
5326 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5327 $as_echo "$RANLIB" >&6; }
5329 { $as_echo "$as_me:$LINENO: result: no" >&5
5330 $as_echo "no" >&6; }
5335 if test -z "$ac_cv_prog_RANLIB"; then
5336 ac_ct_RANLIB
=$RANLIB
5337 # Extract the first word of "ranlib", so it can be a program name with args.
5338 set dummy ranlib
; ac_word
=$2
5339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5344 if test -n "$ac_ct_RANLIB"; then
5345 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir
=.
5352 for ac_exec_ext
in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5365 if test -n "$ac_ct_RANLIB"; then
5366 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5367 $as_echo "$ac_ct_RANLIB" >&6; }
5369 { $as_echo "$as_me:$LINENO: result: no" >&5
5370 $as_echo "no" >&6; }
5373 if test "x$ac_ct_RANLIB" = x
; then
5376 case $cross_compiling:$ac_tool_warned in
5378 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5379 whose name does not start with the host triplet. If you think this
5380 configuration is useful to you, please write to autoconf@gnu.org." >&5
5381 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5382 whose name does not start with the host triplet. If you think this
5383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5384 ac_tool_warned
=yes ;;
5386 RANLIB
=$ac_ct_RANLIB
5389 RANLIB
="$ac_cv_prog_RANLIB"
5393 # Extract the first word of "install-info", so it can be a program name with args.
5394 set dummy install-info
; ac_word
=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5398 $as_echo_n "(cached) " >&6
5400 case $INSTALL_INFO in
5402 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir
=.
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5424 if test -n "$INSTALL_INFO"; then
5425 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5426 $as_echo "$INSTALL_INFO" >&6; }
5428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429 $as_echo "no" >&6; }
5433 # Extract the first word of "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
5446 for as_dir
in /usr
/sbin
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
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
5500 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5504 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5505 if test -n "$INSTALL_INFO"; then
5506 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5507 $as_echo "$INSTALL_INFO" >&6; }
5509 { $as_echo "$as_me:$LINENO: result: no" >&5
5510 $as_echo "no" >&6; }
5514 # Extract the first word of "gzip", so it can be a program name with args.
5515 set dummy
gzip; ac_word
=$2
5516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5519 $as_echo_n "(cached) " >&6
5523 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir
=.
5531 for ac_exec_ext
in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5545 if test -n "$GZIP_PROG"; then
5546 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5547 $as_echo "$GZIP_PROG" >&6; }
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5556 ## Need makeinfo >= 4.6 (?) to build the manuals.
5557 # Extract the first word of "makeinfo", so it can be a program name with args.
5558 set dummy makeinfo
; ac_word
=$2
5559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5562 $as_echo_n "(cached) " >&6
5566 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir
=.
5574 for ac_exec_ext
in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5588 MAKEINFO
=$ac_cv_path_MAKEINFO
5589 if test -n "$MAKEINFO"; then
5590 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5591 $as_echo "$MAKEINFO" >&6; }
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5598 if test "$MAKEINFO" != "no" && \
5599 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
5603 ## Makeinfo is unusual. For a released Emacs, the manuals are
5604 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5605 ## therefore in the category of "special tools" not normally required, which
5606 ## configure does not have to check for (eg autoconf itself).
5607 ## In a CVS checkout on the other hand, the manuals are not included.
5608 ## So makeinfo is a requirement to build from CVS, and configure
5609 ## should test for it as it does for any other build requirement.
5610 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5611 ## with pre-built manuals, from a CVS checkout.
5612 if test "$MAKEINFO" = "no"; then
5613 if test "x${with_makeinfo}" = "xno"; then
5615 elif ! test -e $srcdir/info
/emacs
; then
5616 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5617 source tree does not seem to have pre-built manuals in the \`info' directory.
5618 Either install a suitable version of makeinfo, or re-run configure
5619 with the \`--without-makeinfo' option to build without the manuals. " >&5
5620 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5621 source tree does not seem to have pre-built manuals in the \`info' directory.
5622 Either install a suitable version of makeinfo, or re-run configure
5623 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5624 { (exit 1); exit 1; }; }
5629 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5631 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5634 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5636 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5640 late_LDFLAGS
=$LDFLAGS
5641 if test "$GCC" = yes; then
5642 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5644 LDFLAGS
="$LDFLAGS -znocombreloc"
5647 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5648 $as_echo_n "checking for -znocombreloc... " >&6; }
5649 cat >conftest.
$ac_ext <<_ACEOF
5652 rm -f conftest.
$ac_objext conftest
$ac_exeext
5653 if { (ac_try
="$ac_link"
5655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659 $as_echo "$ac_try_echo") >&5
5660 (eval "$ac_link") 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest$ac_exeext && {
5670 test "$cross_compiling" = yes ||
5671 $as_test_x conftest$ac_exeext
5673 { $as_echo "$as_me:$LINENO: result: yes" >&5
5674 $as_echo "yes" >&6; }
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 LDFLAGS=$late_LDFLAGS
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5684 rm -rf conftest.dSYM
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5688 #### Extract some information from the operating system and machine files.
5690 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5691 - which libraries the lib-src programs will want, and
5692 - whether the GNU malloc routines are usable..." >&5
5693 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5694 - which libraries the lib-src programs will want, and
5695 - whether the GNU malloc routines are usable..." >&6;}
5697 ### First figure out CFLAGS (which we use for running the compiler here)
5698 ### and REAL_CFLAGS (which we use for real compilation).
5699 ### The two are the same except on a few systems, where they are made
5700 ### different to work around various lossages. For example,
5701 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5702 ### as implying static linking.
5704 ### If the CFLAGS env var is specified, we use that value
5705 ### instead of the default.
5707 ### It's not important that this name contain the PID; you can't run
5708 ### two configures in the same directory and have anything work
5710 tempcname="conftest.c"
5713 #include "'${srcdir}'/src/'${opsysfile}'"
5714 #include "'${srcdir}'/src/'${machfile}'"
5715 #ifndef LIBS_MACHINE
5716 #define LIBS_MACHINE
5721 #ifndef C_SWITCH_SYSTEM
5722 #define C_SWITCH_SYSTEM
5724 #ifndef C_SWITCH_MACHINE
5725 #define C_SWITCH_MACHINE
5727 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5728 configure___ c_switch_system=C_SWITCH_SYSTEM
5729 configure___ c_switch_machine=C_SWITCH_MACHINE
5732 #define LIB_X11_LIB -lX11
5735 #ifndef LIBX11_SYSTEM
5736 #define LIBX11_SYSTEM
5738 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5741 configure___ unexec=UNEXEC
5743 configure___ unexec=unexec.o
5746 #ifdef SYSTEM_MALLOC
5747 configure___ system_malloc=yes
5749 configure___ system_malloc=no
5752 #ifdef USE_MMAP_FOR_BUFFERS
5753 configure___ use_mmap_for_buffers=yes
5755 configure___ use_mmap_for_buffers=no
5758 #ifndef C_DEBUG_SWITCH
5759 #define C_DEBUG_SWITCH -g
5762 #ifndef C_OPTIMIZE_SWITCH
5764 #define C_OPTIMIZE_SWITCH -O2
5766 #define C_OPTIMIZE_SWITCH -O
5770 #ifndef C_WARNINGS_SWITCH
5771 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5774 #ifndef LD_SWITCH_MACHINE
5775 #define LD_SWITCH_MACHINE
5778 #ifndef LD_SWITCH_SYSTEM
5779 #define LD_SWITCH_SYSTEM
5782 #ifndef LD_SWITCH_X_SITE_AUX
5783 #define LD_SWITCH_X_SITE_AUX
5786 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5787 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5789 #ifdef THIS_IS_CONFIGURE
5791 /* Get the CFLAGS for tests in configure. */
5793 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5795 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5798 #else /* not THIS_IS_CONFIGURE */
5800 /* Get the CFLAGS for real compilation. */
5802 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5804 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5807 #endif /* not THIS_IS_CONFIGURE */
5810 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5812 # The value of CPP is a quoted variable reference, so we need to do this
5813 # to get its actual value...
5814 CPP=`eval "echo $CPP"`
5815 eval `${CPP} -Isrc ${tempcname} \
5816 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5817 if test "x$SPECIFIED_CFLAGS" = x; then
5818 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5819 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5821 REAL_CFLAGS="$CFLAGS"
5825 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5827 ### Make sure subsequent tests use flags consistent with the build flags.
5829 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5830 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5832 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5837 # Check whether --enable-largefile was given.
5838 if test "${enable_largefile+set}" = set; then
5839 enableval=$enable_largefile;
5842 if test "$enable_largefile" != no; then
5844 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5845 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5846 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5847 $as_echo_n "(cached) " >&6
5849 ac_cv_sys_largefile_CC=no
5850 if test "$GCC" != yes; then
5853 # IRIX 6.2 and later do not support large files by default,
5854 # so use the C compiler's -n32 option if that helps.
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <sys/types.h>
5862 /* Check that off_t can represent 2**63 - 1 correctly.
5863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5864 since some C++ compilers masquerading as C compilers
5865 incorrectly reject 9223372036854775807. */
5866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5868 && LARGE_OFF_T % 2147483647 == 1)
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5882 *) ac_try_echo
=$ac_try;;
5884 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1
>conftest.err
5890 cat conftest.err
>&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.
$ac_objext; then
5898 $as_echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5904 rm -f core conftest.err conftest.
$ac_objext
5906 rm -f conftest.
$ac_objext
5907 if { (ac_try
="$ac_compile"
5909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_sys_largefile_CC=' -n32'; break
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f core conftest.err conftest.$ac_objext
5936 rm -f conftest.$ac_ext
5939 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5940 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5941 if test "$ac_cv_sys_largefile_CC" != no; then
5942 CC=$CC$ac_cv_sys_largefile_CC
5945 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5946 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5947 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5951 cat >conftest.$ac_ext <<_ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <sys/types.h>
5958 /* Check that off_t can represent 2**63 - 1 correctly.
5959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5960 since some C++ compilers masquerading as C compilers
5961 incorrectly reject 9223372036854775807. */
5962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5964 && LARGE_OFF_T % 2147483647 == 1)
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5978 *) ac_try_echo
=$ac_try;;
5980 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1
>conftest.err
5986 cat conftest.err
>&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.
$ac_objext; then
5992 ac_cv_sys_file_offset_bits
=no
; break
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
6000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6001 cat >conftest.
$ac_ext <<_ACEOF
6004 cat confdefs.h
>>conftest.
$ac_ext
6005 cat >>conftest.
$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #define _FILE_OFFSET_BITS 64
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6025 rm -f conftest.
$ac_objext
6026 if { (ac_try
="$ac_compile"
6028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest.$ac_objext; then
6043 ac_cv_sys_file_offset_bits=64; break
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 ac_cv_sys_file_offset_bits=unknown
6056 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6057 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6058 case $ac_cv_sys_file_offset_bits in #(
6061 cat >>confdefs.h <<_ACEOF
6062 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6067 if test $ac_cv_sys_file_offset_bits = unknown; then
6068 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6069 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6070 if test "${ac_cv_sys_large_files+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6074 cat >conftest.$ac_ext <<_ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <sys/types.h>
6081 /* Check that off_t can represent 2**63 - 1 correctly.
6082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6083 since some C++ compilers masquerading as C compilers
6084 incorrectly reject 9223372036854775807. */
6085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6087 && LARGE_OFF_T % 2147483647 == 1)
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6101 *) ac_try_echo
=$ac_try;;
6103 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1
>conftest.err
6109 cat conftest.err
>&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.
$ac_objext; then
6115 ac_cv_sys_large_files
=no
; break
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.
$ac_ext >&5
6123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #define _LARGE_FILES 1
6131 #include <sys/types.h>
6132 /* Check that off_t can represent 2**63 - 1 correctly.
6133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6134 since some C++ compilers masquerading as C compilers
6135 incorrectly reject 9223372036854775807. */
6136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6138 && LARGE_OFF_T % 2147483647 == 1)
6148 rm -f conftest.
$ac_objext
6149 if { (ac_try
="$ac_compile"
6151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6155 $as_echo "$ac_try_echo") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 ac_cv_sys_large_files=1; break
6168 $as_echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_cv_sys_large_files=unknown
6179 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6180 $as_echo "$ac_cv_sys_large_files" >&6; }
6181 case $ac_cv_sys_large_files in #(
6184 cat >>confdefs.h <<_ACEOF
6185 #define _LARGE_FILES $ac_cv_sys_large_files
6195 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6196 ### be located in either /usr/lib64 or /usr/lib.
6197 ### In some rare cases, /usr/lib64 exists but does not contain the
6198 ### relevant files (bug#1287). Hence test for crtn.o.
6199 case "${canonical}" in
6200 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6201 if test -e /usr/lib64/crtn.o; then
6203 cat >>confdefs.h <<\_ACEOF
6204 #define HAVE_LIB64_DIR 1
6213 if test "${with_sound}" != "no"; then
6214 # Sound support for GNU/Linux and the free BSDs.
6218 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 $as_echo_n "checking for $ac_header... " >&6; }
6224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6225 $as_echo_n "(cached) " >&6
6227 ac_res=`eval 'as_val=${'$as_ac_Header'}
6228 $as_echo "$as_val"'`
6229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6230 $as_echo "$ac_res" >&6; }
6232 # Is the header compilable?
6233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6234 $as_echo_n "checking $ac_header usability... " >&6; }
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 #include <$ac_header>
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6248 *) ac_try_echo
=$ac_try;;
6250 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6251 $as_echo "$ac_try_echo") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6254 grep -v '^ *+' conftest.er1
>conftest.err
6256 cat conftest.err
>&5
6257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_c_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest.
$ac_objext; then
6262 ac_header_compiler
=yes
6264 $as_echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.
$ac_ext >&5
6267 ac_header_compiler
=no
6270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6272 $as_echo "$ac_header_compiler" >&6; }
6274 # Is the header present?
6275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6276 $as_echo_n "checking $ac_header presence... " >&6; }
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 #include <$ac_header>
6285 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291 $as_echo "$ac_try_echo") >&5
6292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } >/dev/null && {
6299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6302 ac_header_preproc=yes
6304 $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_header_preproc=no
6310 rm -f conftest.err conftest.$ac_ext
6311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6312 $as_echo "$ac_header_preproc" >&6; }
6314 # So? What about this header?
6315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6321 ac_header_preproc=yes
6324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6327 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6331 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6340 $as_echo_n "checking for $ac_header... " >&6; }
6341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6342 $as_echo_n "(cached) " >&6
6344 eval "$as_ac_Header=\$ac_header_preproc"
6346 ac_res=`eval 'as_val=${'$as_ac_Header'}
6347 $as_echo "$as_val"'`
6348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_ac_Header'}
6353 $as_echo "$as_val"'` = yes; then
6354 cat >>confdefs.h <<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6362 # Emulation library used on NetBSD.
6363 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6364 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6365 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6366 $as_echo_n "(cached) " >&6
6368 ac_check_lib_save_LIBS=$LIBS
6369 LIBS="-lossaudio $LIBS"
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6377 /* Override any GCC internal prototype to avoid an error.
6378 Use char because int might match the return type of a GCC
6379 builtin and then its argument prototype would still apply. */
6387 return _oss_ioctl ();
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (ac_try="$ac_link"
6395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6396 *) ac_try_echo
=$ac_try;;
6398 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6399 $as_echo "$ac_try_echo") >&5
6400 (eval "$ac_link") 2>conftest.er1
6402 grep -v '^ *+' conftest.er1
>conftest.err
6404 cat conftest.err
>&5
6405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest
$ac_exeext && {
6410 test "$cross_compiling" = yes ||
6411 $as_test_x conftest
$ac_exeext
6413 ac_cv_lib_ossaudio__oss_ioctl
=yes
6415 $as_echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.
$ac_ext >&5
6418 ac_cv_lib_ossaudio__oss_ioctl
=no
6421 rm -rf conftest.dSYM
6422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6423 conftest
$ac_exeext conftest.
$ac_ext
6424 LIBS
=$ac_check_lib_save_LIBS
6426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6427 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6428 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6437 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6441 # Extract the first word of "pkg-config", so it can be a program name with args.
6442 set dummy pkg-config
; ac_word
=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6446 $as_echo_n "(cached) " >&6
6450 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir
=.
6458 for ac_exec_ext
in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6472 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6473 if test -n "$PKG_CONFIG"; then
6474 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6475 $as_echo "$PKG_CONFIG" >&6; }
6477 { $as_echo "$as_me:$LINENO: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test "$PKG_CONFIG" = "no" ; then
6486 PKG_CONFIG_MIN_VERSION
=0.9.0
6487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6488 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6489 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6491 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6492 { $as_echo "$as_me:$LINENO: result: yes" >&5
6493 $as_echo "yes" >&6; }
6496 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6497 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6498 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6499 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6500 $as_echo "$ALSA_CFLAGS" >&6; }
6502 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6503 $as_echo_n "checking ALSA_LIBS... " >&6; }
6504 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6505 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6506 $as_echo "$ALSA_LIBS" >&6; }
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6512 ## If we have a custom action on failure, don't print errors, but
6513 ## do set a variable so people can do so.
6514 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6526 if test $succeeded = yes; then
6532 if test $HAVE_ALSA = yes; then
6533 SAVE_CFLAGS
="$CFLAGS"
6534 SAVE_LDFLAGS
="$LDFLAGS"
6535 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6536 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6537 cat >conftest.
$ac_ext <<_ACEOF
6540 cat confdefs.h
>>conftest.
$ac_ext
6541 cat >>conftest.
$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <asoundlib.h>
6547 snd_lib_error_set_handler (0);
6552 rm -f conftest.
$ac_objext
6553 if { (ac_try
="$ac_compile"
6555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6562 grep -v '^ *+' conftest.er1 >conftest.err
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 emacs_alsa_normal=yes
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 emacs_alsa_normal=no
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test "$emacs_alsa_normal" != yes; then
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <alsa/asoundlib.h>
6590 snd_lib_error_set_handler (0);
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6599 *) ac_try_echo
=$ac_try;;
6601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6602 $as_echo "$ac_try_echo") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.
$ac_objext; then
6613 emacs_alsa_subdir
=yes
6615 $as_echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.
$ac_ext >&5
6618 emacs_alsa_subdir
=no
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 if test "$emacs_alsa_subdir" != yes; then
6623 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6624 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6625 { (exit 1); exit 1; }; }
6627 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6630 CFLAGS
="$SAVE_CFLAGS"
6631 LDFLAGS
="$SAVE_LDFLAGS"
6632 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6633 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6635 cat >>confdefs.h
<<\_ACEOF
6668 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6669 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6670 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6671 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6674 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 $as_echo_n "checking for $ac_header... " >&6; }
6678 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 $as_echo_n "(cached) " >&6
6681 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6682 $as_echo "$as_val"'`
6683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6684 $as_echo "$ac_res" >&6; }
6686 # Is the header compilable?
6687 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 $as_echo_n "checking $ac_header usability... " >&6; }
6689 cat >conftest.
$ac_ext <<_ACEOF
6692 cat confdefs.h
>>conftest.
$ac_ext
6693 cat >>conftest.
$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #include <$ac_header>
6698 rm -f conftest.
$ac_objext
6699 if { (ac_try
="$ac_compile"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6716 ac_header_compiler=yes
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_header_compiler=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6726 $as_echo "$ac_header_compiler" >&6; }
6728 # Is the header present?
6729 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6730 $as_echo_n "checking $ac_header presence... " >&6; }
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <$ac_header>
6739 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6742 *) ac_try_echo
=$ac_try;;
6744 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev
/null
&& {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6756 ac_header_preproc
=yes
6758 $as_echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.
$ac_ext >&5
6761 ac_header_preproc
=no
6764 rm -f conftest.err conftest.
$ac_ext
6765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 $as_echo "$ac_header_preproc" >&6; }
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc
=yes
6778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 $as_echo_n "checking for $ac_header... " >&6; }
6795 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 $as_echo_n "(cached) " >&6
6798 eval "$as_ac_Header=\$ac_header_preproc"
6800 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6801 $as_echo "$as_val"'`
6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6806 if test `eval 'as_val=${'$as_ac_Header'}
6807 $as_echo "$as_val"'` = yes; then
6808 cat >>confdefs.h
<<_ACEOF
6809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6817 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6818 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6819 cat >conftest.
$ac_ext <<_ACEOF
6822 cat confdefs.h
>>conftest.
$ac_ext
6823 cat >>conftest.
$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/personality.h>
6829 personality (PER_LINUX32)
6834 rm -f conftest.
$ac_objext
6835 if { (ac_try
="$ac_compile"
6837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6841 $as_echo "$ac_try_echo") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
6852 emacs_cv_personality_linux32=yes
6854 $as_echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 emacs_cv_personality_linux32=no
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6862 $as_echo "$emacs_cv_personality_linux32" >&6; }
6864 if test $emacs_cv_personality_linux32 = yes; then
6866 cat >>confdefs.h <<\_ACEOF
6867 #define HAVE_PERSONALITY_LINUX32 1
6873 for ac_header in term.h
6875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6877 $as_echo_n "checking for $ac_header... " >&6; }
6878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6879 $as_echo_n "(cached) " >&6
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <$ac_header>
6889 if { (ac_try="$ac_cpp conftest.$ac_ext"
6891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6892 *) ac_try_echo
=$ac_try;;
6894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } >/dev
/null
&& {
6903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6906 eval "$as_ac_Header=yes"
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.
$ac_ext >&5
6911 eval "$as_ac_Header=no"
6914 rm -f conftest.err conftest.
$ac_ext
6916 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919 $as_echo "$ac_res" >&6; }
6920 if test `eval 'as_val=${'$as_ac_Header'}
6921 $as_echo "$as_val"'` = yes; then
6922 cat >>confdefs.h
<<_ACEOF
6923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6931 $as_echo_n "checking for ANSI C header files... " >&6; }
6932 if test "${ac_cv_header_stdc+set}" = set; then
6933 $as_echo_n "(cached) " >&6
6935 cat >conftest.
$ac_ext <<_ACEOF
6938 cat confdefs.h
>>conftest.
$ac_ext
6939 cat >>conftest.
$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6954 rm -f conftest.
$ac_objext
6955 if { (ac_try
="$ac_compile"
6957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6964 grep -v '^ *+' conftest.er1 >conftest.err
6966 cat conftest.err >&5
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 ac_cv_header_stdc=yes
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_header_stdc=no
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 if test $ac_cv_header_stdc = yes; then
6983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6984 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6994 $EGREP "memchr" >/dev/null 2>&1; then
6997 ac_cv_header_stdc=no
7003 if test $ac_cv_header_stdc = yes; then
7004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7005 cat >conftest.$ac_ext <<_ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7015 $EGREP "free" >/dev/null 2>&1; then
7018 ac_cv_header_stdc=no
7024 if test $ac_cv_header_stdc = yes; then
7025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7026 if test "$cross_compiling" = yes; then
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7037 #if ((' ' & 0x0FF) == 0x020)
7038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7041 # define ISLOWER(c) \
7042 (('a' <= (c) && (c) <= 'i') \
7043 || ('j' <= (c) && (c) <= 'r') \
7044 || ('s' <= (c) && (c) <= 'z'))
7045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7053 for (i = 0; i < 256; i++)
7054 if (XOR (islower (i), ISLOWER (i))
7055 || toupper (i) != TOUPPER (i))
7060 rm -f conftest$ac_exeext
7061 if { (ac_try="$ac_link"
7063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7064 *) ac_try_echo
=$ac_try;;
7066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_link") 2>&5
7070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7072 { (case "(($ac_try" in
7073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078 (eval "$ac_try") 2>&5
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7084 $as_echo "$as_me: program exited with status $ac_status" >&5
7085 $as_echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_header_stdc=no
7091 rm -rf conftest.dSYM
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7099 $as_echo "$ac_cv_header_stdc" >&6; }
7100 if test $ac_cv_header_stdc = yes; then
7102 cat >>confdefs.h <<\_ACEOF
7103 #define STDC_HEADERS 1
7108 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7110 if test "${ac_cv_header_time+set}" = set; then
7111 $as_echo_n "(cached) " >&6
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/time.h>
7126 if ((struct tm *) 0)
7132 rm -f conftest.$ac_objext
7133 if { (ac_try="$ac_compile"
7135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7136 *) ac_try_echo
=$ac_try;;
7138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140 (eval "$ac_compile") 2>conftest.er1
7142 grep -v '^ *+' conftest.er1
>conftest.err
7144 cat conftest.err
>&5
7145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest.
$ac_objext; then
7150 ac_cv_header_time
=yes
7152 $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.
$ac_ext >&5
7155 ac_cv_header_time
=no
7158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7161 $as_echo "$ac_cv_header_time" >&6; }
7162 if test $ac_cv_header_time = yes; then
7164 cat >>confdefs.h
<<\_ACEOF
7165 #define TIME_WITH_SYS_TIME 1
7170 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7171 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7172 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7175 cat >conftest.
$ac_ext <<_ACEOF
7178 cat confdefs.h
>>conftest.
$ac_ext
7179 cat >>conftest.
$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7193 rm -f conftest.
$ac_objext
7194 if { (ac_try
="$ac_compile"
7196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 ac_cv_have_decl_sys_siglist=yes
7213 $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_have_decl_sys_siglist=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7222 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7223 if test $ac_cv_have_decl_sys_siglist = yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_DECL_SYS_SIGLIST 1
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_DECL_SYS_SIGLIST 0
7239 if test $ac_cv_have_decl_sys_siglist != yes; then
7240 # For Tru64, at least:
7241 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7242 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7243 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7244 $as_echo_n "(cached) " >&6
7246 cat >conftest.$ac_ext <<_ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7256 #ifndef __sys_siglist
7257 (void) __sys_siglist;
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7268 *) ac_try_echo
=$ac_try;;
7270 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1
>conftest.err
7276 cat conftest.err
>&5
7277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.
$ac_objext; then
7282 ac_cv_have_decl___sys_siglist
=yes
7284 $as_echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.
$ac_ext >&5
7287 ac_cv_have_decl___sys_siglist
=no
7290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7292 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7293 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7294 if test $ac_cv_have_decl___sys_siglist = yes; then
7296 cat >>confdefs.h
<<_ACEOF
7297 #define HAVE_DECL___SYS_SIGLIST 1
7302 cat >>confdefs.h
<<_ACEOF
7303 #define HAVE_DECL___SYS_SIGLIST 0
7310 if test $ac_cv_have_decl___sys_siglist = yes; then
7312 cat >>confdefs.h
<<\_ACEOF
7313 #define sys_siglist __sys_siglist
7318 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7319 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7321 $as_echo_n "(cached) " >&6
7323 cat >conftest.
$ac_ext <<_ACEOF
7326 cat confdefs.h
>>conftest.
$ac_ext
7327 cat >>conftest.
$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7330 #include <sys/wait.h>
7332 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7348 rm -f conftest.
$ac_objext
7349 if { (ac_try
="$ac_compile"
7351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1 >conftest.err
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_header_sys_wait_h=yes
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_cv_header_sys_wait_h=no
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7377 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7378 if test $ac_cv_header_sys_wait_h = yes; then
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_SYS_WAIT_H 1
7387 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7388 $as_echo_n "checking for struct utimbuf... " >&6; }
7389 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #ifdef TIME_WITH_SYS_TIME
7399 #include <sys/time.h>
7402 #ifdef HAVE_SYS_TIME_H
7403 #include <sys/time.h>
7414 static struct utimbuf x; x.actime = x.modtime;
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7423 *) ac_try_echo
=$ac_try;;
7425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.
$ac_objext; then
7437 emacs_cv_struct_utimbuf
=yes
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 emacs_cv_struct_utimbuf
=no
7445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7447 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7448 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7449 if test $emacs_cv_struct_utimbuf = yes; then
7451 cat >>confdefs.h
<<\_ACEOF
7452 #define HAVE_STRUCT_UTIMBUF 1
7457 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7458 $as_echo_n "checking return type of signal handlers... " >&6; }
7459 if test "${ac_cv_type_signal+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7462 cat >conftest.
$ac_ext <<_ACEOF
7465 cat confdefs.h
>>conftest.
$ac_ext
7466 cat >>conftest.
$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7474 return *(signal (0, 0)) (0) == 1;
7479 rm -f conftest.
$ac_objext
7480 if { (ac_try
="$ac_compile"
7482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7486 $as_echo "$ac_try_echo") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7497 ac_cv_type_signal=int
7499 $as_echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7502 ac_cv_type_signal=void
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7508 $as_echo "$ac_cv_type_signal" >&6; }
7510 cat >>confdefs.h <<_ACEOF
7511 #define RETSIGTYPE $ac_cv_type_signal
7516 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7517 $as_echo_n "checking for speed_t... " >&6; }
7518 if test "${emacs_cv_speed_t+set}" = set; then
7519 $as_echo_n "(cached) " >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <termios.h>
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7540 *) ac_try_echo
=$ac_try;;
7542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7546 grep -v '^ *+' conftest.er1
>conftest.err
7548 cat conftest.err
>&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.
$ac_objext; then
7554 emacs_cv_speed_t
=yes
7556 $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.
$ac_ext >&5
7562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7565 $as_echo "$emacs_cv_speed_t" >&6; }
7566 if test $emacs_cv_speed_t = yes; then
7568 cat >>confdefs.h
<<\_ACEOF
7569 #define HAVE_SPEED_T 1
7574 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7575 $as_echo_n "checking for struct timeval... " >&6; }
7576 if test "${emacs_cv_struct_timeval+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7579 cat >conftest.
$ac_ext <<_ACEOF
7582 cat confdefs.h
>>conftest.
$ac_ext
7583 cat >>conftest.
$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #ifdef TIME_WITH_SYS_TIME
7586 #include <sys/time.h>
7589 #ifdef HAVE_SYS_TIME_H
7590 #include <sys/time.h>
7598 static struct timeval x; x.tv_sec = x.tv_usec;
7603 rm -f conftest.
$ac_objext
7604 if { (ac_try
="$ac_compile"
7606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 emacs_cv_struct_timeval=yes
7623 $as_echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 emacs_cv_struct_timeval=no
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7632 $as_echo "$emacs_cv_struct_timeval" >&6; }
7633 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7634 if test $emacs_cv_struct_timeval = yes; then
7636 cat >>confdefs.h <<\_ACEOF
7637 #define HAVE_TIMEVAL 1
7642 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7643 $as_echo_n "checking for struct exception... " >&6; }
7644 if test "${emacs_cv_struct_exception+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7657 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7666 *) ac_try_echo
=$ac_try;;
7668 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1
>conftest.err
7674 cat conftest.err
>&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.
$ac_objext; then
7680 emacs_cv_struct_exception
=yes
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.
$ac_ext >&5
7685 emacs_cv_struct_exception
=no
7688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7690 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7691 $as_echo "$emacs_cv_struct_exception" >&6; }
7692 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7693 if test $emacs_cv_struct_exception != yes; then
7695 cat >>confdefs.h
<<\_ACEOF
7696 #define NO_MATHERR 1
7702 for ac_header
in sys
/socket.h
7704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 $as_echo_n "checking for $ac_header... " >&6; }
7708 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 $as_echo_n "(cached) " >&6
7711 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7712 $as_echo "$as_val"'`
7713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7714 $as_echo "$ac_res" >&6; }
7716 # Is the header compilable?
7717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7718 $as_echo_n "checking $ac_header usability... " >&6; }
7719 cat >conftest.
$ac_ext <<_ACEOF
7722 cat confdefs.h
>>conftest.
$ac_ext
7723 cat >>conftest.
$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7726 #include <$ac_header>
7728 rm -f conftest.
$ac_objext
7729 if { (ac_try
="$ac_compile"
7731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 ac_header_compiler=yes
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_header_compiler=no
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7756 $as_echo "$ac_header_compiler" >&6; }
7758 # Is the header present?
7759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7760 $as_echo_n "checking $ac_header presence... " >&6; }
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 #include <$ac_header>
7769 if { (ac_try="$ac_cpp conftest.$ac_ext"
7771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7772 *) ac_try_echo
=$ac_try;;
7774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1
>conftest.err
7780 cat conftest.err
>&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } >/dev
/null
&& {
7783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7786 ac_header_preproc
=yes
7788 $as_echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.
$ac_ext >&5
7791 ac_header_preproc
=no
7794 rm -f conftest.err conftest.
$ac_ext
7795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7796 $as_echo "$ac_header_preproc" >&6; }
7798 # So? What about this header?
7799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7805 ac_header_preproc
=yes
7808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7824 $as_echo_n "checking for $ac_header... " >&6; }
7825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7826 $as_echo_n "(cached) " >&6
7828 eval "$as_ac_Header=\$ac_header_preproc"
7830 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7831 $as_echo "$as_val"'`
7832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7833 $as_echo "$ac_res" >&6; }
7836 if test `eval 'as_val=${'$as_ac_Header'}
7837 $as_echo "$as_val"'` = yes; then
7838 cat >>confdefs.h
<<_ACEOF
7839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7847 for ac_header
in net
/if.h
7849 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7851 $as_echo_n "checking for $ac_header... " >&6; }
7852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7853 $as_echo_n "(cached) " >&6
7855 cat >conftest.
$ac_ext <<_ACEOF
7858 cat confdefs.h
>>conftest.
$ac_ext
7859 cat >>conftest.
$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7862 #if HAVE_SYS_SOCKET_H
7863 #include <sys/socket.h>
7866 #include <$ac_header>
7868 rm -f conftest.
$ac_objext
7869 if { (ac_try
="$ac_compile"
7871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7875 $as_echo "$ac_try_echo") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 eval "$as_ac_Header=yes"
7888 $as_echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 eval "$as_ac_Header=no"
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 ac_res=`eval 'as_val=${'$as_ac_Header'}
7897 $as_echo "$as_val"'`
7898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7899 $as_echo "$ac_res" >&6; }
7900 if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7911 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7912 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7913 if test "${ac_cv_struct_tm+set}" = set; then
7914 $as_echo_n "(cached) " >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <sys/types.h>
7929 int *p = &tm.tm_sec;
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7939 *) ac_try_echo
=$ac_try;;
7941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1
>conftest.err
7947 cat conftest.err
>&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.
$ac_objext; then
7953 ac_cv_struct_tm
=time.h
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.
$ac_ext >&5
7958 ac_cv_struct_tm
=sys
/time.h
7961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7963 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7964 $as_echo "$ac_cv_struct_tm" >&6; }
7965 if test $ac_cv_struct_tm = sys
/time.h
; then
7967 cat >>confdefs.h
<<\_ACEOF
7968 #define TM_IN_SYS_TIME 1
7973 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7974 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7975 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7976 $as_echo_n "(cached) " >&6
7978 cat >conftest.
$ac_ext <<_ACEOF
7981 cat confdefs.h
>>conftest.
$ac_ext
7982 cat >>conftest.
$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <sys/types.h>
7985 #include <$ac_cv_struct_tm>
7991 static struct tm ac_aggr;
7992 if (ac_aggr.tm_zone)
7998 rm -f conftest.
$ac_objext
7999 if { (ac_try
="$ac_compile"
8001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005 $as_echo "$ac_try_echo") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_cv_member_struct_tm_tm_zone=yes
8018 $as_echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <sys/types.h>
8028 #include <$ac_cv_struct_tm>
8034 static struct tm ac_aggr;
8035 if (sizeof ac_aggr.tm_zone)
8041 rm -f conftest.$ac_objext
8042 if { (ac_try="$ac_compile"
8044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8045 *) ac_try_echo
=$ac_try;;
8047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8048 $as_echo "$ac_try_echo") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1
>conftest.err
8053 cat conftest.err
>&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.
$ac_objext; then
8059 ac_cv_member_struct_tm_tm_zone
=yes
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.
$ac_ext >&5
8064 ac_cv_member_struct_tm_tm_zone
=no
8067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8073 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8074 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8076 cat >>confdefs.h
<<_ACEOF
8077 #define HAVE_STRUCT_TM_TM_ZONE 1
8083 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8085 cat >>confdefs.h
<<\_ACEOF
8086 #define HAVE_TM_ZONE 1
8090 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8091 $as_echo_n "checking whether tzname is declared... " >&6; }
8092 if test "${ac_cv_have_decl_tzname+set}" = set; then
8093 $as_echo_n "(cached) " >&6
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8114 rm -f conftest.
$ac_objext
8115 if { (ac_try
="$ac_compile"
8117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_have_decl_tzname=yes
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_have_decl_tzname=no
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8143 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8144 if test $ac_cv_have_decl_tzname = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DECL_TZNAME 1
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_TZNAME 0
8160 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8161 $as_echo_n "checking for tzname... " >&6; }
8162 if test "${ac_cv_var_tzname+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8172 #if !HAVE_DECL_TZNAME
8173 extern char *tzname[];
8179 return tzname[0][0];
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (ac_try="$ac_link"
8187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8188 *) ac_try_echo
=$ac_try;;
8190 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_link") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1
>conftest.err
8196 cat conftest.err
>&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest
$ac_exeext && {
8202 test "$cross_compiling" = yes ||
8203 $as_test_x conftest
$ac_exeext
8205 ac_cv_var_tzname
=yes
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.
$ac_ext >&5
8213 rm -rf conftest.dSYM
8214 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8215 conftest
$ac_exeext conftest.
$ac_ext
8217 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8218 $as_echo "$ac_cv_var_tzname" >&6; }
8219 if test $ac_cv_var_tzname = yes; then
8221 cat >>confdefs.h
<<\_ACEOF
8222 #define HAVE_TZNAME 1
8228 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8229 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8230 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8233 cat >conftest.
$ac_ext <<_ACEOF
8236 cat confdefs.h
>>conftest.
$ac_ext
8237 cat >>conftest.
$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8244 static struct tm ac_aggr;
8245 if (ac_aggr.tm_gmtoff)
8251 rm -f conftest.
$ac_objext
8252 if { (ac_try
="$ac_compile"
8254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258 $as_echo "$ac_try_echo") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_cv_member_struct_tm_tm_gmtoff=yes
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8285 static struct tm ac_aggr;
8286 if (sizeof ac_aggr.tm_gmtoff)
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8296 *) ac_try_echo
=$ac_try;;
8298 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1
>conftest.err
8304 cat conftest.err
>&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.
$ac_objext; then
8310 ac_cv_member_struct_tm_tm_gmtoff
=yes
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.
$ac_ext >&5
8315 ac_cv_member_struct_tm_tm_gmtoff
=no
8318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8323 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8324 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8325 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8327 cat >>confdefs.h
<<\_ACEOF
8328 #define HAVE_TM_GMTOFF 1
8333 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8334 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8335 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8336 $as_echo_n "(cached) " >&6
8338 cat >conftest.
$ac_ext <<_ACEOF
8341 cat confdefs.h
>>conftest.
$ac_ext
8342 cat >>conftest.
$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8355 static struct ifreq ac_aggr;
8356 if (ac_aggr.ifr_flags)
8362 rm -f conftest.
$ac_objext
8363 if { (ac_try
="$ac_compile"
8365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8372 grep -v '^ *+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_cv_member_struct_ifreq_ifr_flags=yes
8382 $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8402 static struct ifreq ac_aggr;
8403 if (sizeof ac_aggr.ifr_flags)
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8413 *) ac_try_echo
=$ac_try;;
8415 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8416 $as_echo "$ac_try_echo") >&5
8417 (eval "$ac_compile") 2>conftest.er1
8419 grep -v '^ *+' conftest.er1
>conftest.err
8421 cat conftest.err
>&5
8422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && {
8424 test -z "$ac_c_werror_flag" ||
8425 test ! -s conftest.err
8426 } && test -s conftest.
$ac_objext; then
8427 ac_cv_member_struct_ifreq_ifr_flags
=yes
8429 $as_echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.
$ac_ext >&5
8432 ac_cv_member_struct_ifreq_ifr_flags
=no
8435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8440 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8441 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8442 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8444 cat >>confdefs.h
<<_ACEOF
8445 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8450 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8451 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8452 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8455 cat >conftest.
$ac_ext <<_ACEOF
8458 cat confdefs.h
>>conftest.
$ac_ext
8459 cat >>conftest.
$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 $ac_includes_default
8462 #if HAVE_SYS_SOCKET_H
8463 #include <sys/socket.h>
8472 static struct ifreq ac_aggr;
8473 if (ac_aggr.ifr_hwaddr)
8479 rm -f conftest.
$ac_objext
8480 if { (ac_try
="$ac_compile"
8482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8486 $as_echo "$ac_try_echo") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest.$ac_objext; then
8497 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8499 $as_echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8519 static struct ifreq ac_aggr;
8520 if (sizeof ac_aggr.ifr_hwaddr)
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8530 *) ac_try_echo
=$ac_try;;
8532 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8536 grep -v '^ *+' conftest.er1
>conftest.err
8538 cat conftest.err
>&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.
$ac_objext; then
8544 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8546 $as_echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.
$ac_ext >&5
8549 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8558 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8559 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8561 cat >>confdefs.h
<<_ACEOF
8562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8567 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8568 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8569 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8570 $as_echo_n "(cached) " >&6
8572 cat >conftest.
$ac_ext <<_ACEOF
8575 cat confdefs.h
>>conftest.
$ac_ext
8576 cat >>conftest.
$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 $ac_includes_default
8579 #if HAVE_SYS_SOCKET_H
8580 #include <sys/socket.h>
8589 static struct ifreq ac_aggr;
8590 if (ac_aggr.ifr_netmask)
8596 rm -f conftest.
$ac_objext
8597 if { (ac_try
="$ac_compile"
8599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604 (eval "$ac_compile") 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest.$ac_objext; then
8614 ac_cv_member_struct_ifreq_ifr_netmask=yes
8616 $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 $ac_includes_default
8626 #if HAVE_SYS_SOCKET_H
8627 #include <sys/socket.h>
8636 static struct ifreq ac_aggr;
8637 if (sizeof ac_aggr.ifr_netmask)
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8647 *) ac_try_echo
=$ac_try;;
8649 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1
>conftest.err
8655 cat conftest.err
>&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.
$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.
$ac_ext >&5
8666 ac_cv_member_struct_ifreq_ifr_netmask
=no
8669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8675 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8676 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8678 cat >>confdefs.h
<<_ACEOF
8679 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8684 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8685 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8686 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8687 $as_echo_n "(cached) " >&6
8689 cat >conftest.
$ac_ext <<_ACEOF
8692 cat confdefs.h
>>conftest.
$ac_ext
8693 cat >>conftest.
$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 #if HAVE_SYS_SOCKET_H
8697 #include <sys/socket.h>
8706 static struct ifreq ac_aggr;
8707 if (ac_aggr.ifr_broadaddr)
8713 rm -f conftest.
$ac_objext
8714 if { (ac_try
="$ac_compile"
8716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8720 $as_echo "$ac_try_echo") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #if HAVE_SYS_SOCKET_H
8744 #include <sys/socket.h>
8753 static struct ifreq ac_aggr;
8754 if (sizeof ac_aggr.ifr_broadaddr)
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8764 *) ac_try_echo
=$ac_try;;
8766 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8767 $as_echo "$ac_try_echo") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1
>conftest.err
8772 cat conftest.err
>&5
8773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.
$ac_objext; then
8778 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.
$ac_ext >&5
8783 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8792 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8793 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8795 cat >>confdefs.h
<<_ACEOF
8796 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8801 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8802 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8803 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8804 $as_echo_n "(cached) " >&6
8806 cat >conftest.
$ac_ext <<_ACEOF
8809 cat confdefs.h
>>conftest.
$ac_ext
8810 cat >>conftest.
$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 $ac_includes_default
8813 #if HAVE_SYS_SOCKET_H
8814 #include <sys/socket.h>
8823 static struct ifreq ac_aggr;
8824 if (ac_aggr.ifr_addr)
8830 rm -f conftest.
$ac_objext
8831 if { (ac_try
="$ac_compile"
8833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8837 $as_echo "$ac_try_echo") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8840 grep -v '^ *+' conftest.er1 >conftest.err
8842 cat conftest.err >&5
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.$ac_objext; then
8848 ac_cv_member_struct_ifreq_ifr_addr=yes
8850 $as_echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #if HAVE_SYS_SOCKET_H
8861 #include <sys/socket.h>
8870 static struct ifreq ac_aggr;
8871 if (sizeof ac_aggr.ifr_addr)
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8881 *) ac_try_echo
=$ac_try;;
8883 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1
>conftest.err
8889 cat conftest.err
>&5
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.
$ac_objext; then
8895 ac_cv_member_struct_ifreq_ifr_addr
=yes
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 ac_cv_member_struct_ifreq_ifr_addr
=no
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8908 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8909 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8910 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8912 cat >>confdefs.h
<<_ACEOF
8913 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8921 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8922 $as_echo_n "checking for function prototypes... " >&6; }
8923 if test "$ac_cv_prog_cc_c89" != no
; then
8924 { $as_echo "$as_me:$LINENO: result: yes" >&5
8925 $as_echo "yes" >&6; }
8927 cat >>confdefs.h
<<\_ACEOF
8928 #define PROTOTYPES 1
8932 cat >>confdefs.h
<<\_ACEOF
8933 #define __PROTOTYPES 1
8937 { $as_echo "$as_me:$LINENO: result: no" >&5
8938 $as_echo "no" >&6; }
8941 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8942 $as_echo_n "checking for working volatile... " >&6; }
8943 if test "${ac_cv_c_volatile+set}" = set; then
8944 $as_echo_n "(cached) " >&6
8946 cat >conftest.
$ac_ext <<_ACEOF
8949 cat confdefs.h
>>conftest.
$ac_ext
8950 cat >>conftest.
$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8958 int * volatile y = (int *) 0;
8964 rm -f conftest.
$ac_objext
8965 if { (ac_try
="$ac_compile"
8967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8971 $as_echo "$ac_try_echo") >&5
8972 (eval "$ac_compile") 2>conftest.er1
8974 grep -v '^ *+' conftest.er1 >conftest.err
8976 cat conftest.err >&5
8977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && {
8979 test -z "$ac_c_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest.$ac_objext; then
8982 ac_cv_c_volatile=yes
8984 $as_echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8993 $as_echo "$ac_cv_c_volatile" >&6; }
8994 if test $ac_cv_c_volatile = no; then
8996 cat >>confdefs.h <<\_ACEOF
8997 #define volatile /**/
9002 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9003 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9004 if test "${ac_cv_c_const+set}" = set; then
9005 $as_echo_n "(cached) " >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9017 /* FIXME: Include the comments suggested by Paul. */
9019 /* Ultrix mips cc rejects this. */
9020 typedef int charset[2];
9022 /* SunOS 4.1.1 cc rejects this. */
9023 char const *const *pcpcc;
9025 /* NEC SVR4.0.2 mips cc rejects this. */
9026 struct point {int x, y;};
9027 static struct point const zero = {0,0};
9028 /* AIX XL C 1.02.0.0 rejects this.
9029 It does not let you subtract one const X* pointer from another in
9030 an arm of an if-expression whose if-part is not a constant
9032 const char *g = "string";
9033 pcpcc = &g + (g ? g-g : 0);
9034 /* HPUX 7.0 cc rejects these. */
9036 ppc = (char**) pcpcc;
9037 pcpcc = (char const *const *) ppc;
9038 { /* SCO 3.2v4 cc rejects this. */
9040 char const *s = 0 ? (char *) 0 : (char const *) 0;
9045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9047 const int *foo = &x[0];
9050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9051 typedef const int *iptr;
9055 { /* AIX XL C 1.02.0.0 rejects this saying
9056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9057 struct s { int j; const int *ap[3]; };
9058 struct s *b; b->j = 5;
9060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9064 return !cs[0] && !zero.x;
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9075 *) ac_try_echo
=$ac_try;;
9077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9078 $as_echo "$ac_try_echo") >&5
9079 (eval "$ac_compile") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1
>conftest.err
9083 cat conftest.err
>&5
9084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest.
$ac_objext; then
9091 $as_echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.
$ac_ext >&5
9097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9099 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9100 $as_echo "$ac_cv_c_const" >&6; }
9101 if test $ac_cv_c_const = no
; then
9103 cat >>confdefs.h
<<\_ACEOF
9109 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9110 $as_echo_n "checking for void * support... " >&6; }
9111 if test "${emacs_cv_void_star+set}" = set; then
9112 $as_echo_n "(cached) " >&6
9114 cat >conftest.
$ac_ext <<_ACEOF
9117 cat confdefs.h
>>conftest.
$ac_ext
9118 cat >>conftest.
$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9129 rm -f conftest.
$ac_objext
9130 if { (ac_try
="$ac_compile"
9132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9136 $as_echo "$ac_try_echo") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9139 grep -v '^ *+' conftest.er1 >conftest.err
9141 cat conftest.err >&5
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 emacs_cv_void_star=yes
9149 $as_echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 emacs_cv_void_star=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9158 $as_echo "$emacs_cv_void_star" >&6; }
9159 if test $emacs_cv_void_star = yes; then
9160 cat >>confdefs.h <<\_ACEOF
9161 #define POINTER_TYPE void
9165 cat >>confdefs.h <<\_ACEOF
9166 #define POINTER_TYPE char
9175 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9176 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9178 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9179 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9180 $as_echo_n "(cached) " >&6
9182 cat >conftest.make <<\_ACEOF
9185 @echo '@@@%%%=$(MAKE)=@@@%%%'
9187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9188 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9190 eval ac_cv_prog_make_${ac_make}_set=yes;;
9192 eval ac_cv_prog_make_${ac_make}_set=no;;
9196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9197 { $as_echo "$as_me:$LINENO: result: yes" >&5
9198 $as_echo "yes" >&6; }
9201 { $as_echo "$as_me:$LINENO: result: no" >&5
9202 $as_echo "no" >&6; }
9203 SET_MAKE="MAKE=${MAKE-make}"
9207 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9208 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9209 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9211 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9212 if test "x$testval" != x; then
9215 ac_enable_autodepend=no
9217 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9218 $as_echo "$HAVE_GNU_MAKE" >&6; }
9219 if test $HAVE_GNU_MAKE = yes; then
9220 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9221 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9222 SAVE_CFLAGS="$CFLAGS"
9223 CFLAGS="$CFLAGS -MMD -MF deps.d"
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9243 *) ac_try_echo
=$ac_try;;
9245 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9246 $as_echo "$ac_try_echo") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1
>conftest.err
9251 cat conftest.err
>&5
9252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest.
$ac_objext; then
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.
$ac_ext >&5
9262 ac_enable_autodepend
=no
9265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9266 CFLAGS
="$SAVE_CFLAGS"
9267 test -f deps.d || ac_enable_autodepend
=no
9269 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9270 $as_echo "$ac_enable_autodepend" >&6; }
9272 if test $ac_enable_autodepend = yes; then
9274 cat >>confdefs.h
<<\_ACEOF
9275 #define AUTO_DEPEND 1
9281 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9282 $as_echo_n "checking for long file names... " >&6; }
9283 if test "${ac_cv_sys_long_file_names+set}" = set; then
9284 $as_echo_n "(cached) " >&6
9286 ac_cv_sys_long_file_names
=yes
9287 # Test for long file names in all the places we know might matter:
9288 # . the current directory, where building will happen
9289 # $prefix/lib where we will be installing things
9290 # $exec_prefix/lib likewise
9291 # $TMPDIR if set, where it might want to write temporary files
9292 # /tmp where it might want to write temporary files
9295 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9296 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9297 # in the usual case where exec_prefix is '${prefix}'.
9299 . |
/* | ?
:[\\/]*) ;; #(
9302 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9303 ac_xdir
=$ac_dir/cf$$
9304 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9305 ac_tf1
=$ac_xdir/conftest9012345
9306 ac_tf2
=$ac_xdir/conftest9012346
9307 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9308 ac_cv_sys_long_file_names
=no
9309 rm -f -r "$ac_xdir" 2>/dev
/null
9310 test $ac_cv_sys_long_file_names = no
&& break
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9314 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9315 if test $ac_cv_sys_long_file_names = yes; then
9317 cat >>confdefs.h
<<\_ACEOF
9318 #define HAVE_LONG_FILE_NAMES 1
9324 #### Choose a window system.
9326 { $as_echo "$as_me:$LINENO: checking for X" >&5
9327 $as_echo_n "checking for X... " >&6; }
9330 # Check whether --with-x was given.
9331 if test "${with_x+set}" = set; then
9335 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9336 if test "x$with_x" = xno
; then
9337 # The user explicitly disabled X.
9340 case $x_includes,$x_libraries in #(
9341 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9342 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9343 { (exit 1); exit 1; }; };; #(
9344 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9345 $as_echo_n "(cached) " >&6
9347 # One or both of the vars are not set, and there is no cached value.
9348 ac_x_includes
=no ac_x_libraries
=no
9349 rm -f -r conftest.dir
9350 if mkdir conftest.dir
; then
9352 cat >Imakefile
<<'_ACEOF'
9354 @echo incroot='${INCROOT}'
9356 @echo usrlibdir='${USRLIBDIR}'
9358 @echo libdir='${LIBDIR}'
9360 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9362 for ac_var
in incroot usrlibdir libdir
; do
9363 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9365 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9366 for ac_extension
in a so sl dylib la dll
; do
9367 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9368 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9369 ac_im_usrlibdir
=$ac_im_libdir; break
9372 # Screen out bogus values from the imake configuration. They are
9373 # bogus both because they are the default anyway, and because
9374 # using them would break gcc on systems where it needs fixed includes.
9375 case $ac_im_incroot in
9376 /usr
/include
) ac_x_includes
= ;;
9377 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9379 case $ac_im_usrlibdir in
9381 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9385 rm -f -r conftest.dir
9388 # Standard set of common directories for X headers.
9389 # Check X11 before X11Rn because it is often a symlink to the current release.
9401 /usr/local/X11/include
9402 /usr/local/X11R6/include
9403 /usr/local/X11R5/include
9404 /usr/local/X11R4/include
9406 /usr/local/include/X11
9407 /usr/local/include/X11R6
9408 /usr/local/include/X11R5
9409 /usr/local/include/X11R4
9413 /usr/XFree86/include/X11
9417 /usr/unsupported/include
9419 /usr/local/x11r5/include
9420 /usr/lpp/Xamples/include
9422 /usr/openwin/include
9423 /usr/openwin/share/include'
9425 if test "$ac_x_includes" = no
; then
9426 # Guess where to find include files, by looking for Xlib.h.
9427 # First, try using that file with no special directory specified.
9428 cat >conftest.
$ac_ext <<_ACEOF
9431 cat confdefs.h
>>conftest.
$ac_ext
9432 cat >>conftest.
$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9436 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } >/dev/null && {
9450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9453 # We can compile using X headers with no special include directory.
9456 $as_echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 for ac_dir in $ac_x_header_dirs; do
9460 if test -r "$ac_dir/X11/Xlib.h"; then
9461 ac_x_includes=$ac_dir
9467 rm -f conftest.err conftest.$ac_ext
9468 fi # $ac_x_includes = no
9470 if test "$ac_x_libraries" = no; then
9471 # Check for the libraries.
9472 # See if we find them without any special options.
9473 # Don't add to $LIBS permanently.
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <X11/Xlib.h>
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9495 *) ac_try_echo
=$ac_try;;
9497 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_link") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1
>conftest.err
9503 cat conftest.err
>&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest
$ac_exeext && {
9509 test "$cross_compiling" = yes ||
9510 $as_test_x conftest
$ac_exeext
9513 # We can link X programs with no special library path.
9516 $as_echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.
$ac_ext >&5
9520 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9522 # Don't even attempt the hair of trying to link an X program!
9523 for ac_extension
in a so sl dylib la dll
; do
9524 if test -r "$ac_dir/libX11.$ac_extension"; then
9525 ac_x_libraries
=$ac_dir
9532 rm -rf conftest.dSYM
9533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9534 conftest
$ac_exeext conftest.
$ac_ext
9535 fi # $ac_x_libraries = no
9537 case $ac_x_includes,$ac_x_libraries in #(
9539 # Didn't find X, or a directory has "'" in its name.
9540 ac_cv_have_x
="have_x=no";; #(
9542 # Record where we found X for the cache.
9543 ac_cv_have_x
="have_x=yes\
9544 ac_x_includes='$ac_x_includes'\
9545 ac_x_libraries='$ac_x_libraries'"
9551 eval "$ac_cv_have_x"
9554 if test "$have_x" != yes; then
9555 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9556 $as_echo "$have_x" >&6; }
9559 # If each of the values was on the command line, it overrides each guess.
9560 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9561 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9562 # Update the cache value to reflect the command line values.
9563 ac_cv_have_x
="have_x=yes\
9564 ac_x_includes='$x_includes'\
9565 ac_x_libraries='$x_libraries'"
9566 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9567 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9570 if test "$no_x" = yes; then
9576 ## Workaround for bug in autoconf <= 2.62.
9577 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9578 ## No need to do anything special for these standard directories.
9579 ## This is an experiment, take it out if it causes problems.
9580 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9582 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9586 if test "${x_libraries}" != NONE
; then
9587 if test -n "${x_libraries}"; then
9588 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9589 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9591 x_default_search_path
=""
9592 x_search_path
=${x_libraries}
9593 if test -z "${x_search_path}"; then
9594 x_search_path
=/usr
/lib
9596 for x_library
in `echo ${x_search_path}: | \
9597 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9599 ${x_library}/X11/%L/%T/%N%C%S:\
9600 ${x_library}/X11/%l/%T/%N%C%S:\
9601 ${x_library}/X11/%T/%N%C%S:\
9602 ${x_library}/X11/%L/%T/%N%S:\
9603 ${x_library}/X11/%l/%T/%N%S:\
9604 ${x_library}/X11/%T/%N%S"
9605 if test x
"${x_default_search_path}" = x
; then
9606 x_default_search_path
=${x_search_path}
9608 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9612 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9613 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9616 if test x
"${x_includes}" = x
; then
9617 bitmapdir
=/usr
/include
/X11
/bitmaps
9619 # accumulate include directories that have X11 bitmap subdirectories
9621 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9622 if test -d "${bmd}/X11/bitmaps"; then
9623 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9625 if test -d "${bmd}/bitmaps"; then
9626 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9629 if test ${bmd_acc} != "dummyval"; then
9630 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9637 tmp_CPPFLAGS
="$CPPFLAGS"
9638 tmp_CFLAGS
="$CFLAGS"
9639 CPPFLAGS
="$CPPFLAGS -x objective-c"
9640 CFLAGS
="$CFLAGS -x objective-c"
9641 if test "${with_ns}" != no
; then
9642 if test "${opsys}" = darwin
; then
9644 ns_appdir
=`pwd`/nextstep
/Emacs.app
9645 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9646 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9647 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9648 elif test -f $GNUSTEP_CONFIG_FILE; then
9650 ns_appdir
=`pwd`/nextstep
/Emacs.app
9651 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9652 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9653 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9654 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9655 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9656 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9657 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9658 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9659 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9660 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9662 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9663 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9664 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9665 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9669 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9671 # Is the header compilable?
9672 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9673 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9674 cat >conftest.
$ac_ext <<_ACEOF
9677 cat confdefs.h
>>conftest.
$ac_ext
9678 cat >>conftest.
$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <AppKit/AppKit.h>
9683 rm -f conftest.
$ac_objext
9684 if { (ac_try
="$ac_compile"
9686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9690 $as_echo "$ac_try_echo") >&5
9691 (eval "$ac_compile") 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest.$ac_objext; then
9701 ac_header_compiler=yes
9703 $as_echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_header_compiler=no
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711 $as_echo "$ac_header_compiler" >&6; }
9713 # Is the header present?
9714 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9715 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <AppKit/AppKit.h>
9724 if { (ac_try="$ac_cpp conftest.$ac_ext"
9726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9727 *) ac_try_echo
=$ac_try;;
9729 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1
>conftest.err
9735 cat conftest.err
>&5
9736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev
/null
&& {
9738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9741 ac_header_preproc
=yes
9743 $as_echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.
$ac_ext >&5
9746 ac_header_preproc
=no
9749 rm -f conftest.err conftest.
$ac_ext
9750 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751 $as_echo "$ac_header_preproc" >&6; }
9753 # So? What about this header?
9754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9756 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9757 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9759 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9760 ac_header_preproc
=yes
9763 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9764 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9765 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9766 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9767 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9768 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9769 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9770 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9771 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9772 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9773 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9774 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9778 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9779 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9780 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9781 $as_echo_n "(cached) " >&6
9783 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9786 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9789 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9792 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9793 files are missing or cannot be compiled." >&5
9794 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9795 files are missing or cannot be compiled." >&2;}
9796 { (exit 1); exit 1; }; }
9800 NS_HAVE_NSINTEGER
=yes
9801 cat >conftest.
$ac_ext <<_ACEOF
9804 cat confdefs.h
>>conftest.
$ac_ext
9805 cat >>conftest.
$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 #include <Foundation/NSObjCRuntime.h>
9816 rm -f conftest.
$ac_objext
9817 if { (ac_try
="$ac_compile"
9819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824 (eval "$ac_compile") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest.$ac_objext; then
9834 ns_have_nsinteger=yes
9836 $as_echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ns_have_nsinteger=no
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 if test $ns_have_nsinteger = no; then
9844 NS_HAVE_NSINTEGER=no
9847 if test "${HAVE_NS}" = yes; then
9848 window_system=nextstep
9850 # set up packaging dirs
9851 exec_prefix=${ns_appbindir}
9852 libexecdir=${ns_appbindir}/libexec
9853 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9854 prefix=${ns_appresdir}
9857 CFLAGS="$tmp_CFLAGS"
9858 CPPFLAGS="$tmp_CPPFLAGS"
9860 case "${window_system}" in
9864 case "${with_x_toolkit}" in
9865 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9866 motif ) USE_X_TOOLKIT=MOTIF ;;
9868 USE_X_TOOLKIT=none ;;
9869 no ) USE_X_TOOLKIT=none ;;
9870 * ) USE_X_TOOLKIT=maybe ;;
9880 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9881 # Extract the first word of "X", so it can be a program name with args.
9882 set dummy X; ac_word=$2
9883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9886 $as_echo_n "(cached) " >&6
9888 if test -n "$HAVE_XSERVER"; then
9889 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898 ac_cv_prog_HAVE_XSERVER="true"
9899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9906 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9909 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9910 if test -n "$HAVE_XSERVER"; then
9911 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9912 $as_echo "$HAVE_XSERVER" >&6; }
9914 { $as_echo "$as_me:$LINENO: result: no" >&5
9915 $as_echo "no" >&6; }
9919 if test "$HAVE_XSERVER" = true ||
9920 test -n "$DISPLAY" ||
9921 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9922 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9923 were found. You should install the relevant development files for X
9924 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9925 sure you have development files for image handling, i.e.
9926 tiff, gif, jpeg, png and xpm.
9927 If you are sure you want Emacs compiled without X window support, pass
9930 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9931 were found. You should install the relevant development files for X
9932 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9933 sure you have development files for image handling, i.e.
9934 tiff, gif, jpeg, png and xpm.
9935 If you are sure you want Emacs compiled without X window support, pass
9937 to configure." >&2;}
9938 { (exit 1); exit 1; }; }
9942 ### If we're using X11, we should use the X menu package.
9945 yes ) HAVE_MENUS=yes ;;
9948 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9949 # Assume not, until told otherwise.
9952 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9953 $as_echo_n "checking for malloc_get_state... " >&6; }
9954 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9955 $as_echo_n "(cached) " >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define malloc_get_state innocuous_malloc_get_state
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char malloc_get_state (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9973 # include <limits.h>
9975 # include <assert.h>
9978 #undef malloc_get_state
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9986 char malloc_get_state ();
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9997 return malloc_get_state ();
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10006 *) ac_try_echo
=$ac_try;;
10008 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1
>conftest.err
10014 cat conftest.err
>&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest
$ac_exeext && {
10020 test "$cross_compiling" = yes ||
10021 $as_test_x conftest
$ac_exeext
10023 ac_cv_func_malloc_get_state
=yes
10025 $as_echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.
$ac_ext >&5
10028 ac_cv_func_malloc_get_state
=no
10031 rm -rf conftest.dSYM
10032 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10033 conftest
$ac_exeext conftest.
$ac_ext
10035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10036 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10037 if test $ac_cv_func_malloc_get_state = yes; then
10043 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10044 $as_echo_n "checking for malloc_set_state... " >&6; }
10045 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10046 $as_echo_n "(cached) " >&6
10048 cat >conftest.
$ac_ext <<_ACEOF
10051 cat confdefs.h
>>conftest.
$ac_ext
10052 cat >>conftest.
$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10056 #define malloc_set_state innocuous_malloc_set_state
10058 /* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char malloc_set_state (); below.
10060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061 <limits.h> exists even on freestanding compilers. */
10064 # include <limits.h>
10066 # include <assert.h>
10069 #undef malloc_set_state
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10077 char malloc_set_state ();
10078 /* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10088 return malloc_set_state ();
10093 rm -f conftest.
$ac_objext conftest
$ac_exeext
10094 if { (ac_try
="$ac_link"
10095 case "(($ac_try" in
10096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101 (eval "$ac_link") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext && {
10111 test "$cross_compiling" = yes ||
10112 $as_test_x conftest$ac_exeext
10114 ac_cv_func_malloc_set_state=yes
10116 $as_echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_func_malloc_set_state=no
10122 rm -rf conftest.dSYM
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124 conftest$ac_exeext conftest.$ac_ext
10126 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10127 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10128 if test $ac_cv_func_malloc_set_state = yes; then
10134 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10135 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10136 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10137 $as_echo_n "(cached) " >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 extern void (* __after_morecore_hook)();
10149 __after_morecore_hook = 0
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10158 *) ac_try_echo
=$ac_try;;
10160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1
>conftest.err
10166 cat conftest.err
>&5
10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest
$ac_exeext && {
10172 test "$cross_compiling" = yes ||
10173 $as_test_x conftest
$ac_exeext
10175 emacs_cv_var___after_morecore_hook
=yes
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.
$ac_ext >&5
10180 emacs_cv_var___after_morecore_hook
=no
10183 rm -rf conftest.dSYM
10184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10185 conftest
$ac_exeext conftest.
$ac_ext
10187 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10188 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10189 if test $emacs_cv_var___after_morecore_hook = no
; then
10192 if test "${system_malloc}" = "yes"; then
10194 GNU_MALLOC_reason
="
10195 (The GNU allocators don't work with this system configuration.)"
10197 if test "$doug_lea_malloc" = "yes" ; then
10198 if test "$GNU_MALLOC" = yes ; then
10199 GNU_MALLOC_reason
="
10200 (Using Doug Lea's new malloc from the GNU C Library.)"
10203 cat >>confdefs.h
<<\_ACEOF
10204 #define DOUG_LEA_MALLOC 1
10209 if test x
"${REL_ALLOC}" = x
; then
10210 REL_ALLOC
=${GNU_MALLOC}
10216 for ac_header
in stdlib.h unistd.h
10218 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 $as_echo_n "checking for $ac_header... " >&6; }
10222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223 $as_echo_n "(cached) " >&6
10225 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10226 $as_echo "$as_val"'`
10227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10228 $as_echo "$ac_res" >&6; }
10230 # Is the header compilable?
10231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10232 $as_echo_n "checking $ac_header usability... " >&6; }
10233 cat >conftest.
$ac_ext <<_ACEOF
10236 cat confdefs.h
>>conftest.
$ac_ext
10237 cat >>conftest.
$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 $ac_includes_default
10240 #include <$ac_header>
10242 rm -f conftest.
$ac_objext
10243 if { (ac_try
="$ac_compile"
10244 case "(($ac_try" in
10245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249 $as_echo "$ac_try_echo") >&5
10250 (eval "$ac_compile") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest.$ac_objext; then
10260 ac_header_compiler=yes
10262 $as_echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_header_compiler=no
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270 $as_echo "$ac_header_compiler" >&6; }
10272 # Is the header present?
10273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274 $as_echo_n "checking $ac_header presence... " >&6; }
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <$ac_header>
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10286 *) ac_try_echo
=$ac_try;;
10288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1
>conftest.err
10294 cat conftest.err
>&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev
/null
&& {
10297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10300 ac_header_preproc
=yes
10302 $as_echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.
$ac_ext >&5
10305 ac_header_preproc
=no
10308 rm -f conftest.err conftest.
$ac_ext
10309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310 $as_echo "$ac_header_preproc" >&6; }
10312 # So? What about this header?
10313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10319 ac_header_preproc
=yes
10322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10338 $as_echo_n "checking for $ac_header... " >&6; }
10339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10340 $as_echo_n "(cached) " >&6
10342 eval "$as_ac_Header=\$ac_header_preproc"
10344 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10345 $as_echo "$as_val"'`
10346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10347 $as_echo "$ac_res" >&6; }
10350 if test `eval 'as_val=${'$as_ac_Header'}
10351 $as_echo "$as_val"'` = yes; then
10352 cat >>confdefs.h
<<_ACEOF
10353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10361 for ac_func
in getpagesize
10363 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10365 $as_echo_n "checking for $ac_func... " >&6; }
10366 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10367 $as_echo_n "(cached) " >&6
10369 cat >conftest.
$ac_ext <<_ACEOF
10372 cat confdefs.h
>>conftest.
$ac_ext
10373 cat >>conftest.
$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10377 #define $ac_func innocuous_$ac_func
10379 /* System header to define __stub macros and hopefully few prototypes,
10380 which can conflict with char $ac_func (); below.
10381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10382 <limits.h> exists even on freestanding compilers. */
10385 # include <limits.h>
10387 # include <assert.h>
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10399 /* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402 #if defined __stub_$ac_func || defined __stub___$ac_func
10409 return $ac_func ();
10414 rm -f conftest.
$ac_objext conftest
$ac_exeext
10415 if { (ac_try
="$ac_link"
10416 case "(($ac_try" in
10417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422 (eval "$ac_link") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1 >conftest.err
10426 cat conftest.err >&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext && {
10432 test "$cross_compiling" = yes ||
10433 $as_test_x conftest$ac_exeext
10435 eval "$as_ac_var=yes"
10437 $as_echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 eval "$as_ac_var=no"
10443 rm -rf conftest.dSYM
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10447 ac_res=`eval 'as_val=${'$as_ac_var'}
10448 $as_echo "$as_val"'`
10449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10450 $as_echo "$ac_res" >&6; }
10451 if test `eval 'as_val=${'$as_ac_var'}
10452 $as_echo "$as_val"'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10460 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10461 $as_echo_n "checking for working mmap... " >&6; }
10462 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10465 if test "$cross_compiling" = yes; then
10466 ac_cv_func_mmap_fixed_mapped=no
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 $ac_includes_default
10475 /* malloc might have been renamed as rpl_malloc. */
10478 /* Thanks to Mike Haertel and Jim Avera for this test.
10479 Here is a matrix of mmap possibilities:
10480 mmap private not fixed
10481 mmap private fixed at somewhere currently unmapped
10482 mmap private fixed at somewhere already mapped
10483 mmap shared not fixed
10484 mmap shared fixed at somewhere currently unmapped
10485 mmap shared fixed at somewhere already mapped
10486 For private mappings, we should verify that changes cannot be read()
10487 back from the file, nor mmap's back from the file at a different
10488 address. (There have been systems where private was not correctly
10489 implemented like the infamous i386 svr4.0, and systems where the
10490 VM page cache was not coherent with the file system buffer cache
10491 like early versions of FreeBSD and possibly contemporary NetBSD.)
10492 For shared mappings, we should conversely verify that changes get
10493 propagated back to all the places they're supposed to be.
10495 Grep wants private fixed already mapped.
10496 The main things grep needs to know about mmap are:
10497 * does it exist and is it safe to write into the mmap'd area
10498 * how to use it (BSD variants) */
10501 #include <sys/mman.h>
10503 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10507 /* This mess was copied from the GNU getpagesize.h. */
10508 #ifndef HAVE_GETPAGESIZE
10509 /* Assume that all systems that can run configure have sys/param.h. */
10510 # ifndef HAVE_SYS_PARAM_H
10511 # define HAVE_SYS_PARAM_H 1
10514 # ifdef _SC_PAGESIZE
10515 # define getpagesize() sysconf(_SC_PAGESIZE)
10516 # else /* no _SC_PAGESIZE */
10517 # ifdef HAVE_SYS_PARAM_H
10518 # include <sys/param.h>
10519 # ifdef EXEC_PAGESIZE
10520 # define getpagesize() EXEC_PAGESIZE
10521 # else /* no EXEC_PAGESIZE */
10523 # define getpagesize() NBPG * CLSIZE
10526 # endif /* no CLSIZE */
10527 # else /* no NBPG */
10529 # define getpagesize() NBPC
10530 # else /* no NBPC */
10532 # define getpagesize() PAGESIZE
10533 # endif /* PAGESIZE */
10534 # endif /* no NBPC */
10535 # endif /* no NBPG */
10536 # endif /* no EXEC_PAGESIZE */
10537 # else /* no HAVE_SYS_PARAM_H */
10538 # define getpagesize() 8192 /* punt totally */
10539 # endif /* no HAVE_SYS_PARAM_H */
10540 # endif /* no _SC_PAGESIZE */
10542 #endif /* no HAVE_GETPAGESIZE */
10547 char *data, *data2, *data3;
10551 pagesize = getpagesize ();
10553 /* First, make a file with some known garbage in it. */
10554 data = (char *) malloc (pagesize);
10557 for (i = 0; i < pagesize; ++i)
10558 *(data + i) = rand ();
10560 fd = creat ("conftest.mmap", 0600);
10563 if (write (fd, data, pagesize) != pagesize)
10567 /* Next, try to mmap the file at a fixed address which already has
10568 something else allocated at it. If we can, also make sure that
10569 we see the same garbage. */
10570 fd = open ("conftest.mmap", O_RDWR);
10573 data2 = (char *) malloc (2 * pagesize);
10576 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10577 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10578 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10580 for (i = 0; i < pagesize; ++i)
10581 if (*(data + i) != *(data2 + i))
10584 /* Finally, make sure that changes to the mapped area do not
10585 percolate back to the file as seen by read(). (This is a bug on
10586 some variants of i386 svr4.0.) */
10587 for (i = 0; i < pagesize; ++i)
10588 *(data2 + i) = *(data2 + i) + 1;
10589 data3 = (char *) malloc (pagesize);
10592 if (read (fd, data3, pagesize) != pagesize)
10594 for (i = 0; i < pagesize; ++i)
10595 if (*(data + i) != *(data3 + i))
10601 rm -f conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10605 *) ac_try_echo
=$ac_try;;
10607 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10608 $as_echo "$ac_try_echo") >&5
10609 (eval "$ac_link") 2>&5
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10613 { (case "(($ac_try" in
10614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_try") 2>&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_func_mmap_fixed_mapped=yes
10625 $as_echo "$as_me: program exited with status $ac_status" >&5
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ( exit $ac_status )
10630 ac_cv_func_mmap_fixed_mapped=no
10632 rm -rf conftest.dSYM
10633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10639 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10640 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_MMAP 1
10647 rm -f conftest.mmap
10649 if test $use_mmap_for_buffers = yes; then
10653 LIBS="$libsrc_libs $LIBS"
10656 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10657 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10659 $as_echo_n "(cached) " >&6
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-ldnet $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10680 return dnet_ntoa ();
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10689 *) ac_try_echo
=$ac_try;;
10691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10692 $as_echo "$ac_try_echo") >&5
10693 (eval "$ac_link") 2>conftest.er1
10695 grep -v '^ *+' conftest.er1
>conftest.err
10697 cat conftest.err
>&5
10698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest
$ac_exeext && {
10703 test "$cross_compiling" = yes ||
10704 $as_test_x conftest
$ac_exeext
10706 ac_cv_lib_dnet_dnet_ntoa
=yes
10708 $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.
$ac_ext >&5
10711 ac_cv_lib_dnet_dnet_ntoa
=no
10714 rm -rf conftest.dSYM
10715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10716 conftest
$ac_exeext conftest.
$ac_ext
10717 LIBS
=$ac_check_lib_save_LIBS
10719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10720 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10721 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10722 cat >>confdefs.h
<<_ACEOF
10723 #define HAVE_LIBDNET 1
10726 LIBS
="-ldnet $LIBS"
10731 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10732 $as_echo_n "checking for main in -lXbsd... " >&6; }
10733 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10734 $as_echo_n "(cached) " >&6
10736 ac_check_lib_save_LIBS
=$LIBS
10737 LIBS
="-lXbsd $LIBS"
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10754 rm -f conftest.
$ac_objext conftest
$ac_exeext
10755 if { (ac_try
="$ac_link"
10756 case "(($ac_try" in
10757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10775 ac_cv_lib_Xbsd_main=yes
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_lib_Xbsd_main=no
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10789 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10790 if test $ac_cv_lib_Xbsd_main = yes; then
10791 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10796 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10797 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10798 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10799 $as_echo_n "(cached) " >&6
10801 ac_check_lib_save_LIBS=$LIBS
10802 LIBS="-lpthreads $LIBS"
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10820 return cma_open ();
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10829 *) ac_try_echo
=$ac_try;;
10831 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1
>conftest.err
10837 cat conftest.err
>&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest
$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest
$ac_exeext
10846 ac_cv_lib_pthreads_cma_open
=yes
10848 $as_echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.
$ac_ext >&5
10851 ac_cv_lib_pthreads_cma_open
=no
10854 rm -rf conftest.dSYM
10855 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10856 conftest
$ac_exeext conftest.
$ac_ext
10857 LIBS
=$ac_check_lib_save_LIBS
10859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10860 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10861 if test $ac_cv_lib_pthreads_cma_open = yes; then
10862 cat >>confdefs.h
<<_ACEOF
10863 #define HAVE_LIBPTHREADS 1
10866 LIBS
="-lpthreads $LIBS"
10874 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10875 $as_echo_n "checking for -bbigtoc option... " >&6; }
10876 if test "${gdb_cv_bigtoc+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10881 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10882 *) gdb_cv_bigtoc
=-bbigtoc ;;
10885 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10886 cat >conftest.
$ac_ext <<_ACEOF
10889 cat confdefs.h
>>conftest.
$ac_ext
10890 cat >>conftest.
$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10901 rm -f conftest.
$ac_objext conftest
$ac_exeext
10902 if { (ac_try
="$ac_link"
10903 case "(($ac_try" in
10904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_link") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext && {
10919 test "$cross_compiling" = yes ||
10920 $as_test_x conftest$ac_exeext
10924 $as_echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10930 rm -rf conftest.dSYM
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10935 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10936 $as_echo "$gdb_cv_bigtoc" >&6; }
10940 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10941 # used for the tests that follow. We set them back to REAL_CFLAGS and
10942 # REAL_CPPFLAGS later on.
10944 REAL_CPPFLAGS="$CPPFLAGS"
10946 if test "${HAVE_X11}" = "yes"; then
10947 DEFS="$C_SWITCH_X_SITE $DEFS"
10948 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10950 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10951 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10953 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10954 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10955 # but it's more convenient here to set LD_RUN_PATH
10956 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10957 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10958 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10962 if test "${opsys}" = "gnu-linux"; then
10963 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10964 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10975 XOpenDisplay ("foo");
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10984 *) ac_try_echo
=$ac_try;;
10986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10987 $as_echo "$ac_try_echo") >&5
10988 (eval "$ac_link") 2>conftest.er1
10990 grep -v '^ *+' conftest.er1
>conftest.err
10992 cat conftest.err
>&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest
$ac_exeext && {
10998 test "$cross_compiling" = yes ||
10999 $as_test_x conftest
$ac_exeext
11001 xlinux_first_failure
=no
11003 $as_echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.
$ac_ext >&5
11006 xlinux_first_failure
=yes
11009 rm -rf conftest.dSYM
11010 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11011 conftest
$ac_exeext conftest.
$ac_ext
11012 if test "${xlinux_first_failure}" = "yes"; then
11013 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11014 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11015 OLD_CPPFLAGS
="$CPPFLAGS"
11017 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11018 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11019 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11020 LIBS
="$LIBS -b i486-linuxaout"
11021 cat >conftest.
$ac_ext <<_ACEOF
11024 cat confdefs.h
>>conftest.
$ac_ext
11025 cat >>conftest.
$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11031 XOpenDisplay ("foo");
11036 rm -f conftest.
$ac_objext conftest
$ac_exeext
11037 if { (ac_try
="$ac_link"
11038 case "(($ac_try" in
11039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11057 xlinux_second_failure=no
11059 $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 xlinux_second_failure=yes
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068 if test "${xlinux_second_failure}" = "yes"; then
11069 # If we get the same failure with -b, there is no use adding -b.
11070 # So take it out. This plays safe.
11071 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11072 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11073 CPPFLAGS="$OLD_CPPFLAGS"
11075 { $as_echo "$as_me:$LINENO: result: no" >&5
11076 $as_echo "no" >&6; }
11078 { $as_echo "$as_me:$LINENO: result: yes" >&5
11079 $as_echo "yes" >&6; }
11082 { $as_echo "$as_me:$LINENO: result: no" >&5
11083 $as_echo "no" >&6; }
11087 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11088 # header files included from there.
11089 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11090 $as_echo_n "checking for Xkb... " >&6; }
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <X11/Xlib.h>
11098 #include <X11/XKBlib.h>
11102 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11111 *) ac_try_echo
=$ac_try;;
11113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11114 $as_echo "$ac_try_echo") >&5
11115 (eval "$ac_link") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1
>conftest.err
11119 cat conftest.err
>&5
11120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest
$ac_exeext && {
11125 test "$cross_compiling" = yes ||
11126 $as_test_x conftest
$ac_exeext
11130 $as_echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.
$ac_ext >&5
11136 rm -rf conftest.dSYM
11137 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11138 conftest
$ac_exeext conftest.
$ac_ext
11139 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11140 $as_echo "$emacs_xkb" >&6; }
11141 if test $emacs_xkb = yes; then
11143 cat >>confdefs.h
<<\_ACEOF
11144 #define HAVE_XKBGETKEYBOARD 1
11153 for ac_func
in XrmSetDatabase XScreenResourceString \
11154 XScreenNumberOfScreen XSetWMProtocols
11156 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11157 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11158 $as_echo_n "checking for $ac_func... " >&6; }
11159 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11160 $as_echo_n "(cached) " >&6
11162 cat >conftest.
$ac_ext <<_ACEOF
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11170 #define $ac_func innocuous_$ac_func
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11178 # include <limits.h>
11180 # include <assert.h>
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined __stub_$ac_func || defined __stub___$ac_func
11202 return $ac_func ();
11207 rm -f conftest.
$ac_objext conftest
$ac_exeext
11208 if { (ac_try
="$ac_link"
11209 case "(($ac_try" in
11210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11214 $as_echo "$ac_try_echo") >&5
11215 (eval "$ac_link") 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest$ac_exeext && {
11225 test "$cross_compiling" = yes ||
11226 $as_test_x conftest$ac_exeext
11228 eval "$as_ac_var=yes"
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 eval "$as_ac_var=no"
11236 rm -rf conftest.dSYM
11237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11238 conftest$ac_exeext conftest.$ac_ext
11240 ac_res=`eval 'as_val=${'$as_ac_var'}
11241 $as_echo "$as_val"'`
11242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11243 $as_echo "$ac_res" >&6; }
11244 if test `eval 'as_val=${'$as_ac_var'}
11245 $as_echo "$as_val"'` = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11255 if test "${window_system}" = "x11"; then
11256 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11257 $as_echo_n "checking X11 version 6... " >&6; }
11258 if test "${emacs_cv_x11_version_6+set}" = set; then
11259 $as_echo_n "(cached) " >&6
11261 cat >conftest.$ac_ext <<_ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <X11/Xlib.h>
11271 #if XlibSpecificationRelease < 6
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11283 *) ac_try_echo
=$ac_try;;
11285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11286 $as_echo "$ac_try_echo") >&5
11287 (eval "$ac_link") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1
>conftest.err
11291 cat conftest.err
>&5
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest
$ac_exeext && {
11297 test "$cross_compiling" = yes ||
11298 $as_test_x conftest
$ac_exeext
11300 emacs_cv_x11_version_6
=yes
11302 $as_echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.
$ac_ext >&5
11305 emacs_cv_x11_version_6
=no
11308 rm -rf conftest.dSYM
11309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11310 conftest
$ac_exeext conftest.
$ac_ext
11313 if test $emacs_cv_x11_version_6 = yes; then
11314 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11315 $as_echo "6 or newer" >&6; }
11317 cat >>confdefs.h
<<\_ACEOF
11318 #define HAVE_X11R6 1
11322 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11323 $as_echo "before 6" >&6; }
11328 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11330 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11331 if test "${with_rsvg}" != "no"; then
11332 RSVG_REQUIRED
=2.11.0
11333 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11338 # Extract the first word of "pkg-config", so it can be a program name with args.
11339 set dummy pkg-config
; ac_word
=$2
11340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11343 $as_echo_n "(cached) " >&6
11345 case $PKG_CONFIG in
11347 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11351 for as_dir
in $PATH
11354 test -z "$as_dir" && as_dir
=.
11355 for ac_exec_ext
in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11369 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11370 if test -n "$PKG_CONFIG"; then
11371 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11372 $as_echo "$PKG_CONFIG" >&6; }
11374 { $as_echo "$as_me:$LINENO: result: no" >&5
11375 $as_echo "no" >&6; }
11380 if test "$PKG_CONFIG" = "no" ; then
11383 PKG_CONFIG_MIN_VERSION
=0.9.0
11384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11386 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11388 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11389 { $as_echo "$as_me:$LINENO: result: yes" >&5
11390 $as_echo "yes" >&6; }
11393 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11394 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11395 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11396 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11397 $as_echo "$RSVG_CFLAGS" >&6; }
11399 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11400 $as_echo_n "checking RSVG_LIBS... " >&6; }
11401 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11402 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11403 $as_echo "$RSVG_LIBS" >&6; }
11405 { $as_echo "$as_me:$LINENO: result: no" >&5
11406 $as_echo "no" >&6; }
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so.
11411 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11423 if test $succeeded = yes; then
11432 if test ".${RSVG_CFLAGS}" != "."; then
11435 cat >>confdefs.h
<<\_ACEOF
11436 #define HAVE_RSVG 1
11439 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11440 LIBS
="$RSVG_LIBS $LIBS"
11447 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11450 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11455 # Extract the first word of "pkg-config", so it can be a program name with args.
11456 set dummy pkg-config
; ac_word
=$2
11457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11460 $as_echo_n "(cached) " >&6
11462 case $PKG_CONFIG in
11464 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11468 for as_dir
in $PATH
11471 test -z "$as_dir" && as_dir
=.
11472 for ac_exec_ext
in '' $ac_executable_extensions; do
11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11486 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11487 if test -n "$PKG_CONFIG"; then
11488 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11489 $as_echo "$PKG_CONFIG" >&6; }
11491 { $as_echo "$as_me:$LINENO: result: no" >&5
11492 $as_echo "no" >&6; }
11497 if test "$PKG_CONFIG" = "no" ; then
11500 PKG_CONFIG_MIN_VERSION
=0.9.0
11501 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11502 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11503 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11505 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11506 { $as_echo "$as_me:$LINENO: result: yes" >&5
11507 $as_echo "yes" >&6; }
11510 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11511 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11512 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11513 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11514 $as_echo "$GTK_CFLAGS" >&6; }
11516 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11517 $as_echo_n "checking GTK_LIBS... " >&6; }
11518 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11519 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11520 $as_echo "$GTK_LIBS" >&6; }
11522 { $as_echo "$as_me:$LINENO: result: no" >&5
11523 $as_echo "no" >&6; }
11526 ## If we have a custom action on failure, don't print errors, but
11527 ## do set a variable so people can do so.
11528 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11535 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11536 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11540 if test $succeeded = yes; then
11546 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11547 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11548 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11549 { (exit 1); exit 1; }; }
11554 if test x
"$pkg_check_gtk" = xyes
; then
11558 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11559 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11560 LIBS
="$GTK_LIBS $LIBS"
11563 for ac_func
in gtk_main
11565 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11566 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11567 $as_echo_n "checking for $ac_func... " >&6; }
11568 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11569 $as_echo_n "(cached) " >&6
11571 cat >conftest.
$ac_ext <<_ACEOF
11574 cat confdefs.h
>>conftest.
$ac_ext
11575 cat >>conftest.
$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11579 #define $ac_func innocuous_$ac_func
11581 /* System header to define __stub macros and hopefully few prototypes,
11582 which can conflict with char $ac_func (); below.
11583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11584 <limits.h> exists even on freestanding compilers. */
11587 # include <limits.h>
11589 # include <assert.h>
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11601 /* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
11604 #if defined __stub_$ac_func || defined __stub___$ac_func
11611 return $ac_func ();
11616 rm -f conftest.
$ac_objext conftest
$ac_exeext
11617 if { (ac_try
="$ac_link"
11618 case "(($ac_try" in
11619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11623 $as_echo "$ac_try_echo") >&5
11624 (eval "$ac_link") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest$ac_exeext && {
11634 test "$cross_compiling" = yes ||
11635 $as_test_x conftest$ac_exeext
11637 eval "$as_ac_var=yes"
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 eval "$as_ac_var=no"
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11649 ac_res=`eval 'as_val=${'$as_ac_var'}
11650 $as_echo "$as_val"'`
11651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11653 if test `eval 'as_val=${'$as_ac_var'}
11654 $as_echo "$as_val"'` = yes; then
11655 cat >>confdefs.h <<_ACEOF
11656 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11662 if test "${GTK_COMPILES}" != "yes"; then
11663 if test "$USE_X_TOOLKIT" != "maybe"; then
11664 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11665 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11666 { (exit 1); exit 1; }; };
11671 cat >>confdefs.h <<\_ACEOF
11676 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11679 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11680 closing open displays. This is no problem if you just use
11681 one display, but if you use more than one and close one of them
11682 Emacs may crash." >&5
11683 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11684 closing open displays. This is no problem if you just use
11685 one display, but if you use more than one and close one of them
11686 Emacs may crash." >&2;}
11694 if test "${HAVE_GTK}" = "yes"; then
11696 if test "$with_toolkit_scroll_bars" != no; then
11697 with_toolkit_scroll_bars=yes
11700 HAVE_GTK_MULTIDISPLAY=no
11702 for ac_func in gdk_display_open
11704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11705 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 $as_echo_n "checking for $ac_func... " >&6; }
11707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11708 $as_echo_n "(cached) " >&6
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11718 #define $ac_func innocuous_$ac_func
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func (); below.
11722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723 <limits.h> exists even on freestanding compilers. */
11726 # include <limits.h>
11728 # include <assert.h>
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined __stub_$ac_func || defined __stub___$ac_func
11750 return $ac_func ();
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11759 *) ac_try_echo
=$ac_try;;
11761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11762 $as_echo "$ac_try_echo") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1
>conftest.err
11767 cat conftest.err
>&5
11768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest
$ac_exeext && {
11773 test "$cross_compiling" = yes ||
11774 $as_test_x conftest
$ac_exeext
11776 eval "$as_ac_var=yes"
11778 $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.
$ac_ext >&5
11781 eval "$as_ac_var=no"
11784 rm -rf conftest.dSYM
11785 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11786 conftest
$ac_exeext conftest.
$ac_ext
11788 ac_res
=`eval 'as_val=${'$as_ac_var'}
11789 $as_echo "$as_val"'`
11790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11791 $as_echo "$ac_res" >&6; }
11792 if test `eval 'as_val=${'$as_ac_var'}
11793 $as_echo "$as_val"'` = yes; then
11794 cat >>confdefs.h
<<_ACEOF
11795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11797 HAVE_GTK_MULTIDISPLAY
=yes
11801 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11803 cat >>confdefs.h
<<\_ACEOF
11804 #define HAVE_GTK_MULTIDISPLAY 1
11809 HAVE_GTK_FILE_SELECTION
=no
11810 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11811 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11812 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11813 $as_echo_n "(cached) " >&6
11815 cat >conftest.
$ac_ext <<_ACEOF
11818 cat confdefs.h
>>conftest.
$ac_ext
11819 cat >>conftest.
$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11822 #include <gtk/gtk.h>
11827 #ifndef GTK_TYPE_FILE_SELECTION
11828 (void) GTK_TYPE_FILE_SELECTION;
11835 rm -f conftest.
$ac_objext
11836 if { (ac_try
="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11842 $as_echo "$ac_try_echo") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11855 $as_echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11864 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11865 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11866 HAVE_GTK_FILE_SELECTION=yes
11868 HAVE_GTK_FILE_SELECTION=no
11871 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11873 for ac_func in gtk_file_selection_new
11875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11876 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 $as_echo_n "checking for $ac_func... " >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 $as_echo_n "(cached) " >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11897 # include <limits.h>
11899 # include <assert.h>
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11921 return $ac_func ();
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11930 *) ac_try_echo
=$ac_try;;
11932 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_link") 2>conftest.er1
11936 grep -v '^ *+' conftest.er1
>conftest.err
11938 cat conftest.err
>&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest
$ac_exeext && {
11944 test "$cross_compiling" = yes ||
11945 $as_test_x conftest
$ac_exeext
11947 eval "$as_ac_var=yes"
11949 $as_echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.
$ac_ext >&5
11952 eval "$as_ac_var=no"
11955 rm -rf conftest.dSYM
11956 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11957 conftest
$ac_exeext conftest.
$ac_ext
11959 ac_res
=`eval 'as_val=${'$as_ac_var'}
11960 $as_echo "$as_val"'`
11961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11962 $as_echo "$ac_res" >&6; }
11963 if test `eval 'as_val=${'$as_ac_var'}
11964 $as_echo "$as_val"'` = yes; then
11965 cat >>confdefs.h
<<_ACEOF
11966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11968 HAVE_GTK_FILE_SELECTION
=yes
11970 HAVE_GTK_FILE_SELECTION
=no
11976 HAVE_GTK_FILE_CHOOSER
=no
11977 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11978 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11979 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11980 $as_echo_n "(cached) " >&6
11982 cat >conftest.
$ac_ext <<_ACEOF
11985 cat confdefs.h
>>conftest.
$ac_ext
11986 cat >>conftest.
$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11989 #include <gtk/gtk.h>
11994 #ifndef GTK_TYPE_FILE_CHOOSER
11995 (void) GTK_TYPE_FILE_CHOOSER;
12002 rm -f conftest.
$ac_objext
12003 if { (ac_try
="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12020 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12022 $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12031 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12032 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12033 HAVE_GTK_FILE_CHOOSER=yes
12035 HAVE_GTK_FILE_CHOOSER=no
12038 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12040 for ac_func in gtk_file_chooser_dialog_new
12042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12044 $as_echo_n "checking for $ac_func... " >&6; }
12045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12046 $as_echo_n "(cached) " >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056 #define $ac_func innocuous_$ac_func
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12064 # include <limits.h>
12066 # include <assert.h>
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12078 /* The GNU C library defines this for functions which it implements
12079 to always fail with ENOSYS. Some functions are actually named
12080 something starting with __ and the normal name is an alias. */
12081 #if defined __stub_$ac_func || defined __stub___$ac_func
12088 return $ac_func ();
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12097 *) ac_try_echo
=$ac_try;;
12099 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_link") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1
>conftest.err
12105 cat conftest.err
>&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest
$ac_exeext && {
12111 test "$cross_compiling" = yes ||
12112 $as_test_x conftest
$ac_exeext
12114 eval "$as_ac_var=yes"
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.
$ac_ext >&5
12119 eval "$as_ac_var=no"
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12124 conftest
$ac_exeext conftest.
$ac_ext
12126 ac_res
=`eval 'as_val=${'$as_ac_var'}
12127 $as_echo "$as_val"'`
12128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12129 $as_echo "$ac_res" >&6; }
12130 if test `eval 'as_val=${'$as_ac_var'}
12131 $as_echo "$as_val"'` = yes; then
12132 cat >>confdefs.h
<<_ACEOF
12133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12135 HAVE_GTK_FILE_CHOOSER
=yes
12137 HAVE_GTK_FILE_CHOOSER
=no
12143 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12144 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12146 cat >>confdefs.h
<<\_ACEOF
12147 #define HAVE_GTK_FILE_BOTH 1
12152 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12153 HAVE_GTK_AND_PTHREAD
=no
12155 for ac_header
in pthread.h
12157 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 $as_echo_n "checking for $ac_header... " >&6; }
12161 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 $as_echo_n "(cached) " >&6
12164 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12165 $as_echo "$as_val"'`
12166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12167 $as_echo "$ac_res" >&6; }
12169 # Is the header compilable?
12170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 $as_echo_n "checking $ac_header usability... " >&6; }
12172 cat >conftest.
$ac_ext <<_ACEOF
12175 cat confdefs.h
>>conftest.
$ac_ext
12176 cat >>conftest.
$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12179 #include <$ac_header>
12181 rm -f conftest.
$ac_objext
12182 if { (ac_try
="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
12199 ac_header_compiler=yes
12201 $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_header_compiler=no
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209 $as_echo "$ac_header_compiler" >&6; }
12211 # Is the header present?
12212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12213 $as_echo_n "checking $ac_header presence... " >&6; }
12214 cat >conftest.$ac_ext <<_ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <$ac_header>
12222 if { (ac_try="$ac_cpp conftest.$ac_ext"
12223 case "(($ac_try" in
12224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12225 *) ac_try_echo
=$ac_try;;
12227 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12228 $as_echo "$ac_try_echo") >&5
12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12231 grep -v '^ *+' conftest.er1
>conftest.err
12233 cat conftest.err
>&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } >/dev
/null
&& {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12239 ac_header_preproc
=yes
12241 $as_echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.
$ac_ext >&5
12244 ac_header_preproc
=no
12247 rm -f conftest.err conftest.
$ac_ext
12248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 $as_echo "$ac_header_preproc" >&6; }
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc
=yes
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12264 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12268 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 $as_echo_n "checking for $ac_header... " >&6; }
12278 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279 $as_echo_n "(cached) " >&6
12281 eval "$as_ac_Header=\$ac_header_preproc"
12283 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12284 $as_echo "$as_val"'`
12285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12286 $as_echo "$ac_res" >&6; }
12289 if test `eval 'as_val=${'$as_ac_Header'}
12290 $as_echo "$as_val"'` = yes; then
12291 cat >>confdefs.h
<<_ACEOF
12292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12299 if test "$ac_cv_header_pthread_h"; then
12300 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12301 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12302 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12303 $as_echo_n "(cached) " >&6
12305 ac_check_lib_save_LIBS
=$LIBS
12306 LIBS
="-lpthread $LIBS"
12307 cat >conftest.
$ac_ext <<_ACEOF
12310 cat confdefs.h
>>conftest.
$ac_ext
12311 cat >>conftest.
$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12320 char pthread_self ();
12324 return pthread_self ();
12329 rm -f conftest.
$ac_objext conftest
$ac_exeext
12330 if { (ac_try
="$ac_link"
12331 case "(($ac_try" in
12332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_link") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext && {
12347 test "$cross_compiling" = yes ||
12348 $as_test_x conftest$ac_exeext
12350 ac_cv_lib_pthread_pthread_self=yes
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_pthread_pthread_self=no
12358 rm -rf conftest.dSYM
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12364 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12365 if test $ac_cv_lib_pthread_pthread_self = yes; then
12366 HAVE_GTK_AND_PTHREAD=yes
12370 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12371 case "${canonical}" in
12373 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_GTK_AND_PTHREAD 1
12385 if test "${with_dbus}" = "yes"; then
12389 # Extract the first word of "pkg-config", so it can be a program name with args.
12390 set dummy pkg-config; ac_word=$2
12391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12394 $as_echo_n "(cached) " >&6
12396 case $PKG_CONFIG in
12398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12421 if test -n "$PKG_CONFIG"; then
12422 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12423 $as_echo "$PKG_CONFIG" >&6; }
12425 { $as_echo "$as_me:$LINENO: result: no" >&5
12426 $as_echo "no" >&6; }
12431 if test "$PKG_CONFIG" = "no" ; then
12434 PKG_CONFIG_MIN_VERSION=0.9.0
12435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12436 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12437 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12439 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12440 { $as_echo "$as_me:$LINENO: result: yes" >&5
12441 $as_echo "yes" >&6; }
12444 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12445 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12446 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12447 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12448 $as_echo "$DBUS_CFLAGS" >&6; }
12450 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12451 $as_echo_n "checking DBUS_LIBS... " >&6; }
12452 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12453 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12454 $as_echo "$DBUS_LIBS" >&6; }
12456 { $as_echo "$as_me:$LINENO: result: no" >&5
12457 $as_echo "no" >&6; }
12460 ## If we have a custom action on failure, don't print errors, but
12461 ## do set a variable so people can do so.
12462 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12469 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12470 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12474 if test $succeeded = yes; then
12480 if test "$HAVE_DBUS" = yes; then
12481 LIBS="$LIBS $DBUS_LIBS"
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_DBUS 1
12488 for ac_func in dbus_watch_get_unix_fd
12490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12492 $as_echo_n "checking for $ac_func... " >&6; }
12493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12494 $as_echo_n "(cached) " >&6
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504 #define $ac_func innocuous_$ac_func
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char $ac_func (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12512 # include <limits.h>
12514 # include <assert.h>
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined __stub_$ac_func || defined __stub___$ac_func
12536 return $ac_func ();
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12545 *) ac_try_echo
=$ac_try;;
12547 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1
>conftest.err
12553 cat conftest.err
>&5
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest
$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest
$ac_exeext
12562 eval "$as_ac_var=yes"
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.
$ac_ext >&5
12567 eval "$as_ac_var=no"
12570 rm -rf conftest.dSYM
12571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12572 conftest
$ac_exeext conftest.
$ac_ext
12574 ac_res
=`eval 'as_val=${'$as_ac_var'}
12575 $as_echo "$as_val"'`
12576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12577 $as_echo "$ac_res" >&6; }
12578 if test `eval 'as_val=${'$as_ac_var'}
12579 $as_echo "$as_val"'` = yes; then
12580 cat >>confdefs.h
<<_ACEOF
12581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12591 if test "${with_gconf}" = "yes"; then
12595 # Extract the first word of "pkg-config", so it can be a program name with args.
12596 set dummy pkg-config
; ac_word
=$2
12597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12600 $as_echo_n "(cached) " >&6
12602 case $PKG_CONFIG in
12604 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12608 for as_dir
in $PATH
12611 test -z "$as_dir" && as_dir
=.
12612 for ac_exec_ext
in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12626 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12627 if test -n "$PKG_CONFIG"; then
12628 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12629 $as_echo "$PKG_CONFIG" >&6; }
12631 { $as_echo "$as_me:$LINENO: result: no" >&5
12632 $as_echo "no" >&6; }
12637 if test "$PKG_CONFIG" = "no" ; then
12640 PKG_CONFIG_MIN_VERSION
=0.9.0
12641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12642 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12643 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12645 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12646 { $as_echo "$as_me:$LINENO: result: yes" >&5
12647 $as_echo "yes" >&6; }
12650 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12651 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12652 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12653 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12654 $as_echo "$GCONF_CFLAGS" >&6; }
12656 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12657 $as_echo_n "checking GCONF_LIBS... " >&6; }
12658 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12659 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12660 $as_echo "$GCONF_LIBS" >&6; }
12662 { $as_echo "$as_me:$LINENO: result: no" >&5
12663 $as_echo "no" >&6; }
12666 ## If we have a custom action on failure, don't print errors, but
12667 ## do set a variable so people can do so.
12668 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12680 if test $succeeded = yes; then
12686 if test "$HAVE_GCONF" = yes; then
12688 cat >>confdefs.h
<<\_ACEOF
12689 #define HAVE_GCONF 1
12696 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12697 if test "$with_xaw3d" != no
; then
12698 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12699 $as_echo_n "checking for xaw3d... " >&6; }
12700 if test "${emacs_cv_xaw3d+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12703 cat >conftest.
$ac_ext <<_ACEOF
12706 cat confdefs.h
>>conftest.
$ac_ext
12707 cat >>conftest.
$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12710 #include <X11/Intrinsic.h>
12711 #include <X11/Xaw3d/Simple.h>
12720 rm -f conftest.
$ac_objext conftest
$ac_exeext
12721 if { (ac_try
="$ac_link"
12722 case "(($ac_try" in
12723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12727 $as_echo "$ac_try_echo") >&5
12728 (eval "$ac_link") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && {
12735 test -z "$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12737 } && test -s conftest$ac_exeext && {
12738 test "$cross_compiling" = yes ||
12739 $as_test_x conftest$ac_exeext
12743 $as_echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12749 rm -rf conftest.dSYM
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12757 if test $emacs_cv_xaw3d = yes; then
12758 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12759 $as_echo "yes; using Lucid toolkit" >&6; }
12760 USE_X_TOOLKIT=LUCID
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HAVE_XAW3D 1
12768 { $as_echo "$as_me:$LINENO: result: no" >&5
12769 $as_echo "no" >&6; }
12770 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12771 $as_echo_n "checking for libXaw... " >&6; }
12772 if test "${emacs_cv_xaw+set}" = set; then
12773 $as_echo_n "(cached) " >&6
12775 cat >conftest.$ac_ext <<_ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12782 #include <X11/Intrinsic.h>
12783 #include <X11/Xaw/Simple.h>
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (ac_try="$ac_link"
12794 case "(($ac_try" in
12795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12796 *) ac_try_echo
=$ac_try;;
12798 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12799 $as_echo "$ac_try_echo") >&5
12800 (eval "$ac_link") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1
>conftest.err
12804 cat conftest.err
>&5
12805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest
$ac_exeext && {
12810 test "$cross_compiling" = yes ||
12811 $as_test_x conftest
$ac_exeext
12815 $as_echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.
$ac_ext >&5
12821 rm -rf conftest.dSYM
12822 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12823 conftest
$ac_exeext conftest.
$ac_ext
12826 if test $emacs_cv_xaw = yes; then
12827 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12828 $as_echo "yes; using Lucid toolkit" >&6; }
12829 USE_X_TOOLKIT
=LUCID
12830 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12831 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12832 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12833 { (exit 1); exit 1; }; }
12835 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12836 $as_echo "no; do not use toolkit by default" >&6; }
12842 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12844 if test "${USE_X_TOOLKIT}" != "none"; then
12845 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12846 $as_echo_n "checking X11 toolkit version... " >&6; }
12847 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12848 $as_echo_n "(cached) " >&6
12850 cat >conftest.
$ac_ext <<_ACEOF
12853 cat confdefs.h
>>conftest.
$ac_ext
12854 cat >>conftest.
$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 #include <X11/Intrinsic.h>
12860 #if XtSpecificationRelease < 6
12868 rm -f conftest.
$ac_objext conftest
$ac_exeext
12869 if { (ac_try
="$ac_link"
12870 case "(($ac_try" in
12871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875 $as_echo "$ac_try_echo") >&5
12876 (eval "$ac_link") 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest$ac_exeext && {
12886 test "$cross_compiling" = yes ||
12887 $as_test_x conftest$ac_exeext
12889 emacs_cv_x11_toolkit_version_6=yes
12891 $as_echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12894 emacs_cv_x11_toolkit_version_6=no
12897 rm -rf conftest.dSYM
12898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
12902 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12903 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12904 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12905 $as_echo "6 or newer" >&6; }
12907 cat >>confdefs.h <<\_ACEOF
12908 #define HAVE_X11XTR6 1
12912 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12913 $as_echo "before 6" >&6; }
12917 if test x$HAVE_X11XTR6 = xyes; then
12918 LIBS="-lXt -lSM -lICE $LIBS"
12923 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12924 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12925 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12926 $as_echo_n "(cached) " >&6
12928 ac_check_lib_save_LIBS=$LIBS
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12943 char XmuConvertStandardSelection ();
12947 return XmuConvertStandardSelection ();
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (ac_try="$ac_link"
12954 case "(($ac_try" in
12955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12956 *) ac_try_echo
=$ac_try;;
12958 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12959 $as_echo "$ac_try_echo") >&5
12960 (eval "$ac_link") 2>conftest.er1
12962 grep -v '^ *+' conftest.er1
>conftest.err
12964 cat conftest.err
>&5
12965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
12969 } && test -s conftest
$ac_exeext && {
12970 test "$cross_compiling" = yes ||
12971 $as_test_x conftest
$ac_exeext
12973 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12975 $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.
$ac_ext >&5
12978 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12981 rm -rf conftest.dSYM
12982 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12983 conftest
$ac_exeext conftest.
$ac_ext
12984 LIBS
=$ac_check_lib_save_LIBS
12986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12987 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12988 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12989 cat >>confdefs.h
<<_ACEOF
12990 #define HAVE_LIBXMU 1
12997 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
13000 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13001 if test "${HAVE_X11}" = "yes"; then
13002 if test "${USE_X_TOOLKIT}" != "none"; then
13004 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13005 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13006 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13007 $as_echo_n "(cached) " >&6
13009 ac_check_lib_save_LIBS
=$LIBS
13010 LIBS
="-lXext $LIBS"
13011 cat >conftest.
$ac_ext <<_ACEOF
13014 cat confdefs.h
>>conftest.
$ac_ext
13015 cat >>conftest.
$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13024 char XShapeQueryExtension ();
13028 return XShapeQueryExtension ();
13033 rm -f conftest.
$ac_objext conftest
$ac_exeext
13034 if { (ac_try
="$ac_link"
13035 case "(($ac_try" in
13036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13040 $as_echo "$ac_try_echo") >&5
13041 (eval "$ac_link") 2>conftest.er1
13043 grep -v '^ *+' conftest.er1 >conftest.err
13045 cat conftest.err >&5
13046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
13050 } && test -s conftest$ac_exeext && {
13051 test "$cross_compiling" = yes ||
13052 $as_test_x conftest$ac_exeext
13054 ac_cv_lib_Xext_XShapeQueryExtension=yes
13056 $as_echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_cv_lib_Xext_XShapeQueryExtension=no
13062 rm -rf conftest.dSYM
13063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13068 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13069 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBXEXT 1
13074 LIBS="-lXext $LIBS"
13081 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13082 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13083 $as_echo_n "checking for Motif version 2.1... " >&6; }
13084 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13085 $as_echo_n "(cached) " >&6
13087 cat >conftest.$ac_ext <<_ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13097 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13100 Motif version prior to 2.1.
13106 rm -f conftest.$ac_objext
13107 if { (ac_try="$ac_compile"
13108 case "(($ac_try" in
13109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13110 *) ac_try_echo
=$ac_try;;
13112 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13113 $as_echo "$ac_try_echo") >&5
13114 (eval "$ac_compile") 2>conftest.er1
13116 grep -v '^ *+' conftest.er1
>conftest.err
13118 cat conftest.err
>&5
13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } && {
13121 test -z "$ac_c_werror_flag" ||
13122 test ! -s conftest.err
13123 } && test -s conftest.
$ac_objext; then
13124 emacs_cv_motif_version_2_1
=yes
13126 $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.
$ac_ext >&5
13129 emacs_cv_motif_version_2_1
=no
13132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13134 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13135 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13136 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
13137 if test $emacs_cv_motif_version_2_1 = yes; then
13140 cat >>confdefs.h
<<\_ACEOF
13141 #define HAVE_MOTIF_2_1 1
13144 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13145 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13146 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13147 $as_echo_n "(cached) " >&6
13149 ac_check_lib_save_LIBS
=$LIBS
13151 cat >conftest.
$ac_ext <<_ACEOF
13154 cat confdefs.h
>>conftest.
$ac_ext
13155 cat >>conftest.
$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13164 char XpCreateContext ();
13168 return XpCreateContext ();
13173 rm -f conftest.
$ac_objext conftest
$ac_exeext
13174 if { (ac_try
="$ac_link"
13175 case "(($ac_try" in
13176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13180 $as_echo "$ac_try_echo") >&5
13181 (eval "$ac_link") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest$ac_exeext && {
13191 test "$cross_compiling" = yes ||
13192 $as_test_x conftest$ac_exeext
13194 ac_cv_lib_Xp_XpCreateContext=yes
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_cv_lib_Xp_XpCreateContext=no
13202 rm -rf conftest.dSYM
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13208 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13209 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13213 if test ${HAVE_LIBXP} = yes; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_LIBXP 1
13221 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13222 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13223 if test "${emacs_cv_lesstif+set}" = set; then
13224 $as_echo_n "(cached) " >&6
13226 # We put this in CFLAGS temporarily to precede other -I options
13227 # that might be in CFLAGS temporarily.
13228 # We put this in CPPFLAGS where it precedes the other -I options.
13229 OLD_CPPFLAGS=$CPPFLAGS
13231 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13232 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13233 cat >conftest.$ac_ext <<_ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13252 *) ac_try_echo
=$ac_try;;
13254 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13255 $as_echo "$ac_try_echo") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13258 grep -v '^ *+' conftest.er1
>conftest.err
13260 cat conftest.err
>&5
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.
$ac_objext; then
13266 emacs_cv_lesstif
=yes
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 emacs_cv_lesstif
=no
13274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13276 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13277 $as_echo "$emacs_cv_lesstif" >&6; }
13278 if test $emacs_cv_lesstif = yes; then
13279 # Make sure this -I option remains in CPPFLAGS after it is set
13280 # back to REAL_CPPFLAGS.
13281 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13282 # have those other -I options anyway. Ultimately, having this
13283 # directory ultimately in CPPFLAGS will be enough.
13284 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13285 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13288 CPPFLAGS
=$OLD_CPPFLAGS
13295 USE_TOOLKIT_SCROLL_BARS
=no
13296 if test "${with_toolkit_scroll_bars}" != "no"; then
13297 if test "${USE_X_TOOLKIT}" != "none"; then
13298 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13299 cat >>confdefs.h
<<\_ACEOF
13300 #define USE_TOOLKIT_SCROLL_BARS 1
13304 USE_TOOLKIT_SCROLL_BARS
=yes
13305 elif test "${HAVE_XAW3D}" = "yes"; then
13306 cat >>confdefs.h
<<\_ACEOF
13307 #define USE_TOOLKIT_SCROLL_BARS 1
13310 USE_TOOLKIT_SCROLL_BARS
=yes
13312 elif test "${HAVE_GTK}" = "yes"; then
13313 cat >>confdefs.h
<<\_ACEOF
13314 #define USE_TOOLKIT_SCROLL_BARS 1
13317 USE_TOOLKIT_SCROLL_BARS
=yes
13318 elif test "${HAVE_NS}" = "yes"; then
13319 cat >>confdefs.h
<<\_ACEOF
13320 #define USE_TOOLKIT_SCROLL_BARS 1
13323 USE_TOOLKIT_SCROLL_BARS
=yes
13327 cat >conftest.
$ac_ext <<_ACEOF
13330 cat confdefs.h
>>conftest.
$ac_ext
13331 cat >>conftest.
$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 #include <X11/Xlib.h>
13335 #include <X11/Xresource.h>
13344 rm -f conftest.
$ac_objext
13345 if { (ac_try
="$ac_compile"
13346 case "(($ac_try" in
13347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13351 $as_echo "$ac_try_echo") >&5
13352 (eval "$ac_compile") 2>conftest.er1
13354 grep -v '^ *+' conftest.er1 >conftest.err
13356 cat conftest.err >&5
13357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } && {
13359 test -z "$ac_c_werror_flag" ||
13360 test ! -s conftest.err
13361 } && test -s conftest.$ac_objext; then
13364 cat >>confdefs.h <<\_ACEOF
13369 $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 if test "${with_xim}" != "no"; then
13380 cat >>confdefs.h <<\_ACEOF
13387 if test "${HAVE_XIM}" != "no"; then
13388 late_CFLAGS=$CFLAGS
13389 if test "$GCC" = yes; then
13390 CFLAGS="$CFLAGS --pedantic-errors"
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 #include <X11/Xlib.h>
13400 #include <X11/Xresource.h>
13409 XPointer *client_data;
13411 /* If we're not using GCC, it's probably not XFree86, and this is
13412 probably right, but we can't use something like --pedantic-errors. */
13413 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13414 char*, XIMProc, XPointer*);
13416 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13426 *) ac_try_echo
=$ac_try;;
13428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13429 $as_echo "$ac_try_echo") >&5
13430 (eval "$ac_compile") 2>conftest.er1
13432 grep -v '^ *+' conftest.er1
>conftest.err
13434 cat conftest.err
>&5
13435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } && {
13437 test -z "$ac_c_werror_flag" ||
13438 test ! -s conftest.err
13439 } && test -s conftest.
$ac_objext; then
13440 emacs_cv_arg6_star
=yes
13442 $as_echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.
$ac_ext >&5
13448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13450 if test "$emacs_cv_arg6_star" = yes; then
13451 cat >>confdefs.h
<<\_ACEOF
13452 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13456 cat >>confdefs.h
<<\_ACEOF
13457 #define XRegisterIMInstantiateCallback_arg6 XPointer
13461 CFLAGS
=$late_CFLAGS
13464 ### Start of font-backend (under any platform) section.
13465 # (nothing here yet -- this is a placeholder)
13466 ### End of font-backend (under any platform) section.
13468 ### Start of font-backend (under X11) section.
13469 if test "${HAVE_X11}" = "yes"; then
13473 # Extract the first word of "pkg-config", so it can be a program name with args.
13474 set dummy pkg-config
; ac_word
=$2
13475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13478 $as_echo_n "(cached) " >&6
13480 case $PKG_CONFIG in
13482 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13486 for as_dir
in $PATH
13489 test -z "$as_dir" && as_dir
=.
13490 for ac_exec_ext
in '' $ac_executable_extensions; do
13491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13504 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13505 if test -n "$PKG_CONFIG"; then
13506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13507 $as_echo "$PKG_CONFIG" >&6; }
13509 { $as_echo "$as_me:$LINENO: result: no" >&5
13510 $as_echo "no" >&6; }
13515 if test "$PKG_CONFIG" = "no" ; then
13518 PKG_CONFIG_MIN_VERSION
=0.9.0
13519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13520 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13521 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13523 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13524 { $as_echo "$as_me:$LINENO: result: yes" >&5
13525 $as_echo "yes" >&6; }
13528 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13529 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13530 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13531 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13532 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13534 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13535 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13536 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13537 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13538 $as_echo "$FONTCONFIG_LIBS" >&6; }
13540 { $as_echo "$as_me:$LINENO: result: no" >&5
13541 $as_echo "no" >&6; }
13542 FONTCONFIG_CFLAGS
=""
13544 ## If we have a custom action on failure, don't print errors, but
13545 ## do set a variable so people can do so.
13546 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13558 if test $succeeded = yes; then
13565 ## Use -lXft if available, unless `--with-xft=no'.
13567 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13570 if test "x${with_xft}" != "xno"; then
13575 # Extract the first word of "pkg-config", so it can be a program name with args.
13576 set dummy pkg-config
; ac_word
=$2
13577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13580 $as_echo_n "(cached) " >&6
13582 case $PKG_CONFIG in
13584 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13588 for as_dir
in $PATH
13591 test -z "$as_dir" && as_dir
=.
13592 for ac_exec_ext
in '' $ac_executable_extensions; do
13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13594 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13606 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13607 if test -n "$PKG_CONFIG"; then
13608 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13609 $as_echo "$PKG_CONFIG" >&6; }
13611 { $as_echo "$as_me:$LINENO: result: no" >&5
13612 $as_echo "no" >&6; }
13617 if test "$PKG_CONFIG" = "no" ; then
13620 PKG_CONFIG_MIN_VERSION
=0.9.0
13621 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13622 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13623 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13625 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13630 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13631 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13632 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13633 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13634 $as_echo "$XFT_CFLAGS" >&6; }
13636 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13637 $as_echo_n "checking XFT_LIBS... " >&6; }
13638 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13639 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13640 $as_echo "$XFT_LIBS" >&6; }
13642 { $as_echo "$as_me:$LINENO: result: no" >&5
13643 $as_echo "no" >&6; }
13646 ## If we have a custom action on failure, don't print errors, but
13647 ## do set a variable so people can do so.
13648 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13655 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13656 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13660 if test $succeeded = yes; then
13666 if test "$HAVE_XFT" != no
; then
13667 OLD_CPPFLAGS
="$CPPFLAGS"
13668 OLD_CFLAGS
="$CFLAGS"
13670 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13671 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13672 LIBS
="$XFT_LIBS $LIBS"
13673 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13674 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13675 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13676 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13677 $as_echo_n "(cached) " >&6
13679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13680 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13682 # Is the header compilable?
13683 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13684 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13685 cat >conftest.
$ac_ext <<_ACEOF
13688 cat confdefs.h
>>conftest.
$ac_ext
13689 cat >>conftest.
$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13692 #include <X11/Xft/Xft.h>
13694 rm -f conftest.
$ac_objext
13695 if { (ac_try
="$ac_compile"
13696 case "(($ac_try" in
13697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13701 $as_echo "$ac_try_echo") >&5
13702 (eval "$ac_compile") 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest.$ac_objext; then
13712 ac_header_compiler=yes
13714 $as_echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ac_header_compiler=no
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13722 $as_echo "$ac_header_compiler" >&6; }
13724 # Is the header present?
13725 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13726 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <X11/Xft/Xft.h>
13735 if { (ac_try="$ac_cpp conftest.$ac_ext"
13736 case "(($ac_try" in
13737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13738 *) ac_try_echo
=$ac_try;;
13740 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13741 $as_echo "$ac_try_echo") >&5
13742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13744 grep -v '^ *+' conftest.er1
>conftest.err
13746 cat conftest.err
>&5
13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } >/dev
/null
&& {
13749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13750 test ! -s conftest.err
13752 ac_header_preproc
=yes
13754 $as_echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.
$ac_ext >&5
13757 ac_header_preproc
=no
13760 rm -f conftest.err conftest.
$ac_ext
13761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13762 $as_echo "$ac_header_preproc" >&6; }
13764 # So? What about this header?
13765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13767 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13768 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13769 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13770 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13771 ac_header_preproc
=yes
13774 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13775 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13776 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13777 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13778 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13779 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13780 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13781 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13782 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13783 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13784 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13785 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13789 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13790 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13791 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13792 $as_echo_n "(cached) " >&6
13794 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
13796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13797 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13800 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13801 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13802 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13803 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13804 $as_echo_n "(cached) " >&6
13806 ac_check_lib_save_LIBS
=$LIBS
13807 LIBS
="-lXft $XFT_LIBS $LIBS"
13808 cat >conftest.
$ac_ext <<_ACEOF
13811 cat confdefs.h
>>conftest.
$ac_ext
13812 cat >>conftest.
$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13821 char XftFontOpen ();
13825 return XftFontOpen ();
13830 rm -f conftest.
$ac_objext conftest
$ac_exeext
13831 if { (ac_try
="$ac_link"
13832 case "(($ac_try" in
13833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838 (eval "$ac_link") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13842 cat conftest.err >&5
13843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest$ac_exeext && {
13848 test "$cross_compiling" = yes ||
13849 $as_test_x conftest$ac_exeext
13851 ac_cv_lib_Xft_XftFontOpen=yes
13853 $as_echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13856 ac_cv_lib_Xft_XftFontOpen=no
13859 rm -rf conftest.dSYM
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13861 conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13865 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13866 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13874 if test "${HAVE_XFT}" = "yes"; then
13876 cat >>confdefs.h <<\_ACEOF
13881 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13883 CPPFLAGS="$OLD_CPPFLAGS"
13884 CFLAGS="$OLD_CFLAGS"
13886 fi # "${HAVE_XFT}" = "yes"
13887 fi # "$HAVE_XFT" != no
13888 fi # "x${with_xft}" != "xno"
13890 if test "$HAVE_XFT" != "yes"; then
13896 ## We used to allow building with FreeType and without Xft.
13897 ## However, the ftx font backend driver is not in good shape.
13898 if test "${HAVE_XFT}" = "yes"; then
13905 if test "${HAVE_FREETYPE}" = "yes"; then
13907 cat >>confdefs.h <<\_ACEOF
13908 #define HAVE_FREETYPE 1
13911 if test "${with_libotf}" != "no"; then
13915 # Extract the first word of "pkg-config", so it can be a program name with args.
13916 set dummy pkg-config; ac_word=$2
13917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13920 $as_echo_n "(cached) " >&6
13922 case $PKG_CONFIG in
13924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13942 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13946 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13947 if test -n "$PKG_CONFIG"; then
13948 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13949 $as_echo "$PKG_CONFIG" >&6; }
13951 { $as_echo "$as_me:$LINENO: result: no" >&5
13952 $as_echo "no" >&6; }
13957 if test "$PKG_CONFIG" = "no" ; then
13960 PKG_CONFIG_MIN_VERSION=0.9.0
13961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13962 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13963 $as_echo_n "checking for libotf... " >&6; }
13965 if $PKG_CONFIG --exists "libotf" 2>&5; then
13966 { $as_echo "$as_me:$LINENO: result: yes" >&5
13967 $as_echo "yes" >&6; }
13970 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13971 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13972 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|
sed -e 's,///*,/,g'`
13973 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13974 $as_echo "$LIBOTF_CFLAGS" >&6; }
13976 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13977 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13978 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|
sed -e 's,///*,/,g'`
13979 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13980 $as_echo "$LIBOTF_LIBS" >&6; }
13982 { $as_echo "$as_me:$LINENO: result: no" >&5
13983 $as_echo "no" >&6; }
13986 ## If we have a custom action on failure, don't print errors, but
13987 ## do set a variable so people can do so.
13988 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14000 if test $succeeded = yes; then
14006 if test "$HAVE_LIBOTF" = "yes"; then
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_LIBOTF 1
14012 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14013 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14014 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14015 $as_echo_n "(cached) " >&6
14017 ac_check_lib_save_LIBS=$LIBS
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14026 /* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14032 char OTF_get_variation_glyphs ();
14036 return OTF_get_variation_glyphs ();
14041 rm -f conftest.$ac_objext conftest$ac_exeext
14042 if { (ac_try="$ac_link"
14043 case "(($ac_try" in
14044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14045 *) ac_try_echo
=$ac_try;;
14047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14048 $as_echo "$ac_try_echo") >&5
14049 (eval "$ac_link") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1
>conftest.err
14053 cat conftest.err
>&5
14054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest
$ac_exeext && {
14059 test "$cross_compiling" = yes ||
14060 $as_test_x conftest
$ac_exeext
14062 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
14064 $as_echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.
$ac_ext >&5
14067 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
14070 rm -rf conftest.dSYM
14071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14072 conftest
$ac_exeext conftest.
$ac_ext
14073 LIBS
=$ac_check_lib_save_LIBS
14075 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14076 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14077 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14078 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
14080 HAVE_OTF_GET_VARIATION_GLYPHS
=no
14083 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14085 cat >>confdefs.h
<<\_ACEOF
14086 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14095 if test "${HAVE_LIBOTF}" = yes; then
14096 if test "${with_m17n_flt}" != "no"; then
14100 # Extract the first word of "pkg-config", so it can be a program name with args.
14101 set dummy pkg-config
; ac_word
=$2
14102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14105 $as_echo_n "(cached) " >&6
14107 case $PKG_CONFIG in
14109 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14113 for as_dir
in $PATH
14116 test -z "$as_dir" && as_dir
=.
14117 for ac_exec_ext
in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14131 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14132 if test -n "$PKG_CONFIG"; then
14133 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14134 $as_echo "$PKG_CONFIG" >&6; }
14136 { $as_echo "$as_me:$LINENO: result: no" >&5
14137 $as_echo "no" >&6; }
14142 if test "$PKG_CONFIG" = "no" ; then
14145 PKG_CONFIG_MIN_VERSION
=0.9.0
14146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14147 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14148 $as_echo_n "checking for m17n-flt... " >&6; }
14150 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14151 { $as_echo "$as_me:$LINENO: result: yes" >&5
14152 $as_echo "yes" >&6; }
14155 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14156 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14157 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14158 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14159 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14161 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14162 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14163 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14164 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14165 $as_echo "$M17N_FLT_LIBS" >&6; }
14167 { $as_echo "$as_me:$LINENO: result: no" >&5
14168 $as_echo "no" >&6; }
14171 ## If we have a custom action on failure, don't print errors, but
14172 ## do set a variable so people can do so.
14173 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14185 if test $succeeded = yes; then
14191 if test "$HAVE_M17N_FLT" = "yes"; then
14193 cat >>confdefs.h
<<\_ACEOF
14194 #define HAVE_M17N_FLT 1
14206 ### End of font-backend (under X11) section.
14217 ### Use -lXpm if available, unless `--with-xpm=no'.
14219 if test "${HAVE_X11}" = "yes"; then
14220 if test "${with_xpm}" != "no"; then
14221 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14222 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14223 $as_echo_n "checking for X11/xpm.h... " >&6; }
14224 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14225 $as_echo_n "(cached) " >&6
14227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14228 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14230 # Is the header compilable?
14231 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14232 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14233 cat >conftest.
$ac_ext <<_ACEOF
14236 cat confdefs.h
>>conftest.
$ac_ext
14237 cat >>conftest.
$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <X11/xpm.h>
14242 rm -f conftest.
$ac_objext
14243 if { (ac_try
="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14249 $as_echo "$ac_try_echo") >&5
14250 (eval "$ac_compile") 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest.$ac_objext; then
14260 ac_header_compiler=yes
14262 $as_echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14265 ac_header_compiler=no
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 $as_echo "$ac_header_compiler" >&6; }
14272 # Is the header present?
14273 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14274 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <X11/xpm.h>
14283 if { (ac_try="$ac_cpp conftest.$ac_ext"
14284 case "(($ac_try" in
14285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14286 *) ac_try_echo
=$ac_try;;
14288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14289 $as_echo "$ac_try_echo") >&5
14290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14292 grep -v '^ *+' conftest.er1
>conftest.err
14294 cat conftest.err
>&5
14295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } >/dev
/null
&& {
14297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14298 test ! -s conftest.err
14300 ac_header_preproc
=yes
14302 $as_echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.
$ac_ext >&5
14305 ac_header_preproc
=no
14308 rm -f conftest.err conftest.
$ac_ext
14309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 $as_echo "$ac_header_preproc" >&6; }
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14316 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14318 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc
=yes
14322 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14323 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14324 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14325 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14326 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14327 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14328 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14329 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14331 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14332 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14333 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14337 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14338 $as_echo_n "checking for X11/xpm.h... " >&6; }
14339 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14340 $as_echo_n "(cached) " >&6
14342 ac_cv_header_X11_xpm_h
=$ac_header_preproc
14344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14345 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14348 if test $ac_cv_header_X11_xpm_h = yes; then
14349 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14350 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14351 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14352 $as_echo_n "(cached) " >&6
14354 ac_check_lib_save_LIBS
=$LIBS
14355 LIBS
="-lXpm -lX11 $LIBS"
14356 cat >conftest.
$ac_ext <<_ACEOF
14359 cat confdefs.h
>>conftest.
$ac_ext
14360 cat >>conftest.
$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14363 /* Override any GCC internal prototype to avoid an error.
14364 Use char because int might match the return type of a GCC
14365 builtin and then its argument prototype would still apply. */
14369 char XpmReadFileToPixmap ();
14373 return XpmReadFileToPixmap ();
14378 rm -f conftest.
$ac_objext conftest
$ac_exeext
14379 if { (ac_try
="$ac_link"
14380 case "(($ac_try" in
14381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14385 $as_echo "$ac_try_echo") >&5
14386 (eval "$ac_link") 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext && {
14396 test "$cross_compiling" = yes ||
14397 $as_test_x conftest$ac_exeext
14399 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14401 $as_echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14407 rm -rf conftest.dSYM
14408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_check_lib_save_LIBS
14412 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14413 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14414 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14421 if test "${HAVE_XPM}" = "yes"; then
14422 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14423 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 #include "X11/xpm.h"
14431 #ifndef XpmReturnAllocPixels
14432 no_return_alloc_pixels
14436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14437 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14445 if test "${HAVE_XPM}" = "yes"; then
14446 { $as_echo "$as_me:$LINENO: result: yes" >&5
14447 $as_echo "yes" >&6; }
14449 { $as_echo "$as_me:$LINENO: result: no" >&5
14450 $as_echo "no" >&6; }
14455 if test "${HAVE_XPM}" = "yes"; then
14457 cat >>confdefs.h <<\_ACEOF
14464 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
14466 if test "${HAVE_X11}" = "yes"; then
14467 if test "${with_jpeg}" != "no"; then
14468 if test "${ac_cv_header_jerror_h+set}" = set; then
14469 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14470 $as_echo_n "checking for jerror.h... " >&6; }
14471 if test "${ac_cv_header_jerror_h+set}" = set; then
14472 $as_echo_n "(cached) " >&6
14474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14475 $as_echo "$ac_cv_header_jerror_h" >&6; }
14477 # Is the header compilable?
14478 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14479 $as_echo_n "checking jerror.h usability... " >&6; }
14480 cat >conftest.$ac_ext <<_ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 $ac_includes_default
14487 #include <jerror.h>
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14496 $as_echo "$ac_try_echo") >&5
14497 (eval "$ac_compile") 2>conftest.er1
14499 grep -v '^
*+' conftest.er1 >conftest.err
14501 cat conftest.err >&5
14502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_c_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest.$ac_objext; then
14507 ac_header_compiler=yes
14509 $as_echo "$as_me: failed program was:" >&5
14510 sed 's
/^
/|
/' conftest.$ac_ext >&5
14512 ac_header_compiler=no
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14517 $as_echo "$ac_header_compiler" >&6; }
14519 # Is the header present?
14520 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14521 $as_echo_n "checking jerror.h presence... " >&6; }
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #include <jerror.h>
14530 if { (ac_try="$ac_cpp conftest.$ac_ext"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14536 $as_echo "$ac_try_echo") >&5
14537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14539 grep -v '^
*+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } >/dev/null && {
14544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14545 test ! -s conftest.err
14547 ac_header_preproc=yes
14549 $as_echo "$as_me: failed program was:" >&5
14550 sed 's
/^
/|
/' conftest.$ac_ext >&5
14552 ac_header_preproc=no
14555 rm -f conftest.err conftest.$ac_ext
14556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14557 $as_echo "$ac_header_preproc" >&6; }
14559 # So? What about this header?
14560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14562 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14563 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
14565 $as_echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
14566 ac_header_preproc=yes
14569 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14570 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14571 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14572 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14573 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14574 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14575 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14576 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14577 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
14578 $as_echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
14579 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14580 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14584 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14585 $as_echo_n "checking for jerror.h... " >&6; }
14586 if test "${ac_cv_header_jerror_h+set}" = set; then
14587 $as_echo_n "(cached) " >&6
14589 ac_cv_header_jerror_h=$ac_header_preproc
14591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14592 $as_echo "$ac_cv_header_jerror_h" >&6; }
14595 if test $ac_cv_header_jerror_h = yes; then
14596 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14597 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14598 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14599 $as_echo_n "(cached) " >&6
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-ljpeg $LIBS"
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14610 /* Override any GCC internal prototype to avoid an error.
14611 Use char because int might match the return type of a GCC
14612 builtin and then its argument prototype would still apply. */
14616 char jpeg_destroy_compress ();
14620 return jpeg_destroy_compress ();
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (ac_try="$ac_link"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14632 $as_echo "$ac_try_echo") >&5
14633 (eval "$ac_link") 2>conftest.er1
14635 grep -v '^
*+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest$ac_exeext && {
14643 test "$cross_compiling" = yes ||
14644 $as_test_x conftest$ac_exeext
14646 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14648 $as_echo "$as_me: failed program was:" >&5
14649 sed 's
/^
/|
/' conftest.$ac_ext >&5
14651 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14654 rm -rf conftest.dSYM
14655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14656 conftest$ac_exeext conftest.$ac_ext
14657 LIBS=$ac_check_lib_save_LIBS
14659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14660 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14661 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14671 if test "${HAVE_JPEG}" = "yes"; then
14672 cat >>confdefs.h <<\_ACEOF
14673 #define HAVE_JPEG 1
14676 cat >conftest.$ac_ext <<_ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 #include <jpeglib.h>
14683 version=JPEG_LIB_VERSION
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14688 cat >>confdefs.h <<\_ACEOF
14689 #define HAVE_JPEG 1
14693 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14694 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14702 ### Use -lpng if available, unless `--with-png=no'.
14704 if test "${HAVE_X11}" = "yes"; then
14705 if test "${with_png}" != "no"; then
14706 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14707 # in /usr/include/libpng.
14710 for ac_header
in png.h libpng
/png.h
14712 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14715 $as_echo_n "checking for $ac_header... " >&6; }
14716 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14717 $as_echo_n "(cached) " >&6
14719 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14720 $as_echo "$as_val"'`
14721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14722 $as_echo "$ac_res" >&6; }
14724 # Is the header compilable?
14725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14726 $as_echo_n "checking $ac_header usability... " >&6; }
14727 cat >conftest.
$ac_ext <<_ACEOF
14730 cat confdefs.h
>>conftest.
$ac_ext
14731 cat >>conftest.
$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14733 $ac_includes_default
14734 #include <$ac_header>
14736 rm -f conftest.
$ac_objext
14737 if { (ac_try
="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14743 $as_echo "$ac_try_echo") >&5
14744 (eval "$ac_compile") 2>conftest.er1
14746 grep -v '^ *+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest.$ac_objext; then
14754 ac_header_compiler=yes
14756 $as_echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14759 ac_header_compiler=no
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14764 $as_echo "$ac_header_compiler" >&6; }
14766 # Is the header present?
14767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14768 $as_echo_n "checking $ac_header presence... " >&6; }
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #include <$ac_header>
14777 if { (ac_try="$ac_cpp conftest.$ac_ext"
14778 case "(($ac_try" in
14779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14780 *) ac_try_echo
=$ac_try;;
14782 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14783 $as_echo "$ac_try_echo") >&5
14784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1
>conftest.err
14788 cat conftest.err
>&5
14789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev
/null
&& {
14791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14794 ac_header_preproc
=yes
14796 $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.
$ac_ext >&5
14799 ac_header_preproc
=no
14802 rm -f conftest.err conftest.
$ac_ext
14803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14804 $as_echo "$ac_header_preproc" >&6; }
14806 # So? What about this header?
14807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14813 ac_header_preproc
=yes
14816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 $as_echo_n "checking for $ac_header... " >&6; }
14833 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834 $as_echo_n "(cached) " >&6
14836 eval "$as_ac_Header=\$ac_header_preproc"
14838 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14839 $as_echo "$as_val"'`
14840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14841 $as_echo "$ac_res" >&6; }
14844 if test `eval 'as_val=${'$as_ac_Header'}
14845 $as_echo "$as_val"'` = yes; then
14846 cat >>confdefs.h
<<_ACEOF
14847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14854 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14855 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14856 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14857 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14858 $as_echo_n "(cached) " >&6
14860 ac_check_lib_save_LIBS
=$LIBS
14861 LIBS
="-lpng -lz -lm $LIBS"
14862 cat >conftest.
$ac_ext <<_ACEOF
14865 cat confdefs.h
>>conftest.
$ac_ext
14866 cat >>conftest.
$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14869 /* Override any GCC internal prototype to avoid an error.
14870 Use char because int might match the return type of a GCC
14871 builtin and then its argument prototype would still apply. */
14875 char png_get_channels ();
14879 return png_get_channels ();
14884 rm -f conftest.
$ac_objext conftest
$ac_exeext
14885 if { (ac_try
="$ac_link"
14886 case "(($ac_try" in
14887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14891 $as_echo "$ac_try_echo") >&5
14892 (eval "$ac_link") 2>conftest.er1
14894 grep -v '^ *+' conftest.er1 >conftest.err
14896 cat conftest.err >&5
14897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } && {
14899 test -z "$ac_c_werror_flag" ||
14900 test ! -s conftest.err
14901 } && test -s conftest$ac_exeext && {
14902 test "$cross_compiling" = yes ||
14903 $as_test_x conftest$ac_exeext
14905 ac_cv_lib_png_png_get_channels=yes
14907 $as_echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ac_cv_lib_png_png_get_channels=no
14913 rm -rf conftest.dSYM
14914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915 conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14918 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14919 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14920 if test $ac_cv_lib_png_png_get_channels = yes; then
14927 if test "${HAVE_PNG}" = "yes"; then
14929 cat >>confdefs.h <<\_ACEOF
14936 ### Use -ltiff if available, unless `--with-tiff=no
'.
14938 if test "${HAVE_X11}" = "yes"; then
14939 if test "${with_tiff}" != "no"; then
14940 if test "${ac_cv_header_tiffio_h+set}" = set; then
14941 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14942 $as_echo_n "checking for tiffio.h... " >&6; }
14943 if test "${ac_cv_header_tiffio_h+set}" = set; then
14944 $as_echo_n "(cached) " >&6
14946 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14947 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14949 # Is the header compilable?
14950 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14951 $as_echo_n "checking tiffio.h usability... " >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14959 #include <tiffio.h>
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14968 $as_echo "$ac_try_echo") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14971 grep -v '^
*+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 ac_header_compiler=yes
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's
/^
/|
/' conftest.$ac_ext >&5
14984 ac_header_compiler=no
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14989 $as_echo "$ac_header_compiler" >&6; }
14991 # Is the header present?
14992 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14993 $as_echo_n "checking tiffio.h presence... " >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <tiffio.h>
15002 if { (ac_try="$ac_cpp conftest.$ac_ext"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15008 $as_echo "$ac_try_echo") >&5
15009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15011 grep -v '^
*+' conftest.er1 >conftest.err
15013 cat conftest.err >&5
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } >/dev/null && {
15016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15019 ac_header_preproc=yes
15021 $as_echo "$as_me: failed program was:" >&5
15022 sed 's
/^
/|
/' conftest.$ac_ext >&5
15024 ac_header_preproc=no
15027 rm -f conftest.err conftest.$ac_ext
15028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15029 $as_echo "$ac_header_preproc" >&6; }
15031 # So? What about this header?
15032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15034 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15035 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15036 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
15037 $as_echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
15038 ac_header_preproc=yes
15041 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15042 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15044 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15045 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15046 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15047 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15048 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
15050 $as_echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
15051 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15052 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15056 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15057 $as_echo_n "checking for tiffio.h... " >&6; }
15058 if test "${ac_cv_header_tiffio_h+set}" = set; then
15059 $as_echo_n "(cached) " >&6
15061 ac_cv_header_tiffio_h=$ac_header_preproc
15063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15064 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15067 if test $ac_cv_header_tiffio_h = yes; then
15069 # At least one tiff package requires the jpeg library.
15070 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15071 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15072 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15073 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15074 $as_echo_n "(cached) " >&6
15076 ac_check_lib_save_LIBS=$LIBS
15077 LIBS="-ltiff $tifflibs $LIBS"
15078 cat >conftest.$ac_ext <<_ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15085 /* Override any GCC internal prototype to avoid an error.
15086 Use char because int might match the return type of a GCC
15087 builtin and then its argument prototype would still apply. */
15091 char TIFFGetVersion ();
15095 return TIFFGetVersion ();
15100 rm -f conftest.$ac_objext conftest$ac_exeext
15101 if { (ac_try="$ac_link"
15102 case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15107 $as_echo "$ac_try_echo") >&5
15108 (eval "$ac_link") 2>conftest.er1
15110 grep -v '^
*+' conftest.er1 >conftest.err
15112 cat conftest.err >&5
15113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } && {
15115 test -z "$ac_c_werror_flag" ||
15116 test ! -s conftest.err
15117 } && test -s conftest$ac_exeext && {
15118 test "$cross_compiling" = yes ||
15119 $as_test_x conftest$ac_exeext
15121 ac_cv_lib_tiff_TIFFGetVersion=yes
15123 $as_echo "$as_me: failed program was:" >&5
15124 sed 's
/^
/|
/' conftest.$ac_ext >&5
15126 ac_cv_lib_tiff_TIFFGetVersion=no
15129 rm -rf conftest.dSYM
15130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15131 conftest$ac_exeext conftest.$ac_ext
15132 LIBS=$ac_check_lib_save_LIBS
15134 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15135 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15136 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15145 if test "${HAVE_TIFF}" = "yes"; then
15147 cat >>confdefs.h <<\_ACEOF
15148 #define HAVE_TIFF 1
15154 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15156 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15157 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15158 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15159 $as_echo_n "checking for gif_lib.h... " >&6; }
15160 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15161 $as_echo_n "(cached) " >&6
15163 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15164 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15166 # Is the header compilable?
15167 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15168 $as_echo_n "checking gif_lib.h usability... " >&6; }
15169 cat >conftest.
$ac_ext <<_ACEOF
15172 cat confdefs.h
>>conftest.
$ac_ext
15173 cat >>conftest.
$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 $ac_includes_default
15176 #include <gif_lib.h>
15178 rm -f conftest.
$ac_objext
15179 if { (ac_try
="$ac_compile"
15180 case "(($ac_try" in
15181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15185 $as_echo "$ac_try_echo") >&5
15186 (eval "$ac_compile") 2>conftest.er1
15188 grep -v '^ *+' conftest.er1 >conftest.err
15190 cat conftest.err >&5
15191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest.$ac_objext; then
15196 ac_header_compiler=yes
15198 $as_echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 ac_header_compiler=no
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15206 $as_echo "$ac_header_compiler" >&6; }
15208 # Is the header present?
15209 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15210 $as_echo_n "checking gif_lib.h presence... " >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 #include <gif_lib.h>
15219 if { (ac_try="$ac_cpp conftest.$ac_ext"
15220 case "(($ac_try" in
15221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15222 *) ac_try_echo
=$ac_try;;
15224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15225 $as_echo "$ac_try_echo") >&5
15226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15228 grep -v '^ *+' conftest.er1
>conftest.err
15230 cat conftest.err
>&5
15231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } >/dev
/null
&& {
15233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15234 test ! -s conftest.err
15236 ac_header_preproc
=yes
15238 $as_echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.
$ac_ext >&5
15241 ac_header_preproc
=no
15244 rm -f conftest.err conftest.
$ac_ext
15245 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15246 $as_echo "$ac_header_preproc" >&6; }
15248 # So? What about this header?
15249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15251 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15252 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15254 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15255 ac_header_preproc
=yes
15258 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15259 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15260 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15261 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15262 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15263 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15264 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15265 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15266 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15267 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15268 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15269 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15273 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15274 $as_echo_n "checking for gif_lib.h... " >&6; }
15275 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15276 $as_echo_n "(cached) " >&6
15278 ac_cv_header_gif_lib_h
=$ac_header_preproc
15280 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15281 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15284 if test $ac_cv_header_gif_lib_h = yes; then
15285 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15286 # Earlier versions can crash Emacs.
15287 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15288 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15289 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15290 $as_echo_n "(cached) " >&6
15292 ac_check_lib_save_LIBS
=$LIBS
15294 cat >conftest.
$ac_ext <<_ACEOF
15297 cat confdefs.h
>>conftest.
$ac_ext
15298 cat >>conftest.
$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15301 /* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply. */
15307 char EGifPutExtensionLast ();
15311 return EGifPutExtensionLast ();
15316 rm -f conftest.
$ac_objext conftest
$ac_exeext
15317 if { (ac_try
="$ac_link"
15318 case "(($ac_try" in
15319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15323 $as_echo "$ac_try_echo") >&5
15324 (eval "$ac_link") 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } && {
15331 test -z "$ac_c_werror_flag" ||
15332 test ! -s conftest.err
15333 } && test -s conftest$ac_exeext && {
15334 test "$cross_compiling" = yes ||
15335 $as_test_x conftest$ac_exeext
15337 ac_cv_lib_gif_EGifPutExtensionLast=yes
15339 $as_echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ac_cv_lib_gif_EGifPutExtensionLast=no
15345 rm -rf conftest.dSYM
15346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15347 conftest$ac_exeext conftest.$ac_ext
15348 LIBS=$ac_check_lib_save_LIBS
15350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15351 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15352 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15362 if test "$HAVE_GIF" = yes; then
15363 ac_gif_lib_name="-lgif"
15366 # If gif_lib.h but no libgif, try libungif.
15367 if test x"$try_libungif" = xyes; then
15368 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15369 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15370 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15371 $as_echo_n "(cached) " >&6
15373 ac_check_lib_save_LIBS=$LIBS
15374 LIBS="-lungif $LIBS"
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15388 char EGifPutExtensionLast ();
15392 return EGifPutExtensionLast ();
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15401 *) ac_try_echo
=$ac_try;;
15403 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15404 $as_echo "$ac_try_echo") >&5
15405 (eval "$ac_link") 2>conftest.er1
15407 grep -v '^ *+' conftest.er1
>conftest.err
15409 cat conftest.err
>&5
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } && {
15412 test -z "$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 } && test -s conftest
$ac_exeext && {
15415 test "$cross_compiling" = yes ||
15416 $as_test_x conftest
$ac_exeext
15418 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
15420 $as_echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.
$ac_ext >&5
15423 ac_cv_lib_ungif_EGifPutExtensionLast
=no
15426 rm -rf conftest.dSYM
15427 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15428 conftest
$ac_exeext conftest.
$ac_ext
15429 LIBS
=$ac_check_lib_save_LIBS
15431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15432 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15433 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15438 if test "$HAVE_GIF" = yes; then
15440 cat >>confdefs.h
<<\_ACEOF
15441 #define LIBGIF -lungif
15444 ac_gif_lib_name
="-lungif"
15448 if test "${HAVE_GIF}" = "yes"; then
15450 cat >>confdefs.h
<<\_ACEOF
15457 if test "${HAVE_X11}" = "yes"; then
15460 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15461 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
15462 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15463 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
15464 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15465 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
15466 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15467 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
15468 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15469 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
15471 if test "X${MISSING}" != X
; then
15472 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15474 Maybe some development libraries/packages are missing?
15475 If you don't want to link with them give
15477 as options to configure" >&5
15478 $as_echo "$as_me: error: The following required libraries were not found:
15480 Maybe some development libraries/packages are missing?
15481 If you don't want to link with them give
15483 as options to configure" >&2;}
15484 { (exit 1); exit 1; }; }
15488 ### Use -lgpm if available, unless `--with-gpm=no'.
15490 if test "${with_gpm}" != "no"; then
15491 if test "${ac_cv_header_gpm_h+set}" = set; then
15492 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15493 $as_echo_n "checking for gpm.h... " >&6; }
15494 if test "${ac_cv_header_gpm_h+set}" = set; then
15495 $as_echo_n "(cached) " >&6
15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15498 $as_echo "$ac_cv_header_gpm_h" >&6; }
15500 # Is the header compilable?
15501 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15502 $as_echo_n "checking gpm.h usability... " >&6; }
15503 cat >conftest.
$ac_ext <<_ACEOF
15506 cat confdefs.h
>>conftest.
$ac_ext
15507 cat >>conftest.
$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 $ac_includes_default
15512 rm -f conftest.
$ac_objext
15513 if { (ac_try
="$ac_compile"
15514 case "(($ac_try" in
15515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520 (eval "$ac_compile") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1 >conftest.err
15524 cat conftest.err >&5
15525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest.$ac_objext; then
15530 ac_header_compiler=yes
15532 $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_header_compiler=no
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15540 $as_echo "$ac_header_compiler" >&6; }
15542 # Is the header present?
15543 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15544 $as_echo_n "checking gpm.h presence... " >&6; }
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15553 if { (ac_try="$ac_cpp conftest.$ac_ext"
15554 case "(($ac_try" in
15555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15556 *) ac_try_echo
=$ac_try;;
15558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15559 $as_echo "$ac_try_echo") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1
>conftest.err
15564 cat conftest.err
>&5
15565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev
/null
&& {
15567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15568 test ! -s conftest.err
15570 ac_header_preproc
=yes
15572 $as_echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.
$ac_ext >&5
15575 ac_header_preproc
=no
15578 rm -f conftest.err conftest.
$ac_ext
15579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15580 $as_echo "$ac_header_preproc" >&6; }
15582 # So? What about this header?
15583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15585 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15586 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15587 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15588 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15589 ac_header_preproc
=yes
15592 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15593 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15594 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15595 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15596 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15597 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15598 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15599 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15600 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15601 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15602 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15603 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15607 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15608 $as_echo_n "checking for gpm.h... " >&6; }
15609 if test "${ac_cv_header_gpm_h+set}" = set; then
15610 $as_echo_n "(cached) " >&6
15612 ac_cv_header_gpm_h
=$ac_header_preproc
15614 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15615 $as_echo "$ac_cv_header_gpm_h" >&6; }
15618 if test $ac_cv_header_gpm_h = yes; then
15619 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15620 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15621 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15622 $as_echo_n "(cached) " >&6
15624 ac_check_lib_save_LIBS
=$LIBS
15626 cat >conftest.
$ac_ext <<_ACEOF
15629 cat confdefs.h
>>conftest.
$ac_ext
15630 cat >>conftest.
$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15633 /* Override any GCC internal prototype to avoid an error.
15634 Use char because int might match the return type of a GCC
15635 builtin and then its argument prototype would still apply. */
15643 return Gpm_Open ();
15648 rm -f conftest.
$ac_objext conftest
$ac_exeext
15649 if { (ac_try
="$ac_link"
15650 case "(($ac_try" in
15651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_link") 2>conftest.er1
15658 grep -v '^ *+' conftest.er1 >conftest.err
15660 cat conftest.err >&5
15661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && {
15663 test -z "$ac_c_werror_flag" ||
15664 test ! -s conftest.err
15665 } && test -s conftest$ac_exeext && {
15666 test "$cross_compiling" = yes ||
15667 $as_test_x conftest$ac_exeext
15669 ac_cv_lib_gpm_Gpm_Open=yes
15671 $as_echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_cv_lib_gpm_Gpm_Open=no
15677 rm -rf conftest.dSYM
15678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15683 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15684 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15693 if test "${HAVE_GPM}" = "yes"; then
15695 cat >>confdefs.h <<\_ACEOF
15701 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15702 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15703 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15704 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15705 $as_echo_n "(cached) " >&6
15707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15708 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15710 # Is the header compilable?
15711 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15712 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 $ac_includes_default
15720 #include <malloc/malloc.h>
15722 rm -f conftest.$ac_objext
15723 if { (ac_try="$ac_compile"
15724 case "(($ac_try" in
15725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15726 *) ac_try_echo
=$ac_try;;
15728 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15729 $as_echo "$ac_try_echo") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1
>conftest.err
15734 cat conftest.err
>&5
15735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest.
$ac_objext; then
15740 ac_header_compiler
=yes
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 ac_header_compiler
=no
15748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15750 $as_echo "$ac_header_compiler" >&6; }
15752 # Is the header present?
15753 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15754 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15755 cat >conftest.
$ac_ext <<_ACEOF
15758 cat confdefs.h
>>conftest.
$ac_ext
15759 cat >>conftest.
$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <malloc/malloc.h>
15763 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15764 case "(($ac_try" in
15765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15780 ac_header_preproc=yes
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 $as_echo "$ac_header_preproc" >&6; }
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15796 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15798 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15802 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15803 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15804 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15805 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15806 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15807 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15808 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15809 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15811 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15812 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15813 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15817 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15818 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15819 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15820 $as_echo_n "(cached) " >&6
15822 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15825 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15828 if test $ac_cv_header_malloc_malloc_h = yes; then
15830 cat >>confdefs.h <<\_ACEOF
15831 #define HAVE_MALLOC_MALLOC_H 1
15838 ### Use NeXTstep API to implement GUI.
15839 if test "${HAVE_NS}" = "yes"; then
15841 cat >>confdefs.h <<\_ACEOF
15845 if test "${NS_IMPL_COCOA}" = "yes"; then
15847 cat >>confdefs.h <<\_ACEOF
15848 #define NS_IMPL_COCOA 1
15853 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15855 cat >>confdefs.h <<\_ACEOF
15856 #define NS_IMPL_GNUSTEP 1
15859 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15861 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15863 cat >>confdefs.h <<\_ACEOF
15864 #define NS_HAVE_NSINTEGER 1
15868 # We also have mouse menus.
15874 ### Use session management (-lSM -lICE) if available
15876 if test "${HAVE_X11}" = "yes"; then
15877 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15878 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15879 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15880 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15881 $as_echo_n "(cached) " >&6
15883 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15884 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15886 # Is the header compilable?
15887 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15888 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $ac_includes_default
15896 #include <X11/SM/SMlib.h>
15898 rm -f conftest.$ac_objext
15899 if { (ac_try="$ac_compile"
15900 case "(($ac_try" in
15901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15902 *) ac_try_echo
=$ac_try;;
15904 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15905 $as_echo "$ac_try_echo") >&5
15906 (eval "$ac_compile") 2>conftest.er1
15908 grep -v '^ *+' conftest.er1
>conftest.err
15910 cat conftest.err
>&5
15911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } && {
15913 test -z "$ac_c_werror_flag" ||
15914 test ! -s conftest.err
15915 } && test -s conftest.
$ac_objext; then
15916 ac_header_compiler
=yes
15918 $as_echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.
$ac_ext >&5
15921 ac_header_compiler
=no
15924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15925 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15926 $as_echo "$ac_header_compiler" >&6; }
15928 # Is the header present?
15929 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15930 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15931 cat >conftest.
$ac_ext <<_ACEOF
15934 cat confdefs.h
>>conftest.
$ac_ext
15935 cat >>conftest.
$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 #include <X11/SM/SMlib.h>
15939 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15940 case "(($ac_try" in
15941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945 $as_echo "$ac_try_echo") >&5
15946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15948 grep -v '^ *+' conftest.er1 >conftest.err
15950 cat conftest.err >&5
15951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } >/dev/null && {
15953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15954 test ! -s conftest.err
15956 ac_header_preproc=yes
15958 $as_echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ac_header_preproc=no
15964 rm -f conftest.err conftest.$ac_ext
15965 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 $as_echo "$ac_header_preproc" >&6; }
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15971 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15972 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15974 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15975 ac_header_preproc=yes
15978 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15979 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15980 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15981 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15982 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15983 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15984 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15985 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15986 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15987 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15988 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15989 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15993 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15994 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15995 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15996 $as_echo_n "(cached) " >&6
15998 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16001 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16004 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16005 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16006 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16007 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16008 $as_echo_n "(cached) " >&6
16010 ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-lSM -lICE $LIBS"
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16019 /* Override any GCC internal prototype to avoid an error.
16020 Use char because int might match the return type of a GCC
16021 builtin and then its argument prototype would still apply. */
16025 char SmcOpenConnection ();
16029 return SmcOpenConnection ();
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16038 *) ac_try_echo
=$ac_try;;
16040 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16041 $as_echo "$ac_try_echo") >&5
16042 (eval "$ac_link") 2>conftest.er1
16044 grep -v '^ *+' conftest.er1
>conftest.err
16046 cat conftest.err
>&5
16047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } && {
16049 test -z "$ac_c_werror_flag" ||
16050 test ! -s conftest.err
16051 } && test -s conftest
$ac_exeext && {
16052 test "$cross_compiling" = yes ||
16053 $as_test_x conftest
$ac_exeext
16055 ac_cv_lib_SM_SmcOpenConnection
=yes
16057 $as_echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.
$ac_ext >&5
16060 ac_cv_lib_SM_SmcOpenConnection
=no
16063 rm -rf conftest.dSYM
16064 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16065 conftest
$ac_exeext conftest.
$ac_ext
16066 LIBS
=$ac_check_lib_save_LIBS
16068 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16069 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16070 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16078 if test "${HAVE_X_SM}" = "yes"; then
16080 cat >>confdefs.h
<<\_ACEOF
16081 #define HAVE_X_SM 1
16086 *) LIBS
="-lSM -lICE $LIBS" ;;
16091 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16092 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16093 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16094 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16095 $as_echo_n "(cached) " >&6
16097 cat >conftest.
$ac_ext <<_ACEOF
16100 cat confdefs.h
>>conftest.
$ac_ext
16101 cat >>conftest.
$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16112 rm -f conftest.
$ac_objext conftest
$ac_exeext
16113 if { (ac_try
="$ac_link"
16114 case "(($ac_try" in
16115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16119 $as_echo "$ac_try_echo") >&5
16120 (eval "$ac_link") 2>conftest.er1
16122 grep -v '^ *+' conftest.er1 >conftest.err
16124 cat conftest.err >&5
16125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } && {
16127 test -z "$ac_c_werror_flag" ||
16128 test ! -s conftest.err
16129 } && test -s conftest$ac_exeext && {
16130 test "$cross_compiling" = yes ||
16131 $as_test_x conftest$ac_exeext
16133 emacs_cv_netdb_declares_h_errno=yes
16135 $as_echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 emacs_cv_netdb_declares_h_errno=no
16141 rm -rf conftest.dSYM
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16145 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16146 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16147 if test $emacs_cv_netdb_declares_h_errno = yes; then
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_H_ERRNO 1
16155 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16156 # for constant arguments. Useless!
16157 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16158 $as_echo_n "checking for working alloca.h... " >&6; }
16159 if test "${ac_cv_working_alloca_h+set}" = set; then
16160 $as_echo_n "(cached) " >&6
16162 cat >conftest.$ac_ext <<_ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 #include <alloca.h>
16172 char *p = (char *) alloca (2 * sizeof (int));
16178 rm -f conftest.$ac_objext conftest$ac_exeext
16179 if { (ac_try="$ac_link"
16180 case "(($ac_try" in
16181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16182 *) ac_try_echo
=$ac_try;;
16184 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16185 $as_echo "$ac_try_echo") >&5
16186 (eval "$ac_link") 2>conftest.er1
16188 grep -v '^ *+' conftest.er1
>conftest.err
16190 cat conftest.err
>&5
16191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } && {
16193 test -z "$ac_c_werror_flag" ||
16194 test ! -s conftest.err
16195 } && test -s conftest
$ac_exeext && {
16196 test "$cross_compiling" = yes ||
16197 $as_test_x conftest
$ac_exeext
16199 ac_cv_working_alloca_h
=yes
16201 $as_echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.
$ac_ext >&5
16204 ac_cv_working_alloca_h
=no
16207 rm -rf conftest.dSYM
16208 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16209 conftest
$ac_exeext conftest.
$ac_ext
16211 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16212 $as_echo "$ac_cv_working_alloca_h" >&6; }
16213 if test $ac_cv_working_alloca_h = yes; then
16215 cat >>confdefs.h
<<\_ACEOF
16216 #define HAVE_ALLOCA_H 1
16221 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16222 $as_echo_n "checking for alloca... " >&6; }
16223 if test "${ac_cv_func_alloca_works+set}" = set; then
16224 $as_echo_n "(cached) " >&6
16226 cat >conftest.
$ac_ext <<_ACEOF
16229 cat confdefs.h
>>conftest.
$ac_ext
16230 cat >>conftest.
$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16233 # define alloca __builtin_alloca
16236 # include <malloc.h>
16237 # define alloca _alloca
16239 # ifdef HAVE_ALLOCA_H
16240 # include <alloca.h>
16245 # ifndef alloca /* predefined by HP cc +Olibcalls */
16256 char *p = (char *) alloca (1);
16262 rm -f conftest.
$ac_objext conftest
$ac_exeext
16263 if { (ac_try
="$ac_link"
16264 case "(($ac_try" in
16265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269 $as_echo "$ac_try_echo") >&5
16270 (eval "$ac_link") 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && {
16277 test -z "$ac_c_werror_flag" ||
16278 test ! -s conftest.err
16279 } && test -s conftest$ac_exeext && {
16280 test "$cross_compiling" = yes ||
16281 $as_test_x conftest$ac_exeext
16283 ac_cv_func_alloca_works=yes
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_func_alloca_works=no
16291 rm -rf conftest.dSYM
16292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16293 conftest$ac_exeext conftest.$ac_ext
16295 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16296 $as_echo "$ac_cv_func_alloca_works" >&6; }
16298 if test $ac_cv_func_alloca_works = yes; then
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE_ALLOCA 1
16305 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16306 # that cause trouble. Some versions do not even contain alloca or
16307 # contain a buggy version. If you still want to use their alloca,
16308 # use ar to extract alloca.o from them instead of compiling alloca.c.
16310 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16312 cat >>confdefs.h <<\_ACEOF
16317 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16318 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16319 if test "${ac_cv_os_cray+set}" = set; then
16320 $as_echo_n "(cached
) " >&6
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 #if defined CRAY && ! defined CRAY2
16335 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16336 $EGREP "webecray
" >/dev/null 2>&1; then
16344 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16345 $as_echo "$ac_cv_os_cray" >&6; }
16346 if test $ac_cv_os_cray = yes; then
16347 for ac_func in _getb67 GETB67 getb67; do
16348 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16349 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16350 $as_echo_n "checking
for $ac_func...
" >&6; }
16351 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16352 $as_echo_n "(cached
) " >&6
16354 cat >conftest.$ac_ext <<_ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16362 #define $ac_func innocuous_$ac_func
16364 /* System header to define __stub macros and hopefully few prototypes,
16365 which can conflict with char $ac_func (); below.
16366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367 <limits.h> exists even on freestanding compilers. */
16370 # include <limits.h>
16372 # include <assert.h>
16377 /* Override any GCC internal prototype to avoid an error.
16378 Use char because int might match the return type of a GCC
16379 builtin and then its argument prototype would still apply. */
16384 /* The GNU C library defines this for functions which it implements
16385 to always fail with ENOSYS. Some functions are actually named
16386 something starting with __ and the normal name is an alias. */
16387 #if defined __stub_$ac_func || defined __stub___$ac_func
16394 return $ac_func ();
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407 (eval "$ac_link") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest$ac_exeext && {
16417 test "$cross_compiling" = yes ||
16418 $as_test_x conftest$ac_exeext
16420 eval "$as_ac_var=yes"
16422 $as_echo "$as_me: failed program was
:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 eval "$as_ac_var=no
"
16428 rm -rf conftest.dSYM
16429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16430 conftest$ac_exeext conftest.$ac_ext
16432 ac_res=`eval 'as_val=${'$as_ac_var'}
16433 $as_echo "$as_val"'`
16434 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16435 $as_echo "$ac_res" >&6; }
16436 if test `eval 'as_val=${'$as_ac_var'}
16437 $as_echo "$as_val"'` = yes; then
16439 cat >>confdefs.h <<_ACEOF
16440 #define CRAY_STACKSEG_END $ac_func
16449 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16450 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16451 if test "${ac_cv_c_stack_direction+set}" = set; then
16452 $as_echo_n "(cached
) " >&6
16454 if test "$cross_compiling" = yes; then
16455 ac_cv_c_stack_direction=0
16457 cat >conftest.$ac_ext <<_ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 $ac_includes_default
16465 find_stack_direction ()
16467 static char *addr = 0;
16472 return find_stack_direction ();
16475 return (&dummy > addr) ? 1 : -1;
16481 return find_stack_direction () < 0;
16484 rm -f conftest$ac_exeext
16485 if { (ac_try="$ac_link"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_link") 2>&5
16494 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16501 $as_echo "$ac_try_echo") >&5
16502 (eval "$ac_try") 2>&5
16504 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_c_stack_direction=1
16508 $as_echo "$as_me: program exited with status
$ac_status" >&5
16509 $as_echo "$as_me: failed program was
:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ( exit $ac_status )
16513 ac_cv_c_stack_direction=-1
16515 rm -rf conftest.dSYM
16516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16521 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16522 $as_echo "$ac_cv_c_stack_direction" >&6; }
16524 cat >>confdefs.h <<_ACEOF
16525 #define STACK_DIRECTION $ac_cv_c_stack_direction
16532 if test x"$ac_cv_func_alloca_works" != xyes; then
16533 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16534 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16535 { (exit 1); exit 1; }; }
16538 # fmod, logb, and frexp are found in -lm on most systems.
16539 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16541 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16542 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16543 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16544 $as_echo_n "(cached
) " >&6
16546 ac_check_lib_save_LIBS=$LIBS
16548 cat >conftest.$ac_ext <<_ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578 (eval "$ac_link") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest$ac_exeext && {
16588 test "$cross_compiling" = yes ||
16589 $as_test_x conftest$ac_exeext
16591 ac_cv_lib_m_sqrt=yes
16593 $as_echo "$as_me: failed program was
:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_cv_lib_m_sqrt=no
16599 rm -rf conftest.dSYM
16600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16601 conftest$ac_exeext conftest.$ac_ext
16602 LIBS=$ac_check_lib_save_LIBS
16604 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16605 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16606 if test $ac_cv_lib_m_sqrt = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define HAVE_LIBM 1
16616 # Check for mail-locking functions in a "mail" library. Probably this should
16617 # have the same check as for liblockfile below.
16619 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16620 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16621 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16622 $as_echo_n "(cached
) " >&6
16624 ac_check_lib_save_LIBS=$LIBS
16625 LIBS="-lmail $LIBS"
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16643 return maillock ();
16648 rm -f conftest.$ac_objext conftest$ac_exeext
16649 if { (ac_try="$ac_link"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16655 $as_echo "$ac_try_echo") >&5
16656 (eval "$ac_link") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16662 (exit $ac_status); } && {
16663 test -z "$ac_c_werror_flag" ||
16664 test ! -s conftest.err
16665 } && test -s conftest$ac_exeext && {
16666 test "$cross_compiling" = yes ||
16667 $as_test_x conftest$ac_exeext
16669 ac_cv_lib_mail_maillock=yes
16671 $as_echo "$as_me: failed program was
:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ac_cv_lib_mail_maillock=no
16677 rm -rf conftest.dSYM
16678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16683 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16684 if test $ac_cv_lib_mail_maillock = yes; then
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_LIBMAIL 1
16689 LIBS="-lmail $LIBS"
16694 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16695 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16696 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16697 $as_echo_n "(cached
) " >&6
16699 ac_check_lib_save_LIBS=$LIBS
16700 LIBS="-llockfile $LIBS"
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16708 /* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply. */
16718 return maillock ();
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (ac_try="$ac_link"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16730 $as_echo "$ac_try_echo") >&5
16731 (eval "$ac_link") 2>conftest.er1
16733 grep -v '^ *+' conftest.er1 >conftest.err
16735 cat conftest.err >&5
16736 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest$ac_exeext && {
16741 test "$cross_compiling" = yes ||
16742 $as_test_x conftest$ac_exeext
16744 ac_cv_lib_lockfile_maillock=yes
16746 $as_echo "$as_me: failed program was
:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 ac_cv_lib_lockfile_maillock=no
16752 rm -rf conftest.dSYM
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16757 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16758 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16759 if test $ac_cv_lib_lockfile_maillock = yes; then
16760 cat >>confdefs.h <<_ACEOF
16761 #define HAVE_LIBLOCKFILE 1
16764 LIBS="-llockfile $LIBS"
16768 # If we have the shared liblockfile, assume we must use it for mail
16769 # locking (e.g. Debian). If we couldn't link against liblockfile
16770 # (no liblockfile.a installed), ensure that we don't need to.
16771 if test "$ac_cv_lib_lockfile_maillock" = no; then
16772 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16773 set dummy liblockfile.so; ac_word=$2
16774 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16775 $as_echo_n "checking
for $ac_word...
" >&6; }
16776 if test "${ac_cv_prog_liblockfile+set}" = set; then
16777 $as_echo_n "(cached
) " >&6
16779 if test -n "$liblockfile"; then
16780 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16783 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16784 for as_dir in $as_dummy
16787 test -z "$as_dir" && as_dir=.
16788 for ac_exec_ext in '' $ac_executable_extensions; do
16789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16790 ac_cv_prog_liblockfile="yes"
16791 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16798 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16801 liblockfile=$ac_cv_prog_liblockfile
16802 if test -n "$liblockfile"; then
16803 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
16804 $as_echo "$liblockfile" >&6; }
16806 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16807 $as_echo "no
" >&6; }
16811 if test $ac_cv_prog_liblockfile = yes; then
16812 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16813 This probably means that movemail could lose mail.
16814 There may be a \`development' package to
install containing liblockfile.
" >&5
16815 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16816 This probably means that movemail could lose mail.
16817 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16818 { (exit 1); exit 1; }; }
16823 for ac_func in touchlock
16825 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16826 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16827 $as_echo_n "checking
for $ac_func...
" >&6; }
16828 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16829 $as_echo_n "(cached
) " >&6
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839 #define $ac_func innocuous_$ac_func
16841 /* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func (); below.
16843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 <limits.h> exists even on freestanding compilers. */
16847 # include <limits.h>
16849 # include <assert.h>
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined __stub_$ac_func || defined __stub___$ac_func
16871 return $ac_func ();
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (ac_try="$ac_link"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16883 $as_echo "$ac_try_echo") >&5
16884 (eval "$ac_link") 2>conftest.er1
16886 grep -v '^ *+' conftest.er1 >conftest.err
16888 cat conftest.err >&5
16889 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16890 (exit $ac_status); } && {
16891 test -z "$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16893 } && test -s conftest$ac_exeext && {
16894 test "$cross_compiling" = yes ||
16895 $as_test_x conftest$ac_exeext
16897 eval "$as_ac_var=yes"
16899 $as_echo "$as_me: failed program was
:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 eval "$as_ac_var=no
"
16905 rm -rf conftest.dSYM
16906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16907 conftest$ac_exeext conftest.$ac_ext
16909 ac_res=`eval 'as_val=${'$as_ac_var'}
16910 $as_echo "$as_val"'`
16911 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16912 $as_echo "$ac_res" >&6; }
16913 if test `eval 'as_val=${'$as_ac_var'}
16914 $as_echo "$as_val"'` = yes; then
16915 cat >>confdefs.h <<_ACEOF
16916 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16923 for ac_header in maillock.h
16925 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16926 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16927 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
16928 $as_echo_n "checking
for $ac_header...
" >&6; }
16929 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16930 $as_echo_n "(cached
) " >&6
16932 ac_res=`eval 'as_val=${'$as_ac_Header'}
16933 $as_echo "$as_val"'`
16934 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16935 $as_echo "$ac_res" >&6; }
16937 # Is the header compilable?
16938 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16939 $as_echo_n "checking
$ac_header usability...
" >&6; }
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 $ac_includes_default
16947 #include <$ac_header>
16949 rm -f conftest.$ac_objext
16950 if { (ac_try="$ac_compile"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957 (eval "$ac_compile") 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest.$ac_objext; then
16967 ac_header_compiler=yes
16969 $as_echo "$as_me: failed program was
:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_header_compiler=no
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16977 $as_echo "$ac_header_compiler" >&6; }
16979 # Is the header present?
16980 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16981 $as_echo_n "checking
$ac_header presence...
" >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <$ac_header>
16990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16996 $as_echo "$ac_try_echo") >&5
16997 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17003 (exit $ac_status); } >/dev/null && {
17004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17005 test ! -s conftest.err
17007 ac_header_preproc=yes
17009 $as_echo "$as_me: failed program was
:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_header_preproc=no
17015 rm -f conftest.err conftest.$ac_ext
17016 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17017 $as_echo "$ac_header_preproc" >&6; }
17019 # So? What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17022 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17023 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17024 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17025 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17026 ac_header_preproc=yes
17029 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17030 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17031 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17032 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17033 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17034 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17035 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17036 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17037 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17038 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17039 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17040 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17044 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17045 $as_echo_n "checking
for $ac_header...
" >&6; }
17046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17047 $as_echo_n "(cached
) " >&6
17049 eval "$as_ac_Header=\
$ac_header_preproc"
17051 ac_res=`eval 'as_val=${'$as_ac_Header'}
17052 $as_echo "$as_val"'`
17053 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17054 $as_echo "$ac_res" >&6; }
17057 if test `eval 'as_val=${'$as_ac_Header'}
17058 $as_echo "$as_val"'` = yes; then
17059 cat >>confdefs.h <<_ACEOF
17060 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17139 for ac_func in gethostname getdomainname dup2 \
17140 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17141 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17142 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17143 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17144 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17145 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17146 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17147 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17148 cfmakeraw cfsetspeed
17150 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17151 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17152 $as_echo_n "checking
for $ac_func...
" >&6; }
17153 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17154 $as_echo_n "(cached
) " >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17164 #define $ac_func innocuous_$ac_func
17166 /* System header to define __stub macros and hopefully few prototypes,
17167 which can conflict with char $ac_func (); below.
17168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17169 <limits.h> exists even on freestanding compilers. */
17172 # include <limits.h>
17174 # include <assert.h>
17179 /* Override any GCC internal prototype to avoid an error.
17180 Use char because int might match the return type of a GCC
17181 builtin and then its argument prototype would still apply. */
17186 /* The GNU C library defines this for functions which it implements
17187 to always fail with ENOSYS. Some functions are actually named
17188 something starting with __ and the normal name is an alias. */
17189 #if defined __stub_$ac_func || defined __stub___$ac_func
17196 return $ac_func ();
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (ac_try="$ac_link"
17203 case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17208 $as_echo "$ac_try_echo") >&5
17209 (eval "$ac_link") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext && {
17219 test "$cross_compiling" = yes ||
17220 $as_test_x conftest$ac_exeext
17222 eval "$as_ac_var=yes"
17224 $as_echo "$as_me: failed program was
:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 eval "$as_ac_var=no
"
17230 rm -rf conftest.dSYM
17231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17232 conftest$ac_exeext conftest.$ac_ext
17234 ac_res=`eval 'as_val=${'$as_ac_var'}
17235 $as_echo "$as_val"'`
17236 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17237 $as_echo "$ac_res" >&6; }
17238 if test `eval 'as_val=${'$as_ac_var'}
17239 $as_echo "$as_val"'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17249 for ac_header in sys/un.h
17251 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17253 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17254 $as_echo_n "checking
for $ac_header...
" >&6; }
17255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17256 $as_echo_n "(cached
) " >&6
17258 ac_res=`eval 'as_val=${'$as_ac_Header'}
17259 $as_echo "$as_val"'`
17260 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17261 $as_echo "$ac_res" >&6; }
17263 # Is the header compilable?
17264 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17265 $as_echo_n "checking
$ac_header usability...
" >&6; }
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 $ac_includes_default
17273 #include <$ac_header>
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283 (eval "$ac_compile") 2>conftest.er1
17285 grep -v '^ *+' conftest.er1 >conftest.err
17287 cat conftest.err >&5
17288 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest.$ac_objext; then
17293 ac_header_compiler=yes
17295 $as_echo "$as_me: failed program was
:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ac_header_compiler=no
17301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17303 $as_echo "$ac_header_compiler" >&6; }
17305 # Is the header present?
17306 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17307 $as_echo_n "checking
$ac_header presence...
" >&6; }
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 #include <$ac_header>
17316 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17322 $as_echo "$ac_try_echo") >&5
17323 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17325 grep -v '^ *+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17329 (exit $ac_status); } >/dev/null && {
17330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17331 test ! -s conftest.err
17333 ac_header_preproc=yes
17335 $as_echo "$as_me: failed program was
:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_header_preproc=no
17341 rm -f conftest.err conftest.$ac_ext
17342 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17343 $as_echo "$ac_header_preproc" >&6; }
17345 # So? What about this header?
17346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17348 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17349 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17350 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17352 ac_header_preproc=yes
17355 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17356 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17357 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17358 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17359 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17360 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17361 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17362 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17363 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17365 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17366 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17370 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17371 $as_echo_n "checking
for $ac_header...
" >&6; }
17372 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17373 $as_echo_n "(cached
) " >&6
17375 eval "$as_ac_Header=\
$ac_header_preproc"
17377 ac_res=`eval 'as_val=${'$as_ac_Header'}
17378 $as_echo "$as_val"'`
17379 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17380 $as_echo "$ac_res" >&6; }
17383 if test `eval 'as_val=${'$as_ac_Header'}
17384 $as_echo "$as_val"'` = yes; then
17385 cat >>confdefs.h <<_ACEOF
17386 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17398 for ac_header in $ac_header_list
17400 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17401 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17402 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17403 $as_echo_n "checking
for $ac_header...
" >&6; }
17404 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17405 $as_echo_n "(cached
) " >&6
17407 ac_res=`eval 'as_val=${'$as_ac_Header'}
17408 $as_echo "$as_val"'`
17409 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17410 $as_echo "$ac_res" >&6; }
17412 # Is the header compilable?
17413 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17414 $as_echo_n "checking
$ac_header usability...
" >&6; }
17415 cat >conftest.$ac_ext <<_ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 $ac_includes_default
17422 #include <$ac_header>
17424 rm -f conftest.$ac_objext
17425 if { (ac_try="$ac_compile"
17426 case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17431 $as_echo "$ac_try_echo") >&5
17432 (eval "$ac_compile") 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17438 (exit $ac_status); } && {
17439 test -z "$ac_c_werror_flag" ||
17440 test ! -s conftest.err
17441 } && test -s conftest.$ac_objext; then
17442 ac_header_compiler=yes
17444 $as_echo "$as_me: failed program was
:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 ac_header_compiler=no
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17452 $as_echo "$ac_header_compiler" >&6; }
17454 # Is the header present?
17455 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17456 $as_echo_n "checking
$ac_header presence...
" >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <$ac_header>
17465 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17471 $as_echo "$ac_try_echo") >&5
17472 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17474 grep -v '^ *+' conftest.er1 >conftest.err
17476 cat conftest.err >&5
17477 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17478 (exit $ac_status); } >/dev/null && {
17479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17480 test ! -s conftest.err
17482 ac_header_preproc=yes
17484 $as_echo "$as_me: failed program was
:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_header_preproc=no
17490 rm -f conftest.err conftest.$ac_ext
17491 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17492 $as_echo "$ac_header_preproc" >&6; }
17494 # So? What about this header?
17495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17497 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17498 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17499 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17501 ac_header_preproc=yes
17504 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17505 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17506 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17507 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17508 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17509 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17510 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17511 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17512 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17514 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17515 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17519 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17520 $as_echo_n "checking
for $ac_header...
" >&6; }
17521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17522 $as_echo_n "(cached
) " >&6
17524 eval "$as_ac_Header=\
$ac_header_preproc"
17526 ac_res=`eval 'as_val=${'$as_ac_Header'}
17527 $as_echo "$as_val"'`
17528 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17529 $as_echo "$ac_res" >&6; }
17532 if test `eval 'as_val=${'$as_ac_Header'}
17533 $as_echo "$as_val"'` = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17550 for ac_func in $ac_func_list
17552 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17553 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17554 $as_echo_n "checking
for $ac_func...
" >&6; }
17555 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17556 $as_echo_n "(cached
) " >&6
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17566 #define $ac_func innocuous_$ac_func
17568 /* System header to define __stub macros and hopefully few prototypes,
17569 which can conflict with char $ac_func (); below.
17570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17571 <limits.h> exists even on freestanding compilers. */
17574 # include <limits.h>
17576 # include <assert.h>
17581 /* Override any GCC internal prototype to avoid an error.
17582 Use char because int might match the return type of a GCC
17583 builtin and then its argument prototype would still apply. */
17588 /* The GNU C library defines this for functions which it implements
17589 to always fail with ENOSYS. Some functions are actually named
17590 something starting with __ and the normal name is an alias. */
17591 #if defined __stub_$ac_func || defined __stub___$ac_func
17598 return $ac_func ();
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17610 $as_echo "$ac_try_echo") >&5
17611 (eval "$ac_link") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest$ac_exeext && {
17621 test "$cross_compiling" = yes ||
17622 $as_test_x conftest$ac_exeext
17624 eval "$as_ac_var=yes"
17626 $as_echo "$as_me: failed program was
:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 eval "$as_ac_var=no
"
17632 rm -rf conftest.dSYM
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17636 ac_res=`eval 'as_val=${'$as_ac_var'}
17637 $as_echo "$as_val"'`
17638 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17639 $as_echo "$ac_res" >&6; }
17640 if test `eval 'as_val=${'$as_ac_var'}
17641 $as_echo "$as_val"'` = yes; then
17642 cat >>confdefs.h <<_ACEOF
17643 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17665 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17666 $as_echo_n "checking
for working mktime...
" >&6; }
17667 if test "${ac_cv_func_working_mktime+set}" = set; then
17668 $as_echo_n "(cached
) " >&6
17670 if test "$cross_compiling" = yes; then
17671 ac_cv_func_working_mktime=no
17673 cat >conftest.$ac_ext <<_ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Test program from Paul Eggert and Tony Leneis. */
17680 #ifdef TIME_WITH_SYS_TIME
17681 # include <sys/time.h>
17684 # ifdef HAVE_SYS_TIME_H
17685 # include <sys/time.h>
17691 #include <limits.h>
17692 #include <stdlib.h>
17694 #ifdef HAVE_UNISTD_H
17695 # include <unistd.h>
17699 # define alarm(X) /* empty */
17702 /* Work around redefinition to rpl_putenv by other config tests. */
17705 static time_t time_t_max;
17706 static time_t time_t_min;
17708 /* Values we'll use to set the TZ environment variable. */
17709 static char *tz_strings[] = {
17710 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17711 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17713 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17715 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17716 Based on a problem report from Andreas Jaeger. */
17718 spring_forward_gap ()
17720 /* glibc (up to about 1998-10-07) failed this test. */
17723 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17724 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17725 on systems that don't support the Olson extension, or don't have the
17726 full zoneinfo tables installed. */
17727 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17736 return mktime (&tm) != (time_t) -1;
17744 return ! (lt = localtime (&now)) || mktime (lt) == now;
17751 return (mktime_test1 (now)
17752 && mktime_test1 ((time_t) (time_t_max - now))
17753 && mktime_test1 ((time_t) (time_t_min + now)));
17759 /* Based on code from Ariel Faigon. */
17769 return tm.tm_mon == 2 && tm.tm_mday == 31;
17778 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17779 now = mktime (&tm);
17780 if (now != (time_t) -1)
17782 struct tm *lt = localtime (&now);
17784 && lt->tm_year == tm.tm_year
17785 && lt->tm_mon == tm.tm_mon
17786 && lt->tm_mday == tm.tm_mday
17787 && lt->tm_hour == tm.tm_hour
17788 && lt->tm_min == tm.tm_min
17789 && lt->tm_sec == tm.tm_sec
17790 && lt->tm_yday == tm.tm_yday
17791 && lt->tm_wday == tm.tm_wday
17792 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17793 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17802 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17803 ignoring leap seconds. */
17804 unsigned long int answer = 2527315200UL;
17808 tm.tm_year = 2050 - 1900;
17811 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17814 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17815 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17816 on systems that don't support the Olson extension, or don't have the
17817 full zoneinfo tables installed. */
17818 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17822 /* Check that the result is either a failure, or close enough
17823 to the correct answer that we can assume the discrepancy is
17824 due to leap seconds. */
17825 return (t == (time_t) -1
17826 || (0 < t && answer - 120 <= t && t <= answer + 120));
17835 /* This test makes some buggy mktime implementations loop.
17836 Give up after 60 seconds; a mktime slower than that
17837 isn't worth using anyway. */
17842 t = (time_t_max << 1) + 1;
17843 if (t <= time_t_max)
17847 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17849 delta = time_t_max / 997; /* a suitable prime number */
17850 for (i = 0; i < N_STRINGS; i++)
17853 putenv (tz_strings[i]);
17855 for (t = 0; t <= time_t_max - delta; t += delta)
17856 if (! mktime_test (t))
17858 if (! (mktime_test ((time_t) 1)
17859 && mktime_test ((time_t) (60 * 60))
17860 && mktime_test ((time_t) (60 * 60 * 24))))
17863 for (j = 1; ; j <<= 1)
17864 if (! bigtime_test (j))
17866 else if (INT_MAX / 2 < j)
17868 if (! bigtime_test (INT_MAX))
17871 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17874 rm -f conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17881 $as_echo "$ac_try_echo") >&5
17882 (eval "$ac_link") 2>&5
17884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17886 { (case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892 (eval "$ac_try") 2>&5
17894 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_func_working_mktime=yes
17898 $as_echo "$as_me: program exited with status
$ac_status" >&5
17899 $as_echo "$as_me: failed program was
:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 ( exit $ac_status )
17903 ac_cv_func_working_mktime=no
17905 rm -rf conftest.dSYM
17906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17911 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17912 $as_echo "$ac_cv_func_working_mktime" >&6; }
17913 if test $ac_cv_func_working_mktime = no; then
17914 case " $LIBOBJS " in
17915 *" mktime.
$ac_objext "* ) ;;
17916 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17922 if test "$ac_cv_func_working_mktime" = no; then
17924 cat >>confdefs.h <<\_ACEOF
17925 #define BROKEN_MKTIME 1
17930 ac_have_func=no # yes means we've found a way to get the load average.
17932 # Make sure getloadavg.c is where it belongs, at configure-time.
17933 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17934 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17935 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17936 { (exit 1); exit 1; }; }
17940 # Check for getloadavg, but be sure not to touch the cache variable.
17941 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17942 $as_echo_n "checking
for getloadavg...
" >&6; }
17943 if test "${ac_cv_func_getloadavg+set}" = set; then
17944 $as_echo_n "(cached
) " >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17954 #define getloadavg innocuous_getloadavg
17956 /* System header to define __stub macros and hopefully few prototypes,
17957 which can conflict with char getloadavg (); below.
17958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959 <limits.h> exists even on freestanding compilers. */
17962 # include <limits.h>
17964 # include <assert.h>
17969 /* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17975 char getloadavg ();
17976 /* The GNU C library defines this for functions which it implements
17977 to always fail with ENOSYS. Some functions are actually named
17978 something starting with __ and the normal name is an alias. */
17979 #if defined __stub_getloadavg || defined __stub___getloadavg
17986 return getloadavg ();
17991 rm -f conftest.$ac_objext conftest$ac_exeext
17992 if { (ac_try="$ac_link"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17998 $as_echo "$ac_try_echo") >&5
17999 (eval "$ac_link") 2>conftest.er1
18001 grep -v '^ *+' conftest.er1 >conftest.err
18003 cat conftest.err >&5
18004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18005 (exit $ac_status); } && {
18006 test -z "$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18008 } && test -s conftest$ac_exeext && {
18009 test "$cross_compiling" = yes ||
18010 $as_test_x conftest$ac_exeext
18012 ac_cv_func_getloadavg=yes
18014 $as_echo "$as_me: failed program was
:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_cv_func_getloadavg=no
18020 rm -rf conftest.dSYM
18021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18022 conftest$ac_exeext conftest.$ac_ext
18024 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18025 $as_echo "$ac_cv_func_getloadavg" >&6; }
18026 if test $ac_cv_func_getloadavg = yes; then
18031 ) && ac_have_func=yes
18033 # On HPUX9, an unprivileged user can get load averages through this function.
18035 for ac_func in pstat_getdynamic
18037 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18038 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18039 $as_echo_n "checking
for $ac_func...
" >&6; }
18040 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18041 $as_echo_n "(cached
) " >&6
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18051 #define $ac_func innocuous_$ac_func
18053 /* System header to define __stub macros and hopefully few prototypes,
18054 which can conflict with char $ac_func (); below.
18055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18056 <limits.h> exists even on freestanding compilers. */
18059 # include <limits.h>
18061 # include <assert.h>
18066 /* Override any GCC internal prototype to avoid an error.
18067 Use char because int might match the return type of a GCC
18068 builtin and then its argument prototype would still apply. */
18073 /* The GNU C library defines this for functions which it implements
18074 to always fail with ENOSYS. Some functions are actually named
18075 something starting with __ and the normal name is an alias. */
18076 #if defined __stub_$ac_func || defined __stub___$ac_func
18083 return $ac_func ();
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18095 $as_echo "$ac_try_echo") >&5
18096 (eval "$ac_link") 2>conftest.er1
18098 grep -v '^ *+' conftest.er1 >conftest.err
18100 cat conftest.err >&5
18101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18102 (exit $ac_status); } && {
18103 test -z "$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 } && test -s conftest$ac_exeext && {
18106 test "$cross_compiling" = yes ||
18107 $as_test_x conftest$ac_exeext
18109 eval "$as_ac_var=yes"
18111 $as_echo "$as_me: failed program was
:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 eval "$as_ac_var=no
"
18117 rm -rf conftest.dSYM
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119 conftest$ac_exeext conftest.$ac_ext
18121 ac_res=`eval 'as_val=${'$as_ac_var'}
18122 $as_echo "$as_val"'`
18123 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18124 $as_echo "$ac_res" >&6; }
18125 if test `eval 'as_val=${'$as_ac_var'}
18126 $as_echo "$as_val"'` = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18135 # Solaris has libkstat which does not require root.
18137 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18138 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18139 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18140 $as_echo_n "(cached
) " >&6
18142 ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-lkstat $LIBS"
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18151 /* Override any GCC internal prototype to avoid an error.
18152 Use char because int might match the return type of a GCC
18153 builtin and then its argument prototype would still apply. */
18157 char kstat_open ();
18161 return kstat_open ();
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18173 $as_echo "$ac_try_echo") >&5
18174 (eval "$ac_link") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext && {
18184 test "$cross_compiling" = yes ||
18185 $as_test_x conftest$ac_exeext
18187 ac_cv_lib_kstat_kstat_open=yes
18189 $as_echo "$as_me: failed program was
:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 ac_cv_lib_kstat_kstat_open=no
18195 rm -rf conftest.dSYM
18196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18197 conftest$ac_exeext conftest.$ac_ext
18198 LIBS=$ac_check_lib_save_LIBS
18200 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18201 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18202 if test $ac_cv_lib_kstat_kstat_open = yes; then
18203 cat >>confdefs.h <<_ACEOF
18204 #define HAVE_LIBKSTAT 1
18207 LIBS="-lkstat $LIBS"
18211 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18213 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18214 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18215 # to get the right answer into the cache.
18216 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18217 if test $ac_have_func = no; then
18218 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18219 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18220 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18221 $as_echo_n "(cached
) " >&6
18223 ac_check_lib_save_LIBS=$LIBS
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18242 return elf_begin ();
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18254 $as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>conftest.er1
18257 grep -v '^ *+' conftest.er1 >conftest.err
18259 cat conftest.err >&5
18260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext && {
18265 test "$cross_compiling" = yes ||
18266 $as_test_x conftest$ac_exeext
18268 ac_cv_lib_elf_elf_begin=yes
18270 $as_echo "$as_me: failed program was
:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 ac_cv_lib_elf_elf_begin=no
18276 rm -rf conftest.dSYM
18277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18278 conftest$ac_exeext conftest.$ac_ext
18279 LIBS=$ac_check_lib_save_LIBS
18281 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18282 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18283 if test $ac_cv_lib_elf_elf_begin = yes; then
18288 if test $ac_have_func = no; then
18289 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18290 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18291 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18292 $as_echo_n "(cached
) " >&6
18294 ac_check_lib_save_LIBS=$LIBS
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18313 return kvm_open ();
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326 (eval "$ac_link") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18332 (exit $ac_status); } && {
18333 test -z "$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 } && test -s conftest$ac_exeext && {
18336 test "$cross_compiling" = yes ||
18337 $as_test_x conftest$ac_exeext
18339 ac_cv_lib_kvm_kvm_open=yes
18341 $as_echo "$as_me: failed program was
:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_lib_kvm_kvm_open=no
18347 rm -rf conftest.dSYM
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18353 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18354 if test $ac_cv_lib_kvm_kvm_open = yes; then
18358 # Check for the 4.4BSD definition of getloadavg.
18359 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18360 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18361 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18362 $as_echo_n "(cached
) " >&6
18364 ac_check_lib_save_LIBS=$LIBS
18365 LIBS="-lutil $LIBS"
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18373 /* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18379 char getloadavg ();
18383 return getloadavg ();
18388 rm -f conftest.$ac_objext conftest$ac_exeext
18389 if { (ac_try="$ac_link"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18394 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18395 $as_echo "$ac_try_echo") >&5
18396 (eval "$ac_link") 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18402 (exit $ac_status); } && {
18403 test -z "$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 } && test -s conftest$ac_exeext && {
18406 test "$cross_compiling" = yes ||
18407 $as_test_x conftest$ac_exeext
18409 ac_cv_lib_util_getloadavg=yes
18411 $as_echo "$as_me: failed program was
:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_cv_lib_util_getloadavg=no
18417 rm -rf conftest.dSYM
18418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18419 conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18422 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18423 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18424 if test $ac_cv_lib_util_getloadavg = yes; then
18425 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18430 if test $ac_have_func = no; then
18431 # There is a commonly available library for RS/6000 AIX.
18432 # Since it is not a standard part of AIX, it might be installed locally.
18433 ac_getloadavg_LIBS=$LIBS
18434 LIBS="-L/usr
/local
/lib
$LIBS"
18435 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18436 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18437 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18438 $as_echo_n "(cached
) " >&6
18440 ac_check_lib_save_LIBS=$LIBS
18441 LIBS="-lgetloadavg $LIBS"
18442 cat >conftest.$ac_ext <<_ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18449 /* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18455 char getloadavg ();
18459 return getloadavg ();
18464 rm -f conftest.$ac_objext conftest$ac_exeext
18465 if { (ac_try="$ac_link"
18466 case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472 (eval "$ac_link") 2>conftest.er1
18474 grep -v '^ *+' conftest.er1 >conftest.err
18476 cat conftest.err >&5
18477 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest$ac_exeext && {
18482 test "$cross_compiling" = yes ||
18483 $as_test_x conftest$ac_exeext
18485 ac_cv_lib_getloadavg_getloadavg=yes
18487 $as_echo "$as_me: failed program was
:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18490 ac_cv_lib_getloadavg_getloadavg=no
18493 rm -rf conftest.dSYM
18494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18495 conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18498 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18499 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18500 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18501 LIBS="-lgetloadavg $LIBS"
18503 LIBS=$ac_getloadavg_LIBS
18508 # Make sure it is really in the library, if we think we found it,
18509 # otherwise set up the replacement function.
18511 for ac_func in getloadavg
18513 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18514 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18515 $as_echo_n "checking
for $ac_func...
" >&6; }
18516 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18517 $as_echo_n "(cached
) " >&6
18519 cat >conftest.$ac_ext <<_ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18527 #define $ac_func innocuous_$ac_func
18529 /* System header to define __stub macros and hopefully few prototypes,
18530 which can conflict with char $ac_func (); below.
18531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18532 <limits.h> exists even on freestanding compilers. */
18535 # include <limits.h>
18537 # include <assert.h>
18542 /* Override any GCC internal prototype to avoid an error.
18543 Use char because int might match the return type of a GCC
18544 builtin and then its argument prototype would still apply. */
18549 /* The GNU C library defines this for functions which it implements
18550 to always fail with ENOSYS. Some functions are actually named
18551 something starting with __ and the normal name is an alias. */
18552 #if defined __stub_$ac_func || defined __stub___$ac_func
18559 return $ac_func ();
18564 rm -f conftest.$ac_objext conftest$ac_exeext
18565 if { (ac_try="$ac_link"
18566 case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18570 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18571 $as_echo "$ac_try_echo") >&5
18572 (eval "$ac_link") 2>conftest.er1
18574 grep -v '^ *+' conftest.er1 >conftest.err
18576 cat conftest.err >&5
18577 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18578 (exit $ac_status); } && {
18579 test -z "$ac_c_werror_flag" ||
18580 test ! -s conftest.err
18581 } && test -s conftest$ac_exeext && {
18582 test "$cross_compiling" = yes ||
18583 $as_test_x conftest$ac_exeext
18585 eval "$as_ac_var=yes"
18587 $as_echo "$as_me: failed program was
:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 eval "$as_ac_var=no
"
18593 rm -rf conftest.dSYM
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18597 ac_res=`eval 'as_val=${'$as_ac_var'}
18598 $as_echo "$as_val"'`
18599 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18600 $as_echo "$ac_res" >&6; }
18601 if test `eval 'as_val=${'$as_ac_var'}
18602 $as_echo "$as_val"'` = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18608 case " $LIBOBJS " in
18609 *" getloadavg.
$ac_objext "* ) ;;
18610 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18615 cat >>confdefs.h <<\_ACEOF
18616 #define C_GETLOADAVG 1
18619 # Figure out what our getloadavg.c needs.
18621 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18622 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18623 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18624 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18625 $as_echo_n "(cached
) " >&6
18627 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18628 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18630 # Is the header compilable?
18631 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18632 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18633 cat >conftest.$ac_ext <<_ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 $ac_includes_default
18640 #include <sys/dg_sys_info.h>
18642 rm -f conftest.$ac_objext
18643 if { (ac_try="$ac_compile"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18649 $as_echo "$ac_try_echo") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_header_compiler=yes
18662 $as_echo "$as_me: failed program was
:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_header_compiler=no
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18670 $as_echo "$ac_header_compiler" >&6; }
18672 # Is the header present?
18673 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18674 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18675 cat >conftest.$ac_ext <<_ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 #include <sys/dg_sys_info.h>
18683 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18689 $as_echo "$ac_try_echo") >&5
18690 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18696 (exit $ac_status); } >/dev/null && {
18697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18700 ac_header_preproc=yes
18702 $as_echo "$as_me: failed program was
:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_header_preproc=no
18708 rm -f conftest.err conftest.$ac_ext
18709 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18710 $as_echo "$ac_header_preproc" >&6; }
18712 # So? What about this header?
18713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18715 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18716 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18717 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18718 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18719 ac_header_preproc=yes
18722 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18723 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18724 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18725 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18726 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18727 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18728 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18729 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18730 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18731 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18732 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18733 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18737 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18738 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18739 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18740 $as_echo_n "(cached
) " >&6
18742 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18744 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18745 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18748 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18751 cat >>confdefs.h <<\_ACEOF
18756 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18757 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18758 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18759 $as_echo_n "(cached
) " >&6
18761 ac_check_lib_save_LIBS=$LIBS
18763 cat >conftest.$ac_ext <<_ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18770 /* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18776 char dg_sys_info ();
18780 return dg_sys_info ();
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18792 $as_echo "$ac_try_echo") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext && {
18803 test "$cross_compiling" = yes ||
18804 $as_test_x conftest$ac_exeext
18806 ac_cv_lib_dgc_dg_sys_info=yes
18808 $as_echo "$as_me: failed program was
:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_lib_dgc_dg_sys_info=no
18814 rm -rf conftest.dSYM
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18817 LIBS=$ac_check_lib_save_LIBS
18819 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18820 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18821 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define HAVE_LIBDGC 1
18834 if test "${ac_cv_header_locale_h+set}" = set; then
18835 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18836 $as_echo_n "checking
for locale.h...
" >&6; }
18837 if test "${ac_cv_header_locale_h+set}" = set; then
18838 $as_echo_n "(cached
) " >&6
18840 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18841 $as_echo "$ac_cv_header_locale_h" >&6; }
18843 # Is the header compilable?
18844 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
18845 $as_echo_n "checking locale.h usability...
" >&6; }
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 $ac_includes_default
18853 #include <locale.h>
18855 rm -f conftest.$ac_objext
18856 if { (ac_try="$ac_compile"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18862 $as_echo "$ac_try_echo") >&5
18863 (eval "$ac_compile") 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18869 (exit $ac_status); } && {
18870 test -z "$ac_c_werror_flag" ||
18871 test ! -s conftest.err
18872 } && test -s conftest.$ac_objext; then
18873 ac_header_compiler=yes
18875 $as_echo "$as_me: failed program was
:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 ac_header_compiler=no
18881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18882 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18883 $as_echo "$ac_header_compiler" >&6; }
18885 # Is the header present?
18886 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
18887 $as_echo_n "checking locale.h presence...
" >&6; }
18888 cat >conftest.$ac_ext <<_ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 #include <locale.h>
18896 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18902 $as_echo "$ac_try_echo") >&5
18903 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18905 grep -v '^ *+' conftest.er1 >conftest.err
18907 cat conftest.err >&5
18908 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18909 (exit $ac_status); } >/dev/null && {
18910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18913 ac_header_preproc=yes
18915 $as_echo "$as_me: failed program was
:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18918 ac_header_preproc=no
18921 rm -f conftest.err conftest.$ac_ext
18922 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18923 $as_echo "$ac_header_preproc" >&6; }
18925 # So? What about this header?
18926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18928 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18929 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18930 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18931 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18932 ac_header_preproc=yes
18935 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18936 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18937 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18938 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18939 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18940 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18941 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18942 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18943 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18944 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18945 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18946 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18950 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18951 $as_echo_n "checking
for locale.h...
" >&6; }
18952 if test "${ac_cv_header_locale_h+set}" = set; then
18953 $as_echo_n "(cached
) " >&6
18955 ac_cv_header_locale_h=$ac_header_preproc
18957 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18958 $as_echo "$ac_cv_header_locale_h" >&6; }
18964 for ac_func in setlocale
18966 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18967 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18968 $as_echo_n "checking
for $ac_func...
" >&6; }
18969 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18970 $as_echo_n "(cached
) " >&6
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18980 #define $ac_func innocuous_$ac_func
18982 /* System header to define __stub macros and hopefully few prototypes,
18983 which can conflict with char $ac_func (); below.
18984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18985 <limits.h> exists even on freestanding compilers. */
18988 # include <limits.h>
18990 # include <assert.h>
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
19002 /* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005 #if defined __stub_$ac_func || defined __stub___$ac_func
19012 return $ac_func ();
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19024 $as_echo "$ac_try_echo") >&5
19025 (eval "$ac_link") 2>conftest.er1
19027 grep -v '^ *+' conftest.er1 >conftest.err
19029 cat conftest.err >&5
19030 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19031 (exit $ac_status); } && {
19032 test -z "$ac_c_werror_flag" ||
19033 test ! -s conftest.err
19034 } && test -s conftest$ac_exeext && {
19035 test "$cross_compiling" = yes ||
19036 $as_test_x conftest$ac_exeext
19038 eval "$as_ac_var=yes"
19040 $as_echo "$as_me: failed program was
:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19043 eval "$as_ac_var=no
"
19046 rm -rf conftest.dSYM
19047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19048 conftest$ac_exeext conftest.$ac_ext
19050 ac_res=`eval 'as_val=${'$as_ac_var'}
19051 $as_echo "$as_val"'`
19052 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19053 $as_echo "$ac_res" >&6; }
19054 if test `eval 'as_val=${'$as_ac_var'}
19055 $as_echo "$as_val"'` = yes; then
19056 cat >>confdefs.h <<_ACEOF
19057 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19064 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19065 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19066 # Irix 4.0.5F has the header but not the library.
19067 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19070 cat >>confdefs.h <<\_ACEOF
19076 if test $ac_have_func = no; then
19077 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19078 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19079 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19080 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19081 $as_echo_n "(cached
) " >&6
19083 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19084 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19086 # Is the header compilable?
19087 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19088 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19089 cat >conftest.$ac_ext <<_ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19096 #include <inq_stats/cpustats.h>
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19105 $as_echo "$ac_try_echo") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19108 grep -v '^ *+' conftest.er1 >conftest.err
19110 cat conftest.err >&5
19111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 ac_header_compiler=yes
19118 $as_echo "$as_me: failed program was
:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_header_compiler=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19126 $as_echo "$ac_header_compiler" >&6; }
19128 # Is the header present?
19129 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19130 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 #include <inq_stats/cpustats.h>
19139 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19145 $as_echo "$ac_try_echo") >&5
19146 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19148 grep -v '^ *+' conftest.er1 >conftest.err
19150 cat conftest.err >&5
19151 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19152 (exit $ac_status); } >/dev/null && {
19153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19156 ac_header_preproc=yes
19158 $as_echo "$as_me: failed program was
:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_header_preproc=no
19164 rm -f conftest.err conftest.$ac_ext
19165 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19166 $as_echo "$ac_header_preproc" >&6; }
19168 # So? What about this header?
19169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19171 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19172 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19173 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19174 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19175 ac_header_preproc=yes
19178 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19179 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19180 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19181 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19182 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19183 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19184 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19185 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19186 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19187 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19188 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19189 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19193 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19194 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19195 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19196 $as_echo_n "(cached
) " >&6
19198 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19200 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19201 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19204 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19207 cat >>confdefs.h <<\_ACEOF
19212 cat >>confdefs.h <<\_ACEOF
19221 if test $ac_have_func = no; then
19222 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19223 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19224 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19225 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19226 $as_echo_n "(cached
) " >&6
19228 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19229 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19231 # Is the header compilable?
19232 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19233 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 $ac_includes_default
19241 #include <sys/cpustats.h>
19243 rm -f conftest.$ac_objext
19244 if { (ac_try="$ac_compile"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19250 $as_echo "$ac_try_echo") >&5
19251 (eval "$ac_compile") 2>conftest.er1
19253 grep -v '^ *+' conftest.er1 >conftest.err
19255 cat conftest.err >&5
19256 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19257 (exit $ac_status); } && {
19258 test -z "$ac_c_werror_flag" ||
19259 test ! -s conftest.err
19260 } && test -s conftest.$ac_objext; then
19261 ac_header_compiler=yes
19263 $as_echo "$as_me: failed program was
:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_header_compiler=no
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19271 $as_echo "$ac_header_compiler" >&6; }
19273 # Is the header present?
19274 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19275 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19276 cat >conftest.$ac_ext <<_ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 #include <sys/cpustats.h>
19284 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19290 $as_echo "$ac_try_echo") >&5
19291 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19297 (exit $ac_status); } >/dev/null && {
19298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19301 ac_header_preproc=yes
19303 $as_echo "$as_me: failed program was
:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ac_header_preproc=no
19309 rm -f conftest.err conftest.$ac_ext
19310 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19311 $as_echo "$ac_header_preproc" >&6; }
19313 # So? What about this header?
19314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19316 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19317 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19318 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19319 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19320 ac_header_preproc=yes
19323 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19324 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19325 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19326 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19327 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19328 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19329 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19330 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19331 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19332 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19333 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19334 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19338 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19339 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19340 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19341 $as_echo_n "(cached
) " >&6
19343 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19345 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19346 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19349 if test $ac_cv_header_sys_cpustats_h = yes; then
19350 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19359 if test $ac_have_func = no; then
19361 for ac_header in mach/mach.h
19363 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19365 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19366 $as_echo_n "checking
for $ac_header...
" >&6; }
19367 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19368 $as_echo_n "(cached
) " >&6
19370 ac_res=`eval 'as_val=${'$as_ac_Header'}
19371 $as_echo "$as_val"'`
19372 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19373 $as_echo "$ac_res" >&6; }
19375 # Is the header compilable?
19376 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19377 $as_echo_n "checking
$ac_header usability...
" >&6; }
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 $ac_includes_default
19385 #include <$ac_header>
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19394 $as_echo "$ac_try_echo") >&5
19395 (eval "$ac_compile") 2>conftest.er1
19397 grep -v '^ *+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest.$ac_objext; then
19405 ac_header_compiler=yes
19407 $as_echo "$as_me: failed program was
:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19410 ac_header_compiler=no
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19415 $as_echo "$ac_header_compiler" >&6; }
19417 # Is the header present?
19418 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19419 $as_echo_n "checking
$ac_header presence...
" >&6; }
19420 cat >conftest.$ac_ext <<_ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 #include <$ac_header>
19428 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19433 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19434 $as_echo "$ac_try_echo") >&5
19435 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19441 (exit $ac_status); } >/dev/null && {
19442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19445 ac_header_preproc=yes
19447 $as_echo "$as_me: failed program was
:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 ac_header_preproc=no
19453 rm -f conftest.err conftest.$ac_ext
19454 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19455 $as_echo "$ac_header_preproc" >&6; }
19457 # So? What about this header?
19458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19460 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19461 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19462 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19464 ac_header_preproc=yes
19467 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19468 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19469 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19470 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19471 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19472 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19473 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19474 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19475 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19477 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19478 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19482 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19483 $as_echo_n "checking
for $ac_header...
" >&6; }
19484 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19485 $as_echo_n "(cached
) " >&6
19487 eval "$as_ac_Header=\
$ac_header_preproc"
19489 ac_res=`eval 'as_val=${'$as_ac_Header'}
19490 $as_echo "$as_val"'`
19491 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19492 $as_echo "$ac_res" >&6; }
19495 if test `eval 'as_val=${'$as_ac_Header'}
19496 $as_echo "$as_val"'` = yes; then
19497 cat >>confdefs.h <<_ACEOF
19498 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19508 for ac_header in nlist.h
19510 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19511 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19512 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19513 $as_echo_n "checking
for $ac_header...
" >&6; }
19514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19515 $as_echo_n "(cached
) " >&6
19517 ac_res=`eval 'as_val=${'$as_ac_Header'}
19518 $as_echo "$as_val"'`
19519 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19520 $as_echo "$ac_res" >&6; }
19522 # Is the header compilable?
19523 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19524 $as_echo_n "checking
$ac_header usability...
" >&6; }
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 $ac_includes_default
19532 #include <$ac_header>
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19541 $as_echo "$ac_try_echo") >&5
19542 (eval "$ac_compile") 2>conftest.er1
19544 grep -v '^ *+' conftest.er1 >conftest.err
19546 cat conftest.err >&5
19547 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest.$ac_objext; then
19552 ac_header_compiler=yes
19554 $as_echo "$as_me: failed program was
:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ac_header_compiler=no
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19562 $as_echo "$ac_header_compiler" >&6; }
19564 # Is the header present?
19565 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19566 $as_echo_n "checking
$ac_header presence...
" >&6; }
19567 cat >conftest.$ac_ext <<_ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19573 #include <$ac_header>
19575 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19576 case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19580 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19581 $as_echo "$ac_try_echo") >&5
19582 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19584 grep -v '^ *+' conftest.er1 >conftest.err
19586 cat conftest.err >&5
19587 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19588 (exit $ac_status); } >/dev/null && {
19589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19590 test ! -s conftest.err
19592 ac_header_preproc=yes
19594 $as_echo "$as_me: failed program was
:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_header_preproc=no
19600 rm -f conftest.err conftest.$ac_ext
19601 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19602 $as_echo "$ac_header_preproc" >&6; }
19604 # So? What about this header?
19605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19607 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19608 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19609 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19611 ac_header_preproc=yes
19614 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19615 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19616 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19617 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19618 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19619 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19620 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19621 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19622 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19624 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19625 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19629 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19630 $as_echo_n "checking
for $ac_header...
" >&6; }
19631 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19632 $as_echo_n "(cached
) " >&6
19634 eval "$as_ac_Header=\
$ac_header_preproc"
19636 ac_res=`eval 'as_val=${'$as_ac_Header'}
19637 $as_echo "$as_val"'`
19638 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19639 $as_echo "$ac_res" >&6; }
19642 if test `eval 'as_val=${'$as_ac_Header'}
19643 $as_echo "$as_val"'` = yes; then
19644 cat >>confdefs.h <<_ACEOF
19645 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19647 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19648 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19649 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19650 $as_echo_n "(cached
) " >&6
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19663 static struct nlist ac_aggr;
19664 if (ac_aggr.n_un.n_name)
19670 rm -f conftest.$ac_objext
19671 if { (ac_try="$ac_compile"
19672 case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19676 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19677 $as_echo "$ac_try_echo") >&5
19678 (eval "$ac_compile") 2>conftest.er1
19680 grep -v '^ *+' conftest.er1 >conftest.err
19682 cat conftest.err >&5
19683 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19684 (exit $ac_status); } && {
19685 test -z "$ac_c_werror_flag" ||
19686 test ! -s conftest.err
19687 } && test -s conftest.$ac_objext; then
19688 ac_cv_member_struct_nlist_n_un_n_name=yes
19690 $as_echo "$as_me: failed program was
:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19704 static struct nlist ac_aggr;
19705 if (sizeof ac_aggr.n_un.n_name)
19711 rm -f conftest.$ac_objext
19712 if { (ac_try="$ac_compile"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19718 $as_echo "$ac_try_echo") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19725 (exit $ac_status); } && {
19726 test -z "$ac_c_werror_flag" ||
19727 test ! -s conftest.err
19728 } && test -s conftest.$ac_objext; then
19729 ac_cv_member_struct_nlist_n_un_n_name=yes
19731 $as_echo "$as_me: failed program was
:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 ac_cv_member_struct_nlist_n_un_n_name=no
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19743 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19744 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19751 cat >>confdefs.h <<\_ACEOF
19752 #define NLIST_NAME_UNION 1
19766 # Some definitions of getloadavg require that the program be installed setgid.
19767 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19768 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19769 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19770 $as_echo_n "(cached
) " >&6
19772 cat >conftest.$ac_ext <<_ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19779 #ifdef LDAV_PRIVILEGED
19780 Yowza Am I SETGID yet
19783 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19784 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19785 ac_cv_func_getloadavg_setgid=yes
19787 ac_cv_func_getloadavg_setgid=no
19792 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19793 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19794 if test $ac_cv_func_getloadavg_setgid = yes; then
19797 cat >>confdefs.h <<\_ACEOF
19798 #define GETLOADAVG_PRIVILEGED 1
19805 if test $ac_cv_func_getloadavg_setgid = yes; then
19806 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19807 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
19808 if test "${ac_cv_group_kmem+set}" = set; then
19809 $as_echo_n "(cached
) " >&6
19811 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19812 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19813 # If we got an error (system does not support symlinks), try without -L.
19814 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19815 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19816 | sed -ne 's/[ ][ ]*/ /g;
19817 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19821 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19822 $as_echo "$ac_cv_group_kmem" >&6; }
19823 KMEM_GROUP=$ac_cv_group_kmem
19825 if test "x
$ac_save_LIBS" = x; then
19826 GETLOADAVG_LIBS=$LIBS
19828 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
19834 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19835 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
19836 if test "${ac_cv_sys_largefile_source+set}" = set; then
19837 $as_echo_n "(cached
) " >&6
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <sys/types.h> /* for off_t */
19851 int (*fp) (FILE *, off_t, int) = fseeko;
19852 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19864 $as_echo "$ac_try_echo") >&5
19865 (eval "$ac_link") 2>conftest.er1
19867 grep -v '^ *+' conftest.er1 >conftest.err
19869 cat conftest.err >&5
19870 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest$ac_exeext && {
19875 test "$cross_compiling" = yes ||
19876 $as_test_x conftest$ac_exeext
19878 ac_cv_sys_largefile_source=no; break
19880 $as_echo "$as_me: failed program was
:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19886 rm -rf conftest.dSYM
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888 conftest$ac_exeext conftest.$ac_ext
19889 cat >conftest.$ac_ext <<_ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895 #define _LARGEFILE_SOURCE 1
19896 #include <sys/types.h> /* for off_t */
19901 int (*fp) (FILE *, off_t, int) = fseeko;
19902 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19914 $as_echo "$ac_try_echo") >&5
19915 (eval "$ac_link") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest$ac_exeext && {
19925 test "$cross_compiling" = yes ||
19926 $as_test_x conftest$ac_exeext
19928 ac_cv_sys_largefile_source=1; break
19930 $as_echo "$as_me: failed program was
:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19936 rm -rf conftest.dSYM
19937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19938 conftest$ac_exeext conftest.$ac_ext
19939 ac_cv_sys_largefile_source=unknown
19943 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19944 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19945 case $ac_cv_sys_largefile_source in #(
19948 cat >>confdefs.h <<_ACEOF
19949 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19955 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19956 # in glibc 2.1.3, but that breaks too many other things.
19957 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19958 if test $ac_cv_sys_largefile_source != unknown; then
19960 cat >>confdefs.h <<\_ACEOF
19961 #define HAVE_FSEEKO 1
19967 # Configure getopt.
19968 # getopt.m4 serial 10
19970 # The getopt module assume you want GNU getopt, with getopt_long etc,
19971 # rather than vanilla POSIX getopt. This means your your code should
19972 # always include <getopt.h> for the getopt prototypes.
19984 # Prerequisites of lib/getopt*.
19991 for ac_header in getopt.h
19993 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19995 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19996 $as_echo_n "checking
for $ac_header...
" >&6; }
19997 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19998 $as_echo_n "(cached
) " >&6
20000 ac_res=`eval 'as_val=${'$as_ac_Header'}
20001 $as_echo "$as_val"'`
20002 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20003 $as_echo "$ac_res" >&6; }
20005 # Is the header compilable?
20006 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20007 $as_echo_n "checking
$ac_header usability...
" >&6; }
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 $ac_includes_default
20015 #include <$ac_header>
20017 rm -f conftest.$ac_objext
20018 if { (ac_try="$ac_compile"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20024 $as_echo "$ac_try_echo") >&5
20025 (eval "$ac_compile") 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20031 (exit $ac_status); } && {
20032 test -z "$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 } && test -s conftest.$ac_objext; then
20035 ac_header_compiler=yes
20037 $as_echo "$as_me: failed program was
:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_compiler=no
20043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20045 $as_echo "$ac_header_compiler" >&6; }
20047 # Is the header present?
20048 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20049 $as_echo_n "checking
$ac_header presence...
" >&6; }
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 #include <$ac_header>
20058 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20064 $as_echo "$ac_try_echo") >&5
20065 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20071 (exit $ac_status); } >/dev/null && {
20072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20075 ac_header_preproc=yes
20077 $as_echo "$as_me: failed program was
:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_header_preproc=no
20083 rm -f conftest.err conftest.$ac_ext
20084 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20085 $as_echo "$ac_header_preproc" >&6; }
20087 # So? What about this header?
20088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20090 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20091 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20092 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20094 ac_header_preproc=yes
20097 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20098 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20099 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20100 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20101 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20102 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20103 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20104 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20105 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20107 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20108 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20112 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20113 $as_echo_n "checking
for $ac_header...
" >&6; }
20114 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20115 $as_echo_n "(cached
) " >&6
20117 eval "$as_ac_Header=\
$ac_header_preproc"
20119 ac_res=`eval 'as_val=${'$as_ac_Header'}
20120 $as_echo "$as_val"'`
20121 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20122 $as_echo "$ac_res" >&6; }
20125 if test `eval 'as_val=${'$as_ac_Header'}
20126 $as_echo "$as_val"'` = yes; then
20127 cat >>confdefs.h <<_ACEOF
20128 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20137 if test -z "$GETOPT_H"; then
20139 for ac_func in getopt_long_only
20141 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20142 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20143 $as_echo_n "checking
for $ac_func...
" >&6; }
20144 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20145 $as_echo_n "(cached
) " >&6
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20155 #define $ac_func innocuous_$ac_func
20157 /* System header to define __stub macros and hopefully few prototypes,
20158 which can conflict with char $ac_func (); below.
20159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20160 <limits.h> exists even on freestanding compilers. */
20163 # include <limits.h>
20165 # include <assert.h>
20170 /* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
20177 /* The GNU C library defines this for functions which it implements
20178 to always fail with ENOSYS. Some functions are actually named
20179 something starting with __ and the normal name is an alias. */
20180 #if defined __stub_$ac_func || defined __stub___$ac_func
20187 return $ac_func ();
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20199 $as_echo "$ac_try_echo") >&5
20200 (eval "$ac_link") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20206 (exit $ac_status); } && {
20207 test -z "$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 } && test -s conftest$ac_exeext && {
20210 test "$cross_compiling" = yes ||
20211 $as_test_x conftest$ac_exeext
20213 eval "$as_ac_var=yes"
20215 $as_echo "$as_me: failed program was
:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 eval "$as_ac_var=no
"
20221 rm -rf conftest.dSYM
20222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20223 conftest$ac_exeext conftest.$ac_ext
20225 ac_res=`eval 'as_val=${'$as_ac_var'}
20226 $as_echo "$as_val"'`
20227 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20228 $as_echo "$ac_res" >&6; }
20229 if test `eval 'as_val=${'$as_ac_var'}
20230 $as_echo "$as_val"'` = yes; then
20231 cat >>confdefs.h <<_ACEOF
20232 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20242 if test -z "$GETOPT_H"; then
20243 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20244 $as_echo_n "checking whether optreset is declared...
" >&6; }
20245 if test "${ac_cv_have_decl_optreset+set}" = set; then
20246 $as_echo_n "(cached
) " >&6
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 #include <getopt.h>
20267 rm -f conftest.$ac_objext
20268 if { (ac_try="$ac_compile"
20269 case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20274 $as_echo "$ac_try_echo") >&5
20275 (eval "$ac_compile") 2>conftest.er1
20277 grep -v '^ *+' conftest.er1 >conftest.err
20279 cat conftest.err >&5
20280 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20281 (exit $ac_status); } && {
20282 test -z "$ac_c_werror_flag" ||
20283 test ! -s conftest.err
20284 } && test -s conftest.$ac_objext; then
20285 ac_cv_have_decl_optreset=yes
20287 $as_echo "$as_me: failed program was
:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_cv_have_decl_optreset=no
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20296 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20297 if test $ac_cv_have_decl_optreset = yes; then
20303 if test -z "$GETOPT_H"; then
20304 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20305 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20306 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20307 $as_echo_n "(cached
) " >&6
20309 if test "$cross_compiling" = yes; then
20310 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20311 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20312 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20313 $as_echo_n "(cached
) " >&6
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <getopt.h>
20326 #ifndef getopt_clip
20327 (void) getopt_clip;
20334 rm -f conftest.$ac_objext
20335 if { (ac_try="$ac_compile"
20336 case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20341 $as_echo "$ac_try_echo") >&5
20342 (eval "$ac_compile") 2>conftest.er1
20344 grep -v '^ *+' conftest.er1 >conftest.err
20346 cat conftest.err >&5
20347 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20348 (exit $ac_status); } && {
20349 test -z "$ac_c_werror_flag" ||
20350 test ! -s conftest.err
20351 } && test -s conftest.$ac_objext; then
20352 ac_cv_have_decl_getopt_clip=yes
20354 $as_echo "$as_me: failed program was
:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_cv_have_decl_getopt_clip=no
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20363 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20364 if test $ac_cv_have_decl_getopt_clip = yes; then
20365 gl_cv_func_gnu_getopt=no
20367 gl_cv_func_gnu_getopt=yes
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <getopt.h>
20383 myargv[0] = "conftest
";
20386 return getopt (2, myargv, "+a
") != '?';
20392 rm -f conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20399 $as_echo "$ac_try_echo") >&5
20400 (eval "$ac_link") 2>&5
20402 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20404 { (case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20408 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20409 $as_echo "$ac_try_echo") >&5
20410 (eval "$ac_try") 2>&5
20412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 gl_cv_func_gnu_getopt=yes
20416 $as_echo "$as_me: program exited with status
$ac_status" >&5
20417 $as_echo "$as_me: failed program was
:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 ( exit $ac_status )
20421 gl_cv_func_gnu_getopt=no
20423 rm -rf conftest.dSYM
20424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20429 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20430 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20431 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20438 if test -n "$GETOPT_H"; then
20443 cat >>confdefs.h <<\_ACEOF
20444 #define __GETOPT_PREFIX rpl_
20450 GETOPTOBJS='getopt.o getopt1.o'
20457 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20458 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20459 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20460 $as_echo_n "(cached
) " >&6
20462 # Use it with a single arg.
20463 cat >conftest.$ac_ext <<_ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 $ac_includes_default
20478 rm -f conftest.$ac_objext
20479 if { (ac_try="$ac_compile"
20480 case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20484 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20485 $as_echo "$ac_try_echo") >&5
20486 (eval "$ac_compile") 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20492 (exit $ac_status); } && {
20493 test -z "$ac_c_werror_flag" ||
20494 test ! -s conftest.err
20495 } && test -s conftest.$ac_objext; then
20496 ac_cv_func_getpgrp_void=no
20498 $as_echo "$as_me: failed program was
:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 ac_cv_func_getpgrp_void=yes
20504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20508 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20509 if test $ac_cv_func_getpgrp_void = yes; then
20511 cat >>confdefs.h <<\_ACEOF
20512 #define GETPGRP_VOID 1
20519 for ac_func in strftime
20521 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20522 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20523 $as_echo_n "checking
for $ac_func...
" >&6; }
20524 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20525 $as_echo_n "(cached
) " >&6
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20535 #define $ac_func innocuous_$ac_func
20537 /* System header to define __stub macros and hopefully few prototypes,
20538 which can conflict with char $ac_func (); below.
20539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20540 <limits.h> exists even on freestanding compilers. */
20543 # include <limits.h>
20545 # include <assert.h>
20550 /* Override any GCC internal prototype to avoid an error.
20551 Use char because int might match the return type of a GCC
20552 builtin and then its argument prototype would still apply. */
20557 /* The GNU C library defines this for functions which it implements
20558 to always fail with ENOSYS. Some functions are actually named
20559 something starting with __ and the normal name is an alias. */
20560 #if defined __stub_$ac_func || defined __stub___$ac_func
20567 return $ac_func ();
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (ac_try="$ac_link"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20579 $as_echo "$ac_try_echo") >&5
20580 (eval "$ac_link") 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest$ac_exeext && {
20590 test "$cross_compiling" = yes ||
20591 $as_test_x conftest$ac_exeext
20593 eval "$as_ac_var=yes"
20595 $as_echo "$as_me: failed program was
:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20598 eval "$as_ac_var=no
"
20601 rm -rf conftest.dSYM
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 conftest$ac_exeext conftest.$ac_ext
20605 ac_res=`eval 'as_val=${'$as_ac_var'}
20606 $as_echo "$as_val"'`
20607 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20608 $as_echo "$ac_res" >&6; }
20609 if test `eval 'as_val=${'$as_ac_var'}
20610 $as_echo "$as_val"'` = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20616 # strftime is in -lintl on SCO UNIX.
20617 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20618 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20619 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20620 $as_echo_n "(cached
) " >&6
20622 ac_check_lib_save_LIBS=$LIBS
20623 LIBS="-lintl $LIBS"
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20641 return strftime ();
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20653 $as_echo "$ac_try_echo") >&5
20654 (eval "$ac_link") 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext && {
20664 test "$cross_compiling" = yes ||
20665 $as_test_x conftest$ac_exeext
20667 ac_cv_lib_intl_strftime=yes
20669 $as_echo "$as_me: failed program was
:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 ac_cv_lib_intl_strftime=no
20675 rm -rf conftest.dSYM
20676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20677 conftest$ac_exeext conftest.$ac_ext
20678 LIBS=$ac_check_lib_save_LIBS
20680 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20681 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20682 if test $ac_cv_lib_intl_strftime = yes; then
20683 cat >>confdefs.h <<\_ACEOF
20684 #define HAVE_STRFTIME 1
20687 LIBS="-lintl $LIBS"
20696 for ac_func in grantpt
20698 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20699 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20700 $as_echo_n "checking
for $ac_func...
" >&6; }
20701 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20702 $as_echo_n "(cached
) " >&6
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20712 #define $ac_func innocuous_$ac_func
20714 /* System header to define __stub macros and hopefully few prototypes,
20715 which can conflict with char $ac_func (); below.
20716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20717 <limits.h> exists even on freestanding compilers. */
20720 # include <limits.h>
20722 # include <assert.h>
20727 /* Override any GCC internal prototype to avoid an error.
20728 Use char because int might match the return type of a GCC
20729 builtin and then its argument prototype would still apply. */
20734 /* The GNU C library defines this for functions which it implements
20735 to always fail with ENOSYS. Some functions are actually named
20736 something starting with __ and the normal name is an alias. */
20737 #if defined __stub_$ac_func || defined __stub___$ac_func
20744 return $ac_func ();
20749 rm -f conftest.$ac_objext conftest$ac_exeext
20750 if { (ac_try="$ac_link"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20756 $as_echo "$ac_try_echo") >&5
20757 (eval "$ac_link") 2>conftest.er1
20759 grep -v '^ *+' conftest.er1 >conftest.err
20761 cat conftest.err >&5
20762 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20763 (exit $ac_status); } && {
20764 test -z "$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20766 } && test -s conftest$ac_exeext && {
20767 test "$cross_compiling" = yes ||
20768 $as_test_x conftest$ac_exeext
20770 eval "$as_ac_var=yes"
20772 $as_echo "$as_me: failed program was
:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 eval "$as_ac_var=no
"
20778 rm -rf conftest.dSYM
20779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20780 conftest$ac_exeext conftest.$ac_ext
20782 ac_res=`eval 'as_val=${'$as_ac_var'}
20783 $as_echo "$as_val"'`
20784 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20785 $as_echo "$ac_res" >&6; }
20786 if test `eval 'as_val=${'$as_ac_var'}
20787 $as_echo "$as_val"'` = yes; then
20788 cat >>confdefs.h <<_ACEOF
20789 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20796 # PTY-related GNU extensions.
20798 for ac_func in getpt
20800 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20801 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20802 $as_echo_n "checking
for $ac_func...
" >&6; }
20803 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20804 $as_echo_n "(cached
) " >&6
20806 cat >conftest.$ac_ext <<_ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20814 #define $ac_func innocuous_$ac_func
20816 /* System header to define __stub macros and hopefully few prototypes,
20817 which can conflict with char $ac_func (); below.
20818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20819 <limits.h> exists even on freestanding compilers. */
20822 # include <limits.h>
20824 # include <assert.h>
20829 /* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20836 /* The GNU C library defines this for functions which it implements
20837 to always fail with ENOSYS. Some functions are actually named
20838 something starting with __ and the normal name is an alias. */
20839 #if defined __stub_$ac_func || defined __stub___$ac_func
20846 return $ac_func ();
20851 rm -f conftest.$ac_objext conftest$ac_exeext
20852 if { (ac_try="$ac_link"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20858 $as_echo "$ac_try_echo") >&5
20859 (eval "$ac_link") 2>conftest.er1
20861 grep -v '^ *+' conftest.er1 >conftest.err
20863 cat conftest.err >&5
20864 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20865 (exit $ac_status); } && {
20866 test -z "$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 } && test -s conftest$ac_exeext && {
20869 test "$cross_compiling" = yes ||
20870 $as_test_x conftest$ac_exeext
20872 eval "$as_ac_var=yes"
20874 $as_echo "$as_me: failed program was
:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20877 eval "$as_ac_var=no
"
20880 rm -rf conftest.dSYM
20881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20882 conftest$ac_exeext conftest.$ac_ext
20884 ac_res=`eval 'as_val=${'$as_ac_var'}
20885 $as_echo "$as_val"'`
20886 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20887 $as_echo "$ac_res" >&6; }
20888 if test `eval 'as_val=${'$as_ac_var'}
20889 $as_echo "$as_val"'` = yes; then
20890 cat >>confdefs.h <<_ACEOF
20891 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20898 # Check this now, so that we will NOT find the above functions in ncurses.
20899 # That is because we have not set up to link ncurses in lib-src.
20900 # It's better to believe a function is not available
20901 # than to expect to find it in ncurses.
20903 { $as_echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20904 $as_echo_n "checking
for tparm
in -lncurses...
" >&6; }
20905 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20906 $as_echo_n "(cached
) " >&6
20908 ac_check_lib_save_LIBS=$LIBS
20909 LIBS="-lncurses $LIBS"
20910 cat >conftest.$ac_ext <<_ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20917 /* Override any GCC internal prototype to avoid an error.
20918 Use char because int might match the return type of a GCC
20919 builtin and then its argument prototype would still apply. */
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20939 $as_echo "$ac_try_echo") >&5
20940 (eval "$ac_link") 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20946 (exit $ac_status); } && {
20947 test -z "$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20949 } && test -s conftest$ac_exeext && {
20950 test "$cross_compiling" = yes ||
20951 $as_test_x conftest$ac_exeext
20953 ac_cv_lib_ncurses_tparm=yes
20955 $as_echo "$as_me: failed program was
:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 ac_cv_lib_ncurses_tparm=no
20961 rm -rf conftest.dSYM
20962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20963 conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20966 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20967 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20968 if test $ac_cv_lib_ncurses_tparm = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define HAVE_LIBNCURSES 1
20973 LIBS="-lncurses $LIBS"
20978 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 #include <netinet/in.h>
20988 #include <arpa/nameser.h>
20989 #include <resolv.h>
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21005 $as_echo "$ac_try_echo") >&5
21006 (eval "$ac_link") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest$ac_exeext && {
21016 test "$cross_compiling" = yes ||
21017 $as_test_x conftest$ac_exeext
21021 $as_echo "$as_me: failed program was
:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21027 rm -rf conftest.dSYM
21028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21029 conftest$ac_exeext conftest.$ac_ext
21030 if test "$have_res_init" = no; then
21032 LIBS="$LIBS -lresolv"
21033 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21034 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <netinet/in.h>
21042 #include <arpa/nameser.h>
21043 #include <resolv.h>
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21059 $as_echo "$ac_try_echo") >&5
21060 (eval "$ac_link") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext && {
21070 test "$cross_compiling" = yes ||
21071 $as_test_x conftest$ac_exeext
21075 $as_echo "$as_me: failed program was
:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21081 rm -rf conftest.dSYM
21082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21083 conftest$ac_exeext conftest.$ac_ext
21084 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21085 $as_echo "$have_res_init" >&6; }
21086 if test "$have_res_init" = yes ; then
21092 if test "$have_res_init" = yes; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define HAVE_RES_INIT 1
21100 # Do we need the Hesiod library to provide the support routines?
21101 if test "$with_hesiod" != no ; then
21102 # Don't set $LIBS here -- see comments above.
21103 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21104 $as_echo_n "checking
for res_send...
" >&6; }
21105 if test "${ac_cv_func_res_send+set}" = set; then
21106 $as_echo_n "(cached
) " >&6
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21116 #define res_send innocuous_res_send
21118 /* System header to define __stub macros and hopefully few prototypes,
21119 which can conflict with char res_send (); below.
21120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21121 <limits.h> exists even on freestanding compilers. */
21124 # include <limits.h>
21126 # include <assert.h>
21131 /* Override any GCC internal prototype to avoid an error.
21132 Use char because int might match the return type of a GCC
21133 builtin and then its argument prototype would still apply. */
21138 /* The GNU C library defines this for functions which it implements
21139 to always fail with ENOSYS. Some functions are actually named
21140 something starting with __ and the normal name is an alias. */
21141 #if defined __stub_res_send || defined __stub___res_send
21148 return res_send ();
21153 rm -f conftest.$ac_objext conftest$ac_exeext
21154 if { (ac_try="$ac_link"
21155 case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21159 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21160 $as_echo "$ac_try_echo") >&5
21161 (eval "$ac_link") 2>conftest.er1
21163 grep -v '^ *+' conftest.er1 >conftest.err
21165 cat conftest.err >&5
21166 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest$ac_exeext && {
21171 test "$cross_compiling" = yes ||
21172 $as_test_x conftest$ac_exeext
21174 ac_cv_func_res_send=yes
21176 $as_echo "$as_me: failed program was
:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_cv_func_res_send=no
21182 rm -rf conftest.dSYM
21183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21184 conftest$ac_exeext conftest.$ac_ext
21186 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21187 $as_echo "$ac_cv_func_res_send" >&6; }
21188 if test $ac_cv_func_res_send = yes; then
21191 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21192 $as_echo_n "checking
for __res_send...
" >&6; }
21193 if test "${ac_cv_func___res_send+set}" = set; then
21194 $as_echo_n "(cached
) " >&6
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21204 #define __res_send innocuous___res_send
21206 /* System header to define __stub macros and hopefully few prototypes,
21207 which can conflict with char __res_send (); below.
21208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21209 <limits.h> exists even on freestanding compilers. */
21212 # include <limits.h>
21214 # include <assert.h>
21219 /* Override any GCC internal prototype to avoid an error.
21220 Use char because int might match the return type of a GCC
21221 builtin and then its argument prototype would still apply. */
21225 char __res_send ();
21226 /* The GNU C library defines this for functions which it implements
21227 to always fail with ENOSYS. Some functions are actually named
21228 something starting with __ and the normal name is an alias. */
21229 #if defined __stub___res_send || defined __stub_____res_send
21236 return __res_send ();
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21247 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21248 $as_echo "$ac_try_echo") >&5
21249 (eval "$ac_link") 2>conftest.er1
21251 grep -v '^ *+' conftest.er1 >conftest.err
21253 cat conftest.err >&5
21254 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest$ac_exeext && {
21259 test "$cross_compiling" = yes ||
21260 $as_test_x conftest$ac_exeext
21262 ac_cv_func___res_send=yes
21264 $as_echo "$as_me: failed program was
:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21267 ac_cv_func___res_send=no
21270 rm -rf conftest.dSYM
21271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21272 conftest$ac_exeext conftest.$ac_ext
21274 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21275 $as_echo "$ac_cv_func___res_send" >&6; }
21276 if test $ac_cv_func___res_send = yes; then
21279 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21280 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21281 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21282 $as_echo_n "(cached
) " >&6
21284 ac_check_lib_save_LIBS=$LIBS
21285 LIBS="-lresolv $LIBS"
21286 cat >conftest.$ac_ext <<_ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21293 /* Override any GCC internal prototype to avoid an error.
21294 Use char because int might match the return type of a GCC
21295 builtin and then its argument prototype would still apply. */
21303 return res_send ();
21308 rm -f conftest.$ac_objext conftest$ac_exeext
21309 if { (ac_try="$ac_link"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21315 $as_echo "$ac_try_echo") >&5
21316 (eval "$ac_link") 2>conftest.er1
21318 grep -v '^ *+' conftest.er1 >conftest.err
21320 cat conftest.err >&5
21321 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest$ac_exeext && {
21326 test "$cross_compiling" = yes ||
21327 $as_test_x conftest$ac_exeext
21329 ac_cv_lib_resolv_res_send=yes
21331 $as_echo "$as_me: failed program was
:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_cv_lib_resolv_res_send=no
21337 rm -rf conftest.dSYM
21338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21339 conftest$ac_exeext conftest.$ac_ext
21340 LIBS=$ac_check_lib_save_LIBS
21342 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21343 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21344 if test $ac_cv_lib_resolv_res_send = yes; then
21347 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21348 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21349 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21350 $as_echo_n "(cached
) " >&6
21352 ac_check_lib_save_LIBS=$LIBS
21353 LIBS="-lresolv $LIBS"
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21367 char __res_send ();
21371 return __res_send ();
21376 rm -f conftest.$ac_objext conftest$ac_exeext
21377 if { (ac_try="$ac_link"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21383 $as_echo "$ac_try_echo") >&5
21384 (eval "$ac_link") 2>conftest.er1
21386 grep -v '^ *+' conftest.er1 >conftest.err
21388 cat conftest.err >&5
21389 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest$ac_exeext && {
21394 test "$cross_compiling" = yes ||
21395 $as_test_x conftest$ac_exeext
21397 ac_cv_lib_resolv___res_send=yes
21399 $as_echo "$as_me: failed program was
:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21402 ac_cv_lib_resolv___res_send=no
21405 rm -rf conftest.dSYM
21406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21407 conftest$ac_exeext conftest.$ac_ext
21408 LIBS=$ac_check_lib_save_LIBS
21410 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21411 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21412 if test $ac_cv_lib_resolv___res_send = yes; then
21422 if test "$resolv" = yes ; then
21427 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21428 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21429 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21430 $as_echo_n "(cached
) " >&6
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21440 #define hes_getmailhost innocuous_hes_getmailhost
21442 /* System header to define __stub macros and hopefully few prototypes,
21443 which can conflict with char hes_getmailhost (); below.
21444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21445 <limits.h> exists even on freestanding compilers. */
21448 # include <limits.h>
21450 # include <assert.h>
21453 #undef hes_getmailhost
21455 /* Override any GCC internal prototype to avoid an error.
21456 Use char because int might match the return type of a GCC
21457 builtin and then its argument prototype would still apply. */
21461 char hes_getmailhost ();
21462 /* The GNU C library defines this for functions which it implements
21463 to always fail with ENOSYS. Some functions are actually named
21464 something starting with __ and the normal name is an alias. */
21465 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21472 return hes_getmailhost ();
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (ac_try="$ac_link"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21484 $as_echo "$ac_try_echo") >&5
21485 (eval "$ac_link") 2>conftest.er1
21487 grep -v '^ *+' conftest.er1 >conftest.err
21489 cat conftest.err >&5
21490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21491 (exit $ac_status); } && {
21492 test -z "$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 } && test -s conftest$ac_exeext && {
21495 test "$cross_compiling" = yes ||
21496 $as_test_x conftest$ac_exeext
21498 ac_cv_func_hes_getmailhost=yes
21500 $as_echo "$as_me: failed program was
:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 ac_cv_func_hes_getmailhost=no
21506 rm -rf conftest.dSYM
21507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21508 conftest$ac_exeext conftest.$ac_ext
21510 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21511 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21512 if test $ac_cv_func_hes_getmailhost = yes; then
21515 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21516 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21517 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21518 $as_echo_n "(cached
) " >&6
21520 ac_check_lib_save_LIBS=$LIBS
21521 LIBS="-lhesiod $RESOLVLIB $LIBS"
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21535 char hes_getmailhost ();
21539 return hes_getmailhost ();
21544 rm -f conftest.$ac_objext conftest$ac_exeext
21545 if { (ac_try="$ac_link"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21551 $as_echo "$ac_try_echo") >&5
21552 (eval "$ac_link") 2>conftest.er1
21554 grep -v '^ *+' conftest.er1 >conftest.err
21556 cat conftest.err >&5
21557 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21558 (exit $ac_status); } && {
21559 test -z "$ac_c_werror_flag" ||
21560 test ! -s conftest.err
21561 } && test -s conftest$ac_exeext && {
21562 test "$cross_compiling" = yes ||
21563 $as_test_x conftest$ac_exeext
21565 ac_cv_lib_hesiod_hes_getmailhost=yes
21567 $as_echo "$as_me: failed program was
:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_cv_lib_hesiod_hes_getmailhost=no
21573 rm -rf conftest.dSYM
21574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21575 conftest$ac_exeext conftest.$ac_ext
21576 LIBS=$ac_check_lib_save_LIBS
21578 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21579 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21580 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21582 cat >>confdefs.h <<\_ACEOF
21583 #define HAVE_LIBHESIOD 1
21594 # Do we need libresolv (due to res_init or Hesiod)?
21595 if test "$resolv" = yes ; then
21597 cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_LIBRESOLV 1
21603 # These tell us which Kerberos-related libraries to use.
21604 if test "${with_kerberos}" != no; then
21606 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21607 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21608 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21609 $as_echo_n "(cached
) " >&6
21611 ac_check_lib_save_LIBS=$LIBS
21612 LIBS="-lcom_err $LIBS"
21613 cat >conftest.$ac_ext <<_ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21620 /* Override any GCC internal prototype to avoid an error.
21621 Use char because int might match the return type of a GCC
21622 builtin and then its argument prototype would still apply. */
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21642 $as_echo "$ac_try_echo") >&5
21643 (eval "$ac_link") 2>conftest.er1
21645 grep -v '^ *+' conftest.er1 >conftest.err
21647 cat conftest.err >&5
21648 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21649 (exit $ac_status); } && {
21650 test -z "$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21652 } && test -s conftest$ac_exeext && {
21653 test "$cross_compiling" = yes ||
21654 $as_test_x conftest$ac_exeext
21656 ac_cv_lib_com_err_com_err=yes
21658 $as_echo "$as_me: failed program was
:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21661 ac_cv_lib_com_err_com_err=no
21664 rm -rf conftest.dSYM
21665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21666 conftest$ac_exeext conftest.$ac_ext
21667 LIBS=$ac_check_lib_save_LIBS
21669 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21670 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21671 if test $ac_cv_lib_com_err_com_err = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define HAVE_LIBCOM_ERR 1
21676 LIBS="-lcom_err $LIBS"
21681 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21682 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
21683 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21684 $as_echo_n "(cached
) " >&6
21686 ac_check_lib_save_LIBS=$LIBS
21687 LIBS="-lk5crypto $LIBS"
21688 cat >conftest.$ac_ext <<_ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21695 /* Override any GCC internal prototype to avoid an error.
21696 Use char because int might match the return type of a GCC
21697 builtin and then its argument prototype would still apply. */
21701 char mit_des_cbc_encrypt ();
21705 return mit_des_cbc_encrypt ();
21710 rm -f conftest.$ac_objext conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21717 $as_echo "$ac_try_echo") >&5
21718 (eval "$ac_link") 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest$ac_exeext && {
21728 test "$cross_compiling" = yes ||
21729 $as_test_x conftest$ac_exeext
21731 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21733 $as_echo "$as_me: failed program was
:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21739 rm -rf conftest.dSYM
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741 conftest$ac_exeext conftest.$ac_ext
21742 LIBS=$ac_check_lib_save_LIBS
21744 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21745 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21746 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21747 cat >>confdefs.h <<_ACEOF
21748 #define HAVE_LIBK5CRYPTO 1
21751 LIBS="-lk5crypto $LIBS"
21756 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21757 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21758 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21759 $as_echo_n "(cached
) " >&6
21761 ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lcrypto $LIBS"
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21770 /* Override any GCC internal prototype to avoid an error.
21771 Use char because int might match the return type of a GCC
21772 builtin and then its argument prototype would still apply. */
21776 char mit_des_cbc_encrypt ();
21780 return mit_des_cbc_encrypt ();
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (ac_try="$ac_link"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21792 $as_echo "$ac_try_echo") >&5
21793 (eval "$ac_link") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest$ac_exeext && {
21803 test "$cross_compiling" = yes ||
21804 $as_test_x conftest$ac_exeext
21806 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21808 $as_echo "$as_me: failed program was
:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21814 rm -rf conftest.dSYM
21815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21816 conftest$ac_exeext conftest.$ac_ext
21817 LIBS=$ac_check_lib_save_LIBS
21819 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21820 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21821 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21822 cat >>confdefs.h <<_ACEOF
21823 #define HAVE_LIBCRYPTO 1
21826 LIBS="-lcrypto $LIBS"
21831 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
21832 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
21833 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21834 $as_echo_n "(cached
) " >&6
21836 ac_check_lib_save_LIBS=$LIBS
21837 LIBS="-lkrb5 $LIBS"
21838 cat >conftest.$ac_ext <<_ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21845 /* Override any GCC internal prototype to avoid an error.
21846 Use char because int might match the return type of a GCC
21847 builtin and then its argument prototype would still apply. */
21851 char krb5_init_context ();
21855 return krb5_init_context ();
21860 rm -f conftest.$ac_objext conftest$ac_exeext
21861 if { (ac_try="$ac_link"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21866 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21867 $as_echo "$ac_try_echo") >&5
21868 (eval "$ac_link") 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21874 (exit $ac_status); } && {
21875 test -z "$ac_c_werror_flag" ||
21876 test ! -s conftest.err
21877 } && test -s conftest$ac_exeext && {
21878 test "$cross_compiling" = yes ||
21879 $as_test_x conftest$ac_exeext
21881 ac_cv_lib_krb5_krb5_init_context=yes
21883 $as_echo "$as_me: failed program was
:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_cv_lib_krb5_krb5_init_context=no
21889 rm -rf conftest.dSYM
21890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21891 conftest$ac_exeext conftest.$ac_ext
21892 LIBS=$ac_check_lib_save_LIBS
21894 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
21895 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21896 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898 #define HAVE_LIBKRB5 1
21901 LIBS="-lkrb5 $LIBS"
21905 if test "${with_kerberos5}" = no; then
21907 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
21908 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
21909 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21910 $as_echo_n "(cached
) " >&6
21912 ac_check_lib_save_LIBS=$LIBS
21913 LIBS="-ldes425 $LIBS"
21914 cat >conftest.$ac_ext <<_ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21921 /* Override any GCC internal prototype to avoid an error.
21922 Use char because int might match the return type of a GCC
21923 builtin and then its argument prototype would still apply. */
21927 char des_cbc_encrypt ();
21931 return des_cbc_encrypt ();
21936 rm -f conftest.$ac_objext conftest$ac_exeext
21937 if { (ac_try="$ac_link"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21942 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21943 $as_echo "$ac_try_echo") >&5
21944 (eval "$ac_link") 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21950 (exit $ac_status); } && {
21951 test -z "$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 } && test -s conftest$ac_exeext && {
21954 test "$cross_compiling" = yes ||
21955 $as_test_x conftest$ac_exeext
21957 ac_cv_lib_des425_des_cbc_encrypt=yes
21959 $as_echo "$as_me: failed program was
:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_cv_lib_des425_des_cbc_encrypt=no
21965 rm -rf conftest.dSYM
21966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21967 conftest$ac_exeext conftest.$ac_ext
21968 LIBS=$ac_check_lib_save_LIBS
21970 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21971 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21972 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21973 cat >>confdefs.h <<_ACEOF
21974 #define HAVE_LIBDES425 1
21977 LIBS="-ldes425 $LIBS"
21981 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21982 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
21983 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21984 $as_echo_n "(cached
) " >&6
21986 ac_check_lib_save_LIBS=$LIBS
21988 cat >conftest.$ac_ext <<_ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21995 /* Override any GCC internal prototype to avoid an error.
21996 Use char because int might match the return type of a GCC
21997 builtin and then its argument prototype would still apply. */
22001 char des_cbc_encrypt ();
22005 return des_cbc_encrypt ();
22010 rm -f conftest.$ac_objext conftest$ac_exeext
22011 if { (ac_try="$ac_link"
22012 case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22016 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22017 $as_echo "$ac_try_echo") >&5
22018 (eval "$ac_link") 2>conftest.er1
22020 grep -v '^ *+' conftest.er1 >conftest.err
22022 cat conftest.err >&5
22023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22024 (exit $ac_status); } && {
22025 test -z "$ac_c_werror_flag" ||
22026 test ! -s conftest.err
22027 } && test -s conftest$ac_exeext && {
22028 test "$cross_compiling" = yes ||
22029 $as_test_x conftest$ac_exeext
22031 ac_cv_lib_des_des_cbc_encrypt=yes
22033 $as_echo "$as_me: failed program was
:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22036 ac_cv_lib_des_des_cbc_encrypt=no
22039 rm -rf conftest.dSYM
22040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22041 conftest$ac_exeext conftest.$ac_ext
22042 LIBS=$ac_check_lib_save_LIBS
22044 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22045 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22046 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22047 cat >>confdefs.h <<_ACEOF
22048 #define HAVE_LIBDES 1
22058 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22059 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22060 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22061 $as_echo_n "(cached
) " >&6
22063 ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lkrb4 $LIBS"
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22072 /* Override any GCC internal prototype to avoid an error.
22073 Use char because int might match the return type of a GCC
22074 builtin and then its argument prototype would still apply. */
22078 char krb_get_cred ();
22082 return krb_get_cred ();
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22094 $as_echo "$ac_try_echo") >&5
22095 (eval "$ac_link") 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22101 (exit $ac_status); } && {
22102 test -z "$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22104 } && test -s conftest$ac_exeext && {
22105 test "$cross_compiling" = yes ||
22106 $as_test_x conftest$ac_exeext
22108 ac_cv_lib_krb4_krb_get_cred=yes
22110 $as_echo "$as_me: failed program was
:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ac_cv_lib_krb4_krb_get_cred=no
22116 rm -rf conftest.dSYM
22117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22118 conftest$ac_exeext conftest.$ac_ext
22119 LIBS=$ac_check_lib_save_LIBS
22121 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22122 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22123 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125 #define HAVE_LIBKRB4 1
22128 LIBS="-lkrb4 $LIBS"
22132 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22133 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22134 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22135 $as_echo_n "(cached
) " >&6
22137 ac_check_lib_save_LIBS=$LIBS
22139 cat >conftest.$ac_ext <<_ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22152 char krb_get_cred ();
22156 return krb_get_cred ();
22161 rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169 (eval "$ac_link") 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest$ac_exeext && {
22179 test "$cross_compiling" = yes ||
22180 $as_test_x conftest$ac_exeext
22182 ac_cv_lib_krb_krb_get_cred=yes
22184 $as_echo "$as_me: failed program was
:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ac_cv_lib_krb_krb_get_cred=no
22190 rm -rf conftest.dSYM
22191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22192 conftest$ac_exeext conftest.$ac_ext
22193 LIBS=$ac_check_lib_save_LIBS
22195 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22196 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22197 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22198 cat >>confdefs.h <<_ACEOF
22199 #define HAVE_LIBKRB 1
22210 if test "${with_kerberos5}" != no; then
22212 for ac_header in krb5.h
22214 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22216 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22217 $as_echo_n "checking
for $ac_header...
" >&6; }
22218 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22219 $as_echo_n "(cached
) " >&6
22221 ac_res=`eval 'as_val=${'$as_ac_Header'}
22222 $as_echo "$as_val"'`
22223 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22224 $as_echo "$ac_res" >&6; }
22226 # Is the header compilable?
22227 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22228 $as_echo_n "checking
$ac_header usability...
" >&6; }
22229 cat >conftest.$ac_ext <<_ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22235 $ac_includes_default
22236 #include <$ac_header>
22238 rm -f conftest.$ac_objext
22239 if { (ac_try="$ac_compile"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22245 $as_echo "$ac_try_echo") >&5
22246 (eval "$ac_compile") 2>conftest.er1
22248 grep -v '^ *+' conftest.er1 >conftest.err
22250 cat conftest.err >&5
22251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest.$ac_objext; then
22256 ac_header_compiler=yes
22258 $as_echo "$as_me: failed program was
:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ac_header_compiler=no
22264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22266 $as_echo "$ac_header_compiler" >&6; }
22268 # Is the header present?
22269 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22270 $as_echo_n "checking
$ac_header presence...
" >&6; }
22271 cat >conftest.$ac_ext <<_ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 #include <$ac_header>
22279 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
22293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22296 ac_header_preproc=yes
22298 $as_echo "$as_me: failed program was
:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ac_header_preproc=no
22304 rm -f conftest.err conftest.$ac_ext
22305 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22306 $as_echo "$ac_header_preproc" >&6; }
22308 # So? What about this header?
22309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22311 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22312 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22313 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22315 ac_header_preproc=yes
22318 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22319 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22320 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22321 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22322 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22323 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22324 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22325 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22326 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22328 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22329 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22333 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22334 $as_echo_n "checking
for $ac_header...
" >&6; }
22335 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22336 $as_echo_n "(cached
) " >&6
22338 eval "$as_ac_Header=\
$ac_header_preproc"
22340 ac_res=`eval 'as_val=${'$as_ac_Header'}
22341 $as_echo "$as_val"'`
22342 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22343 $as_echo "$ac_res" >&6; }
22346 if test `eval 'as_val=${'$as_ac_Header'}
22347 $as_echo "$as_val"'` = yes; then
22348 cat >>confdefs.h <<_ACEOF
22349 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22351 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22352 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22353 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22354 $as_echo_n "(cached
) " >&6
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22367 static krb5_error ac_aggr;
22374 rm -f conftest.$ac_objext
22375 if { (ac_try="$ac_compile"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22380 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22392 ac_cv_member_krb5_error_text=yes
22394 $as_echo "$as_me: failed program was
:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22408 static krb5_error ac_aggr;
22409 if (sizeof ac_aggr.text)
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22421 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22422 $as_echo "$ac_try_echo") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22425 grep -v '^ *+' conftest.er1 >conftest.err
22427 cat conftest.err >&5
22428 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_cv_member_krb5_error_text=yes
22435 $as_echo "$as_me: failed program was
:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_cv_member_krb5_error_text=no
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22447 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22448 if test $ac_cv_member_krb5_error_text = yes; then
22450 cat >>confdefs.h <<_ACEOF
22451 #define HAVE_KRB5_ERROR_TEXT 1
22456 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22457 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22458 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22459 $as_echo_n "(cached
) " >&6
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22472 static krb5_error ac_aggr;
22473 if (ac_aggr.e_text)
22479 rm -f conftest.$ac_objext
22480 if { (ac_try="$ac_compile"
22481 case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22485 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22486 $as_echo "$ac_try_echo") >&5
22487 (eval "$ac_compile") 2>conftest.er1
22489 grep -v '^ *+' conftest.er1 >conftest.err
22491 cat conftest.err >&5
22492 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22493 (exit $ac_status); } && {
22494 test -z "$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 } && test -s conftest.$ac_objext; then
22497 ac_cv_member_krb5_error_e_text=yes
22499 $as_echo "$as_me: failed program was
:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 cat >conftest.$ac_ext <<_ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22513 static krb5_error ac_aggr;
22514 if (sizeof ac_aggr.e_text)
22520 rm -f conftest.$ac_objext
22521 if { (ac_try="$ac_compile"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22526 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22527 $as_echo "$ac_try_echo") >&5
22528 (eval "$ac_compile") 2>conftest.er1
22530 grep -v '^ *+' conftest.er1 >conftest.err
22532 cat conftest.err >&5
22533 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22534 (exit $ac_status); } && {
22535 test -z "$ac_c_werror_flag" ||
22536 test ! -s conftest.err
22537 } && test -s conftest.$ac_objext; then
22538 ac_cv_member_krb5_error_e_text=yes
22540 $as_echo "$as_me: failed program was
:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 ac_cv_member_krb5_error_e_text=no
22546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22552 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22553 if test $ac_cv_member_krb5_error_e_text = yes; then
22555 cat >>confdefs.h <<_ACEOF
22556 #define HAVE_KRB5_ERROR_E_TEXT 1
22568 for ac_header in des.h
22570 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22571 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22572 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22573 $as_echo_n "checking
for $ac_header...
" >&6; }
22574 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22575 $as_echo_n "(cached
) " >&6
22577 ac_res=`eval 'as_val=${'$as_ac_Header'}
22578 $as_echo "$as_val"'`
22579 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22580 $as_echo "$ac_res" >&6; }
22582 # Is the header compilable?
22583 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22584 $as_echo_n "checking
$ac_header usability...
" >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 $ac_includes_default
22592 #include <$ac_header>
22594 rm -f conftest.$ac_objext
22595 if { (ac_try="$ac_compile"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22600 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22601 $as_echo "$ac_try_echo") >&5
22602 (eval "$ac_compile") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest.$ac_objext; then
22612 ac_header_compiler=yes
22614 $as_echo "$as_me: failed program was
:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_header_compiler=no
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22622 $as_echo "$ac_header_compiler" >&6; }
22624 # Is the header present?
22625 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22626 $as_echo_n "checking
$ac_header presence...
" >&6; }
22627 cat >conftest.$ac_ext <<_ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 #include <$ac_header>
22635 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22636 case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22641 $as_echo "$ac_try_echo") >&5
22642 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22644 grep -v '^ *+' conftest.er1 >conftest.err
22646 cat conftest.err >&5
22647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22648 (exit $ac_status); } >/dev/null && {
22649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22652 ac_header_preproc=yes
22654 $as_echo "$as_me: failed program was
:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_header_preproc=no
22660 rm -f conftest.err conftest.$ac_ext
22661 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22662 $as_echo "$ac_header_preproc" >&6; }
22664 # So? What about this header?
22665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22667 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22668 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22669 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22671 ac_header_preproc=yes
22674 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22675 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22677 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22678 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22679 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22680 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22681 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22682 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22684 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22685 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22689 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22690 $as_echo_n "checking
for $ac_header...
" >&6; }
22691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22692 $as_echo_n "(cached
) " >&6
22694 eval "$as_ac_Header=\
$ac_header_preproc"
22696 ac_res=`eval 'as_val=${'$as_ac_Header'}
22697 $as_echo "$as_val"'`
22698 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22699 $as_echo "$ac_res" >&6; }
22702 if test `eval 'as_val=${'$as_ac_Header'}
22703 $as_echo "$as_val"'` = yes; then
22704 cat >>confdefs.h <<_ACEOF
22705 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22710 for ac_header in kerberosIV/des.h
22712 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22713 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22714 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22715 $as_echo_n "checking
for $ac_header...
" >&6; }
22716 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22717 $as_echo_n "(cached
) " >&6
22719 ac_res=`eval 'as_val=${'$as_ac_Header'}
22720 $as_echo "$as_val"'`
22721 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22722 $as_echo "$ac_res" >&6; }
22724 # Is the header compilable?
22725 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22726 $as_echo_n "checking
$ac_header usability...
" >&6; }
22727 cat >conftest.$ac_ext <<_ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 $ac_includes_default
22734 #include <$ac_header>
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22743 $as_echo "$ac_try_echo") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_header_compiler=yes
22756 $as_echo "$as_me: failed program was
:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_header_compiler=no
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22764 $as_echo "$ac_header_compiler" >&6; }
22766 # Is the header present?
22767 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22768 $as_echo_n "checking
$ac_header presence...
" >&6; }
22769 cat >conftest.$ac_ext <<_ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22775 #include <$ac_header>
22777 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22782 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22783 $as_echo "$ac_try_echo") >&5
22784 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22786 grep -v '^ *+' conftest.er1 >conftest.err
22788 cat conftest.err >&5
22789 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22790 (exit $ac_status); } >/dev/null && {
22791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22794 ac_header_preproc=yes
22796 $as_echo "$as_me: failed program was
:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ac_header_preproc=no
22802 rm -f conftest.err conftest.$ac_ext
22803 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22804 $as_echo "$ac_header_preproc" >&6; }
22806 # So? What about this header?
22807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22809 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22810 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22811 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22813 ac_header_preproc=yes
22816 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22817 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22818 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22819 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22820 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22821 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22822 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22823 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22824 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22826 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22827 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22831 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22832 $as_echo_n "checking
for $ac_header...
" >&6; }
22833 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22834 $as_echo_n "(cached
) " >&6
22836 eval "$as_ac_Header=\
$ac_header_preproc"
22838 ac_res=`eval 'as_val=${'$as_ac_Header'}
22839 $as_echo "$as_val"'`
22840 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22841 $as_echo "$ac_res" >&6; }
22844 if test `eval 'as_val=${'$as_ac_Header'}
22845 $as_echo "$as_val"'` = yes; then
22846 cat >>confdefs.h <<_ACEOF
22847 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22852 for ac_header in kerberos/des.h
22854 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22855 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22856 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22857 $as_echo_n "checking
for $ac_header...
" >&6; }
22858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22859 $as_echo_n "(cached
) " >&6
22861 ac_res=`eval 'as_val=${'$as_ac_Header'}
22862 $as_echo "$as_val"'`
22863 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22864 $as_echo "$ac_res" >&6; }
22866 # Is the header compilable?
22867 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22868 $as_echo_n "checking
$ac_header usability...
" >&6; }
22869 cat >conftest.$ac_ext <<_ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 $ac_includes_default
22876 #include <$ac_header>
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22885 $as_echo "$ac_try_echo") >&5
22886 (eval "$ac_compile") 2>conftest.er1
22888 grep -v '^ *+' conftest.er1 >conftest.err
22890 cat conftest.err >&5
22891 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22892 (exit $ac_status); } && {
22893 test -z "$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 } && test -s conftest.$ac_objext; then
22896 ac_header_compiler=yes
22898 $as_echo "$as_me: failed program was
:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_header_compiler=no
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22906 $as_echo "$ac_header_compiler" >&6; }
22908 # Is the header present?
22909 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22910 $as_echo_n "checking
$ac_header presence...
" >&6; }
22911 cat >conftest.$ac_ext <<_ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 #include <$ac_header>
22919 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22925 $as_echo "$ac_try_echo") >&5
22926 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22928 grep -v '^ *+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22932 (exit $ac_status); } >/dev/null && {
22933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22936 ac_header_preproc=yes
22938 $as_echo "$as_me: failed program was
:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_header_preproc=no
22944 rm -f conftest.err conftest.$ac_ext
22945 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22946 $as_echo "$ac_header_preproc" >&6; }
22948 # So? What about this header?
22949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22951 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22952 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22953 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22955 ac_header_preproc=yes
22958 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22959 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22960 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22961 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22962 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22963 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22964 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22965 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22966 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22967 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22968 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22969 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22973 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22974 $as_echo_n "checking
for $ac_header...
" >&6; }
22975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22976 $as_echo_n "(cached
) " >&6
22978 eval "$as_ac_Header=\
$ac_header_preproc"
22980 ac_res=`eval 'as_val=${'$as_ac_Header'}
22981 $as_echo "$as_val"'`
22982 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22983 $as_echo "$ac_res" >&6; }
22986 if test `eval 'as_val=${'$as_ac_Header'}
22987 $as_echo "$as_val"'` = yes; then
22988 cat >>confdefs.h <<_ACEOF
22989 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23005 for ac_header in krb.h
23007 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23008 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23009 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23010 $as_echo_n "checking
for $ac_header...
" >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23012 $as_echo_n "(cached
) " >&6
23014 ac_res=`eval 'as_val=${'$as_ac_Header'}
23015 $as_echo "$as_val"'`
23016 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23017 $as_echo "$ac_res" >&6; }
23019 # Is the header compilable?
23020 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23021 $as_echo_n "checking
$ac_header usability...
" >&6; }
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23029 #include <$ac_header>
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23038 $as_echo "$ac_try_echo") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23041 grep -v '^ *+' conftest.er1 >conftest.err
23043 cat conftest.err >&5
23044 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_header_compiler=yes
23051 $as_echo "$as_me: failed program was
:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_header_compiler=no
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23059 $as_echo "$ac_header_compiler" >&6; }
23061 # Is the header present?
23062 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23063 $as_echo_n "checking
$ac_header presence...
" >&6; }
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 #include <$ac_header>
23072 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23078 $as_echo "$ac_try_echo") >&5
23079 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23089 ac_header_preproc=yes
23091 $as_echo "$as_me: failed program was
:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_header_preproc=no
23097 rm -f conftest.err conftest.$ac_ext
23098 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23099 $as_echo "$ac_header_preproc" >&6; }
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23104 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23105 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23106 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23108 ac_header_preproc=yes
23111 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23112 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23113 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23114 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23115 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23116 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23118 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23122 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23126 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23127 $as_echo_n "checking
for $ac_header...
" >&6; }
23128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23129 $as_echo_n "(cached
) " >&6
23131 eval "$as_ac_Header=\
$ac_header_preproc"
23133 ac_res=`eval 'as_val=${'$as_ac_Header'}
23134 $as_echo "$as_val"'`
23135 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23136 $as_echo "$ac_res" >&6; }
23139 if test `eval 'as_val=${'$as_ac_Header'}
23140 $as_echo "$as_val"'` = yes; then
23141 cat >>confdefs.h <<_ACEOF
23142 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23147 for ac_header in kerberosIV/krb.h
23149 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23150 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23151 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23152 $as_echo_n "checking
for $ac_header...
" >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23154 $as_echo_n "(cached
) " >&6
23156 ac_res=`eval 'as_val=${'$as_ac_Header'}
23157 $as_echo "$as_val"'`
23158 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23159 $as_echo "$ac_res" >&6; }
23161 # Is the header compilable?
23162 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23163 $as_echo_n "checking
$ac_header usability...
" >&6; }
23164 cat >conftest.$ac_ext <<_ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 $ac_includes_default
23171 #include <$ac_header>
23173 rm -f conftest.$ac_objext
23174 if { (ac_try="$ac_compile"
23175 case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23179 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23180 $as_echo "$ac_try_echo") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23183 grep -v '^ *+' conftest.er1 >conftest.err
23185 cat conftest.err >&5
23186 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.$ac_objext; then
23191 ac_header_compiler=yes
23193 $as_echo "$as_me: failed program was
:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ac_header_compiler=no
23199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23201 $as_echo "$ac_header_compiler" >&6; }
23203 # Is the header present?
23204 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23205 $as_echo_n "checking
$ac_header presence...
" >&6; }
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <$ac_header>
23214 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23227 (exit $ac_status); } >/dev/null && {
23228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23231 ac_header_preproc=yes
23233 $as_echo "$as_me: failed program was
:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 ac_header_preproc=no
23239 rm -f conftest.err conftest.$ac_ext
23240 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23241 $as_echo "$ac_header_preproc" >&6; }
23243 # So? What about this header?
23244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23246 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23247 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23248 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23250 ac_header_preproc=yes
23253 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23254 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23255 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23256 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23257 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23258 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23259 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23260 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23261 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23263 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23264 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23268 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23269 $as_echo_n "checking
for $ac_header...
" >&6; }
23270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23271 $as_echo_n "(cached
) " >&6
23273 eval "$as_ac_Header=\
$ac_header_preproc"
23275 ac_res=`eval 'as_val=${'$as_ac_Header'}
23276 $as_echo "$as_val"'`
23277 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23278 $as_echo "$ac_res" >&6; }
23281 if test `eval 'as_val=${'$as_ac_Header'}
23282 $as_echo "$as_val"'` = yes; then
23283 cat >>confdefs.h <<_ACEOF
23284 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23289 for ac_header in kerberos/krb.h
23291 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23292 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23293 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23294 $as_echo_n "checking
for $ac_header...
" >&6; }
23295 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23296 $as_echo_n "(cached
) " >&6
23298 ac_res=`eval 'as_val=${'$as_ac_Header'}
23299 $as_echo "$as_val"'`
23300 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23301 $as_echo "$ac_res" >&6; }
23303 # Is the header compilable?
23304 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23305 $as_echo_n "checking
$ac_header usability...
" >&6; }
23306 cat >conftest.$ac_ext <<_ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 $ac_includes_default
23313 #include <$ac_header>
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23322 $as_echo "$ac_try_echo") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23325 grep -v '^ *+' conftest.er1 >conftest.err
23327 cat conftest.err >&5
23328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_header_compiler=yes
23335 $as_echo "$as_me: failed program was
:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23338 ac_header_compiler=no
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23342 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23343 $as_echo "$ac_header_compiler" >&6; }
23345 # Is the header present?
23346 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23347 $as_echo_n "checking
$ac_header presence...
" >&6; }
23348 cat >conftest.$ac_ext <<_ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 #include <$ac_header>
23356 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23357 case "(($ac_try" in
23358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 *) ac_try_echo=$ac_try;;
23361 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23362 $as_echo "$ac_try_echo") >&5
23363 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23365 grep -v '^ *+' conftest.er1 >conftest.err
23367 cat conftest.err >&5
23368 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23369 (exit $ac_status); } >/dev/null && {
23370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23371 test ! -s conftest.err
23373 ac_header_preproc=yes
23375 $as_echo "$as_me: failed program was
:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23378 ac_header_preproc=no
23381 rm -f conftest.err conftest.$ac_ext
23382 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23383 $as_echo "$ac_header_preproc" >&6; }
23385 # So? What about this header?
23386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23388 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23389 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23390 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23392 ac_header_preproc=yes
23395 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23396 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23397 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23398 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23399 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23400 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23401 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23402 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23403 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23405 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23406 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23410 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23411 $as_echo_n "checking
for $ac_header...
" >&6; }
23412 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23413 $as_echo_n "(cached
) " >&6
23415 eval "$as_ac_Header=\
$ac_header_preproc"
23417 ac_res=`eval 'as_val=${'$as_ac_Header'}
23418 $as_echo "$as_val"'`
23419 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23420 $as_echo "$ac_res" >&6; }
23423 if test `eval 'as_val=${'$as_ac_Header'}
23424 $as_echo "$as_val"'` = yes; then
23425 cat >>confdefs.h <<_ACEOF
23426 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23443 for ac_header in com_err.h
23445 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23446 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23447 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23448 $as_echo_n "checking
for $ac_header...
" >&6; }
23449 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23450 $as_echo_n "(cached
) " >&6
23452 ac_res=`eval 'as_val=${'$as_ac_Header'}
23453 $as_echo "$as_val"'`
23454 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23455 $as_echo "$ac_res" >&6; }
23457 # Is the header compilable?
23458 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23459 $as_echo_n "checking
$ac_header usability...
" >&6; }
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23467 #include <$ac_header>
23469 rm -f conftest.$ac_objext
23470 if { (ac_try="$ac_compile"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23476 $as_echo "$ac_try_echo") >&5
23477 (eval "$ac_compile") 2>conftest.er1
23479 grep -v '^ *+' conftest.er1 >conftest.err
23481 cat conftest.err >&5
23482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23483 (exit $ac_status); } && {
23484 test -z "$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 } && test -s conftest.$ac_objext; then
23487 ac_header_compiler=yes
23489 $as_echo "$as_me: failed program was
:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 ac_header_compiler=no
23495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23496 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23497 $as_echo "$ac_header_compiler" >&6; }
23499 # Is the header present?
23500 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23501 $as_echo_n "checking
$ac_header presence...
" >&6; }
23502 cat >conftest.$ac_ext <<_ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 #include <$ac_header>
23510 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23515 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23516 $as_echo "$ac_try_echo") >&5
23517 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23519 grep -v '^ *+' conftest.er1 >conftest.err
23521 cat conftest.err >&5
23522 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23523 (exit $ac_status); } >/dev/null && {
23524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23527 ac_header_preproc=yes
23529 $as_echo "$as_me: failed program was
:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ac_header_preproc=no
23535 rm -f conftest.err conftest.$ac_ext
23536 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23537 $as_echo "$ac_header_preproc" >&6; }
23539 # So? What about this header?
23540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23542 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23543 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23544 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23546 ac_header_preproc=yes
23549 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23550 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23551 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23552 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23553 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23554 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23555 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23556 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23557 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23559 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23560 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23564 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23565 $as_echo_n "checking
for $ac_header...
" >&6; }
23566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23567 $as_echo_n "(cached
) " >&6
23569 eval "$as_ac_Header=\
$ac_header_preproc"
23571 ac_res=`eval 'as_val=${'$as_ac_Header'}
23572 $as_echo "$as_val"'`
23573 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23574 $as_echo "$ac_res" >&6; }
23577 if test `eval 'as_val=${'$as_ac_Header'}
23578 $as_echo "$as_val"'` = yes; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23589 # Solaris requires -lintl if you want strerror (which calls dgettext)
23590 # to return localized messages.
23592 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23593 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23594 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23595 $as_echo_n "(cached
) " >&6
23597 ac_check_lib_save_LIBS=$LIBS
23598 LIBS="-lintl $LIBS"
23599 cat >conftest.$ac_ext <<_ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23606 /* Override any GCC internal prototype to avoid an error.
23607 Use char because int might match the return type of a GCC
23608 builtin and then its argument prototype would still apply. */
23616 return dgettext ();
23621 rm -f conftest.$ac_objext conftest$ac_exeext
23622 if { (ac_try="$ac_link"
23623 case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23627 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23628 $as_echo "$ac_try_echo") >&5
23629 (eval "$ac_link") 2>conftest.er1
23631 grep -v '^ *+' conftest.er1 >conftest.err
23633 cat conftest.err >&5
23634 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23635 (exit $ac_status); } && {
23636 test -z "$ac_c_werror_flag" ||
23637 test ! -s conftest.err
23638 } && test -s conftest$ac_exeext && {
23639 test "$cross_compiling" = yes ||
23640 $as_test_x conftest$ac_exeext
23642 ac_cv_lib_intl_dgettext=yes
23644 $as_echo "$as_me: failed program was
:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23647 ac_cv_lib_intl_dgettext=no
23650 rm -rf conftest.dSYM
23651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23652 conftest$ac_exeext conftest.$ac_ext
23653 LIBS=$ac_check_lib_save_LIBS
23655 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23656 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23657 if test $ac_cv_lib_intl_dgettext = yes; then
23658 cat >>confdefs.h <<_ACEOF
23659 #define HAVE_LIBINTL 1
23662 LIBS="-lintl $LIBS"
23667 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23668 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23669 if test "${emacs_cv_localtime_cache+set}" = set; then
23670 $as_echo_n "(cached
) " >&6
23672 if test x$ac_cv_func_tzset = xyes; then
23673 if test "$cross_compiling" = yes; then
23674 # If we have tzset, assume the worst when cross-compiling.
23675 emacs_cv_localtime_cache=yes
23677 cat >conftest.$ac_ext <<_ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h. */
23684 extern char **environ;
23688 for (to = from = environ; (*to = *from); from++)
23689 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23692 char TZ_GMT0[] = "TZ
=GMT0
";
23693 char TZ_PST8[] = "TZ
=PST8
";
23696 time_t now = time ((time_t *) 0);
23697 int hour_GMT0, hour_unset;
23698 if (putenv (TZ_GMT0) != 0)
23700 hour_GMT0 = localtime (&now)->tm_hour;
23702 hour_unset = localtime (&now)->tm_hour;
23703 if (putenv (TZ_PST8) != 0)
23705 if (localtime (&now)->tm_hour == hour_GMT0)
23708 if (localtime (&now)->tm_hour != hour_unset)
23713 rm -f conftest$ac_exeext
23714 if { (ac_try="$ac_link"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23719 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23720 $as_echo "$ac_try_echo") >&5
23721 (eval "$ac_link") 2>&5
23723 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23725 { (case "(($ac_try" in
23726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23729 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23730 $as_echo "$ac_try_echo") >&5
23731 (eval "$ac_try") 2>&5
23733 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23734 (exit $ac_status); }; }; then
23735 emacs_cv_localtime_cache=no
23737 $as_echo "$as_me: program exited with status
$ac_status" >&5
23738 $as_echo "$as_me: failed program was
:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23741 ( exit $ac_status )
23742 emacs_cv_localtime_cache=yes
23744 rm -rf conftest.dSYM
23745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23750 # If we lack tzset, report that localtime does not cache TZ,
23751 # since we can't invalidate the cache if we don't have tzset.
23752 emacs_cv_localtime_cache=no
23755 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
23756 $as_echo "$emacs_cv_localtime_cache" >&6; }
23757 if test $emacs_cv_localtime_cache = yes; then
23759 cat >>confdefs.h <<\_ACEOF
23760 #define LOCALTIME_CACHE 1
23765 if test "x
$HAVE_TIMEVAL" = xyes; then
23767 for ac_func in gettimeofday
23769 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23770 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
23771 $as_echo_n "checking
for $ac_func...
" >&6; }
23772 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23773 $as_echo_n "(cached
) " >&6
23775 cat >conftest.$ac_ext <<_ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h. */
23781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23783 #define $ac_func innocuous_$ac_func
23785 /* System header to define __stub macros and hopefully few prototypes,
23786 which can conflict with char $ac_func (); below.
23787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23788 <limits.h> exists even on freestanding compilers. */
23791 # include <limits.h>
23793 # include <assert.h>
23798 /* Override any GCC internal prototype to avoid an error.
23799 Use char because int might match the return type of a GCC
23800 builtin and then its argument prototype would still apply. */
23805 /* The GNU C library defines this for functions which it implements
23806 to always fail with ENOSYS. Some functions are actually named
23807 something starting with __ and the normal name is an alias. */
23808 #if defined __stub_$ac_func || defined __stub___$ac_func
23815 return $ac_func ();
23820 rm -f conftest.$ac_objext conftest$ac_exeext
23821 if { (ac_try="$ac_link"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23827 $as_echo "$ac_try_echo") >&5
23828 (eval "$ac_link") 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23834 (exit $ac_status); } && {
23835 test -z "$ac_c_werror_flag" ||
23836 test ! -s conftest.err
23837 } && test -s conftest$ac_exeext && {
23838 test "$cross_compiling" = yes ||
23839 $as_test_x conftest$ac_exeext
23841 eval "$as_ac_var=yes"
23843 $as_echo "$as_me: failed program was
:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23846 eval "$as_ac_var=no
"
23849 rm -rf conftest.dSYM
23850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23851 conftest$ac_exeext conftest.$ac_ext
23853 ac_res=`eval 'as_val=${'$as_ac_var'}
23854 $as_echo "$as_val"'`
23855 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23856 $as_echo "$ac_res" >&6; }
23857 if test `eval 'as_val=${'$as_ac_var'}
23858 $as_echo "$as_val"'` = yes; then
23859 cat >>confdefs.h <<_ACEOF
23860 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23866 if test $ac_cv_func_gettimeofday = yes; then
23867 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
23868 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
23869 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23870 $as_echo_n "(cached
) " >&6
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23879 #ifdef TIME_WITH_SYS_TIME
23880 #include <sys/time.h>
23883 #ifdef HAVE_SYS_TIME_H
23884 #include <sys/time.h>
23892 struct timeval time;
23893 gettimeofday (&time, 0);
23898 rm -f conftest.$ac_objext
23899 if { (ac_try="$ac_compile"
23900 case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23905 $as_echo "$ac_try_echo") >&5
23906 (eval "$ac_compile") 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest.$ac_objext; then
23916 emacs_cv_gettimeofday_two_arguments=yes
23918 $as_echo "$as_me: failed program was
:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23921 emacs_cv_gettimeofday_two_arguments=no
23924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23926 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
23927 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23928 if test $emacs_cv_gettimeofday_two_arguments = no; then
23930 cat >>confdefs.h <<\_ACEOF
23931 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23939 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
23940 $as_echo_n "checking
for socket...
" >&6; }
23941 if test "${ac_cv_func_socket+set}" = set; then
23942 $as_echo_n "(cached
) " >&6
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23950 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23952 #define socket innocuous_socket
23954 /* System header to define __stub macros and hopefully few prototypes,
23955 which can conflict with char socket (); below.
23956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23957 <limits.h> exists even on freestanding compilers. */
23960 # include <limits.h>
23962 # include <assert.h>
23967 /* Override any GCC internal prototype to avoid an error.
23968 Use char because int might match the return type of a GCC
23969 builtin and then its argument prototype would still apply. */
23974 /* The GNU C library defines this for functions which it implements
23975 to always fail with ENOSYS. Some functions are actually named
23976 something starting with __ and the normal name is an alias. */
23977 #if defined __stub_socket || defined __stub___socket
23989 rm -f conftest.$ac_objext conftest$ac_exeext
23990 if { (ac_try="$ac_link"
23991 case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23996 $as_echo "$ac_try_echo") >&5
23997 (eval "$ac_link") 2>conftest.er1
23999 grep -v '^ *+' conftest.er1 >conftest.err
24001 cat conftest.err >&5
24002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24003 (exit $ac_status); } && {
24004 test -z "$ac_c_werror_flag" ||
24005 test ! -s conftest.err
24006 } && test -s conftest$ac_exeext && {
24007 test "$cross_compiling" = yes ||
24008 $as_test_x conftest$ac_exeext
24010 ac_cv_func_socket=yes
24012 $as_echo "$as_me: failed program was
:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 ac_cv_func_socket=no
24018 rm -rf conftest.dSYM
24019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24020 conftest$ac_exeext conftest.$ac_ext
24022 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24023 $as_echo "$ac_cv_func_socket" >&6; }
24024 if test $ac_cv_func_socket = yes; then
24030 if test $ok_so_far = yes; then
24031 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24032 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24033 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24034 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24035 $as_echo_n "(cached
) " >&6
24037 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24038 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24040 # Is the header compilable?
24041 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24042 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24043 cat >conftest.$ac_ext <<_ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 $ac_includes_default
24050 #include <netinet/in.h>
24052 rm -f conftest.$ac_objext
24053 if { (ac_try="$ac_compile"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24058 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060 (eval "$ac_compile") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1 >conftest.err
24064 cat conftest.err >&5
24065 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest.$ac_objext; then
24070 ac_header_compiler=yes
24072 $as_echo "$as_me: failed program was
:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 ac_header_compiler=no
24078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24080 $as_echo "$ac_header_compiler" >&6; }
24082 # Is the header present?
24083 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24084 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24085 cat >conftest.$ac_ext <<_ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 #include <netinet/in.h>
24093 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24098 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24099 $as_echo "$ac_try_echo") >&5
24100 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24102 grep -v '^ *+' conftest.er1 >conftest.err
24104 cat conftest.err >&5
24105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24106 (exit $ac_status); } >/dev/null && {
24107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24108 test ! -s conftest.err
24110 ac_header_preproc=yes
24112 $as_echo "$as_me: failed program was
:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24115 ac_header_preproc=no
24118 rm -f conftest.err conftest.$ac_ext
24119 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24120 $as_echo "$ac_header_preproc" >&6; }
24122 # So? What about this header?
24123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24125 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24126 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24127 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24128 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24129 ac_header_preproc=yes
24132 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24133 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24134 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24135 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24136 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24137 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24138 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24139 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24140 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24141 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24142 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24143 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24147 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24148 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24149 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24150 $as_echo_n "(cached
) " >&6
24152 ac_cv_header_netinet_in_h=$ac_header_preproc
24154 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24155 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24158 if test $ac_cv_header_netinet_in_h = yes; then
24166 if test $ok_so_far = yes; then
24167 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24168 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24169 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24170 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24171 $as_echo_n "(cached
) " >&6
24173 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24174 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24176 # Is the header compilable?
24177 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24178 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24179 cat >conftest.$ac_ext <<_ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>conftest.$ac_ext <<_ACEOF
24184 /* end confdefs.h. */
24185 $ac_includes_default
24186 #include <arpa/inet.h>
24188 rm -f conftest.$ac_objext
24189 if { (ac_try="$ac_compile"
24190 case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24194 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24195 $as_echo "$ac_try_echo") >&5
24196 (eval "$ac_compile") 2>conftest.er1
24198 grep -v '^ *+' conftest.er1 >conftest.err
24200 cat conftest.err >&5
24201 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24202 (exit $ac_status); } && {
24203 test -z "$ac_c_werror_flag" ||
24204 test ! -s conftest.err
24205 } && test -s conftest.$ac_objext; then
24206 ac_header_compiler=yes
24208 $as_echo "$as_me: failed program was
:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24211 ac_header_compiler=no
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24215 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24216 $as_echo "$ac_header_compiler" >&6; }
24218 # Is the header present?
24219 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24220 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 #include <arpa/inet.h>
24229 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24230 case "(($ac_try" in
24231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232 *) ac_try_echo=$ac_try;;
24234 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24235 $as_echo "$ac_try_echo") >&5
24236 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24238 grep -v '^ *+' conftest.er1 >conftest.err
24240 cat conftest.err >&5
24241 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24242 (exit $ac_status); } >/dev/null && {
24243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24244 test ! -s conftest.err
24246 ac_header_preproc=yes
24248 $as_echo "$as_me: failed program was
:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24251 ac_header_preproc=no
24254 rm -f conftest.err conftest.$ac_ext
24255 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24256 $as_echo "$ac_header_preproc" >&6; }
24258 # So? What about this header?
24259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24261 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24262 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24263 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24264 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24265 ac_header_preproc=yes
24268 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24269 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24270 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24271 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24272 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24273 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24274 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24275 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24276 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24277 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24278 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24279 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24283 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24284 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24285 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24286 $as_echo_n "(cached
) " >&6
24288 ac_cv_header_arpa_inet_h=$ac_header_preproc
24290 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24291 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24294 if test $ac_cv_header_arpa_inet_h = yes; then
24302 if test $ok_so_far = yes; then
24304 cat >>confdefs.h <<\_ACEOF
24305 #define HAVE_INET_SOCKETS 1
24311 for ac_header in sys/ioctl.h
24313 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24314 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24315 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24316 $as_echo_n "checking
for $ac_header...
" >&6; }
24317 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24318 $as_echo_n "(cached
) " >&6
24320 ac_res=`eval 'as_val=${'$as_ac_Header'}
24321 $as_echo "$as_val"'`
24322 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24323 $as_echo "$ac_res" >&6; }
24325 # Is the header compilable?
24326 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24327 $as_echo_n "checking
$ac_header usability...
" >&6; }
24328 cat >conftest.$ac_ext <<_ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h. */
24334 $ac_includes_default
24335 #include <$ac_header>
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest.$ac_objext; then
24355 ac_header_compiler=yes
24357 $as_echo "$as_me: failed program was
:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24360 ac_header_compiler=no
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24364 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24365 $as_echo "$ac_header_compiler" >&6; }
24367 # Is the header present?
24368 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24369 $as_echo_n "checking
$ac_header presence...
" >&6; }
24370 cat >conftest.$ac_ext <<_ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h. */
24376 #include <$ac_header>
24378 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24383 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24384 $as_echo "$ac_try_echo") >&5
24385 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24387 grep -v '^ *+' conftest.er1 >conftest.err
24389 cat conftest.err >&5
24390 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24391 (exit $ac_status); } >/dev/null && {
24392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24393 test ! -s conftest.err
24395 ac_header_preproc=yes
24397 $as_echo "$as_me: failed program was
:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24400 ac_header_preproc=no
24403 rm -f conftest.err conftest.$ac_ext
24404 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24405 $as_echo "$ac_header_preproc" >&6; }
24407 # So? What about this header?
24408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24410 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24411 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24412 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24414 ac_header_preproc=yes
24417 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24418 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24419 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24420 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24421 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24422 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24423 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24424 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24425 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24427 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24428 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24432 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24433 $as_echo_n "checking
for $ac_header...
" >&6; }
24434 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24435 $as_echo_n "(cached
) " >&6
24437 eval "$as_ac_Header=\
$ac_header_preproc"
24439 ac_res=`eval 'as_val=${'$as_ac_Header'}
24440 $as_echo "$as_val"'`
24441 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24442 $as_echo "$ac_res" >&6; }
24445 if test `eval 'as_val=${'$as_ac_Header'}
24446 $as_echo "$as_val"'` = yes; then
24447 cat >>confdefs.h <<_ACEOF
24448 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24456 if test -f /usr/lpp/X11/bin/smt.exp; then
24458 cat >>confdefs.h <<\_ACEOF
24459 #define HAVE_AIX_SMT_EXP 1
24464 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24465 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24466 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24467 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24468 $as_echo "yes" >&6; }
24470 cat >>confdefs.h <<\_ACEOF
24471 #define HAVE_DEV_PTMX 1
24475 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24476 $as_echo "no
" >&6; }
24479 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24480 $as_echo_n "checking
for pid_t...
" >&6; }
24481 if test "${ac_cv_type_pid_t+set}" = set; then
24482 $as_echo_n "(cached
) " >&6
24484 ac_cv_type_pid_t=no
24485 cat >conftest.$ac_ext <<_ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24495 if (sizeof (pid_t))
24501 rm -f conftest.$ac_objext
24502 if { (ac_try="$ac_compile"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24508 $as_echo "$ac_try_echo") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24515 (exit $ac_status); } && {
24516 test -z "$ac_c_werror_flag" ||
24517 test ! -s conftest.err
24518 } && test -s conftest.$ac_objext; then
24519 cat >conftest.$ac_ext <<_ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h. */
24525 $ac_includes_default
24529 if (sizeof ((pid_t)))
24535 rm -f conftest.$ac_objext
24536 if { (ac_try="$ac_compile"
24537 case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24541 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24542 $as_echo "$ac_try_echo") >&5
24543 (eval "$ac_compile") 2>conftest.er1
24545 grep -v '^ *+' conftest.er1 >conftest.err
24547 cat conftest.err >&5
24548 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24549 (exit $ac_status); } && {
24550 test -z "$ac_c_werror_flag" ||
24551 test ! -s conftest.err
24552 } && test -s conftest.$ac_objext; then
24555 $as_echo "$as_me: failed program was
:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24558 ac_cv_type_pid_t=yes
24561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563 $as_echo "$as_me: failed program was
:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24572 $as_echo "$ac_cv_type_pid_t" >&6; }
24573 if test $ac_cv_type_pid_t = yes; then
24577 cat >>confdefs.h <<_ACEOF
24584 for ac_header in vfork.h
24586 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24588 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24589 $as_echo_n "checking
for $ac_header...
" >&6; }
24590 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24591 $as_echo_n "(cached
) " >&6
24593 ac_res=`eval 'as_val=${'$as_ac_Header'}
24594 $as_echo "$as_val"'`
24595 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24596 $as_echo "$ac_res" >&6; }
24598 # Is the header compilable?
24599 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24600 $as_echo_n "checking
$ac_header usability...
" >&6; }
24601 cat >conftest.$ac_ext <<_ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h. */
24607 $ac_includes_default
24608 #include <$ac_header>
24610 rm -f conftest.$ac_objext
24611 if { (ac_try="$ac_compile"
24612 case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24616 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24617 $as_echo "$ac_try_echo") >&5
24618 (eval "$ac_compile") 2>conftest.er1
24620 grep -v '^ *+' conftest.er1 >conftest.err
24622 cat conftest.err >&5
24623 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24624 (exit $ac_status); } && {
24625 test -z "$ac_c_werror_flag" ||
24626 test ! -s conftest.err
24627 } && test -s conftest.$ac_objext; then
24628 ac_header_compiler=yes
24630 $as_echo "$as_me: failed program was
:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ac_header_compiler=no
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24638 $as_echo "$ac_header_compiler" >&6; }
24640 # Is the header present?
24641 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24642 $as_echo_n "checking
$ac_header presence...
" >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 #include <$ac_header>
24651 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24652 case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24656 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24657 $as_echo "$ac_try_echo") >&5
24658 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24660 grep -v '^ *+' conftest.er1 >conftest.err
24662 cat conftest.err >&5
24663 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24664 (exit $ac_status); } >/dev/null && {
24665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24666 test ! -s conftest.err
24668 ac_header_preproc=yes
24670 $as_echo "$as_me: failed program was
:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24673 ac_header_preproc=no
24676 rm -f conftest.err conftest.$ac_ext
24677 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24678 $as_echo "$ac_header_preproc" >&6; }
24680 # So? What about this header?
24681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24683 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24684 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24685 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24687 ac_header_preproc=yes
24690 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24691 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24692 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24693 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24694 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24695 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24696 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24697 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24698 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24700 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24701 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24705 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24706 $as_echo_n "checking
for $ac_header...
" >&6; }
24707 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24708 $as_echo_n "(cached
) " >&6
24710 eval "$as_ac_Header=\
$ac_header_preproc"
24712 ac_res=`eval 'as_val=${'$as_ac_Header'}
24713 $as_echo "$as_val"'`
24714 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24715 $as_echo "$ac_res" >&6; }
24718 if test `eval 'as_val=${'$as_ac_Header'}
24719 $as_echo "$as_val"'` = yes; then
24720 cat >>confdefs.h <<_ACEOF
24721 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24730 for ac_func in fork vfork
24732 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24733 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24734 $as_echo_n "checking
for $ac_func...
" >&6; }
24735 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24736 $as_echo_n "(cached
) " >&6
24738 cat >conftest.$ac_ext <<_ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24746 #define $ac_func innocuous_$ac_func
24748 /* System header to define __stub macros and hopefully few prototypes,
24749 which can conflict with char $ac_func (); below.
24750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24751 <limits.h> exists even on freestanding compilers. */
24754 # include <limits.h>
24756 # include <assert.h>
24761 /* Override any GCC internal prototype to avoid an error.
24762 Use char because int might match the return type of a GCC
24763 builtin and then its argument prototype would still apply. */
24768 /* The GNU C library defines this for functions which it implements
24769 to always fail with ENOSYS. Some functions are actually named
24770 something starting with __ and the normal name is an alias. */
24771 #if defined __stub_$ac_func || defined __stub___$ac_func
24778 return $ac_func ();
24783 rm -f conftest.$ac_objext conftest$ac_exeext
24784 if { (ac_try="$ac_link"
24785 case "(($ac_try" in
24786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24789 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24790 $as_echo "$ac_try_echo") >&5
24791 (eval "$ac_link") 2>conftest.er1
24793 grep -v '^ *+' conftest.er1 >conftest.err
24795 cat conftest.err >&5
24796 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24797 (exit $ac_status); } && {
24798 test -z "$ac_c_werror_flag" ||
24799 test ! -s conftest.err
24800 } && test -s conftest$ac_exeext && {
24801 test "$cross_compiling" = yes ||
24802 $as_test_x conftest$ac_exeext
24804 eval "$as_ac_var=yes"
24806 $as_echo "$as_me: failed program was
:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24809 eval "$as_ac_var=no
"
24812 rm -rf conftest.dSYM
24813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24814 conftest$ac_exeext conftest.$ac_ext
24816 ac_res=`eval 'as_val=${'$as_ac_var'}
24817 $as_echo "$as_val"'`
24818 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24819 $as_echo "$ac_res" >&6; }
24820 if test `eval 'as_val=${'$as_ac_var'}
24821 $as_echo "$as_val"'` = yes; then
24822 cat >>confdefs.h <<_ACEOF
24823 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24829 if test "x
$ac_cv_func_fork" = xyes; then
24830 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
24831 $as_echo_n "checking
for working fork...
" >&6; }
24832 if test "${ac_cv_func_fork_works+set}" = set; then
24833 $as_echo_n "(cached
) " >&6
24835 if test "$cross_compiling" = yes; then
24836 ac_cv_func_fork_works=cross
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 $ac_includes_default
24849 /* By Ruediger Kuhlmann. */
24850 return fork () < 0;
24856 rm -f conftest$ac_exeext
24857 if { (ac_try="$ac_link"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24862 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24863 $as_echo "$ac_try_echo") >&5
24864 (eval "$ac_link") 2>&5
24866 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24868 { (case "(($ac_try" in
24869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870 *) ac_try_echo=$ac_try;;
24872 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24873 $as_echo "$ac_try_echo") >&5
24874 (eval "$ac_try") 2>&5
24876 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24877 (exit $ac_status); }; }; then
24878 ac_cv_func_fork_works=yes
24880 $as_echo "$as_me: program exited with status
$ac_status" >&5
24881 $as_echo "$as_me: failed program was
:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 ( exit $ac_status )
24885 ac_cv_func_fork_works=no
24887 rm -rf conftest.dSYM
24888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24893 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
24894 $as_echo "$ac_cv_func_fork_works" >&6; }
24897 ac_cv_func_fork_works=$ac_cv_func_fork
24899 if test "x
$ac_cv_func_fork_works" = xcross; then
24901 *-*-amigaos* | *-*-msdosdjgpp*)
24902 # Override, as these systems have only a dummy fork() stub
24903 ac_cv_func_fork_works=no
24906 ac_cv_func_fork_works=yes
24909 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
24910 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
24912 ac_cv_func_vfork_works=$ac_cv_func_vfork
24913 if test "x
$ac_cv_func_vfork" = xyes; then
24914 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
24915 $as_echo_n "checking
for working vfork...
" >&6; }
24916 if test "${ac_cv_func_vfork_works+set}" = set; then
24917 $as_echo_n "(cached
) " >&6
24919 if test "$cross_compiling" = yes; then
24920 ac_cv_func_vfork_works=cross
24922 cat >conftest.$ac_ext <<_ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 /* Thanks to Paul Eggert for this test. */
24929 $ac_includes_default
24930 #include <sys/wait.h>
24931 #ifdef HAVE_VFORK_H
24932 # include <vfork.h>
24934 /* On some sparc systems, changes by the child to local and incoming
24935 argument registers are propagated back to the parent. The compiler
24936 is told about this with #include <vfork.h>, but some compilers
24937 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24938 static variable whose address is put into a register that is
24939 clobbered by the vfork. */
24942 sparc_address_test (int arg)
24944 sparc_address_test (arg) int arg;
24947 static pid_t child;
24965 pid_t parent = getpid ();
24968 sparc_address_test (0);
24973 /* Here is another test for sparc vfork register problems. This
24974 test uses lots of local variables, at least as many local
24975 variables as main has allocated so far including compiler
24976 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24977 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24978 reuse the register of parent for one of the local variables,
24979 since it will think that parent can't possibly be used any more
24980 in this routine. Assigning to the local variable will thus
24981 munge parent in the parent process. */
24983 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24984 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24985 /* Convince the compiler that p..p7 are live; otherwise, it might
24986 use the same hardware register for all 8 local variables. */
24987 if (p != p1 || p != p2 || p != p3 || p != p4
24988 || p != p5 || p != p6 || p != p7)
24991 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24992 from child file descriptors. If the child closes a descriptor
24993 before it execs or exits, this munges the parent's descriptor
24994 as well. Test for this by closing stdout in the child. */
24995 _exit(close(fileno(stdout)) != 0);
25000 while (wait(&status) != child)
25003 /* Was there some problem with vforking? */
25006 /* Did the child fail? (This shouldn't happen.) */
25009 /* Did the vfork/compiler bug occur? */
25010 || parent != getpid()
25012 /* Did the file descriptor bug occur? */
25013 || fstat(fileno(stdout), &st) != 0
25018 rm -f conftest$ac_exeext
25019 if { (ac_try="$ac_link"
25020 case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25024 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25025 $as_echo "$ac_try_echo") >&5
25026 (eval "$ac_link") 2>&5
25028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25030 { (case "(($ac_try" in
25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 *) ac_try_echo=$ac_try;;
25034 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25035 $as_echo "$ac_try_echo") >&5
25036 (eval "$ac_try") 2>&5
25038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25039 (exit $ac_status); }; }; then
25040 ac_cv_func_vfork_works=yes
25042 $as_echo "$as_me: program exited with status
$ac_status" >&5
25043 $as_echo "$as_me: failed program was
:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 ( exit $ac_status )
25047 ac_cv_func_vfork_works=no
25049 rm -rf conftest.dSYM
25050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25055 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25056 $as_echo "$ac_cv_func_vfork_works" >&6; }
25059 if test "x
$ac_cv_func_fork_works" = xcross; then
25060 ac_cv_func_vfork_works=$ac_cv_func_vfork
25061 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25062 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25065 if test "x
$ac_cv_func_vfork_works" = xyes; then
25067 cat >>confdefs.h <<\_ACEOF
25068 #define HAVE_WORKING_VFORK 1
25073 cat >>confdefs.h <<\_ACEOF
25078 if test "x
$ac_cv_func_fork_works" = xyes; then
25080 cat >>confdefs.h <<\_ACEOF
25081 #define HAVE_WORKING_FORK 1
25087 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25088 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25089 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25090 $as_echo_n "(cached
) " >&6
25092 cat >conftest.$ac_ext <<_ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h. */
25098 #include <langinfo.h>
25102 char* cs = nl_langinfo(CODESET);
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (ac_try="$ac_link"
25109 case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25114 $as_echo "$ac_try_echo") >&5
25115 (eval "$ac_link") 2>conftest.er1
25117 grep -v '^ *+' conftest.er1 >conftest.err
25119 cat conftest.err >&5
25120 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25121 (exit $ac_status); } && {
25122 test -z "$ac_c_werror_flag" ||
25123 test ! -s conftest.err
25124 } && test -s conftest$ac_exeext && {
25125 test "$cross_compiling" = yes ||
25126 $as_test_x conftest$ac_exeext
25128 emacs_cv_langinfo_codeset=yes
25130 $as_echo "$as_me: failed program was
:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25133 emacs_cv_langinfo_codeset=no
25136 rm -rf conftest.dSYM
25137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25138 conftest$ac_exeext conftest.$ac_ext
25141 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25142 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25143 if test $emacs_cv_langinfo_codeset = yes; then
25145 cat >>confdefs.h <<\_ACEOF
25146 #define HAVE_LANGINFO_CODESET 1
25151 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25152 $as_echo_n "checking
for size_t...
" >&6; }
25153 if test "${ac_cv_type_size_t+set}" = set; then
25154 $as_echo_n "(cached
) " >&6
25156 ac_cv_type_size_t=no
25157 cat >conftest.$ac_ext <<_ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163 $ac_includes_default
25167 if (sizeof (size_t))
25173 rm -f conftest.$ac_objext
25174 if { (ac_try="$ac_compile"
25175 case "(($ac_try" in
25176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177 *) ac_try_echo=$ac_try;;
25179 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25180 $as_echo "$ac_try_echo") >&5
25181 (eval "$ac_compile") 2>conftest.er1
25183 grep -v '^ *+' conftest.er1 >conftest.err
25185 cat conftest.err >&5
25186 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25187 (exit $ac_status); } && {
25188 test -z "$ac_c_werror_flag" ||
25189 test ! -s conftest.err
25190 } && test -s conftest.$ac_objext; then
25191 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 $ac_includes_default
25201 if (sizeof ((size_t)))
25207 rm -f conftest.$ac_objext
25208 if { (ac_try="$ac_compile"
25209 case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25213 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25214 $as_echo "$ac_try_echo") >&5
25215 (eval "$ac_compile") 2>conftest.er1
25217 grep -v '^ *+' conftest.er1 >conftest.err
25219 cat conftest.err >&5
25220 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25221 (exit $ac_status); } && {
25222 test -z "$ac_c_werror_flag" ||
25223 test ! -s conftest.err
25224 } && test -s conftest.$ac_objext; then
25227 $as_echo "$as_me: failed program was
:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_cv_type_size_t=yes
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 $as_echo "$as_me: failed program was
:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25243 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25244 $as_echo "$ac_cv_type_size_t" >&6; }
25245 if test $ac_cv_type_size_t = yes; then
25247 cat >>confdefs.h <<_ACEOF
25248 #define HAVE_SIZE_T 1
25255 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25256 $as_echo_n "checking
for mbstate_t...
" >&6; }
25257 if test "${ac_cv_type_mbstate_t+set}" = set; then
25258 $as_echo_n "(cached
) " >&6
25260 cat >conftest.$ac_ext <<_ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 $ac_includes_default
25267 # include <wchar.h>
25271 mbstate_t x; return sizeof x;
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25282 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25283 $as_echo "$ac_try_echo") >&5
25284 (eval "$ac_compile") 2>conftest.er1
25286 grep -v '^ *+' conftest.er1 >conftest.err
25288 cat conftest.err >&5
25289 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25290 (exit $ac_status); } && {
25291 test -z "$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 } && test -s conftest.$ac_objext; then
25294 ac_cv_type_mbstate_t=yes
25296 $as_echo "$as_me: failed program was
:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ac_cv_type_mbstate_t=no
25302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25304 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25305 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25306 if test $ac_cv_type_mbstate_t = yes; then
25308 cat >>confdefs.h <<\_ACEOF
25309 #define HAVE_MBSTATE_T 1
25314 cat >>confdefs.h <<\_ACEOF
25315 #define mbstate_t int
25320 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25321 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25322 if test "${emacs_cv_c_restrict+set}" = set; then
25323 $as_echo_n "(cached
) " >&6
25325 cat >conftest.$ac_ext <<_ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25331 void fred (int *restrict x);
25340 rm -f conftest.$ac_objext
25341 if { (ac_try="$ac_compile"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25346 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25347 $as_echo "$ac_try_echo") >&5
25348 (eval "$ac_compile") 2>conftest.er1
25350 grep -v '^ *+' conftest.er1 >conftest.err
25352 cat conftest.err >&5
25353 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25354 (exit $ac_status); } && {
25355 test -z "$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25357 } && test -s conftest.$ac_objext; then
25358 emacs_cv_c_restrict=yes
25360 $as_echo "$as_me: failed program was
:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 cat >conftest.$ac_ext <<_ACEOF
25366 cat confdefs.h >>conftest.$ac_ext
25367 cat >>conftest.$ac_ext <<_ACEOF
25368 /* end confdefs.h. */
25369 void fred (int *__restrict x);
25378 rm -f conftest.$ac_objext
25379 if { (ac_try="$ac_compile"
25380 case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25384 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25385 $as_echo "$ac_try_echo") >&5
25386 (eval "$ac_compile") 2>conftest.er1
25388 grep -v '^ *+' conftest.er1 >conftest.err
25390 cat conftest.err >&5
25391 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25392 (exit $ac_status); } && {
25393 test -z "$ac_c_werror_flag" ||
25394 test ! -s conftest.err
25395 } && test -s conftest.$ac_objext; then
25396 emacs_cv_c_restrict=__restrict
25398 $as_echo "$as_me: failed program was
:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25401 emacs_cv_c_restrict=no
25404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25409 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25410 $as_echo "$emacs_cv_c_restrict" >&6; }
25411 case "$emacs_cv_c_restrict" in
25412 yes) emacs_restrict=restrict;;
25413 no) emacs_restrict="";;
25414 *) emacs_restrict="$emacs_cv_c_restrict";;
25416 if test "$emacs_restrict" != __restrict; then
25418 cat >>confdefs.h <<_ACEOF
25419 #define __restrict $emacs_restrict
25424 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25425 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25426 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25427 $as_echo_n "(cached
) " >&6
25429 cat >conftest.$ac_ext <<_ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 void fred (int x[__restrict]);
25444 rm -f conftest.$ac_objext
25445 if { (ac_try="$ac_compile"
25446 case "(($ac_try" in
25447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25448 *) ac_try_echo=$ac_try;;
25450 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25451 $as_echo "$ac_try_echo") >&5
25452 (eval "$ac_compile") 2>conftest.er1
25454 grep -v '^ *+' conftest.er1 >conftest.err
25456 cat conftest.err >&5
25457 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25458 (exit $ac_status); } && {
25459 test -z "$ac_c_werror_flag" ||
25460 test ! -s conftest.err
25461 } && test -s conftest.$ac_objext; then
25462 emacs_cv_c_restrict_arr=yes
25464 $as_echo "$as_me: failed program was
:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 emacs_cv_c_restrict_arr=no
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25473 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25474 if test "$emacs_cv_c_restrict_arr" = yes; then
25476 cat >>confdefs.h <<\_ACEOF
25477 #define __restrict_arr __restrict
25484 # Set up the CFLAGS for real compilation, so we can substitute it.
25485 CFLAGS="$REAL_CFLAGS"
25486 CPPFLAGS="$REAL_CPPFLAGS"
25488 #### Find out which version of Emacs this is.
25489 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25490 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25491 if test x"${version}" = x; then
25492 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25493 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25494 { (exit 1); exit 1; }; }
25496 if test x"${version}" != x"$PACKAGE_VERSION"; then
25497 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25498 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25501 ### Specify what sort of things we'll be editing into Makefile and config.h.
25502 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25547 cat >>confdefs.h
<<_ACEOF
25548 #define EMACS_CONFIGURATION "${canonical}"
25552 cat >>confdefs.h
<<_ACEOF
25553 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25557 cat >>confdefs.h
<<_ACEOF
25558 #define config_machfile "${machfile}"
25562 cat >>confdefs.h
<<_ACEOF
25563 #define config_opsysfile "${opsysfile}"
25567 cat >>confdefs.h
<<_ACEOF
25568 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25572 cat >>confdefs.h
<<_ACEOF
25573 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25577 cat >>confdefs.h
<<_ACEOF
25578 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25582 cat >>confdefs.h
<<_ACEOF
25583 #define UNEXEC_SRC ${UNEXEC_SRC}
25587 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25589 cat >>confdefs.h
<<\_ACEOF
25590 #define HAVE_X_WINDOWS 1
25594 if test "${USE_X_TOOLKIT}" != "none" ; then
25596 cat >>confdefs.h
<<\_ACEOF
25597 #define USE_X_TOOLKIT 1
25600 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25602 cat >>confdefs.h
<<\_ACEOF
25603 #define USE_LUCID 1
25606 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25608 cat >>confdefs.h
<<\_ACEOF
25609 #define USE_MOTIF 1
25614 if test "${HAVE_X11}" = "yes" ; then
25616 cat >>confdefs.h
<<\_ACEOF
25621 if test "${HAVE_MENUS}" = "yes" ; then
25623 cat >>confdefs.h
<<\_ACEOF
25624 #define HAVE_MENUS 1
25628 if test "${GNU_MALLOC}" = "yes" ; then
25630 cat >>confdefs.h
<<\_ACEOF
25631 #define GNU_MALLOC 1
25635 if test "${REL_ALLOC}" = "yes" ; then
25637 cat >>confdefs.h
<<\_ACEOF
25638 #define REL_ALLOC 1
25648 #### Report on what we decided to do.
25649 #### Report GTK as a toolkit, even if it doesn't use Xt.
25650 #### It makes printing result more understandable as using GTK sets
25651 #### toolkit_scroll_bars to yes by default.
25652 if test "${HAVE_GTK}" = "yes"; then
25657 Configured for \`${canonical}'.
25659 Where should the build process find the source code? ${srcdir}
25660 What operating system and machine description files should Emacs use?
25661 \`${opsysfile}' and \`${machfile}'
25662 What compiler should emacs be built with? ${CC} ${CFLAGS}
25663 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25664 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25665 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25666 What window system should Emacs use? ${window_system}
25667 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25669 if test -n "${x_includes}"; then
25670 echo " Where do we find X Windows header files? ${x_includes}"
25672 echo " Where do we find X Windows header files? Standard dirs"
25674 if test -n "${x_libraries}"; then
25675 echo " Where do we find X Windows libraries? ${x_libraries}"
25677 echo " Where do we find X Windows libraries? Standard dirs"
25680 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25681 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25682 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25683 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25684 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25685 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25686 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25687 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25688 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25689 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25691 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25692 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25693 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25694 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25696 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25699 if test $USE_XASSERTS = yes; then
25700 echo " Compiling with asserts turned on."
25701 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25706 if test "$USE_X_TOOLKIT" = GTK
; then
25707 case "$canonical" in
25709 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25710 will probably get a crash on startup. If this happens, please use another
25711 toolkit for Emacs. See etc/PROBLEMS for more information."
25716 if test "$HAVE_NS" = "yes"; then
25718 echo "You must run \"make install\" in order to test the built application.
25719 The installed application will go to nextstep/Emacs.app and can be
25720 run or moved from there."
25721 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25722 echo "The application will be fully self-contained."
25724 echo "The lisp resources for the application will be installed under ${prefix}.
25725 You may need to run \"make install\" with sudo. The application will fail
25726 to run if these resources are not installed."
25731 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25732 echo "D-Bus integration has been tested for GNU/Linux only."
25737 # Remove any trailing slashes in these variables.
25738 test "${prefix}" != NONE
&&
25739 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25740 test "${exec_prefix}" != NONE
&&
25741 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25743 # Now get this: Some word that is part of the ${srcdir} directory name
25744 # or the ${configuration} value might, just might, happen to be an
25745 # identifier like `sun4' or `i386' or something, and be predefined by
25746 # the C preprocessor to some helpful value like 1, or maybe the empty
25747 # string. Needless to say consequent macro substitutions are less
25748 # than conducive to the makefile finding the correct directory.
25749 cpp_undefs
="`echo $srcdir $configuration $canonical |
25750 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25751 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25753 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25754 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25755 ## from Makefile.c can correctly provide the arg `-traditional' to the
25758 cat >conftest.
$ac_ext <<_ACEOF
25761 cat confdefs.h
>>conftest.
$ac_ext
25762 cat >>conftest.
$ac_ext <<_ACEOF
25763 /* end confdefs.h. */
25766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25767 $EGREP "yes..yes" >/dev
/null
2>&1; then
25768 CPP_NEED_TRADITIONAL
=no
25770 CPP_NEED_TRADITIONAL
=yes
25775 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"
25777 ac_config_commands
="$ac_config_commands default"
25779 cat >confcache
<<\_ACEOF
25780 # This file is a shell script that caches the results of configure
25781 # tests run on this system so they can be shared between configure
25782 # scripts and configure runs, see configure's option --config-cache.
25783 # It is not useful on other systems. If it contains results you don't
25784 # want to keep, you may remove or edit it.
25786 # config.status only pays attention to the cache file if you give it
25787 # the --recheck option to rerun configure.
25789 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25791 # following values.
25795 # The following way of writing the cache mishandles newlines in values,
25796 # but we know of no workaround that is simple, portable, and efficient.
25797 # So, we kill variables containing newlines.
25798 # Ultrix sh set writes to stderr and can't be redirected directly,
25799 # and sets the high bit in the cache file unless we assign to the vars.
25801 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25802 eval ac_val
=\$
$ac_var
25806 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25807 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25810 _ | IFS | as_nl
) ;; #(
25811 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25812 *) $as_unset $ac_var ;;
25818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25819 *${as_nl}ac_space
=\
*)
25820 # `set' does not quote correctly, so add quotes (double-quote
25821 # substitution turns \\\\ into \\, and sed turns \\ into \).
25824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25827 # `set' quotes correctly as required by POSIX, so do not add quotes.
25828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25841 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25842 if test -w "$cache_file"; then
25843 test "x$cache_file" != "x/dev/null" &&
25844 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25845 $as_echo "$as_me: updating cache $cache_file" >&6;}
25846 cat confcache
>$cache_file
25848 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25849 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25854 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25855 # Let make expand exec_prefix.
25856 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25858 DEFS
=-DHAVE_CONFIG_H
25862 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25863 # 1. Remove the extension, and $U if already installed.
25864 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25865 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25867 # will be set to the directory where LIBOBJS objects are built.
25868 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25869 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25871 LIBOBJS
=$ac_libobjs
25873 LTLIBOBJS
=$ac_ltlibobjs
25877 : ${CONFIG_STATUS=./config.status}
25879 ac_clean_files_save
=$ac_clean_files
25880 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25881 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25882 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25883 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25885 # Generated by $as_me.
25886 # Run this file to recreate the current configuration.
25887 # Compiler output produced by configure, useful for debugging
25888 # configure, is in config.log if it exists.
25891 ac_cs_recheck=false
25893 SHELL=\${CONFIG_SHELL-$SHELL}
25896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25897 ## --------------------- ##
25898 ## M4sh Initialization. ##
25899 ## --------------------- ##
25901 # Be more Bourne compatible
25902 DUALCASE
=1; export DUALCASE
# for MKS sh
25903 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25906 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25907 # is contrary to our usage. Disable this feature.
25908 alias -g '${1+"$@"}'='"$@"'
25909 setopt NO_GLOB_SUBST
25911 case `(set -o) 2>/dev/null` in
25912 *posix
*) set -o posix
;;
25921 # Avoid depending upon Character Ranges.
25922 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25923 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25924 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25925 as_cr_digits
='0123456789'
25926 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25931 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25932 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25935 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25936 as_echo='printf %s
\n'
25937 as_echo_n='printf %s
'
25939 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25940 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25941 as_echo_n='/usr
/ucb
/echo -n'
25943 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25944 as_echo_n_body='eval
25948 expr "X$arg" : "X\\(.*\\)$as_nl";
25949 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25951 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25953 export as_echo_n_body
25954 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25956 export as_echo_body
25957 as_echo='sh
-c $as_echo_body as_echo
'
25960 # The user is always right.
25961 if test "${PATH_SEPARATOR+set}" != set; then
25963 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25964 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25969 # Support unset when possible.
25970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25978 # We need space, tab and new line, in precisely that order. Quoting is
25979 # there to prevent editors from complaining about space-tab.
25980 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25981 # splitting by setting IFS to empty value.)
25984 # Find who we are. Look in the path if we contain no directory separator.
25986 *[\\/]* ) as_myself=$0 ;;
25987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25988 for as_dir in $PATH
25991 test -z "$as_dir" && as_dir=.
25992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25998 # We did not find ourselves, most probably we were run as `sh COMMAND'
25999 # in which case we are not to be found in the path.
26000 if test "x$as_myself" = x
; then
26003 if test ! -f "$as_myself"; then
26004 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26005 { (exit 1); exit 1; }
26008 # Work around bugs in pre-3.0 UWIN ksh.
26009 for as_var
in ENV MAIL MAILPATH
26010 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26022 # Required to use basename.
26023 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26024 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26030 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26031 as_basename
=basename
26037 # Name of the executable.
26038 as_me
=`$as_basename -- "$0" ||
26039 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26040 X"$0" : 'X\(//\)$' \| \
26041 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26043 sed '/^.*\/\([^/][^/]*\)\/*$/{
26062 as_lineno_1
=$LINENO
26063 as_lineno_2
=$LINENO
26064 test "x$as_lineno_1" != "x$as_lineno_2" &&
26065 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26067 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26068 # uniformly replaced by the line number. The first 'sed' inserts a
26069 # line-number line after each line using $LINENO; the second 'sed'
26070 # does the real work. The second script uses 'N' to pair each
26071 # line-number line with the line containing $LINENO, and appends
26072 # trailing '-' during substitution so that $LINENO is not a special
26073 # case at line end.
26074 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26075 # scripts with optimization help from Paolo Bonzini. Blame Lee
26076 # E. McMahon (1931-1989) for sed's syntax. :-)
26088 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26091 ' >$as_me.lineno
&&
26092 chmod +x
"$as_me.lineno" ||
26093 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26094 { (exit 1); exit 1; }; }
26096 # Don't try to exec as it changes $[0], causing all sort of problems
26097 # (the dirname of $[0] is not the place where we might find the
26098 # original and so on. Autoconf is especially sensitive to this).
26099 .
"./$as_me.lineno"
26100 # Exit status is that of the last command.
26105 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26111 ECHO_C
= ECHO_N
= ECHO_T
=
26112 case `echo -n x` in
26114 case `echo 'x\c'` in
26115 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26121 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26122 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26128 rm -f conf$$ conf$$.exe conf$$.
file
26129 if test -d conf$$.dir
; then
26130 rm -f conf$$.dir
/conf$$.
file
26133 mkdir conf$$.dir
2>/dev
/null
26135 if (echo >conf$$.
file) 2>/dev
/null
; then
26136 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26138 # ... but there are two gotchas:
26139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26141 # In both cases, we have to default to `cp -p'.
26142 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26144 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26152 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26153 rmdir conf$$.dir
2>/dev
/null
26155 if mkdir
-p .
2>/dev
/null
; then
26158 test -d .
/-p && rmdir .
/-p
26162 if test -x / >/dev
/null
2>&1; then
26163 as_test_x
='test -x'
26165 if ls -dL / >/dev
/null
2>&1; then
26172 if test -d "$1"; then
26178 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26179 ???[sx]*):;;*)false;;esac;fi
26183 as_executable_p
=$as_test_x
26185 # Sed expression to map a string onto a valid CPP name.
26186 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26188 # Sed expression to map a string onto a valid variable name.
26189 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26194 # Save the log message, to keep $[0] and so on meaningful, and to
26195 # report actual input values of CONFIG_FILES etc. instead of their
26196 # values after options handling.
26198 This file was extended by emacs $as_me 23.1.50, which was
26199 generated by GNU Autoconf 2.62. Invocation command line was
26201 CONFIG_FILES = $CONFIG_FILES
26202 CONFIG_HEADERS = $CONFIG_HEADERS
26203 CONFIG_LINKS = $CONFIG_LINKS
26204 CONFIG_COMMANDS = $CONFIG_COMMANDS
26207 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26213 # Files that config.status was made for.
26214 config_files="$ac_config_files"
26215 config_headers="$ac_config_headers"
26216 config_commands="$ac_config_commands"
26220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26222 \`$as_me' instantiates files from templates according to the
26223 current configuration.
26225 Usage: $0 [OPTIONS] [FILE]...
26227 -h, --help print this help, then exit
26228 -V, --version print version number and configuration settings, then exit
26229 -q, --quiet do not print progress messages
26230 -d, --debug don't remove temporary files
26231 --recheck update $as_me by reconfiguring in the same conditions
26232 --file=FILE[:TEMPLATE]
26233 instantiate the configuration file FILE
26234 --header=FILE[:TEMPLATE]
26235 instantiate the configuration header FILE
26237 Configuration files:
26240 Configuration headers:
26243 Configuration commands:
26246 Report bugs to <bug-autoconf@gnu.org>."
26249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26251 emacs config.status 23.1.50
26252 configured by $0, generated by GNU Autoconf 2.62,
26253 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26255 Copyright (C) 2008 Free Software Foundation, Inc.
26256 This config.status script is free software; the Free Software Foundation
26257 gives unlimited permission to copy, distribute and modify it."
26262 test -n "\$AWK" || AWK=awk
26265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26266 # The default lists apply if the user does not specify any file.
26272 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26273 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26284 # Handling of the options.
26285 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26287 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26288 $as_echo "$ac_cs_version"; exit ;;
26289 --debug |
--debu |
--deb |
--de |
--d |
-d )
26291 --file |
--fil |
--fi |
--f )
26294 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26296 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26297 ac_need_defaults
=false
;;
26298 --header |
--heade |
--head |
--hea )
26301 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26303 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26304 ac_need_defaults
=false
;;
26306 # Conflict between --help and --header
26307 { $as_echo "$as_me: error: ambiguous option: $1
26308 Try \`$0 --help' for more information." >&2
26309 { (exit 1); exit 1; }; };;
26310 --help |
--hel |
-h )
26311 $as_echo "$ac_cs_usage"; exit ;;
26312 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26313 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26316 # This is an error.
26317 -*) { $as_echo "$as_me: error: unrecognized option: $1
26318 Try \`$0 --help' for more information." >&2
26319 { (exit 1); exit 1; }; } ;;
26321 *) ac_config_targets
="$ac_config_targets $1"
26322 ac_need_defaults
=false
;;
26328 ac_configure_extra_args
=
26330 if $ac_cs_silent; then
26332 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26337 if \$ac_cs_recheck; then
26338 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26341 CONFIG_SHELL='$SHELL'
26342 export CONFIG_SHELL
26347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26352 ## Running $as_me. ##
26358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26362 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26368 # Handling of arguments.
26369 for ac_config_target
in $ac_config_targets
26371 case $ac_config_target in
26372 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26373 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26374 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26375 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26376 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26377 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26378 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26379 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26380 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26381 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26382 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26383 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26384 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26386 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26387 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26388 { (exit 1); exit 1; }; };;
26393 # If the user did not use the arguments to specify the items to instantiate,
26394 # then the envvar interface is used. Set only those that are not.
26395 # We use the long form for the default assignment because of an extremely
26396 # bizarre bug on SunOS 4.1.3.
26397 if $ac_need_defaults; then
26398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26403 # Have a temporary directory for convenience. Make it in the build tree
26404 # simply because there is no reason against having it here, and in addition,
26405 # creating and moving files from /tmp can sometimes cause problems.
26406 # Hook for its removal unless debugging.
26407 # Note that there is a small window in which the directory will not be cleaned:
26408 # after its creation but before its name has been assigned to `$tmp'.
26412 trap 'exit_status=$?
26413 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26415 trap '{ (exit 1); exit 1; }' 1 2 13 15
26417 # Create a (secure) tmp directory for tmp files.
26420 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26421 test -n "$tmp" && test -d "$tmp"
26424 tmp
=.
/conf$$
-$RANDOM
26425 (umask 077 && mkdir
"$tmp")
26428 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26429 { (exit 1); exit 1; }
26432 # Set up the scripts for CONFIG_FILES section.
26433 # No need to generate them if there are no CONFIG_FILES.
26434 # This happens for instance with `./config.status config.h'.
26435 if test -n "$CONFIG_FILES"; then
26439 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26440 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26443 ac_cs_awk_cr
=$ac_cr
26446 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26451 echo "cat >conf$$subs.awk <<_ACEOF" &&
26452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26454 } >conf$$subs.sh ||
26455 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26456 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26457 { (exit 1); exit 1; }; }
26458 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26460 for ac_last_try in false false false false false :; do
26461 . ./conf$$subs.sh ||
26462 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26463 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26464 { (exit 1); exit 1; }; }
26466 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26468 elif $ac_last_try; then
26469 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26470 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26471 { (exit 1); exit 1; }; }
26473 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26476 rm -f conf$$subs.sh
26478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26479 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26483 s/^/S["/; s
/!.
*/"]=/
26493 s/\(.\{148\}\).*/\1/
26495 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26500 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26507 s/\(.\{148\}\).*/\1/
26509 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26513 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26518 ' <conf$$subs.awk | sed '
26523 ' >>$CONFIG_STATUS || ac_write_fail=1
26524 rm -f conf$$subs.awk
26525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26527 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26528 for (key in S) S_is_set[key] = 1
26534 nfields = split(line, field, "@
")
26536 len = length(field[1])
26537 for (i = 2; i < nfields; i++) {
26539 keylen = length(key)
26540 if (S_is_set[key]) {
26542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26543 len += length(value) + length(field[++i])
26554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26555 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26556 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26559 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26560 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26561 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26562 { (exit 1); exit 1; }; }
26565 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26566 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26567 # trailing colons and then remove the whole line if VPATH becomes empty
26568 # (actually we leave an empty line to preserve line numbers).
26569 if test "x
$srcdir" = x.; then
26570 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26571 s/:*\$(srcdir):*/:/
26572 s/:*\${srcdir}:*/:/
26574 s/^\([^=]*=[ ]*\):*/\1/
26580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26581 fi # test -n "$CONFIG_FILES"
26583 # Set up the scripts for CONFIG_HEADERS section.
26584 # No need to generate them if there are no CONFIG_HEADERS.
26585 # This happens for instance with `./config.status Makefile'.
26586 if test -n "$CONFIG_HEADERS"; then
26587 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26591 # Transform confdefs.h into an awk script `defines.awk', embedded as
26592 # here-document in config.status, that substitutes the proper values into
26593 # config.h.in to produce config.h.
26595 # Create a delimiter string that does not exist in confdefs.h, to ease
26596 # handling of long lines.
26598 for ac_last_try in false false :; do
26599 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26600 if test -z "$ac_t"; then
26602 elif $ac_last_try; then
26603 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26604 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26605 { (exit 1); exit 1; }; }
26607 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26611 # For the awk script, D is an array of macro values keyed by name,
26612 # likewise P contains macro parameters if any. Preserve backslash
26613 # newline sequences.
26615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26617 s/.\{148\}/&'"$ac_delim"'/g
26620 s/^[ ]*#[ ]*define[ ][ ]*/ /
26627 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26629 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26634 D["\
1"]=" \
3\\\\\\n
"\\/p
26636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26641 s/.\{148\}/&'"$ac_delim"'/g
26646 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26649 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26651 ' <confdefs.h | sed '
26652 s/'"$ac_delim"'/"\\\
26653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26656 for (key in D) D_is_set[key] = 1
26659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26661 split(line, arg, " ")
26662 if (arg[1] == "#") {
26666 defundef
= substr
(arg
[1], 2)
26669 split(mac1
, mac2
, "(") #)
26671 if (D_is_set
[macro
]) {
26672 # Preserve the white space surrounding the "#".
26673 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26674 print prefix
"define", macro P
[macro
] D
[macro
]
26677 # Replace #undef with comments. This is necessary, for example,
26678 # in the case of _POSIX_SOURCE, which is predefined and required
26679 # on some systems where configure will not decide to define it.
26680 if (defundef
== "undef") {
26681 print
"/*", line
, "*/"
26689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26690 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26691 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26692 { (exit 1); exit 1; }; }
26693 fi # test -n "$CONFIG_HEADERS"
26696 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26701 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26703 case $ac_mode$ac_tag in
26705 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26706 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26707 { (exit 1); exit 1; }; };;
26708 :[FH
]-) ac_tag
=-:-;;
26709 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26726 -) ac_f
="$tmp/stdin";;
26727 *) # Look for the file first in the build tree, then in the source tree
26728 # (if the path is not absolute). The absolute path cannot be DOS-style,
26729 # because $ac_f cannot contain `:'.
26733 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26735 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26736 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26737 { (exit 1); exit 1; }; };;
26739 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26740 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26743 # Let's still pretend it is `configure' which instantiates (i.e., don't
26744 # use $as_me), people would be surprised to read:
26745 # /* config.h. Generated by config.status. */
26746 configure_input
='Generated from '`
26747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26749 if test x
"$ac_file" != x-
; then
26750 configure_input
="$ac_file. $configure_input"
26751 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26752 $as_echo "$as_me: creating $ac_file" >&6;}
26754 # Neutralize special characters interpreted by sed in replacement strings.
26755 case $configure_input in #(
26756 *\
&* |
*\|
* |
*\\* )
26757 ac_sed_conf_input
=`$as_echo "$configure_input" |
26758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26759 *) ac_sed_conf_input
=$configure_input;;
26763 *:-:* |
*:-) cat >"$tmp/stdin" \
26764 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26765 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26766 { (exit 1); exit 1; }; } ;;
26771 ac_dir
=`$as_dirname -- "$ac_file" ||
26772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26773 X"$ac_file" : 'X\(//\)[^/]' \| \
26774 X"$ac_file" : 'X\(//\)$' \| \
26775 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26776 $as_echo X"$ac_file" |
26777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26781 /^X\(\/\/\)[^/].*/{
26796 -*) as_dir
=.
/$as_dir;;
26798 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26802 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26803 *) as_qdir
=$as_dir;;
26805 as_dirs
="'$as_qdir' $as_dirs"
26806 as_dir
=`$as_dirname -- "$as_dir" ||
26807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26808 X"$as_dir" : 'X\(//\)[^/]' \| \
26809 X"$as_dir" : 'X\(//\)$' \| \
26810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26811 $as_echo X"$as_dir" |
26812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26816 /^X\(\/\/\)[^/].*/{
26829 test -d "$as_dir" && break
26831 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26832 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26833 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26834 { (exit 1); exit 1; }; }; }
26838 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26840 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26841 # A ".." for each directory in $ac_dir_suffix.
26842 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26843 case $ac_top_builddir_sub in
26844 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26845 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26848 ac_abs_top_builddir
=$ac_pwd
26849 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26850 # for backward compatibility:
26851 ac_top_builddir
=$ac_top_build_prefix
26854 .
) # We are building in place.
26856 ac_top_srcdir
=$ac_top_builddir_sub
26857 ac_abs_top_srcdir
=$ac_pwd ;;
26858 [\\/]* | ?
:[\\/]* ) # Absolute name.
26859 ac_srcdir
=$srcdir$ac_dir_suffix;
26860 ac_top_srcdir
=$srcdir
26861 ac_abs_top_srcdir
=$srcdir ;;
26862 *) # Relative name.
26863 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26864 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26865 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26867 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26877 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26878 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26883 # If the template does not know about datarootdir, expand it.
26884 # FIXME: This hack should be removed a few years after 2.60.
26885 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26898 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26899 *datarootdir
*) ac_datarootdir_seen
=yes;;
26900 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26901 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26902 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26905 ac_datarootdir_hack='
26906 s&@datadir@&$datadir&g
26907 s&@docdir@&$docdir&g
26908 s&@infodir@&$infodir&g
26909 s&@localedir@&$localedir&g
26910 s&@mandir@&$mandir&g
26911 s&\\\${datarootdir}&$datarootdir&g' ;;
26915 # Neutralize VPATH when `$srcdir' = `.'.
26916 # Shell code in configure.ac might set extrasub.
26917 # FIXME: do we really want to maintain this feature?
26918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26919 ac_sed_extra="$ac_vpsub
26922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26924 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26925 s|@configure_input@|
$ac_sed_conf_input|
;t t
26926 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26927 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26928 s
&@srcdir@
&$ac_srcdir&;t t
26929 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26930 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26931 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26932 s
&@builddir@
&$ac_builddir&;t t
26933 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26934 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26935 s
&@INSTALL@
&$ac_INSTALL&;t t
26936 $ac_datarootdir_hack
26938 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26939 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26940 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26941 { (exit 1); exit 1; }; }
26943 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26944 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26946 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26947 which seems to be undefined. Please make sure it is defined." >&5
26948 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26949 which seems to be undefined. Please make sure it is defined." >&2;}
26953 -) cat "$tmp/out" && rm -f "$tmp/out";;
26954 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26956 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26957 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26958 { (exit 1); exit 1; }; }
26964 if test x"$ac_file" != x-; then
26966 $as_echo "/* $configure_input */" \
26967 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26968 } >"$tmp/config.h" \
26969 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26970 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26971 { (exit 1); exit 1; }; }
26972 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26973 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26974 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26977 mv "$tmp/config.h" "$ac_file" \
26978 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26979 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26980 { (exit 1); exit 1; }; }
26983 $as_echo "/* $configure_input */" \
26984 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26985 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26986 $as_echo "$as_me: error: could not create -" >&2;}
26987 { (exit 1); exit 1; }; }
26991 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26992 $as_echo "$as_me: executing $ac_file commands" >&6;}
26997 case $ac_file$ac_mode in
27000 ### Make the necessary directories, if they don't exist.
27001 for dir
in etc lisp
; do
27002 test -d ${dir} || mkdir
${dir}
27005 # Build src/Makefile from ${srcdir}/src/Makefile.c
27006 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27007 # This must be done after src/config.h is built, since we rely on that file.
27009 echo creating src
/epaths.h
27010 ${MAKE-make} epaths-force
27012 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27013 # `..' to `. .' unless invoked with -traditional
27015 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27016 CPPFLAGS
="$CPPFLAGS -traditional"
27019 echo creating lib-src
/Makefile
27021 rm -f junk.c junk1.c junk2.c
27022 sed -e '/start of cpp stuff/q' \
27023 < Makefile.c
> junk1.c
27024 sed -e '1,/start of cpp stuff/d'\
27025 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27026 < Makefile.c
> junk.c
27027 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27028 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27029 cat junk1.c junk2.c
> Makefile.new
27030 rm -f junk.c junk1.c junk2.c
27031 chmod 444 Makefile.new
27032 mv -f Makefile.new Makefile
27035 echo creating src
/Makefile
27037 rm -f junk.c junk1.c junk2.c
27038 sed -e '/start of cpp stuff/q' \
27039 < Makefile.c
> junk1.c
27040 sed -e '1,/start of cpp stuff/d'\
27041 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27042 < Makefile.c
> junk.c
27043 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27044 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27045 cat junk1.c junk2.c
> Makefile.new
27046 rm -f junk.c junk1.c junk2.c
27047 chmod 444 Makefile.new
27048 mv -f Makefile.new Makefile
27051 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27052 echo creating src
/.gdbinit
27053 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27062 { (exit 0); exit 0; }
27064 chmod +x
$CONFIG_STATUS
27065 ac_clean_files
=$ac_clean_files_save
27067 test $ac_write_fail = 0 ||
27068 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27069 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27070 { (exit 1); exit 1; }; }
27073 # configure is writing to config.log, and then calls config.status.
27074 # config.status does its own redirection, appending to config.log.
27075 # Unfortunately, on DOS this fails, as config.log is still kept open
27076 # by configure, so config.status won't be able to write to it; its
27077 # output is simply discarded. So we exec the FD to /dev/null,
27078 # effectively closing config.log, so it can be properly (re)opened and
27079 # appended to by config.status. When coming back to configure, we
27080 # need to make the FD available again.
27081 if test "$no_create" != yes; then
27083 ac_config_status_args
=
27084 test "$silent" = yes &&
27085 ac_config_status_args
="$ac_config_status_args --quiet"
27087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27090 # would make configure fail if this is the last instruction.
27091 $ac_cs_success ||
{ (exit 1); exit 1; }
27093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27094 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27095 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}