2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.60'
576 PACKAGE_STRING
='emacs 23.0.60'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
628 program_transform_name
722 x_default_search_path
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --x-includes=DIR X include files are
in DIR
1315 --x-libraries=DIR X library files are
in DIR
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --enable-carbon-app[=DIR
]
1333 specify
install directory
for Emacs.app on Mac OS X
1335 --disable-font-backend don
't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP
mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version
5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server
host
1352 --without-sound don
't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don
't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don
't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don
't compile with SVG image support
1362 --without-freetype don't use Freetype
for local font support
1363 --without-xft don
't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf
for OpenType font support
1365 --without-m17n-flt don
't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don
't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1371 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1373 --without-dbus don't compile with D-Bus support
1374 --without-makeinfo don
't require makeinfo for building manuals
1376 --with-pkg-config-prog=PATH
1377 Path to pkg-config for finding GTK and librsvg
1378 --with-x use the X Window System
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1389 XMKMF Path to xmkmf, Makefile generator for X Window System
1391 Use these variables to override the choices made by `configure' or to
help
1392 it to
find libraries and programs with nonstandard names
/locations.
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1401 test -d "$ac_dir" ||
continue
1405 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1407 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1412 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir
=$ac_pwd
1416 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir
=$ac_top_build_prefix
1421 .
) # We are building in place.
1423 ac_top_srcdir
=$ac_top_builddir_sub
1424 ac_abs_top_srcdir
=$ac_pwd ;;
1425 [\\/]* | ?
:[\\/]* ) # Absolute name.
1426 ac_srcdir
=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir
=$srcdir
1428 ac_abs_top_srcdir
=$srcdir ;;
1430 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1454 emacs configure
23.0.60
1455 generated by GNU Autoconf
2.61
1457 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1459 This configure
script is free software
; the Free Software Foundation
1460 gives unlimited permission to copy
, distribute and modify it.
1464 cat >config.log
<<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1468 It was created by emacs $as_me 23.0.60, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir
=.
1505 echo "PATH: $as_dir"
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1529 ac_must_keep_next
=false
1535 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1537 |
-silent |
--silent |
--silen |
--sile |
--sil)
1540 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1545 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true
; then
1547 ac_must_keep_next
=false
# Got value, back to normal.
1550 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1551 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1552 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1553 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 -* ) ac_must_keep_next
=true
;;
1561 ac_configure_args
="$ac_configure_args '$ac_arg'"
1566 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1567 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1585 # The following way of writing the cache mishandles newlines in values,
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1622 for ac_var in $ac_subst_vars
1624 eval ac_val=\$$ac_var
1626 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 echo "$ac_var='\''$ac_val'\''"
1632 if test -n "$ac_subst_files"; then
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1639 for ac_var
in $ac_subst_files
1641 eval ac_val
=\$
$ac_var
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 echo "$ac_var='\''$ac_val'\''"
1650 if test -s confdefs.h; then
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 for ac_signal
in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest
* confdefs.h
1676 # Predefined preprocessor variables.
1678 cat >>confdefs.h
<<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 cat >>confdefs.h
<<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 cat >>confdefs.h
<<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 cat >>confdefs.h
<<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 cat >>confdefs.h
<<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x
"$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE
; then
1708 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1710 set x
"$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1731 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1732 *) .
"./$cache_file";;
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1741 ac_header_list
="$ac_header_list sys/time.h"
1742 ac_header_list
="$ac_header_list unistd.h"
1743 ac_func_list
="$ac_func_list alarm"
1744 # Check that the precious variables saved in the cache have kept the same
1746 ac_cache_corrupted
=false
1747 for ac_var
in $ac_precious_vars; do
1748 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1749 eval ac_new_set
=\
$ac_env_${ac_var}_set
1750 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1751 eval ac_new_val
=\
$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted
=: ;;
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted
=: ;;
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1767 echo "$as_me: former value: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1769 echo "$as_me: current value: $ac_new_val" >&2;}
1770 ac_cache_corrupted
=:
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1776 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg
=$ac_var=$ac_new_val ;;
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1818 ac_cpp
='$CPP $CPPFLAGS'
1819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1824 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1828 test "$program_prefix" != NONE
&&
1829 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1830 # Use a double $ so make ignores it.
1831 test "$program_suffix" != NONE
&&
1832 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1833 # Double any \ or $. echo might interpret backslashes.
1834 # By default was `s,x,x', remove it if useless.
1835 cat <<\_ACEOF
>conftest.
sed
1836 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1838 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1842 lispdir
='${datadir}/emacs/${version}/lisp'
1843 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1844 '${datadir}/emacs/site-lisp'
1845 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1846 etcdir
='${datadir}/emacs/${version}/etc'
1847 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1848 docdir
='${datadir}/emacs/${version}/etc'
1849 gamedir
='${localstatedir}/games/emacs'
1856 # Check whether --with-pop was given.
1857 if test "${with_pop+set}" = set; then
1863 if test "$with_pop" = yes; then
1864 cat >>confdefs.h
<<\_ACEOF
1865 #define MAIL_USE_POP 1
1872 # Check whether --with-kerberos was given.
1873 if test "${with_kerberos+set}" = set; then
1874 withval
=$with_kerberos;
1879 if test "$with_kerberos" = yes; then
1880 cat >>confdefs.h
<<\_ACEOF
1888 # Check whether --with-kerberos5 was given.
1889 if test "${with_kerberos5+set}" = set; then
1890 withval
=$with_kerberos5;
1895 if test "${with_kerberos5}" = yes; then
1896 if test "${with_kerberos}" != yes; then
1898 cat >>confdefs.h
<<\_ACEOF
1904 cat >>confdefs.h
<<\_ACEOF
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval
=$with_hesiod;
1918 if test "$with_hesiod" = yes; then
1920 cat >>confdefs.h
<<\_ACEOF
1927 # Check whether --with-sound was given.
1928 if test "${with_sound+set}" = set; then
1929 withval
=$with_sound;
1936 # Check whether --with-sync-input was given.
1937 if test "${with_sync_input+set}" = set; then
1938 withval
=$with_sync_input;
1943 if test "$with_sync_input" = yes; then
1945 cat >>confdefs.h
<<\_ACEOF
1946 #define SYNC_INPUT 1
1952 # Check whether --with-x-toolkit was given.
1953 if test "${with_x_toolkit+set}" = set; then
1954 withval
=$with_x_toolkit; case "${withval}" in
1955 y | ye |
yes ) val
=gtk
;;
1957 l | lu | luc | luci | lucid
) val
=lucid
;;
1958 a |
at | ath | athe | athen | athena
) val
=athena
;;
1959 m | mo | mot | moti | motif
) val
=motif
;;
1960 g | gt | gtk
) val
=gtk
;;
1962 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1963 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1964 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1965 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1966 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1967 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1968 { (exit 1); exit 1; }; }
1977 # Check whether --with-xpm was given.
1978 if test "${with_xpm+set}" = set; then
1985 # Check whether --with-jpeg was given.
1986 if test "${with_jpeg+set}" = set; then
1993 # Check whether --with-tiff was given.
1994 if test "${with_tiff+set}" = set; then
2001 # Check whether --with-gif was given.
2002 if test "${with_gif+set}" = set; then
2009 # Check whether --with-png was given.
2010 if test "${with_png+set}" = set; then
2017 # Check whether --with-rsvg was given.
2018 if test "${with_rsvg+set}" = set; then
2026 # Check whether --with-freetype was given.
2027 if test "${with_freetype+set}" = set; then
2028 withval
=$with_freetype;
2034 # Check whether --with-xft was given.
2035 if test "${with_xft+set}" = set; then
2042 # Check whether --with-libotf was given.
2043 if test "${with_libotf+set}" = set; then
2044 withval
=$with_libotf;
2050 # Check whether --with-m17n-flt was given.
2051 if test "${with_m17n_flt+set}" = set; then
2052 withval
=$with_m17n_flt;
2059 # Check whether --with-toolkit-scroll-bars was given.
2060 if test "${with_toolkit_scroll_bars+set}" = set; then
2061 withval
=$with_toolkit_scroll_bars;
2063 with_toolkit_scroll_bars
=yes
2067 # Check whether --with-xaw3d was given.
2068 if test "${with_xaw3d+set}" = set; then
2069 withval
=$with_xaw3d;
2075 # Check whether --with-xim was given.
2076 if test "${with_xim+set}" = set; then
2083 # Check whether --with-carbon was given.
2084 if test "${with_carbon+set}" = set; then
2085 withval
=$with_carbon;
2092 # Check whether --with-gpm was given.
2093 if test "${with_gpm+set}" = set; then
2100 # Check whether --with-dbus was given.
2101 if test "${with_dbus+set}" = set; then
2108 ## For the times when you want to build Emacs but don't have
2109 ## a suitable makeinfo, and can live without the manuals.
2111 # Check whether --with-makeinfo was given.
2112 if test "${with_makeinfo+set}" = set; then
2113 withval
=$with_makeinfo;
2120 # Check whether --with-gtk was given.
2121 if test "${with_gtk+set}" = set; then
2122 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2123 specify a toolkit." >&5
2124 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&2;}
2126 { (exit 1); exit 1; }; }
2131 # Check whether --with-gcc was given.
2132 if test "${with_gcc+set}" = set; then
2133 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2134 variable to specify a compiler." >&5
2135 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-pkg-config-prog was given.
2143 if test "${with_pkg_config_prog+set}" = set; then
2144 withval
=$with_pkg_config_prog;
2147 if test "X${with_pkg_config_prog}" != X
; then
2148 if test "${with_pkg_config_prog}" != yes; then
2149 PKG_CONFIG
="${with_pkg_config_prog}"
2153 # Check whether --enable-carbon-app was given.
2154 if test "${enable_carbon_app+set}" = set; then
2155 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2159 ## Enabled by default.
2160 # Check whether --enable-font-backend was given.
2161 if test "${enable_font_backend+set}" = set; then
2162 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2164 USE_FONT_BACKEND
=yes
2168 # Check whether --enable-asserts was given.
2169 if test "${enable_asserts+set}" = set; then
2170 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2176 # Check whether --enable-maintainer-mode was given.
2177 if test "${enable_maintainer_mode+set}" = set; then
2178 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2180 USE_MAINTAINER_MODE
=no
2183 if test $USE_MAINTAINER_MODE = yes; then
2190 # Check whether --enable-locallisppath was given.
2191 if test "${enable_locallisppath+set}" = set; then
2192 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2194 elif test "${enableval}" != "yes"; then
2195 locallisppath
=${enableval}
2200 #### Make srcdir absolute, if it isn't already. It's important to
2201 #### avoid running the path through pwd unnecessarily, since pwd can
2202 #### give you automounter prefixes, which can go away. We do all this
2203 #### so Emacs can find its files when run uninstalled.
2204 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2209 ## We may be able to use the $PWD environment variable to make this
2210 ## absolute. But sometimes PWD is inaccurate.
2211 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2212 ## but that tested only for a well-formed and valid PWD,
2213 ## it did not object when PWD was well-formed and valid but just wrong.
2214 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2218 srcdir
="`(cd ${srcdir}; pwd)`"
2221 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2224 #### Check if the source directory already has a configured system in it.
2225 if test `pwd` != `(cd ${srcdir} && pwd)` \
2226 && test -f "${srcdir}/src/config.h" ; then
2227 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2228 as a build directory right now; it has been configured in its own
2229 right. To configure in another directory as well, you MUST
2230 use GNU make. If you do not have GNU make, then you must
2231 now do \`make distclean' in ${srcdir},
2232 and then run $0 again." >&5
2233 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2234 as a build directory right now; it has been configured in its own
2235 right. To configure in another directory as well, you MUST
2236 use GNU make. If you do not have GNU make, then you must
2237 now do \`make distclean' in ${srcdir},
2238 and then run $0 again." >&2;}
2241 #### Given the configuration name, set machfile and opsysfile to the
2242 #### names of the m/*.h and s/*.h files we should use.
2244 ### Canonicalize the configuration name.
2247 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2248 if test -f "$ac_dir/install-sh"; then
2250 ac_install_sh
="$ac_aux_dir/install-sh -c"
2252 elif test -f "$ac_dir/install.sh"; then
2254 ac_install_sh
="$ac_aux_dir/install.sh -c"
2256 elif test -f "$ac_dir/shtool"; then
2258 ac_install_sh
="$ac_aux_dir/shtool install -c"
2262 if test -z "$ac_aux_dir"; then
2263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2265 { (exit 1); exit 1; }; }
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277 # Make sure we can run config.sub.
2278 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2281 { (exit 1); exit 1; }; }
2283 { echo "$as_me:$LINENO: checking build system type" >&5
2284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2285 if test "${ac_cv_build+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_build_alias
=$build_alias
2289 test "x$ac_build_alias" = x
&&
2290 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2291 test "x$ac_build_alias" = x
&&
2292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2294 { (exit 1); exit 1; }; }
2295 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2302 echo "${ECHO_T}$ac_cv_build" >&6; }
2303 case $ac_cv_build in
2305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2306 echo "$as_me: error: invalid value of canonical build" >&2;}
2307 { (exit 1); exit 1; }; };;
2310 ac_save_IFS
=$IFS; IFS
='-'
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2320 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2323 { echo "$as_me:$LINENO: checking host system type" >&5
2324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2325 if test "${ac_cv_host+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test "x$host_alias" = x
; then
2329 ac_cv_host
=$ac_cv_build
2331 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2334 { (exit 1); exit 1; }; }
2338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2339 echo "${ECHO_T}$ac_cv_host" >&6; }
2342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2343 echo "$as_me: error: invalid value of canonical host" >&2;}
2344 { (exit 1); exit 1; }; };;
2347 ac_save_IFS
=$IFS; IFS
='-'
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2357 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2361 configuration
=${host_alias-${build_alias-$host}}
2365 ### If you add support for a new configuration, add code to this
2366 ### switch statement to recognize your configuration name and select
2367 ### the appropriate operating system and machine description files.
2369 ### You would hope that you could choose an m/*.h file pretty much
2370 ### based on the machine portion of the configuration name, and an s-
2371 ### file based on the operating system portion. However, it turns out
2372 ### that each m/*.h file is pretty manufacturer-specific - for
2373 ### example hp9000s300.h is a 68000 machine;
2374 ### mips.h, pmax.h are all MIPS
2375 ### machines. So we basically have to have a special case for each
2376 ### configuration name.
2378 ### As far as handling version numbers on operating systems is
2379 ### concerned, make sure things will fail in a fixable way. If
2380 ### /etc/MACHINES doesn't say anything about version numbers, be
2381 ### prepared to handle anything reasonably. If version numbers
2382 ### matter, be sure /etc/MACHINES says something about it.
2384 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2385 ### "System V Release 4"; he writes, "The old convention encouraged
2386 ### confusion between `system' and `release' levels'."
2388 machine
='' opsys
='' unported
=no
2389 case "${canonical}" in
2394 case "${canonical}" in
2395 alpha
*-*-freebsd*) machine
=alpha
;;
2396 arm
*-*-freebsd*) machine
=arm
;;
2397 ia64-
*-freebsd*) machine
=ia64
;;
2398 sparc64-
*-freebsd*) machine
=sparc
;;
2399 powerpc-
*-freebsd*) machine
=macppc
;;
2400 i
[3456]86-*-freebsd*) machine
=intel386
;;
2401 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2405 ## FreeBSD kernel + glibc based userland
2408 case "${canonical}" in
2409 alpha
*-*-kfreebsd*) machine
=alpha
;;
2410 ia64-
*-kfreebsd*) machine
=ia64
;;
2411 sparc64-
*-kfreebsd*) machine
=sparc
;;
2412 powerpc-
*-kfreebsd*) machine
=macppc
;;
2413 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2414 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2421 if test -f /usr
/lib
/crti.o
; then
2423 cat >>confdefs.h
<<\_ACEOF
2429 case "${canonical}" in
2430 alpha
*-*-netbsd*) machine
=alpha
;;
2431 i
[3456]86-*-netbsd*) machine
=intel386
;;
2433 # This is somewhat bogus.
2434 machine
=hp9000s300
;;
2435 mips-
*-netbsd*) machine
=pmax
;;
2436 mipsel-
*-netbsd*) machine
=pmax
;;
2437 mipseb-
*-netbsd*) machine
=pmax
;;
2438 powerpc-
*-netbsd*) machine
=macppc
;;
2439 sparc
*-*-netbsd*) machine
=sparc
;;
2440 vax-
*-netbsd*) machine
=vax
;;
2441 arm-
*-netbsd*) machine
=arm
;;
2442 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2443 hppa-
*-netbsd*) machine
=hp800
;;
2450 case "${canonical}" in
2451 alpha
*-*-openbsd*) machine
=alpha
;;
2452 arm-
*-openbsd*) machine
=arm
;;
2453 hppa-
*-openbsd*) machine
=hp9000s300
;;
2454 i386-
*-openbsd*) machine
=intel386
;;
2455 m68k-
*-openbsd*) machine
=hp9000s300
;;
2456 powerpc-
*-openbsd*) machine
=macppc
;;
2457 sparc
*-*-openbsd*) machine
=sparc
;;
2458 vax-
*-openbsd*) machine
=vax
;;
2459 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2466 case "${canonical}" in
2467 i
[3456]86-*-lynxos*) machine
=intel386
;;
2468 powerpc-
*-lynxos*) machine
=powerpc
;;
2475 case "${canonical}" in
2476 i
[345]86-*-bsdi*) machine
=intel386
;;
2477 sparc-
*-bsdi*) machine
=sparc
;;
2478 powerpc-
*-bsdi*) machine
=macppc
;;
2480 case "${canonical}" in
2481 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2482 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2483 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2484 *-*-bsdi3* ) opsys
=bsdos3
;;
2485 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2489 alpha
*-*-linux-gnu* )
2490 machine
=alpha opsys
=gnu-linux
2494 machine
=arm opsys
=gnu-linux
2497 ## Apple Darwin / Mac OS X
2499 case "${canonical}" in
2500 i
[3456]86-* ) machine
=intel386
;;
2501 powerpc-
* ) machine
=powermac
;;
2505 # Define CPP as follows to make autoconf work correctly.
2506 CPP
="${CC-cc} -E -no-cpp-precomp"
2507 # Use fink packages if available.
2508 if test -d /sw
/include
&& test -d /sw
/lib
; then
2509 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2510 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2511 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2516 i
[3456]86-cubix-sysv* )
2517 machine
=intel386 opsys
=usg5-3
2520 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2521 machine
=pmax opsys
=bsd4-2
2523 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2524 machine
=pmax opsys
=bsd4-3
2527 machine
=pmax opsys
=ultrix4-3
2529 ## HP 9000 series 200 or 300
2531 machine
=hp9000s300 opsys
=bsd4-3
2533 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2535 case "`uname -r`" in
2536 ## Someone's system reports A.B8.05 for this.
2537 ## I wonder what other possibilities there are.
2538 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2539 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2540 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2541 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2542 *) machine
=hp9000s300 opsys
=hpux
;;
2546 ## HP 9000 series 700 and 800, running HP/UX
2548 machine
=hp800 opsys
=hpux
2551 machine
=hp800 opsys
=hpux8
2553 hppa
*-hp-hpux9shr* )
2554 machine
=hp800 opsys
=hpux9shr
2557 machine
=hp800 opsys
=hpux9
2559 hppa
*-hp-hpux10.2
* )
2560 machine
=hp800 opsys
=hpux10-20
2563 machine
=hp800 opsys
=hpux10
2565 hppa
*-hp-hpux1[1-9]* )
2566 machine
=hp800 opsys
=hpux11
2567 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2570 hppa
*-*-linux-gnu* )
2571 machine
=hp800 opsys
=gnu-linux
2574 ## HP 9000 series 700 and 800, running HP/UX
2576 ## Cross-compilation? Nah!
2577 case "`uname -r`" in
2578 ## Someone's system reports A.B8.05 for this.
2579 ## I wonder what other possibilities there are.
2580 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2581 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2582 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2583 *) machine
=hp800 opsys
=hpux10
;;
2587 machine
=hp800 opsys
=nextstep
2592 machine
=ibm370aix opsys
=usg5-3
2595 machine
=ibms390 opsys
=gnu-linux
2597 s390x-
*-linux-gnu* )
2598 machine
=ibms390x opsys
=gnu-linux
2600 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2601 machine
=ibmrs6000 opsys
=aix3-1
2603 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2604 machine
=ibmrs6000 opsys
=aix3-2-5
2606 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2607 machine
=ibmrs6000 opsys
=aix4-1
2609 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2610 machine
=ibmrs6000 opsys
=aix4-2
2612 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2613 machine
=ibmrs6000 opsys
=aix4-2
2615 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2616 machine
=ibmrs6000 opsys
=aix4-2
2618 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2619 machine
=ibmrs6000 opsys
=aix4-2
2621 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2622 machine
=ibmrs6000 opsys
=aix4
2624 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2625 machine
=ibmrs6000 opsys
=aix4-1
2627 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2628 machine
=ibmrs6000 opsys
=aix3-2
2632 i
[3456]86-prime-sysv* )
2633 machine
=i386 opsys
=usg5-3
2636 ## ncr machine running svr4.3.
2637 i
[3456]86-ncr-sysv4.3
)
2638 machine
=ncr386 opsys
=usg5-4-3
2641 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2642 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2643 i
[3456]86-ncr-sysv* )
2644 machine
=ncr386 opsys
=usg5-4-2
2647 ## Macintosh PowerPC
2648 powerpc
*-*-linux-gnu* )
2649 machine
=macppc opsys
=gnu-linux
2652 ## Workstations sold by MIPS
2653 ## This is not necessarily all workstations using the MIPS processor -
2654 ## Irises are produced by SGI, and DECstations by DEC.
2657 machine
=mips opsys
=bsd4-3
2660 machine
=mips opsys
=usg5-2-2
2664 m68
*-next-* | m68k-
*-nextstep* )
2665 machine
=m68k opsys
=nextstep
2670 machine
=ews4800 opsys
=ux4800
2674 mips-siemens-sysv
* | mips-sni-sysv
*)
2675 machine
=mips-siemens opsys
=usg5-4
2676 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2677 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2680 ## Silicon Graphics machines
2683 machine
=iris4d opsys
=irix6-5
2684 # Without defining _LANGUAGE_C, things get masked out in the headers
2685 # so that, for instance, grepping for `free' in stdlib.h fails and
2686 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2687 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2688 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2692 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2693 machine
=sparc opsys
=gnu-linux
2696 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2697 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2698 | rs6000-
*-solaris2*)
2699 case "${canonical}" in
2700 i
[3456]86-*-* ) machine
=intel386
;;
2701 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2702 powerpcle
* ) machine
=powerpcle
;;
2703 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2704 sparc
* ) machine
=sparc
;;
2707 case "${canonical}" in
2708 *-sunos5.3
* |
*-solaris2.3
* )
2710 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2712 *-sunos5.4
* |
*-solaris2.4
* )
2714 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2717 *-sunos5.5
* |
*-solaris2.5
* )
2719 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2722 *-sunos5.6
* |
*-solaris2.6
* )
2724 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2727 *-sunos5* |
*-solaris* )
2729 emacs_check_sunpro_c
=yes
2730 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2734 ## Watch out for a compiler that we know will not work.
2735 case "${canonical}" in
2736 *-solaris* |
*-sunos5* )
2737 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2738 ## /usr/ucb/cc doesn't work;
2739 ## we should find some other compiler that does work.
2747 machine
=sparc opsys
=nextstep
2750 ## Tandem Integrity S2
2752 machine
=tandem-s2 opsys
=usg5-3
2758 case "${canonical}" in
2759 *-bsd4.1
* ) opsys
=bsd4-1
;;
2760 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2761 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2762 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2763 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2764 *-vms* ) opsys
=vms
;;
2771 machine
=ia64 opsys
=gnu-linux
2774 ## Intel 386 machines where we don't care about the manufacturer
2777 case "${canonical}" in
2778 *-cygwin ) opsys
=cygwin
;;
2779 *-darwin* ) opsys
=darwin
2780 CPP
="${CC-cc} -E -no-cpp-precomp"
2782 *-linux-gnu* ) opsys
=gnu-linux
;;
2783 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2784 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2785 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2786 *-386bsd* ) opsys
=386bsd
;;
2787 *-nextstep* ) opsys
=nextstep
;;
2788 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2792 ## m68k Linux-based GNU system
2794 machine
=m68k opsys
=gnu-linux
2797 ## Mips Linux-based GNU system
2798 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2799 machine
=mips opsys
=gnu-linux
2803 sparc-fujitsu-sysv4
* )
2804 machine
=sparc opsys
=uxpds
2805 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2809 ## AMD x86-64 Linux-based GNU system
2810 x86_64-
*-linux-gnu* )
2811 machine
=amdx86-64 opsys
=gnu-linux
2814 ## Tensilica Xtensa Linux-based GNU system
2815 xtensa
*-*-linux-gnu* )
2816 machine
=xtensa opsys
=gnu-linux
2824 ### If the code above didn't choose an operating system, just choose
2825 ### an operating system based on the configuration name. You really
2826 ### only want to use this when you have no idea what the right
2827 ### operating system is; if you know what operating systems a machine
2828 ### runs, it's cleaner to make it explicit in the case statement
2830 if test x
"${opsys}" = x
; then
2831 case "${canonical}" in
2832 *-gnu* ) opsys
=gnu
;;
2833 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2834 *-bsd4.2
) opsys
=bsd4-2
;;
2835 *-bsd4.3
) opsys
=bsd4-3
;;
2836 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2837 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2838 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2839 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2840 *-sysv4.2uw
* ) opsys
=unixware
;;
2841 *-sysv5uw* ) opsys
=unixware
;;
2842 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2843 *-sysv4.1
* |
*-sysvr4.1
* )
2844 NON_GNU_CPP
=/usr
/lib
/cpp
2846 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2847 if [ x
$NON_GNU_CPP = x
]; then
2848 if [ -f /usr
/ccs
/lib
/cpp
]; then
2849 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2851 NON_GNU_CPP
=/lib
/cpp
2855 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2862 ### Tests for sytems that we beleive are obsolete and should be desupported.
2864 case "${machine}" in
2865 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2866 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2867 echo "and it is planned to be desupported in the next version of Emacs"
2868 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2869 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2870 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2876 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 |
386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv
)
2877 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2878 echo "and it is planned to be desupported in the next version of Emacs"
2879 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2880 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2881 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2888 if test $unported = yes; then
2889 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2890 Check \`etc/MACHINES' for recognized configuration names." >&5
2891 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2893 { (exit 1); exit 1; }; }
2896 machfile
="m/${machine}.h"
2897 opsysfile
="s/${opsys}.h"
2900 #### Choose a compiler.
2901 test -n "$CC" && cc_specified
=yes
2903 # Save the value of CFLAGS that the user specified.
2904 SPECIFIED_CFLAGS
="$CFLAGS"
2907 ac_cpp
='$CPP $CPPFLAGS'
2908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC
="$CC" # Let the user override the test.
2922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir
=.
2927 for ac_exec_ext
in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$CC"; then
2941 { echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6; }
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2950 if test -z "$ac_cv_prog_CC"; then
2952 # Extract the first word of "gcc", so it can be a program name with args.
2953 set dummy gcc
; ac_word
=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir
=.
2967 for ac_exec_ext
in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC
="gcc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6; }
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2988 if test "x$ac_ct_CC" = x
; then
2991 case $cross_compiling:$ac_tool_warned in
2993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&5
2996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2999 ac_tool_warned
=yes ;;
3007 if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC
="$CC" # Let the user override the test.
3019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir
=.
3024 for ac_exec_ext
in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3048 if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc
; ac_word
=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC
="$CC" # Let the user override the test.
3060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir
=.
3065 for ac_exec_ext
in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected
=yes
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy
$ac_cv_prog_CC
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3088 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3094 if test -n "$CC"; then
3095 { echo "$as_me:$LINENO: result: $CC" >&5
3096 echo "${ECHO_T}$CC" >&6; }
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog
in cl.exe
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC
="$CC" # Let the user override the test.
3118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir
=.
3123 for ac_exec_ext
in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 if test -n "$CC"; then
3137 { echo "$as_me:$LINENO: result: $CC" >&5
3138 echo "${ECHO_T}$CC" >&6; }
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3145 test -n "$CC" && break
3148 if test -z "$CC"; then
3150 for ac_prog
in cl.exe
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy
$ac_prog; ac_word
=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC
="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 echo "${ECHO_T}$ac_ct_CC" >&6; }
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3189 test -n "$ac_ct_CC" && break
3192 if test "x$ac_ct_CC" = x
; then
3195 case $cross_compiling:$ac_tool_warned in
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned
=yes ;;
3212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3218 # Provide some information about the compiler.
3219 echo "$as_me:$LINENO: checking for C compiler version" >&5
3220 ac_compiler
=`set X $ac_compile; echo $2`
3221 { (ac_try
="$ac_compiler --version >&5"
3223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler --version >&5") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (ac_try="$ac_compiler -v >&5"
3233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3234 *) ac_try_echo
=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compiler -v >&5") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3241 { (ac_try
="$ac_compiler -V >&5"
3243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_compiler -V >&5") 2>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3272 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3274 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3276 # List of possible output files, starting from the most likely.
3277 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3278 # only as a last resort. b.out is created by i960 compilers.
3279 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3281 # The IRIX 6 linker writes into existing files which may not be
3282 # executable, retaining their permissions. Remove them first so a
3283 # subsequent execution test works.
3285 for ac_file in $ac_files
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3294 if { (ac_try="$ac_link_default"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link_default") 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3307 # so that the user can short-circuit this test for compilers unknown to
3309 for ac_file
in $ac_files ''
3311 test -f "$ac_file" ||
continue
3313 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3316 # We found the default executable, but exeext='' is most
3320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3322 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 # We set ac_cv_exeext here because the later test for it is not
3325 # safe: cross compilers may not add the suffix if given an `-o'
3326 # argument, so we may need to know it at that point already.
3327 # Even if this section looks crufty: it has the advantage of
3334 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3340 { echo "$as_me:$LINENO: result: $ac_file" >&5
3341 echo "${ECHO_T}$ac_file" >&6; }
3342 if test -z "$ac_file"; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.
$ac_ext >&5
3346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C compiler cannot create executables
3349 See \`config.log' for more details." >&2;}
3350 { (exit 77); exit 77; }; }
3353 ac_exeext
=$ac_cv_exeext
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3358 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3359 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3360 # If not cross compiling, check that we can run a simple program.
3361 if test "$cross_compiling" != yes; then
3362 if { ac_try
='./$ac_file'
3363 { (case "(($ac_try" in
3364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_try") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3374 if test "$cross_compiling" = maybe; then
3377 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details.
" >&5
3380 echo "$as_me: error
: cannot run C compiled programs.
3381 If you meant to cross compile
, use \
`--host'.
3382 See \`config.log
' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3387 { echo "$as_me:$LINENO: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6; }
3390 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3395 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3396 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3397 echo "${ECHO_T}$cross_compiling" >&6; }
3399 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3400 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3401 if { (ac_try="$ac_link"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_link") 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3412 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3413 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3415 for ac_file
in conftest.exe conftest conftest.
*; do
3416 test -f "$ac_file" ||
continue
3418 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3419 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details." >&5
3427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3428 See \`config.log' for more details." >&2;}
3429 { (exit 1); exit 1; }; }
3432 rm -f conftest
$ac_cv_exeext
3433 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3434 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3436 rm -f conftest.
$ac_ext
3437 EXEEXT
=$ac_cv_exeext
3439 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3441 if test "${ac_cv_objext+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat >conftest.
$ac_ext <<_ACEOF
3447 cat confdefs.h
>>conftest.
$ac_ext
3448 cat >>conftest.
$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3459 rm -f conftest.o conftest.obj
3460 if { (ac_try
="$ac_compile"
3462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3483 See \`config.log
' for more details." >&5
3484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details.
" >&2;}
3486 { (exit 1); exit 1; }; }
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3492 echo "${ECHO_T}$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3495 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached
) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3537 echo "$as_me: failed program was
:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3549 GCC=`test $ac_compiler_gnu = yes && echo yes`
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3553 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then
3555 echo $ECHO_N "(cached
) $ECHO_C" >&6
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 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 echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3633 echo "$as_me: failed program was
:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 echo "$as_me: failed program was
:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3687 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3698 if test "$GCC" = yes; then
3704 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3705 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3706 if test "${ac_cv_prog_cc_c89+set}" = set; then
3707 echo $ECHO_N "(cached
) $ECHO_C" >&6
3709 ac_cv_prog_cc_c89=no
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3719 #include <sys/types.h>
3720 #include <sys/stat.h>
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3735 s = g (p, va_arg (v,int));
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771 CC="$ac_save_CC $ac_arg"
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3781 grep -v '^ *+' conftest.er1 >conftest.err
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 ac_cv_prog_cc_c89=$ac_arg
3791 echo "$as_me: failed program was
:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3800 rm -f conftest.$ac_ext
3805 case "x
$ac_cv_prog_cc_c89" in
3807 { echo "$as_me:$LINENO: result
: none needed
" >&5
3808 echo "${ECHO_T}none needed
" >&6; } ;;
3810 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3811 echo "${ECHO_T}unsupported
" >&6; } ;;
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3815 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3831 ## If not using gcc, and on Solaris, and no CPP specified, see if
3832 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3833 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3834 test x"$CPP" = x; then
3835 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3836 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3838 if test "${emacs_cv_sunpro_c+set}" = set; then
3839 echo $ECHO_N "(cached
) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3859 rm -f conftest.$ac_objext conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>conftest.er1
3868 grep -v '^ *+' conftest.er1 >conftest.err
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest$ac_exeext &&
3876 $as_test_x conftest$ac_exeext; then
3877 emacs_cv_sunpro_c=yes
3879 echo "$as_me: failed program was
:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 emacs_cv_sunpro_c=no
3885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3886 conftest$ac_exeext conftest.$ac_ext
3889 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3890 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3892 if test x"$emacs_cv_sunpro_c" = xyes; then
3893 NON_GNU_CPP="$CC -E -Xs"
3897 #### Some systems specify a CPP to use unless we are using GCC.
3898 #### Now that we know whether we are using GCC, we can decide whether
3899 #### to use that one.
3900 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3905 #### Some systems specify a CC to use unless we are using GCC.
3906 #### Now that we know whether we are using GCC, we can decide whether
3907 #### to use that one.
3908 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3909 test x$cc_specified != xyes
3914 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3916 CC="$CC $GCC_TEST_OPTIONS"
3919 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3921 CC="$CC $NON_GCC_TEST_OPTIONS"
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _GNU_SOURCE 1
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3936 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3937 # On Suns, sometimes $CPP names a directory.
3938 if test -n "$CPP" && test -d "$CPP"; then
3941 if test -z "$CPP"; then
3942 if test "${ac_cv_prog_CPP+set}" = set; then
3943 echo $ECHO_N "(cached
) $ECHO_C" >&6
3945 # Double quotes because CPP needs to be expanded
3946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3949 for ac_c_preproc_warn_flag in '' yes
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error
" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3964 # include <limits.h>
3966 # include <assert.h>
3970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3982 (exit $ac_status); } >/dev/null && {
3983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3988 echo "$as_me: failed program was
:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4007 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4019 (exit $ac_status); } >/dev/null && {
4020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4023 # Broken: success on invalid input.
4026 echo "$as_me: failed program was
:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 # Passes both tests.
4034 rm -f conftest.err conftest.$ac_ext
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then
4051 { echo "$as_me:$LINENO: result
: $CPP" >&5
4052 echo "${ECHO_T}$CPP" >&6; }
4054 for ac_c_preproc_warn_flag in '' yes
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error
" is here to catch this case.
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4069 # include <limits.h>
4071 # include <assert.h>
4075 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4087 (exit $ac_status); } >/dev/null && {
4088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4093 echo "$as_me: failed program was
:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Broken: fails on valid input.
4100 rm -f conftest.err conftest.$ac_ext
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4112 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4128 # Broken: success on invalid input.
4131 echo "$as_me: failed program was
:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 # Passes both tests.
4139 rm -f conftest.err conftest.$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4147 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4148 See \
`config.log' for more details." >&5
4149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log
' for more details." >&2;}
4151 { (exit 1); exit 1; }; }
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4157 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4162 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4163 if test "${ac_cv_path_GREP+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 # Extract the first word of "grep ggrep" to use in msg output
4167 if test -z "$GREP"; then
4168 set dummy grep ggrep; ac_prog_name=$2
4169 if test "${ac_cv_path_GREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 ac_path_GREP_found=false
4173 # Loop through the user's path and
test for each of PROGNAME-LIST
4174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4175 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4178 test -z "$as_dir" && as_dir
=.
4179 for ac_prog
in grep ggrep
; do
4180 for ac_exec_ext
in '' $ac_executable_extensions; do
4181 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4183 # Check for GNU ac_path_GREP and select it if it is found.
4184 # Check for GNU $ac_path_GREP
4185 case `"$ac_path_GREP" --version 2>&1` in
4187 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 echo 'GREP' >> "conftest.nl"
4197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4199 ac_count
=`expr $ac_count + 1`
4200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_GREP
="$ac_path_GREP"
4203 ac_path_GREP_max
=$ac_count
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4212 $ac_path_GREP_found && break 3
4222 GREP
="$ac_cv_path_GREP"
4223 if test -z "$GREP"; then
4224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226 { (exit 1); exit 1; }; }
4230 ac_cv_path_GREP
=$GREP
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4237 GREP
="$ac_cv_path_GREP"
4240 { echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4242 if test "${ac_cv_path_EGREP+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4246 then ac_cv_path_EGREP
="$GREP -E"
4248 # Extract the first word of "egrep" to use in msg output
4249 if test -z "$EGREP"; then
4250 set dummy
egrep; ac_prog_name
=$2
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_path_EGREP_found
=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4260 test -z "$as_dir" && as_dir
=.
4261 for ac_prog
in egrep; do
4262 for ac_exec_ext
in '' $ac_executable_extensions; do
4263 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266 # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4269 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4272 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 echo 'EGREP' >> "conftest.nl"
4279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4280 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4281 ac_count
=`expr $ac_count + 1`
4282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_EGREP
="$ac_path_EGREP"
4285 ac_path_EGREP_max
=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4290 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4294 $ac_path_EGREP_found && break 3
4304 EGREP
="$ac_cv_path_EGREP"
4305 if test -z "$EGREP"; then
4306 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308 { (exit 1); exit 1; }; }
4312 ac_cv_path_EGREP
=$EGREP
4318 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4319 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4320 EGREP
="$ac_cv_path_EGREP"
4324 { echo "$as_me:$LINENO: checking for AIX" >&5
4325 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4326 cat >conftest.
$ac_ext <<_ACEOF
4329 cat confdefs.h
>>conftest.
$ac_ext
4330 cat >>conftest.
$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "yes" >/dev
/null
2>&1; then
4339 { echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6; }
4341 cat >>confdefs.h
<<\_ACEOF
4342 #define _ALL_SOURCE 1
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4354 if test "${ac_cv_header_stdc+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 cat >conftest.
$ac_ext <<_ACEOF
4360 cat confdefs.h
>>conftest.
$ac_ext
4361 cat >>conftest.
$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4376 rm -f conftest.
$ac_objext
4377 if { (ac_try
="$ac_compile"
4379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_header_stdc=no
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4418 ac_cv_header_stdc=no
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4439 ac_cv_header_stdc=no
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4485 *) ac_try_echo
=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4492 { (case "(($ac_try" in
4493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_header_stdc=no
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4553 #include <$ac_header>
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4559 *) ac_try_echo
=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1
>conftest.err
4566 cat conftest.err
>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.
$ac_objext; then
4572 eval "$as_ac_Header=yes"
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4577 eval "$as_ac_Header=no"
4580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 ac_res
=`eval echo '${'$as_ac_Header'}'`
4583 { echo "$as_me:$LINENO: result: $ac_res" >&5
4584 echo "${ECHO_T}$ac_res" >&6; }
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4586 cat >>confdefs.h
<<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 if test "${ac_cv_header_minix_config_h+set}" = set; then
4596 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4597 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4602 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4604 # Is the header compilable?
4605 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4606 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 #include <minix/config.h>
4616 rm -f conftest.
$ac_objext
4617 if { (ac_try
="$ac_compile"
4619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4625 grep -v '^ *+' conftest.er1 >conftest.err
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_header_compiler=yes
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_header_compiler=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643 echo "${ECHO_T}$ac_header_compiler" >&6; }
4645 # Is the header present?
4646 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4647 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <minix/config.h>
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4659 *) ac_try_echo
=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1
>conftest.err
4666 cat conftest.err
>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev
/null
&& {
4669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4672 ac_header_preproc
=yes
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.
$ac_ext >&5
4677 ac_header_preproc
=no
4680 rm -f conftest.err conftest.
$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4682 echo "${ECHO_T}$ac_header_preproc" >&6; }
4684 # So? What about this header?
4685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4687 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4691 ac_header_preproc
=yes
4694 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4701 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4709 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4710 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4711 if test "${ac_cv_header_minix_config_h+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 ac_cv_header_minix_config_h
=$ac_header_preproc
4716 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4717 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4720 if test $ac_cv_header_minix_config_h = yes; then
4727 if test "$MINIX" = yes; then
4729 cat >>confdefs.h
<<\_ACEOF
4730 #define _POSIX_SOURCE 1
4734 cat >>confdefs.h
<<\_ACEOF
4735 #define _POSIX_1_SOURCE 2
4739 cat >>confdefs.h
<<\_ACEOF
4755 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4756 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4757 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 cat >conftest.
$ac_ext <<_ACEOF
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4767 # define __EXTENSIONS__ 1
4768 $ac_includes_default
4777 rm -f conftest.
$ac_objext
4778 if { (ac_try
="$ac_compile"
4780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_compile") 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && {
4791 test -z "$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 } && test -s conftest.$ac_objext; then
4794 ac_cv_safe_to_define___extensions__=yes
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ac_cv_safe_to_define___extensions__=no
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4805 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 cat >>confdefs.h <<\_ACEOF
4808 #define __EXTENSIONS__ 1
4811 cat >>confdefs.h <<\_ACEOF
4812 #define _POSIX_PTHREAD_SEMANTICS 1
4815 cat >>confdefs.h <<\_ACEOF
4816 #define _TANDEM_SOURCE 1
4821 ### Use -Wno-pointer-sign if the compiler supports it
4822 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4823 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4824 SAVE_CFLAGS="$CFLAGS"
4825 CFLAGS="$CFLAGS -Wno-pointer-sign"
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4845 *) ac_try_echo
=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1
>conftest.err
4852 cat conftest.err
>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.
$ac_objext; then
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4870 { echo "$as_me:$LINENO: result: $has_option" >&5
4871 echo "${ECHO_T}$has_option" >&6; }
4872 CFLAGS
="$SAVE_CFLAGS"
4876 #### Some other nice autoconf tests.
4878 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4879 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4881 if test "$LN_S" = "ln -s"; then
4882 { echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6; }
4885 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4886 echo "${ECHO_T}no, using $LN_S" >&6; }
4890 ac_cpp
='$CPP $CPPFLAGS'
4891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4894 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 # Double quotes because CPP needs to be expanded
4905 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 for ac_c_preproc_warn_flag
in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat >conftest.
$ac_ext <<_ACEOF
4919 cat confdefs.h
>>conftest.
$ac_ext
4920 cat >>conftest.
$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4923 # include <limits.h>
4925 # include <assert.h>
4929 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 # Broken: fails on valid input.
4954 rm -f conftest.err conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4969 *) ac_try_echo
=$ac_try;;
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1
>conftest.err
4976 cat conftest.err
>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev
/null
&& {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4982 # Broken: success on invalid input.
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 # Passes both tests.
4993 rm -f conftest.err conftest.
$ac_ext
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.
$ac_ext
4998 if $ac_preproc_ok; then
5010 { echo "$as_me:$LINENO: result: $CPP" >&5
5011 echo "${ECHO_T}$CPP" >&6; }
5013 for ac_c_preproc_warn_flag
in '' yes
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 # include <limits.h>
5030 # include <assert.h>
5034 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5042 grep -v '^ *+' conftest.er1 >conftest.err
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null && {
5047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5048 test ! -s conftest.err
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 # Broken: fails on valid input.
5059 rm -f conftest.err conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5074 *) ac_try_echo
=$ac_try;;
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 grep -v '^ *+' conftest.er1
>conftest.err
5081 cat conftest.err
>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev
/null
&& {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5087 # Broken: success on invalid input.
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.
$ac_ext >&5
5093 # Passes both tests.
5098 rm -f conftest.err conftest.
$ac_ext
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.err conftest.
$ac_ext
5103 if $ac_preproc_ok; then
5106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5107 See \`config.log' for more details." >&5
5108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&2;}
5110 { (exit 1); exit 1; }; }
5114 ac_cpp
='$CPP $CPPFLAGS'
5115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5119 # Find a good install program. We prefer a C program (faster),
5120 # so one script is as good as another. But avoid the broken or
5121 # incompatible versions:
5122 # SysV /etc/install, /usr/sbin/install
5123 # SunOS /usr/etc/install
5124 # IRIX /sbin/install
5126 # AmigaOS /C/install, which installs bootblocks on floppy discs
5127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5130 # OS/2's system install, which has a completely different semantic
5131 # ./install, which can be erroneously created by make from ./install.sh.
5132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5134 if test -z "$INSTALL"; then
5135 if test "${ac_cv_path_install+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir
=.
5143 # Account for people who put trailing slashes in PATH elements.
5145 .
/ | .
// |
/cC
/* | \
5146 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5147 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5150 # OSF1 and SCO ODT 3.0 have their own names for install.
5151 # Don't use installbsd from OSF since it installs stuff as root
5153 for ac_prog
in ginstall scoinst
install; do
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5156 if test $ac_prog = install &&
5157 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5158 # AIX install. It has an incompatible calling convention.
5160 elif test $ac_prog = install &&
5161 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5162 # program-specific install script used by HP pwplus--don't use.
5165 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5178 if test "${ac_cv_path_install+set}" = set; then
5179 INSTALL
=$ac_cv_path_install
5181 # As a last resort, use the slow shell script. Don't cache a
5182 # value for INSTALL within a source directory, because that will
5183 # break other packages using the cache if that directory is
5184 # removed, or if the value is a relative name.
5185 INSTALL
=$ac_install_sh
5188 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5189 echo "${ECHO_T}$INSTALL" >&6; }
5191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5192 # It thinks the first close brace ends the variable substitution.
5193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5197 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5199 if test "x$RANLIB" = x
; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5202 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_RANLIB+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 if test -n "$RANLIB"; then
5209 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir
=.
5216 for ac_exec_ext
in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 RANLIB
=$ac_cv_prog_RANLIB
5229 if test -n "$RANLIB"; then
5230 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5231 echo "${ECHO_T}$RANLIB" >&6; }
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5239 if test -z "$ac_cv_prog_RANLIB"; then
5240 ac_ct_RANLIB
=$RANLIB
5241 # Extract the first word of "ranlib", so it can be a program name with args.
5242 set dummy ranlib
; ac_word
=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 if test -n "$ac_ct_RANLIB"; then
5249 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5269 if test -n "$ac_ct_RANLIB"; then
5270 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5271 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5273 { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5277 if test "x$ac_ct_RANLIB" = x
; then
5280 case $cross_compiling:$ac_tool_warned in
5282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5283 whose name does not start with the host triplet. If you think this
5284 configuration is useful to you, please write to autoconf@gnu.org." >&5
5285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet. If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5288 ac_tool_warned
=yes ;;
5290 RANLIB
=$ac_ct_RANLIB
5293 RANLIB
="$ac_cv_prog_RANLIB"
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info
; ac_word
=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 case $INSTALL_INFO in
5306 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir
=.
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5328 if test -n "$INSTALL_INFO"; then
5329 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5330 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info
; ac_word
=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 case $INSTALL_INFO in
5346 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5350 for as_dir
in /usr
/sbin
5353 test -z "$as_dir" && as_dir
=.
5354 for ac_exec_ext
in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info
; ac_word
=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 case $INSTALL_INFO in
5386 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5408 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5409 if test -n "$INSTALL_INFO"; then
5410 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5411 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5413 { echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6; }
5418 # Extract the first word of "gzip", so it can be a program name with args.
5419 set dummy
gzip; ac_word
=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir
=.
5435 for ac_exec_ext
in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5449 if test -n "$GZIP_PROG"; then
5450 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5451 echo "${ECHO_T}$GZIP_PROG" >&6; }
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5460 ## Need makeinfo >= 4.6 (?) to build the manuals.
5461 # Extract the first word of "makeinfo", so it can be a program name with args.
5462 set dummy makeinfo
; ac_word
=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir
=.
5478 for ac_exec_ext
in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5492 MAKEINFO
=$ac_cv_path_MAKEINFO
5493 if test -n "$MAKEINFO"; then
5494 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5495 echo "${ECHO_T}$MAKEINFO" >&6; }
5497 { echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6; }
5502 if test "$MAKEINFO" != "no" && \
5503 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
5507 if test "$MAKEINFO" = "no" && test "x${with_makeinfo}" != "xno"; then
5509 if test -e $srcdir/info
/emacs
; then
5512 gotinfo
="does NOT seem"
5515 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6.
5516 You will not be able to build the Emacs manuals.
5517 In Emacs releases, they are prebuilt, so this might not be a problem.
5518 Your source tree $gotinfo to have manuals in the \`info' directory.
5519 Either install a suitable version of makeinfo, or re-run configure
5520 with the \`--without-makeinfo' option. " >&5
5521 echo "$as_me: error: You do not seem to have makeinfo >= 4.6.
5522 You will not be able to build the Emacs manuals.
5523 In Emacs releases, they are prebuilt, so this might not be a problem.
5524 Your source tree $gotinfo to have manuals in the \`info' directory.
5525 Either install a suitable version of makeinfo, or re-run configure
5526 with the \`--without-makeinfo' option. " >&2;}
5527 { (exit 1); exit 1; }; }
5532 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5534 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5537 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5539 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5543 late_LDFLAGS
=$LDFLAGS
5544 if test "$GCC" = yes; then
5545 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5547 LDFLAGS
="$LDFLAGS -znocombreloc"
5550 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5551 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5552 cat >conftest.
$ac_ext <<_ACEOF
5555 rm -f conftest.
$ac_objext conftest
$ac_exeext
5556 if { (ac_try
="$ac_link"
5558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_link") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest$ac_exeext &&
5572 $as_test_x conftest$ac_exeext; then
5573 { echo "$as_me:$LINENO: result: yes" >&5
5574 echo "${ECHO_T}yes" >&6; }
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 LDFLAGS=$late_LDFLAGS
5580 { echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6; }
5584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5585 conftest$ac_exeext conftest.$ac_ext
5587 #### Extract some information from the operating system and machine files.
5589 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5590 - which libraries the lib-src programs will want, and
5591 - whether the GNU malloc routines are usable..." >&5
5592 echo "$as_me: checking the machine- and system-dependent files to find out
5593 - which libraries the lib-src programs will want, and
5594 - whether the GNU malloc routines are usable..." >&6;}
5596 ### First figure out CFLAGS (which we use for running the compiler here)
5597 ### and REAL_CFLAGS (which we use for real compilation).
5598 ### The two are the same except on a few systems, where they are made
5599 ### different to work around various lossages. For example,
5600 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5601 ### as implying static linking.
5603 ### If the CFLAGS env var is specified, we use that value
5604 ### instead of the default.
5606 ### It's not important that this name contain the PID; you can't run
5607 ### two configures in the same directory and have anything work
5609 tempcname="conftest.c"
5612 #include "'${srcdir}'/src/'${opsysfile}'"
5613 #include "'${srcdir}'/src/'${machfile}'"
5614 #ifndef LIBS_MACHINE
5615 #define LIBS_MACHINE
5620 #ifndef C_SWITCH_SYSTEM
5621 #define C_SWITCH_SYSTEM
5623 #ifndef C_SWITCH_MACHINE
5624 #define C_SWITCH_MACHINE
5626 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5627 configure___ c_switch_system=C_SWITCH_SYSTEM
5628 configure___ c_switch_machine=C_SWITCH_MACHINE
5631 #define LIB_X11_LIB -lX11
5634 #ifndef LIBX11_SYSTEM
5635 #define LIBX11_SYSTEM
5637 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5640 configure___ unexec=UNEXEC
5642 configure___ unexec=unexec.o
5645 #ifdef SYSTEM_MALLOC
5646 configure___ system_malloc=yes
5648 configure___ system_malloc=no
5651 #ifdef USE_MMAP_FOR_BUFFERS
5652 configure___ use_mmap_for_buffers=yes
5654 configure___ use_mmap_for_buffers=no
5657 #ifndef C_DEBUG_SWITCH
5658 #define C_DEBUG_SWITCH -g
5661 #ifndef C_OPTIMIZE_SWITCH
5663 #define C_OPTIMIZE_SWITCH -O2
5665 #define C_OPTIMIZE_SWITCH -O
5669 #ifndef C_WARNINGS_SWITCH
5670 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5673 #ifndef LD_SWITCH_MACHINE
5674 #define LD_SWITCH_MACHINE
5677 #ifndef LD_SWITCH_SYSTEM
5678 #define LD_SWITCH_SYSTEM
5681 #ifndef LD_SWITCH_X_SITE_AUX
5682 #define LD_SWITCH_X_SITE_AUX
5685 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5686 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5688 #ifdef THIS_IS_CONFIGURE
5690 /* Get the CFLAGS for tests in configure. */
5692 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5694 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5697 #else /* not THIS_IS_CONFIGURE */
5699 /* Get the CFLAGS for real compilation. */
5701 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5703 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5706 #endif /* not THIS_IS_CONFIGURE */
5709 # The value of CPP is a quoted variable reference, so we need to do this
5710 # to get its actual value...
5711 CPP=`eval "echo $CPP"`
5712 eval `${CPP} -Isrc ${tempcname} \
5713 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5714 if test "x$SPECIFIED_CFLAGS" = x; then
5715 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5716 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5718 REAL_CFLAGS="$CFLAGS"
5722 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5724 ### Make sure subsequent tests use flags consistent with the build flags.
5726 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5727 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5729 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5734 # Check whether --enable-largefile was given.
5735 if test "${enable_largefile+set}" = set; then
5736 enableval=$enable_largefile;
5739 if test "$enable_largefile" != no; then
5741 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5742 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5743 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 ac_cv_sys_largefile_CC=no
5747 if test "$GCC" != yes; then
5750 # IRIX 6.2 and later do not support large files by default,
5751 # so use the C compiler's -n32 option if that helps.
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5779 *) ac_try_echo
=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1
>conftest.err
5786 cat conftest.err
>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.
$ac_objext; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.
$ac_ext >&5
5800 rm -f core conftest.err conftest.
$ac_objext
5802 rm -f conftest.
$ac_objext
5803 if { (ac_try
="$ac_compile"
5805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_cv_sys_largefile_CC=' -n32'; break
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext
5831 rm -f conftest.$ac_ext
5834 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5835 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5836 if test "$ac_cv_sys_largefile_CC" != no; then
5837 CC=$CC$ac_cv_sys_largefile_CC
5840 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5841 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5842 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5873 *) ac_try_echo
=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1
>conftest.err
5880 cat conftest.err
>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.
$ac_objext; then
5886 ac_cv_sys_file_offset_bits
=no
; break
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5895 cat >conftest.
$ac_ext <<_ACEOF
5898 cat confdefs.h
>>conftest.
$ac_ext
5899 cat >>conftest.
$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #define _FILE_OFFSET_BITS 64
5902 #include <sys/types.h>
5903 /* Check that off_t can represent 2**63 - 1 correctly.
5904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5905 since some C++ compilers masquerading as C compilers
5906 incorrectly reject 9223372036854775807. */
5907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5909 && LARGE_OFF_T % 2147483647 == 1)
5919 rm -f conftest.
$ac_objext
5920 if { (ac_try
="$ac_compile"
5922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5936 ac_cv_sys_file_offset_bits=64; break
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 ac_cv_sys_file_offset_bits=unknown
5949 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5950 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5951 case $ac_cv_sys_file_offset_bits in #(
5954 cat >>confdefs.h <<_ACEOF
5955 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5960 if test $ac_cv_sys_file_offset_bits = unknown; then
5961 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5962 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5963 if test "${ac_cv_sys_large_files+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5974 /* Check that off_t can represent 2**63 - 1 correctly.
5975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5976 since some C++ compilers masquerading as C compilers
5977 incorrectly reject 9223372036854775807. */
5978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5980 && LARGE_OFF_T % 2147483647 == 1)
5990 rm -f conftest.$ac_objext
5991 if { (ac_try="$ac_compile"
5993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5994 *) ac_try_echo
=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1
>conftest.err
6001 cat conftest.err
>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.
$ac_objext; then
6007 ac_cv_sys_large_files
=no
; break
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.
$ac_ext >&5
6015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6016 cat >conftest.
$ac_ext <<_ACEOF
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #define _LARGE_FILES 1
6023 #include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026 since some C++ compilers masquerading as C compilers
6027 incorrectly reject 9223372036854775807. */
6028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030 && LARGE_OFF_T % 2147483647 == 1)
6040 rm -f conftest.
$ac_objext
6041 if { (ac_try
="$ac_compile"
6043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_sys_large_files=1; break
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_sys_large_files=unknown
6070 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6071 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6072 case $ac_cv_sys_large_files in #(
6075 cat >>confdefs.h <<_ACEOF
6076 #define _LARGE_FILES $ac_cv_sys_large_files
6086 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6087 ### be located in either /usr/lib64 or /usr/lib.
6088 case "${canonical}" in
6089 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6090 if test -d /usr/lib64; then
6092 cat >>confdefs.h <<\_ACEOF
6093 #define HAVE_LIB64_DIR 1
6102 if test "${with_sound}" != "no"; then
6103 # Sound support for GNU/Linux and the free BSDs.
6107 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6109 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 ac_res=`eval echo '${'$as_ac_Header'}'`
6117 { echo "$as_me:$LINENO: result: $ac_res" >&5
6118 echo "${ECHO_T}$ac_res" >&6; }
6120 # Is the header compilable?
6121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6130 #include <$ac_header>
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6136 *) ac_try_echo
=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1
>conftest.err
6143 cat conftest.err
>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.
$ac_objext; then
6149 ac_header_compiler
=yes
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.
$ac_ext >&5
6154 ac_header_compiler
=no
6157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6159 echo "${ECHO_T}$ac_header_compiler" >&6; }
6161 # Is the header present?
6162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6164 cat >conftest.
$ac_ext <<_ACEOF
6167 cat confdefs.h
>>conftest.
$ac_ext
6168 cat >>conftest.
$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <$ac_header>
6172 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null && {
6185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6188 ac_header_preproc=yes
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 ac_header_preproc=no
6196 rm -f conftest.err conftest.$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6198 echo "${ECHO_T}$ac_header_preproc" >&6; }
6200 # So? What about this header?
6201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6207 ac_header_preproc=yes
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 eval "$as_ac_Header=\$ac_header_preproc"
6232 ac_res=`eval echo '${'$as_ac_Header'}'`
6233 { echo "$as_me:$LINENO: result: $ac_res" >&5
6234 echo "${ECHO_T}$ac_res" >&6; }
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6246 # Emulation library used on NetBSD.
6247 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6248 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6249 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-lossaudio $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6271 return _oss_ioctl ();
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6280 *) ac_try_echo
=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest
$ac_exeext &&
6293 $as_test_x conftest
$ac_exeext; then
6294 ac_cv_lib_ossaudio__oss_ioctl
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_cv_lib_ossaudio__oss_ioctl
=no
6302 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6303 conftest
$ac_exeext conftest.
$ac_ext
6304 LIBS
=$ac_check_lib_save_LIBS
6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6307 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6308 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6317 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6321 # Extract the first word of "pkg-config", so it can be a program name with args.
6322 set dummy pkg-config
; ac_word
=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir
=.
6338 for ac_exec_ext
in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6352 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6353 if test -n "$PKG_CONFIG"; then
6354 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6355 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6357 { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6363 if test "$PKG_CONFIG" = "no" ; then
6366 PKG_CONFIG_MIN_VERSION
=0.9.0
6367 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6368 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6369 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6371 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6372 { echo "$as_me:$LINENO: result: yes" >&5
6373 echo "${ECHO_T}yes" >&6; }
6376 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6377 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6378 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6379 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6380 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6382 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6383 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6384 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6385 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6386 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6388 { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6392 ## If we have a custom action on failure, don't print errors, but
6393 ## do set a variable so people can do so.
6394 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6406 if test $succeeded = yes; then
6412 if test $HAVE_ALSA = yes; then
6413 SAVE_CFLAGS
="$CFLAGS"
6414 SAVE_LDFLAGS
="$LDFLAGS"
6415 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6416 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6417 cat >conftest.
$ac_ext <<_ACEOF
6420 cat confdefs.h
>>conftest.
$ac_ext
6421 cat >>conftest.
$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <asoundlib.h>
6427 snd_lib_error_set_handler (0);
6432 rm -f conftest.
$ac_objext
6433 if { (ac_try
="$ac_compile"
6435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_compile") 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest.$ac_objext; then
6449 emacs_alsa_normal=yes
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 emacs_alsa_normal=no
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test "$emacs_alsa_normal" != yes; then
6459 cat >conftest.$ac_ext <<_ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 #include <alsa/asoundlib.h>
6469 snd_lib_error_set_handler (0);
6474 rm -f conftest.$ac_objext
6475 if { (ac_try="$ac_compile"
6477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6478 *) ac_try_echo
=$ac_try;;
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.
$ac_objext; then
6491 emacs_alsa_subdir
=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6496 emacs_alsa_subdir
=no
6499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6500 if test "$emacs_alsa_subdir" != yes; then
6501 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6502 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6503 { (exit 1); exit 1; }; }
6505 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6508 CFLAGS
="$SAVE_CFLAGS"
6509 LDFLAGS
="$SAVE_LDFLAGS"
6510 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6511 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6513 cat >>confdefs.h
<<\_ACEOF
6546 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6547 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6548 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6549 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6552 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6556 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 ac_res
=`eval echo '${'$as_ac_Header'}'`
6560 { echo "$as_me:$LINENO: result: $ac_res" >&5
6561 echo "${ECHO_T}$ac_res" >&6; }
6563 # Is the header compilable?
6564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6566 cat >conftest.
$ac_ext <<_ACEOF
6569 cat confdefs.h
>>conftest.
$ac_ext
6570 cat >>conftest.
$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6573 #include <$ac_header>
6575 rm -f conftest.
$ac_objext
6576 if { (ac_try
="$ac_compile"
6578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.$ac_objext; then
6592 ac_header_compiler=yes
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_header_compiler=no
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6602 echo "${ECHO_T}$ac_header_compiler" >&6; }
6604 # Is the header present?
6605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6607 cat >conftest.$ac_ext <<_ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <$ac_header>
6615 if { (ac_try="$ac_cpp conftest.$ac_ext"
6617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6618 *) ac_try_echo
=$ac_try;;
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6623 grep -v '^ *+' conftest.er1
>conftest.err
6625 cat conftest.err
>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } >/dev
/null
&& {
6628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6631 ac_header_preproc
=yes
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.
$ac_ext >&5
6636 ac_header_preproc
=no
6639 rm -f conftest.err conftest.
$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6641 echo "${ECHO_T}$ac_header_preproc" >&6; }
6643 # So? What about this header?
6644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6650 ac_header_preproc
=yes
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6670 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 eval "$as_ac_Header=\$ac_header_preproc"
6675 ac_res
=`eval echo '${'$as_ac_Header'}'`
6676 { echo "$as_me:$LINENO: result: $ac_res" >&5
6677 echo "${ECHO_T}$ac_res" >&6; }
6680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6681 cat >>confdefs.h
<<_ACEOF
6682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6691 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6692 cat >conftest.
$ac_ext <<_ACEOF
6695 cat confdefs.h
>>conftest.
$ac_ext
6696 cat >>conftest.
$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/personality.h>
6702 personality (PER_LINUX32)
6707 rm -f conftest.
$ac_objext
6708 if { (ac_try
="$ac_compile"
6710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1 >conftest.err
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 emacs_cv_personality_linux32=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 emacs_cv_personality_linux32=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6734 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6736 if test $emacs_cv_personality_linux32 = yes; then
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_PERSONALITY_LINUX32 1
6745 for ac_header in term.h
6747 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <$ac_header>
6761 if { (ac_try="$ac_cpp conftest.$ac_ext"
6763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6764 *) ac_try_echo
=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1
>conftest.err
6771 cat conftest.err
>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev
/null
&& {
6774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6777 eval "$as_ac_Header=yes"
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6782 eval "$as_ac_Header=no"
6785 rm -f conftest.err conftest.
$ac_ext
6787 ac_res
=`eval echo '${'$as_ac_Header'}'`
6788 { echo "$as_me:$LINENO: result: $ac_res" >&5
6789 echo "${ECHO_T}$ac_res" >&6; }
6790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791 cat >>confdefs.h
<<_ACEOF
6792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6799 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6801 if test "${ac_cv_header_stdc+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 cat >conftest.
$ac_ext <<_ACEOF
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6823 rm -f conftest.
$ac_objext
6824 if { (ac_try
="$ac_compile"
6826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_header_stdc=yes
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_cv_header_stdc=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 if test $ac_cv_header_stdc = yes; then
6851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6852 cat >conftest.$ac_ext <<_ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "memchr" >/dev/null 2>&1; then
6865 ac_cv_header_stdc=no
6871 if test $ac_cv_header_stdc = yes; then
6872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 $EGREP "free" >/dev/null 2>&1; then
6886 ac_cv_header_stdc=no
6892 if test $ac_cv_header_stdc = yes; then
6893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6894 if test "$cross_compiling" = yes; then
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6905 #if ((' ' & 0x0FF) == 0x020)
6906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6909 # define ISLOWER(c) \
6910 (('a' <= (c) && (c) <= 'i') \
6911 || ('j' <= (c) && (c) <= 'r') \
6912 || ('s' <= (c) && (c) <= 'z'))
6913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6921 for (i = 0; i < 256; i++)
6922 if (XOR (islower (i), ISLOWER (i))
6923 || toupper (i) != TOUPPER (i))
6928 rm -f conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6932 *) ac_try_echo
=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6939 { (case "(($ac_try" in
6940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6950 echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_header_stdc=no
6957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6965 if test $ac_cv_header_stdc = yes; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define STDC_HEADERS 1
6973 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6974 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6975 if test "${ac_cv_header_time+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <sys/types.h>
6985 #include <sys/time.h>
6991 if ((struct tm *) 0)
6997 rm -f conftest.$ac_objext
6998 if { (ac_try="$ac_compile"
7000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7001 *) ac_try_echo
=$ac_try;;
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_compile") 2>conftest.er1
7006 grep -v '^ *+' conftest.er1
>conftest.err
7008 cat conftest.err
>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && {
7011 test -z "$ac_c_werror_flag" ||
7012 test ! -s conftest.err
7013 } && test -s conftest.
$ac_objext; then
7014 ac_cv_header_time
=yes
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.
$ac_ext >&5
7019 ac_cv_header_time
=no
7022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7024 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7025 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7026 if test $ac_cv_header_time = yes; then
7028 cat >>confdefs.h
<<\_ACEOF
7029 #define TIME_WITH_SYS_TIME 1
7034 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7035 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7036 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 cat >conftest.
$ac_ext <<_ACEOF
7042 cat confdefs.h
>>conftest.
$ac_ext
7043 cat >>conftest.
$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7057 rm -f conftest.
$ac_objext
7058 if { (ac_try
="$ac_compile"
7060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_have_decl_sys_siglist=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_have_decl_sys_siglist=no
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7085 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7086 if test $ac_cv_have_decl_sys_siglist = yes; then
7088 cat >>confdefs.h <<_ACEOF
7089 #define HAVE_DECL_SYS_SIGLIST 1
7094 cat >>confdefs.h <<_ACEOF
7095 #define HAVE_DECL_SYS_SIGLIST 0
7102 if test $ac_cv_have_decl_sys_siglist != yes; then
7103 # For Tru64, at least:
7104 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7105 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7106 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 $ac_includes_default
7119 #ifndef __sys_siglist
7120 (void) __sys_siglist;
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7131 *) ac_try_echo
=$ac_try;;
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7136 grep -v '^ *+' conftest.er1
>conftest.err
7138 cat conftest.err
>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.
$ac_objext; then
7144 ac_cv_have_decl___sys_siglist
=yes
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.
$ac_ext >&5
7149 ac_cv_have_decl___sys_siglist
=no
7152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7155 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7156 if test $ac_cv_have_decl___sys_siglist = yes; then
7158 cat >>confdefs.h
<<_ACEOF
7159 #define HAVE_DECL___SYS_SIGLIST 1
7164 cat >>confdefs.h
<<_ACEOF
7165 #define HAVE_DECL___SYS_SIGLIST 0
7172 if test $ac_cv_have_decl___sys_siglist = yes; then
7174 cat >>confdefs.h
<<\_ACEOF
7175 #define sys_siglist __sys_siglist
7180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 cat >conftest.
$ac_ext <<_ACEOF
7188 cat confdefs.h
>>conftest.
$ac_ext
7189 cat >>conftest.
$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #include <sys/types.h>
7192 #include <sys/wait.h>
7194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7210 rm -f conftest.
$ac_objext
7211 if { (ac_try
="$ac_compile"
7213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7219 grep -v '^ *+' conftest.er1 >conftest.err
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 ac_cv_header_sys_wait_h=yes
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7232 ac_cv_header_sys_wait_h=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7239 if test $ac_cv_header_sys_wait_h = yes; then
7241 cat >>confdefs.h <<\_ACEOF
7242 #define HAVE_SYS_WAIT_H 1
7248 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7249 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7250 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 #ifdef TIME_WITH_SYS_TIME
7260 #include <sys/time.h>
7263 #ifdef HAVE_SYS_TIME_H
7264 #include <sys/time.h>
7275 static struct utimbuf x; x.actime = x.modtime;
7280 rm -f conftest.$ac_objext
7281 if { (ac_try="$ac_compile"
7283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7284 *) ac_try_echo
=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compile") 2>conftest.er1
7289 grep -v '^ *+' conftest.er1
>conftest.err
7291 cat conftest.err
>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest.
$ac_objext; then
7297 emacs_cv_struct_utimbuf
=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.
$ac_ext >&5
7302 emacs_cv_struct_utimbuf
=no
7305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7307 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7308 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7309 if test $emacs_cv_struct_utimbuf = yes; then
7311 cat >>confdefs.h
<<\_ACEOF
7312 #define HAVE_STRUCT_UTIMBUF 1
7317 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7318 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7319 if test "${ac_cv_type_signal+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 cat >conftest.
$ac_ext <<_ACEOF
7325 cat confdefs.h
>>conftest.
$ac_ext
7326 cat >>conftest.
$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <sys/types.h>
7334 return *(signal (0, 0)) (0) == 1;
7339 rm -f conftest.
$ac_objext
7340 if { (ac_try
="$ac_compile"
7342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 ac_cv_type_signal=int
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_cv_type_signal=void
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7367 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7369 cat >>confdefs.h <<_ACEOF
7370 #define RETSIGTYPE $ac_cv_type_signal
7375 { echo "$as_me:$LINENO: checking for speed_t" >&5
7376 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7377 if test "${emacs_cv_speed_t+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <termios.h>
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7399 *) ac_try_echo
=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1
>conftest.err
7406 cat conftest.err
>&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.
$ac_objext; then
7412 emacs_cv_speed_t
=yes
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.
$ac_ext >&5
7420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7423 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7424 if test $emacs_cv_speed_t = yes; then
7426 cat >>confdefs.h
<<\_ACEOF
7427 #define HAVE_SPEED_T 1
7432 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7433 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7434 if test "${emacs_cv_struct_timeval+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #ifdef TIME_WITH_SYS_TIME
7444 #include <sys/time.h>
7447 #ifdef HAVE_SYS_TIME_H
7448 #include <sys/time.h>
7456 static struct timeval x; x.tv_sec = x.tv_usec;
7461 rm -f conftest.
$ac_objext
7462 if { (ac_try
="$ac_compile"
7464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_compile") 2>conftest.er1
7470 grep -v '^ *+' conftest.er1 >conftest.err
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest.$ac_objext; then
7478 emacs_cv_struct_timeval=yes
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 emacs_cv_struct_timeval=no
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7489 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7490 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7491 if test $emacs_cv_struct_timeval = yes; then
7493 cat >>confdefs.h <<\_ACEOF
7494 #define HAVE_TIMEVAL 1
7499 { echo "$as_me:$LINENO: checking for struct exception" >&5
7500 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7501 if test "${emacs_cv_struct_exception+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7514 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7523 *) ac_try_echo
=$ac_try;;
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7528 grep -v '^ *+' conftest.er1
>conftest.err
7530 cat conftest.err
>&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.
$ac_objext; then
7536 emacs_cv_struct_exception
=yes
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.
$ac_ext >&5
7541 emacs_cv_struct_exception
=no
7544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7546 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7547 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7548 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7549 if test $emacs_cv_struct_exception != yes; then
7551 cat >>confdefs.h
<<\_ACEOF
7552 #define NO_MATHERR 1
7558 for ac_header
in sys
/socket.h
7560 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7564 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 ac_res
=`eval echo '${'$as_ac_Header'}'`
7568 { echo "$as_me:$LINENO: result: $ac_res" >&5
7569 echo "${ECHO_T}$ac_res" >&6; }
7571 # Is the header compilable?
7572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7574 cat >conftest.
$ac_ext <<_ACEOF
7577 cat confdefs.h
>>conftest.
$ac_ext
7578 cat >>conftest.
$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7581 #include <$ac_header>
7583 rm -f conftest.
$ac_objext
7584 if { (ac_try
="$ac_compile"
7586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_header_compiler=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_header_compiler=no
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7610 echo "${ECHO_T}$ac_header_compiler" >&6; }
7612 # Is the header present?
7613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <$ac_header>
7623 if { (ac_try="$ac_cpp conftest.$ac_ext"
7625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7626 *) ac_try_echo
=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1
>conftest.err
7633 cat conftest.err
>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } >/dev
/null
&& {
7636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7639 ac_header_preproc
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_header_preproc
=no
7647 rm -f conftest.err conftest.
$ac_ext
7648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7649 echo "${ECHO_T}$ac_header_preproc" >&6; }
7651 # So? What about this header?
7652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7658 ac_header_preproc
=yes
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7678 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 eval "$as_ac_Header=\$ac_header_preproc"
7683 ac_res
=`eval echo '${'$as_ac_Header'}'`
7684 { echo "$as_me:$LINENO: result: $ac_res" >&5
7685 echo "${ECHO_T}$ac_res" >&6; }
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h
<<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 for ac_header
in net
/if.h
7700 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7703 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 cat >conftest.
$ac_ext <<_ACEOF
7709 cat confdefs.h
>>conftest.
$ac_ext
7710 cat >>conftest.
$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 #if HAVE_SYS_SOCKET_H
7714 #include <sys/socket.h>
7717 #include <$ac_header>
7719 rm -f conftest.
$ac_objext
7720 if { (ac_try
="$ac_compile"
7722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7728 grep -v '^ *+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 eval "$as_ac_Header=yes"
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 eval "$as_ac_Header=no"
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 ac_res=`eval echo '${'$as_ac_Header'}'`
7747 { echo "$as_me:$LINENO: result: $ac_res" >&5
7748 echo "${ECHO_T}$ac_res" >&6; }
7749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7750 cat >>confdefs.h <<_ACEOF
7751 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7759 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7760 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7761 if test "${ac_cv_struct_tm+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 cat >conftest.$ac_ext <<_ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 #include <sys/types.h>
7777 int *p = &tm.tm_sec;
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7787 *) ac_try_echo
=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7792 grep -v '^ *+' conftest.er1
>conftest.err
7794 cat conftest.err
>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.
$ac_objext; then
7800 ac_cv_struct_tm
=time.h
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.
$ac_ext >&5
7805 ac_cv_struct_tm
=sys
/time.h
7808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7810 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7811 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7812 if test $ac_cv_struct_tm = sys
/time.h
; then
7814 cat >>confdefs.h
<<\_ACEOF
7815 #define TM_IN_SYS_TIME 1
7820 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7821 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7822 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 cat >conftest.
$ac_ext <<_ACEOF
7828 cat confdefs.h
>>conftest.
$ac_ext
7829 cat >>conftest.
$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <$ac_cv_struct_tm>
7838 static struct tm ac_aggr;
7839 if (ac_aggr.tm_zone)
7845 rm -f conftest.
$ac_objext
7846 if { (ac_try
="$ac_compile"
7848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_member_struct_tm_tm_zone=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 #include <$ac_cv_struct_tm>
7880 static struct tm ac_aggr;
7881 if (sizeof ac_aggr.tm_zone)
7887 rm -f conftest.$ac_objext
7888 if { (ac_try="$ac_compile"
7890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7891 *) ac_try_echo
=$ac_try;;
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_compile") 2>conftest.er1
7896 grep -v '^ *+' conftest.er1
>conftest.err
7898 cat conftest.err
>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && {
7901 test -z "$ac_c_werror_flag" ||
7902 test ! -s conftest.err
7903 } && test -s conftest.
$ac_objext; then
7904 ac_cv_member_struct_tm_tm_zone
=yes
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.
$ac_ext >&5
7909 ac_cv_member_struct_tm_tm_zone
=no
7912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7918 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7919 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7921 cat >>confdefs.h
<<_ACEOF
7922 #define HAVE_STRUCT_TM_TM_ZONE 1
7928 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7930 cat >>confdefs.h
<<\_ACEOF
7931 #define HAVE_TM_ZONE 1
7935 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7936 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7937 if test "${ac_cv_have_decl_tzname+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7959 rm -f conftest.
$ac_objext
7960 if { (ac_try
="$ac_compile"
7962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
7968 grep -v '^ *+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
7976 ac_cv_have_decl_tzname=yes
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_have_decl_tzname=no
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7987 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7988 if test $ac_cv_have_decl_tzname = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_DECL_TZNAME 1
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_DECL_TZNAME 0
8004 { echo "$as_me:$LINENO: checking for tzname" >&5
8005 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8006 if test "${ac_cv_var_tzname+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8016 #if !HAVE_DECL_TZNAME
8017 extern char *tzname[];
8023 return tzname[0][0];
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8032 *) ac_try_echo
=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1
>conftest.err
8039 cat conftest.err
>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest
$ac_exeext &&
8045 $as_test_x conftest
$ac_exeext; then
8046 ac_cv_var_tzname
=yes
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.
$ac_ext >&5
8054 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8055 conftest
$ac_exeext conftest.
$ac_ext
8057 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8058 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8059 if test $ac_cv_var_tzname = yes; then
8061 cat >>confdefs.h
<<\_ACEOF
8062 #define HAVE_TZNAME 1
8068 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8069 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8070 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 cat >conftest.
$ac_ext <<_ACEOF
8076 cat confdefs.h
>>conftest.
$ac_ext
8077 cat >>conftest.
$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8084 static struct tm ac_aggr;
8085 if (ac_aggr.tm_gmtoff)
8091 rm -f conftest.
$ac_objext
8092 if { (ac_try
="$ac_compile"
8094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8100 grep -v '^ *+' conftest.er1 >conftest.err
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_cv_member_struct_tm_tm_gmtoff=yes
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8124 static struct tm ac_aggr;
8125 if (sizeof ac_aggr.tm_gmtoff)
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8135 *) ac_try_echo
=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1
>conftest.err
8142 cat conftest.err
>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.
$ac_objext; then
8148 ac_cv_member_struct_tm_tm_gmtoff
=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.
$ac_ext >&5
8153 ac_cv_member_struct_tm_tm_gmtoff
=no
8156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8162 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8163 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8165 cat >>confdefs.h
<<\_ACEOF
8166 #define HAVE_TM_GMTOFF 1
8171 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8172 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8173 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.
$ac_ext <<_ACEOF
8179 cat confdefs.h
>>conftest.
$ac_ext
8180 cat >>conftest.
$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8193 static struct ifreq ac_aggr;
8194 if (ac_aggr.ifr_flags)
8200 rm -f conftest.
$ac_objext
8201 if { (ac_try
="$ac_compile"
8203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217 ac_cv_member_struct_ifreq_ifr_flags=yes
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 cat >conftest.$ac_ext <<_ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 $ac_includes_default
8229 #if HAVE_SYS_SOCKET_H
8230 #include <sys/socket.h>
8239 static struct ifreq ac_aggr;
8240 if (sizeof ac_aggr.ifr_flags)
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8250 *) ac_try_echo
=$ac_try;;
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8255 grep -v '^ *+' conftest.er1
>conftest.err
8257 cat conftest.err
>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.
$ac_objext; then
8263 ac_cv_member_struct_ifreq_ifr_flags
=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8268 ac_cv_member_struct_ifreq_ifr_flags
=no
8271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8276 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8277 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8278 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8280 cat >>confdefs.h
<<_ACEOF
8281 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8286 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8287 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8288 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.
$ac_ext <<_ACEOF
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 #if HAVE_SYS_SOCKET_H
8299 #include <sys/socket.h>
8308 static struct ifreq ac_aggr;
8309 if (ac_aggr.ifr_hwaddr)
8315 rm -f conftest.
$ac_objext
8316 if { (ac_try
="$ac_compile"
8318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 #if HAVE_SYS_SOCKET_H
8345 #include <sys/socket.h>
8354 static struct ifreq ac_aggr;
8355 if (sizeof ac_aggr.ifr_hwaddr)
8361 rm -f conftest.$ac_objext
8362 if { (ac_try="$ac_compile"
8364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8365 *) ac_try_echo
=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_compile") 2>conftest.er1
8370 grep -v '^ *+' conftest.er1
>conftest.err
8372 cat conftest.err
>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && {
8375 test -z "$ac_c_werror_flag" ||
8376 test ! -s conftest.err
8377 } && test -s conftest.
$ac_objext; then
8378 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.
$ac_ext >&5
8383 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8392 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8393 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8395 cat >>confdefs.h
<<_ACEOF
8396 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8401 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8402 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8403 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 cat >conftest.
$ac_ext <<_ACEOF
8409 cat confdefs.h
>>conftest.
$ac_ext
8410 cat >>conftest.
$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #if HAVE_SYS_SOCKET_H
8414 #include <sys/socket.h>
8423 static struct ifreq ac_aggr;
8424 if (ac_aggr.ifr_netmask)
8430 rm -f conftest.
$ac_objext
8431 if { (ac_try
="$ac_compile"
8433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_cv_member_struct_ifreq_ifr_netmask=yes
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 #if HAVE_SYS_SOCKET_H
8460 #include <sys/socket.h>
8469 static struct ifreq ac_aggr;
8470 if (sizeof ac_aggr.ifr_netmask)
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8480 *) ac_try_echo
=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1
>conftest.err
8487 cat conftest.err
>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest.
$ac_objext; then
8493 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.
$ac_ext >&5
8498 ac_cv_member_struct_ifreq_ifr_netmask
=no
8501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8507 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8508 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8510 cat >>confdefs.h
<<_ACEOF
8511 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8516 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8517 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8518 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 cat >conftest.
$ac_ext <<_ACEOF
8524 cat confdefs.h
>>conftest.
$ac_ext
8525 cat >>conftest.
$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #if HAVE_SYS_SOCKET_H
8529 #include <sys/socket.h>
8538 static struct ifreq ac_aggr;
8539 if (ac_aggr.ifr_broadaddr)
8545 rm -f conftest.
$ac_objext
8546 if { (ac_try
="$ac_compile"
8548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #if HAVE_SYS_SOCKET_H
8575 #include <sys/socket.h>
8584 static struct ifreq ac_aggr;
8585 if (sizeof ac_aggr.ifr_broadaddr)
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8595 *) ac_try_echo
=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1
>conftest.err
8602 cat conftest.err
>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.
$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.
$ac_ext >&5
8613 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8622 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8623 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8625 cat >>confdefs.h
<<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8631 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8632 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8633 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #if HAVE_SYS_SOCKET_H
8644 #include <sys/socket.h>
8653 static struct ifreq ac_aggr;
8654 if (ac_aggr.ifr_addr)
8660 rm -f conftest.
$ac_objext
8661 if { (ac_try
="$ac_compile"
8663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8677 ac_cv_member_struct_ifreq_ifr_addr=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 $ac_includes_default
8689 #if HAVE_SYS_SOCKET_H
8690 #include <sys/socket.h>
8699 static struct ifreq ac_aggr;
8700 if (sizeof ac_aggr.ifr_addr)
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8710 *) ac_try_echo
=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1
>conftest.err
8717 cat conftest.err
>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.
$ac_objext; then
8723 ac_cv_member_struct_ifreq_ifr_addr
=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.
$ac_ext >&5
8728 ac_cv_member_struct_ifreq_ifr_addr
=no
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8736 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8737 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8738 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8740 cat >>confdefs.h
<<_ACEOF
8741 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8749 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8750 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8751 if test "$ac_cv_prog_cc_c89" != no
; then
8752 { echo "$as_me:$LINENO: result: yes" >&5
8753 echo "${ECHO_T}yes" >&6; }
8755 cat >>confdefs.h
<<\_ACEOF
8756 #define PROTOTYPES 1
8760 cat >>confdefs.h
<<\_ACEOF
8761 #define __PROTOTYPES 1
8765 { echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6; }
8769 { echo "$as_me:$LINENO: checking for working volatile" >&5
8770 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8771 if test "${ac_cv_c_volatile+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 cat >conftest.
$ac_ext <<_ACEOF
8777 cat confdefs.h
>>conftest.
$ac_ext
8778 cat >>conftest.
$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8786 int * volatile y = (int *) 0;
8792 rm -f conftest.
$ac_objext
8793 if { (ac_try
="$ac_compile"
8795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_c_volatile=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8820 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8821 if test $ac_cv_c_volatile = no; then
8823 cat >>confdefs.h <<\_ACEOF
8829 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8830 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8831 if test "${ac_cv_c_const+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8844 /* FIXME: Include the comments suggested by Paul. */
8846 /* Ultrix mips cc rejects this. */
8847 typedef int charset[2];
8849 /* SunOS 4.1.1 cc rejects this. */
8850 char const *const *pcpcc;
8852 /* NEC SVR4.0.2 mips cc rejects this. */
8853 struct point {int x, y;};
8854 static struct point const zero = {0,0};
8855 /* AIX XL C 1.02.0.0 rejects this.
8856 It does not let you subtract one const X* pointer from another in
8857 an arm of an if-expression whose if-part is not a constant
8859 const char *g = "string";
8860 pcpcc = &g + (g ? g-g : 0);
8861 /* HPUX 7.0 cc rejects these. */
8863 ppc = (char**) pcpcc;
8864 pcpcc = (char const *const *) ppc;
8865 { /* SCO 3.2v4 cc rejects this. */
8867 char const *s = 0 ? (char *) 0 : (char const *) 0;
8872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8874 const int *foo = &x[0];
8877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8878 typedef const int *iptr;
8882 { /* AIX XL C 1.02.0.0 rejects this saying
8883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8884 struct s { int j; const int *ap[3]; };
8885 struct s *b; b->j = 5;
8887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8891 return !cs[0] && !zero.x;
8898 rm -f conftest.$ac_objext
8899 if { (ac_try="$ac_compile"
8901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8902 *) ac_try_echo
=$ac_try;;
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_compile") 2>conftest.er1
8907 grep -v '^ *+' conftest.er1
>conftest.err
8909 cat conftest.err
>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest.
$ac_objext; then
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.
$ac_ext >&5
8923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8925 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8926 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8927 if test $ac_cv_c_const = no
; then
8929 cat >>confdefs.h
<<\_ACEOF
8935 { echo "$as_me:$LINENO: checking for void * support" >&5
8936 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8937 if test "${emacs_cv_void_star+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 cat >conftest.
$ac_ext <<_ACEOF
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8955 rm -f conftest.
$ac_objext
8956 if { (ac_try
="$ac_compile"
8958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 emacs_cv_void_star=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 emacs_cv_void_star=no
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8983 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8984 if test $emacs_cv_void_star = yes; then
8985 cat >>confdefs.h <<\_ACEOF
8986 #define POINTER_TYPE void
8990 cat >>confdefs.h <<\_ACEOF
8991 #define POINTER_TYPE char
9000 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9001 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9002 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9003 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 cat >conftest.make <<\_ACEOF
9009 @echo '@@@%%%=$(MAKE)=@@@%%%'
9011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9012 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9014 eval ac_cv_prog_make_${ac_make}_set=yes;;
9016 eval ac_cv_prog_make_${ac_make}_set=no;;
9020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9021 { echo "$as_me:$LINENO: result: yes" >&5
9022 echo "${ECHO_T}yes" >&6; }
9025 { echo "$as_me:$LINENO: result: no" >&5
9026 echo "${ECHO_T}no" >&6; }
9027 SET_MAKE="MAKE=${MAKE-make}"
9031 { echo "$as_me:$LINENO: checking for long file names" >&5
9032 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9033 if test "${ac_cv_sys_long_file_names+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 ac_cv_sys_long_file_names=yes
9037 # Test for long file names in all the places we know might matter:
9038 # . the current directory, where building will happen
9039 # $prefix/lib where we will be installing things
9040 # $exec_prefix/lib likewise
9041 # $TMPDIR if set, where it might want to write temporary files
9042 # /tmp where it might want to write temporary files
9045 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9046 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9047 # in the usual case where exec_prefix is '${prefix}'.
9049 . | /* | ?:[\\/]*) ;; #(
9052 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9053 ac_xdir=$ac_dir/cf$$
9054 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9055 ac_tf1=$ac_xdir/conftest9012345
9056 ac_tf2=$ac_xdir/conftest9012346
9057 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9058 ac_cv_sys_long_file_names=no
9059 rm -f -r "$ac_xdir" 2>/dev/null
9060 test $ac_cv_sys_long_file_names = no && break
9063 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9064 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9065 if test $ac_cv_sys_long_file_names = yes; then
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_LONG_FILE_NAMES 1
9074 #### Choose a window system.
9076 { echo "$as_me:$LINENO: checking for X" >&5
9077 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9080 # Check whether --with-x was given.
9081 if test "${with_x+set}" = set; then
9085 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9086 if test "x$with_x" = xno; then
9087 # The user explicitly disabled X.
9090 case $x_includes,$x_libraries in #(
9091 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9092 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9093 { (exit 1); exit 1; }; };; #(
9094 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 # One or both of the vars are not set, and there is no cached value.
9098 ac_x_includes=no ac_x_libraries=no
9099 rm -f -r conftest.dir
9100 if mkdir conftest.dir; then
9102 cat >Imakefile <<'_ACEOF'
9104 @echo incroot='${INCROOT}'
9106 @echo usrlibdir='${USRLIBDIR}'
9108 @echo libdir='${LIBDIR}'
9110 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9112 for ac_var in incroot usrlibdir libdir; do
9113 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9115 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9116 for ac_extension in a so sl; do
9117 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9118 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9119 ac_im_usrlibdir=$ac_im_libdir; break
9122 # Screen out bogus values from the imake configuration. They are
9123 # bogus both because they are the default anyway, and because
9124 # using them would break gcc on systems where it needs fixed includes.
9125 case $ac_im_incroot in
9126 /usr/include) ac_x_includes= ;;
9127 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9129 case $ac_im_usrlibdir in
9131 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9135 rm -f -r conftest.dir
9138 # Standard set of common directories for X headers.
9139 # Check X11 before X11Rn because it is often a symlink to the current release.
9151 /usr/local/X11/include
9152 /usr/local/X11R6/include
9153 /usr/local/X11R5/include
9154 /usr/local/X11R4/include
9156 /usr/local/include/X11
9157 /usr/local/include/X11R6
9158 /usr/local/include/X11R5
9159 /usr/local/include/X11R4
9163 /usr/XFree86/include/X11
9167 /usr/unsupported/include
9169 /usr/local/x11r5/include
9170 /usr/lpp/Xamples/include
9172 /usr/openwin/include
9173 /usr/openwin/share/include'
9175 if test "$ac_x_includes" = no; then
9176 # Guess where to find include files, by looking for Xlib.h.
9177 # First, try using that file with no special directory specified.
9178 cat >conftest.$ac_ext <<_ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184 #include <X11/Xlib.h>
9186 if { (ac_try="$ac_cpp conftest.$ac_ext"
9188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9189 *) ac_try_echo
=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1
>conftest.err
9196 cat conftest.err
>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } >/dev
/null
&& {
9199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9202 # We can compile using X headers with no special include directory.
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.
$ac_ext >&5
9208 for ac_dir
in $ac_x_header_dirs; do
9209 if test -r "$ac_dir/X11/Xlib.h"; then
9210 ac_x_includes
=$ac_dir
9216 rm -f conftest.err conftest.
$ac_ext
9217 fi # $ac_x_includes = no
9219 if test "$ac_x_libraries" = no
; then
9220 # Check for the libraries.
9221 # See if we find them without any special options.
9222 # Don't add to $LIBS permanently.
9225 cat >conftest.
$ac_ext <<_ACEOF
9228 cat confdefs.h
>>conftest.
$ac_ext
9229 cat >>conftest.
$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <X11/Xlib.h>
9240 rm -f conftest.
$ac_objext conftest
$ac_exeext
9241 if { (ac_try
="$ac_link"
9243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
9251 cat conftest.err >&5
9252 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_exeext &&
9257 $as_test_x conftest$ac_exeext; then
9259 # We can link X programs with no special library path.
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9266 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9268 # Don't even attempt the hair of trying to link an X program!
9269 for ac_extension in a so sl; do
9270 if test -r "$ac_dir/libX11.$ac_extension"; then
9271 ac_x_libraries=$ac_dir
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 fi # $ac_x_libraries = no
9282 case $ac_x_includes,$ac_x_libraries in #(
9284 # Didn't find X, or a directory has "'" in its name.
9285 ac_cv_have_x="have_x=no";; #(
9287 # Record where we found X for the cache.
9288 ac_cv_have_x="have_x=yes\
9289 ac_x_includes='$ac_x_includes'\
9290 ac_x_libraries='$ac_x_libraries'"
9296 eval "$ac_cv_have_x"
9299 if test "$have_x" != yes; then
9300 { echo "$as_me:$LINENO: result: $have_x" >&5
9301 echo "${ECHO_T}$have_x" >&6; }
9304 # If each of the values was on the command line, it overrides each guess.
9305 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9306 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9307 # Update the cache value to reflect the command line values.
9308 ac_cv_have_x="have_x=yes\
9309 ac_x_includes='$x_includes'\
9310 ac_x_libraries='$x_libraries'"
9311 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9312 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9315 if test "$no_x" = yes; then
9321 ## Workaround for bug in autoconf <= 2.62.
9322 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9323 ## No need to do anything special for these standard directories.
9324 ## This is an experiment, take it out if it causes problems.
9325 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9327 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9331 if test "${x_libraries}" != NONE; then
9332 if test -n "${x_libraries}"; then
9333 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9334 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9336 x_default_search_path=""
9337 x_search_path=${x_libraries}
9338 if test -z "${x_search_path}"; then
9339 x_search_path=/usr/lib
9341 for x_library in `echo ${x_search_path}: | \
9342 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9344 ${x_library}/X11/%L/%T/%N%C%S:\
9345 ${x_library}/X11/%l/%T/%N%C%S:\
9346 ${x_library}/X11/%T/%N%C%S:\
9347 ${x_library}/X11/%L/%T/%N%S:\
9348 ${x_library}/X11/%l/%T/%N%S:\
9349 ${x_library}/X11/%T/%N%S"
9350 if test x"${x_default_search_path}" = x; then
9351 x_default_search_path=${x_search_path}
9353 x_default_search_path="${x_search_path}:${x_default_search_path}"
9357 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9358 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9361 if test x"${x_includes}" = x; then
9362 bitmapdir=/usr/include/X11/bitmaps
9364 # accumulate include directories that have X11 bitmap subdirectories
9366 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9367 if test -d "${bmd}/X11/bitmaps"; then
9368 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9370 if test -d "${bmd}/bitmaps"; then
9371 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9374 if test ${bmd_acc} != "dummyval"; then
9375 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9380 if test "${with_carbon}" != no; then
9381 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9382 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9383 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9384 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9388 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9390 # Is the header compilable?
9391 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9392 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 #include <Carbon/Carbon.h>
9402 rm -f conftest.$ac_objext
9403 if { (ac_try="$ac_compile"
9405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9406 *) ac_try_echo
=$ac_try;;
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_compile") 2>conftest.er1
9411 grep -v '^ *+' conftest.er1
>conftest.err
9413 cat conftest.err
>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest.
$ac_objext; then
9419 ac_header_compiler
=yes
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9424 ac_header_compiler
=no
9427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6; }
9431 # Is the header present?
9432 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9433 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9434 cat >conftest.
$ac_ext <<_ACEOF
9437 cat confdefs.h
>>conftest.
$ac_ext
9438 cat >>conftest.
$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <Carbon/Carbon.h>
9442 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } >/dev/null && {
9455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9458 ac_header_preproc=yes
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_header_preproc=no
9466 rm -f conftest.err conftest.$ac_ext
9467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9468 echo "${ECHO_T}$ac_header_preproc" >&6; }
9470 # So? What about this header?
9471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9473 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9474 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9476 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9477 ac_header_preproc=yes
9480 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9481 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9483 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9485 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9487 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9489 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9491 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9495 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9502 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9506 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9512 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9513 if test "${with_carbon+set}" != set \
9514 && test "${carbon_appdir_x+set}" != set; then
9515 for var in with_x with_x_toolkit with_xim \
9516 with_xpm with_jpeg with_tiff with_gif with_png; do
9517 if eval test \"\${$var+set}\" = set; then
9524 if test "${HAVE_CARBON}" = yes; then
9528 case "${window_system}" in
9532 case "${with_x_toolkit}" in
9533 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9534 motif ) USE_X_TOOLKIT=MOTIF ;;
9536 USE_X_TOOLKIT=none ;;
9537 no ) USE_X_TOOLKIT=none ;;
9538 * ) USE_X_TOOLKIT=maybe ;;
9548 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9549 # Extract the first word of "X", so it can be a program name with args.
9550 set dummy X; ac_word=$2
9551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9553 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 if test -n "$HAVE_XSERVER"; then
9557 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_prog_HAVE_XSERVER="true"
9567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9577 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9578 if test -n "$HAVE_XSERVER"; then
9579 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9580 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9582 { echo "$as_me:$LINENO: result: no" >&5
9583 echo "${ECHO_T}no" >&6; }
9587 if test "$HAVE_XSERVER" = true ||
9588 test -n "$DISPLAY" ||
9589 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9590 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9591 were found. You should install the relevant development files for X
9592 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9593 sure you have development files for image handling, i.e.
9594 tiff, gif, jpeg, png and xpm.
9595 If you are sure you want Emacs compiled without X window support, pass
9598 echo "$as_me: error: You seem to be running X, but no X development libraries
9599 were found. You should install the relevant development files for X
9600 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9601 sure you have development files for image handling, i.e.
9602 tiff, gif, jpeg, png and xpm.
9603 If you are sure you want Emacs compiled without X window support, pass
9605 to configure." >&2;}
9606 { (exit 1); exit 1; }; }
9610 ### If we're using X11, we should use the X menu package.
9613 yes ) HAVE_MENUS=yes ;;
9616 ### Compute the unexec source name from the object name.
9617 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9619 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9620 # Assume not, until told otherwise.
9623 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9624 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define malloc_get_state innocuous_malloc_get_state
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char malloc_get_state (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9644 # include <limits.h>
9646 # include <assert.h>
9649 #undef malloc_get_state
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9657 char malloc_get_state ();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9668 return malloc_get_state ();
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9677 *) ac_try_echo
=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1
>conftest.err
9684 cat conftest.err
>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest
$ac_exeext &&
9690 $as_test_x conftest
$ac_exeext; then
9691 ac_cv_func_malloc_get_state
=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.
$ac_ext >&5
9696 ac_cv_func_malloc_get_state
=no
9699 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9700 conftest
$ac_exeext conftest.
$ac_ext
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9703 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9704 if test $ac_cv_func_malloc_get_state = yes; then
9710 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9711 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.
$ac_ext <<_ACEOF
9718 cat confdefs.h
>>conftest.
$ac_ext
9719 cat >>conftest.
$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define malloc_set_state innocuous_malloc_set_state
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char malloc_set_state (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9736 #undef malloc_set_state
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9744 char malloc_set_state ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9755 return malloc_set_state ();
9760 rm -f conftest.
$ac_objext conftest
$ac_exeext
9761 if { (ac_try
="$ac_link"
9763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest$ac_exeext &&
9777 $as_test_x conftest$ac_exeext; then
9778 ac_cv_func_malloc_set_state=yes
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_cv_func_malloc_set_state=no
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787 conftest$ac_exeext conftest.$ac_ext
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9790 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9791 if test $ac_cv_func_malloc_set_state = yes; then
9797 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9798 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9799 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 extern void (* __after_morecore_hook)();
9812 __after_morecore_hook = 0
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9821 *) ac_try_echo
=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1
>conftest.err
9828 cat conftest.err
>&5
9829 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_exeext &&
9834 $as_test_x conftest
$ac_exeext; then
9835 emacs_cv_var___after_morecore_hook
=yes
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.
$ac_ext >&5
9840 emacs_cv_var___after_morecore_hook
=no
9843 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9844 conftest
$ac_exeext conftest.
$ac_ext
9846 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9847 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9848 if test $emacs_cv_var___after_morecore_hook = no
; then
9851 if test "${system_malloc}" = "yes"; then
9854 (The GNU allocators don't work with this system configuration.)"
9856 if test "$doug_lea_malloc" = "yes" ; then
9857 if test "$GNU_MALLOC" = yes ; then
9859 (Using Doug Lea's new malloc from the GNU C Library.)"
9862 cat >>confdefs.h
<<\_ACEOF
9863 #define DOUG_LEA_MALLOC 1
9868 if test x
"${REL_ALLOC}" = x
; then
9869 REL_ALLOC
=${GNU_MALLOC}
9875 for ac_header
in stdlib.h unistd.h
9877 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9878 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9881 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 ac_res
=`eval echo '${'$as_ac_Header'}'`
9885 { echo "$as_me:$LINENO: result: $ac_res" >&5
9886 echo "${ECHO_T}$ac_res" >&6; }
9888 # Is the header compilable?
9889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 $ac_includes_default
9898 #include <$ac_header>
9900 rm -f conftest.
$ac_objext
9901 if { (ac_try
="$ac_compile"
9903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_compile") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
9917 ac_header_compiler=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_compiler=no
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9927 echo "${ECHO_T}$ac_header_compiler" >&6; }
9929 # Is the header present?
9930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 #include <$ac_header>
9940 if { (ac_try="$ac_cpp conftest.$ac_ext"
9942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9943 *) ac_try_echo
=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1
>conftest.err
9950 cat conftest.err
>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } >/dev
/null
&& {
9953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9956 ac_header_preproc
=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.
$ac_ext >&5
9961 ac_header_preproc
=no
9964 rm -f conftest.err conftest.
$ac_ext
9965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9966 echo "${ECHO_T}$ac_header_preproc" >&6; }
9968 # So? What about this header?
9969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9975 ac_header_preproc
=yes
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 eval "$as_ac_Header=\$ac_header_preproc"
10000 ac_res
=`eval echo '${'$as_ac_Header'}'`
10001 { echo "$as_me:$LINENO: result: $ac_res" >&5
10002 echo "${ECHO_T}$ac_res" >&6; }
10005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10006 cat >>confdefs.h
<<_ACEOF
10007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10015 for ac_func
in getpagesize
10017 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10020 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 cat >conftest.
$ac_ext <<_ACEOF
10026 cat confdefs.h
>>conftest.
$ac_ext
10027 cat >>conftest.
$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10031 #define $ac_func innocuous_$ac_func
10033 /* System header to define __stub macros and hopefully few prototypes,
10034 which can conflict with char $ac_func (); below.
10035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10036 <limits.h> exists even on freestanding compilers. */
10039 # include <limits.h>
10041 # include <assert.h>
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined __stub_$ac_func || defined __stub___$ac_func
10063 return $ac_func ();
10068 rm -f conftest.
$ac_objext conftest
$ac_exeext
10069 if { (ac_try
="$ac_link"
10070 case "(($ac_try" in
10071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest$ac_exeext &&
10085 $as_test_x conftest$ac_exeext; then
10086 eval "$as_ac_var=yes"
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 eval "$as_ac_var=no"
10094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095 conftest$ac_exeext conftest.$ac_ext
10097 ac_res=`eval echo '${'$as_ac_var'}'`
10098 { echo "$as_me:$LINENO: result: $ac_res" >&5
10099 echo "${ECHO_T}$ac_res" >&6; }
10100 if test `eval echo '${'$as_ac_var'}'` = yes; then
10101 cat >>confdefs.h <<_ACEOF
10102 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10108 { echo "$as_me:$LINENO: checking for working mmap" >&5
10109 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10110 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 if test "$cross_compiling" = yes; then
10114 ac_cv_func_mmap_fixed_mapped=no
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 /* malloc might have been renamed as rpl_malloc. */
10126 /* Thanks to Mike Haertel and Jim Avera for this test.
10127 Here is a matrix of mmap possibilities:
10128 mmap private not fixed
10129 mmap private fixed at somewhere currently unmapped
10130 mmap private fixed at somewhere already mapped
10131 mmap shared not fixed
10132 mmap shared fixed at somewhere currently unmapped
10133 mmap shared fixed at somewhere already mapped
10134 For private mappings, we should verify that changes cannot be read()
10135 back from the file, nor mmap's back from the file at a different
10136 address. (There have been systems where private was not correctly
10137 implemented like the infamous i386 svr4.0, and systems where the
10138 VM page cache was not coherent with the file system buffer cache
10139 like early versions of FreeBSD and possibly contemporary NetBSD.)
10140 For shared mappings, we should conversely verify that changes get
10141 propagated back to all the places they're supposed to be.
10143 Grep wants private fixed already mapped.
10144 The main things grep needs to know about mmap are:
10145 * does it exist and is it safe to write into the mmap'd area
10146 * how to use it (BSD variants) */
10149 #include <sys/mman.h>
10151 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10155 /* This mess was copied from the GNU getpagesize.h. */
10156 #ifndef HAVE_GETPAGESIZE
10157 /* Assume that all systems that can run configure have sys/param.h. */
10158 # ifndef HAVE_SYS_PARAM_H
10159 # define HAVE_SYS_PARAM_H 1
10162 # ifdef _SC_PAGESIZE
10163 # define getpagesize() sysconf(_SC_PAGESIZE)
10164 # else /* no _SC_PAGESIZE */
10165 # ifdef HAVE_SYS_PARAM_H
10166 # include <sys/param.h>
10167 # ifdef EXEC_PAGESIZE
10168 # define getpagesize() EXEC_PAGESIZE
10169 # else /* no EXEC_PAGESIZE */
10171 # define getpagesize() NBPG * CLSIZE
10174 # endif /* no CLSIZE */
10175 # else /* no NBPG */
10177 # define getpagesize() NBPC
10178 # else /* no NBPC */
10180 # define getpagesize() PAGESIZE
10181 # endif /* PAGESIZE */
10182 # endif /* no NBPC */
10183 # endif /* no NBPG */
10184 # endif /* no EXEC_PAGESIZE */
10185 # else /* no HAVE_SYS_PARAM_H */
10186 # define getpagesize() 8192 /* punt totally */
10187 # endif /* no HAVE_SYS_PARAM_H */
10188 # endif /* no _SC_PAGESIZE */
10190 #endif /* no HAVE_GETPAGESIZE */
10195 char *data, *data2, *data3;
10199 pagesize = getpagesize ();
10201 /* First, make a file with some known garbage in it. */
10202 data = (char *) malloc (pagesize);
10205 for (i = 0; i < pagesize; ++i)
10206 *(data + i) = rand ();
10208 fd = creat ("conftest.mmap", 0600);
10211 if (write (fd, data, pagesize) != pagesize)
10215 /* Next, try to mmap the file at a fixed address which already has
10216 something else allocated at it. If we can, also make sure that
10217 we see the same garbage. */
10218 fd = open ("conftest.mmap", O_RDWR);
10221 data2 = (char *) malloc (2 * pagesize);
10224 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10225 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10226 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10228 for (i = 0; i < pagesize; ++i)
10229 if (*(data + i) != *(data2 + i))
10232 /* Finally, make sure that changes to the mapped area do not
10233 percolate back to the file as seen by read(). (This is a bug on
10234 some variants of i386 svr4.0.) */
10235 for (i = 0; i < pagesize; ++i)
10236 *(data2 + i) = *(data2 + i) + 1;
10237 data3 = (char *) malloc (pagesize);
10240 if (read (fd, data3, pagesize) != pagesize)
10242 for (i = 0; i < pagesize; ++i)
10243 if (*(data + i) != *(data3 + i))
10249 rm -f conftest$ac_exeext
10250 if { (ac_try="$ac_link"
10251 case "(($ac_try" in
10252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10253 *) ac_try_echo
=$ac_try;;
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_link") 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_func_mmap_fixed_mapped=yes
10271 echo "$as_me: program exited with status $ac_status" >&5
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ( exit $ac_status )
10276 ac_cv_func_mmap_fixed_mapped=no
10278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10284 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10285 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_MMAP 1
10292 rm -f conftest.mmap
10294 if test $use_mmap_for_buffers = yes; then
10298 LIBS="$libsrc_libs $LIBS"
10301 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10302 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-ldnet $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10325 return dnet_ntoa ();
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10334 *) ac_try_echo
=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest
$ac_exeext &&
10347 $as_test_x conftest
$ac_exeext; then
10348 ac_cv_lib_dnet_dnet_ntoa
=yes
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.
$ac_ext >&5
10353 ac_cv_lib_dnet_dnet_ntoa
=no
10356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10357 conftest
$ac_exeext conftest.
$ac_ext
10358 LIBS
=$ac_check_lib_save_LIBS
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10361 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10362 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10363 cat >>confdefs.h
<<_ACEOF
10364 #define HAVE_LIBDNET 1
10367 LIBS
="-ldnet $LIBS"
10372 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10373 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_check_lib_save_LIBS
=$LIBS
10378 LIBS
="-lXbsd $LIBS"
10379 cat >conftest.
$ac_ext <<_ACEOF
10382 cat confdefs.h
>>conftest.
$ac_ext
10383 cat >>conftest.
$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10395 rm -f conftest.
$ac_objext conftest
$ac_exeext
10396 if { (ac_try
="$ac_link"
10397 case "(($ac_try" in
10398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext &&
10412 $as_test_x conftest$ac_exeext; then
10413 ac_cv_lib_Xbsd_main=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_lib_Xbsd_main=no
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10426 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10427 if test $ac_cv_lib_Xbsd_main = yes; then
10428 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10433 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10434 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10435 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lpthreads $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10457 return cma_open ();
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10466 *) ac_try_echo
=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1
>conftest.err
10473 cat conftest.err
>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest
$ac_exeext &&
10479 $as_test_x conftest
$ac_exeext; then
10480 ac_cv_lib_pthreads_cma_open
=yes
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.
$ac_ext >&5
10485 ac_cv_lib_pthreads_cma_open
=no
10488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10489 conftest
$ac_exeext conftest.
$ac_ext
10490 LIBS
=$ac_check_lib_save_LIBS
10492 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10493 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10494 if test $ac_cv_lib_pthreads_cma_open = yes; then
10495 cat >>confdefs.h
<<_ACEOF
10496 #define HAVE_LIBPTHREADS 1
10499 LIBS
="-lpthreads $LIBS"
10507 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10508 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10509 if test "${gdb_cv_bigtoc+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10515 *) gdb_cv_bigtoc
=-bbigtoc ;;
10518 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10519 cat >conftest.
$ac_ext <<_ACEOF
10522 cat confdefs.h
>>conftest.
$ac_ext
10523 cat >>conftest.
$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (ac_try
="$ac_link"
10536 case "(($ac_try" in
10537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest$ac_exeext &&
10551 $as_test_x conftest$ac_exeext; then
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10564 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10565 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10569 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10570 # used for the tests that follow. We set them back to REAL_CFLAGS and
10571 # REAL_CPPFLAGS later on.
10573 REAL_CPPFLAGS="$CPPFLAGS"
10575 if test "${HAVE_X11}" = "yes"; then
10576 DEFS="$C_SWITCH_X_SITE $DEFS"
10577 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10579 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10580 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10582 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10583 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10584 # but it's more convenient here to set LD_RUN_PATH
10585 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10586 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10587 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10591 if test "${opsys}" = "gnu-linux"; then
10592 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10593 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10604 XOpenDisplay ("foo");
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10613 *) ac_try_echo
=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1
>conftest.err
10620 cat conftest.err
>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest
$ac_exeext &&
10626 $as_test_x conftest
$ac_exeext; then
10627 xlinux_first_failure
=no
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10632 xlinux_first_failure
=yes
10635 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10636 conftest
$ac_exeext conftest.
$ac_ext
10637 if test "${xlinux_first_failure}" = "yes"; then
10638 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10639 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10640 OLD_CPPFLAGS
="$CPPFLAGS"
10642 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10643 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10644 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10645 LIBS
="$LIBS -b i486-linuxaout"
10646 cat >conftest.
$ac_ext <<_ACEOF
10649 cat confdefs.h
>>conftest.
$ac_ext
10650 cat >>conftest.
$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10656 XOpenDisplay ("foo");
10661 rm -f conftest.
$ac_objext conftest
$ac_exeext
10662 if { (ac_try
="$ac_link"
10663 case "(($ac_try" in
10664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_link") 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } && {
10675 test -z "$ac_c_werror_flag" ||
10676 test ! -s conftest.err
10677 } && test -s conftest$ac_exeext &&
10678 $as_test_x conftest$ac_exeext; then
10679 xlinux_second_failure=no
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 xlinux_second_failure=yes
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10689 if test "${xlinux_second_failure}" = "yes"; then
10690 # If we get the same failure with -b, there is no use adding -b.
10691 # So take it out. This plays safe.
10692 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10693 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10694 CPPFLAGS="$OLD_CPPFLAGS"
10696 { echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6; }
10699 { echo "$as_me:$LINENO: result: yes" >&5
10700 echo "${ECHO_T}yes" >&6; }
10703 { echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6; }
10708 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10709 # header files included from there.
10710 { echo "$as_me:$LINENO: checking for Xkb" >&5
10711 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 #include <X11/Xlib.h>
10719 #include <X11/XKBlib.h>
10723 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10732 *) ac_try_echo
=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1
>conftest.err
10739 cat conftest.err
>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest
$ac_exeext &&
10745 $as_test_x conftest
$ac_exeext; then
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.
$ac_ext >&5
10754 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10755 conftest
$ac_exeext conftest.
$ac_ext
10756 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10757 echo "${ECHO_T}$emacs_xkb" >&6; }
10758 if test $emacs_xkb = yes; then
10760 cat >>confdefs.h
<<\_ACEOF
10761 #define HAVE_XKBGETKEYBOARD 1
10770 for ac_func
in XrmSetDatabase XScreenResourceString \
10771 XScreenNumberOfScreen XSetWMProtocols
10773 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10776 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 cat >conftest.
$ac_ext <<_ACEOF
10782 cat confdefs.h
>>conftest.
$ac_ext
10783 cat >>conftest.
$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10787 #define $ac_func innocuous_$ac_func
10789 /* System header to define __stub macros and hopefully few prototypes,
10790 which can conflict with char $ac_func (); below.
10791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 <limits.h> exists even on freestanding compilers. */
10795 # include <limits.h>
10797 # include <assert.h>
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10809 /* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812 #if defined __stub_$ac_func || defined __stub___$ac_func
10819 return $ac_func ();
10824 rm -f conftest.
$ac_objext conftest
$ac_exeext
10825 if { (ac_try
="$ac_link"
10826 case "(($ac_try" in
10827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 eval "$as_ac_var=yes"
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 eval "$as_ac_var=no"
10850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10853 ac_res=`eval echo '${'$as_ac_var'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10866 if test "${window_system}" = "x11"; then
10867 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10868 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10869 if test "${emacs_cv_x11_version_6+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <X11/Xlib.h>
10882 #if XlibSpecificationRelease < 6
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10894 *) ac_try_echo
=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1
>conftest.err
10901 cat conftest.err
>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest
$ac_exeext &&
10907 $as_test_x conftest
$ac_exeext; then
10908 emacs_cv_x11_version_6
=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.
$ac_ext >&5
10913 emacs_cv_x11_version_6
=no
10916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10917 conftest
$ac_exeext conftest.
$ac_ext
10920 if test $emacs_cv_x11_version_6 = yes; then
10921 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10922 echo "${ECHO_T}6 or newer" >&6; }
10924 cat >>confdefs.h
<<\_ACEOF
10925 #define HAVE_X11R6 1
10929 { echo "$as_me:$LINENO: result: before 6" >&5
10930 echo "${ECHO_T}before 6" >&6; }
10935 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10937 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10938 if test "${with_rsvg}" != "no"; then
10939 RSVG_REQUIRED
=2.0.0
10940 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10945 # Extract the first word of "pkg-config", so it can be a program name with args.
10946 set dummy pkg-config
; ac_word
=$2
10947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 case $PKG_CONFIG in
10954 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10958 for as_dir
in $PATH
10961 test -z "$as_dir" && as_dir
=.
10962 for ac_exec_ext
in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10976 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10977 if test -n "$PKG_CONFIG"; then
10978 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10979 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10981 { echo "$as_me:$LINENO: result: no" >&5
10982 echo "${ECHO_T}no" >&6; }
10987 if test "$PKG_CONFIG" = "no" ; then
10990 PKG_CONFIG_MIN_VERSION
=0.9.0
10991 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10992 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10993 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10995 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10996 { echo "$as_me:$LINENO: result: yes" >&5
10997 echo "${ECHO_T}yes" >&6; }
11000 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11001 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11002 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11003 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11004 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11006 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11007 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11008 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11009 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11010 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11012 { echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6; }
11016 ## If we have a custom action on failure, don't print errors, but
11017 ## do set a variable so people can do so.
11018 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11025 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11026 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11030 if test $succeeded = yes; then
11039 if test ".${RSVG_CFLAGS}" != "."; then
11042 cat >>confdefs.h
<<\_ACEOF
11043 #define HAVE_RSVG 1
11046 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11047 LIBS
="$RSVG_LIBS $LIBS"
11054 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11057 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11062 # Extract the first word of "pkg-config", so it can be a program name with args.
11063 set dummy pkg-config
; ac_word
=$2
11064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11066 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 case $PKG_CONFIG in
11071 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11075 for as_dir
in $PATH
11078 test -z "$as_dir" && as_dir
=.
11079 for ac_exec_ext
in '' $ac_executable_extensions; do
11080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11081 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11093 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11094 if test -n "$PKG_CONFIG"; then
11095 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11096 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11104 if test "$PKG_CONFIG" = "no" ; then
11107 PKG_CONFIG_MIN_VERSION
=0.9.0
11108 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11109 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11110 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11112 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11117 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11118 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11119 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11120 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11121 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11123 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11124 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11125 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11126 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11127 echo "${ECHO_T}$GTK_LIBS" >&6; }
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11133 ## If we have a custom action on failure, don't print errors, but
11134 ## do set a variable so people can do so.
11135 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11142 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11143 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11147 if test $succeeded = yes; then
11153 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11154 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11155 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11156 { (exit 1); exit 1; }; }
11161 if test x
"$pkg_check_gtk" = xyes
; then
11165 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11166 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11167 LIBS
="$GTK_LIBS $LIBS"
11170 for ac_func
in gtk_main
11172 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11175 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 cat >conftest.
$ac_ext <<_ACEOF
11181 cat confdefs.h
>>conftest.
$ac_ext
11182 cat >>conftest.
$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11186 #define $ac_func innocuous_$ac_func
11188 /* System header to define __stub macros and hopefully few prototypes,
11189 which can conflict with char $ac_func (); below.
11190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11191 <limits.h> exists even on freestanding compilers. */
11194 # include <limits.h>
11196 # include <assert.h>
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11208 /* The GNU C library defines this for functions which it implements
11209 to always fail with ENOSYS. Some functions are actually named
11210 something starting with __ and the normal name is an alias. */
11211 #if defined __stub_$ac_func || defined __stub___$ac_func
11218 return $ac_func ();
11223 rm -f conftest.
$ac_objext conftest
$ac_exeext
11224 if { (ac_try
="$ac_link"
11225 case "(($ac_try" in
11226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
11241 eval "$as_ac_var=yes"
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 eval "$as_ac_var=no"
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250 conftest$ac_exeext conftest.$ac_ext
11252 ac_res=`eval echo '${'$as_ac_var'}'`
11253 { echo "$as_me:$LINENO: result: $ac_res" >&5
11254 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11263 if test "${GTK_COMPILES}" != "yes"; then
11264 if test "$USE_X_TOOLKIT" != "maybe"; then
11265 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11266 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11267 { (exit 1); exit 1; }; };
11272 cat >>confdefs.h <<\_ACEOF
11277 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11280 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11281 closing open displays. This is no problem if you just use
11282 one display, but if you use more than one and close one of them
11283 Emacs may crash." >&5
11284 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11285 closing open displays. This is no problem if you just use
11286 one display, but if you use more than one and close one of them
11287 Emacs may crash." >&2;}
11295 if test "${HAVE_GTK}" = "yes"; then
11297 if test "$with_toolkit_scroll_bars" != no; then
11298 with_toolkit_scroll_bars=yes
11301 HAVE_GTK_MULTIDISPLAY=no
11303 for ac_func in gdk_display_open
11305 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11319 #define $ac_func innocuous_$ac_func
11321 /* System header to define __stub macros and hopefully few prototypes,
11322 which can conflict with char $ac_func (); below.
11323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11324 <limits.h> exists even on freestanding compilers. */
11327 # include <limits.h>
11329 # include <assert.h>
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11341 /* The GNU C library defines this for functions which it implements
11342 to always fail with ENOSYS. Some functions are actually named
11343 something starting with __ and the normal name is an alias. */
11344 #if defined __stub_$ac_func || defined __stub___$ac_func
11351 return $ac_func ();
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (ac_try="$ac_link"
11358 case "(($ac_try" in
11359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11360 *) ac_try_echo
=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_link") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest
$ac_exeext &&
11373 $as_test_x conftest
$ac_exeext; then
11374 eval "$as_ac_var=yes"
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.
$ac_ext >&5
11379 eval "$as_ac_var=no"
11382 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11383 conftest
$ac_exeext conftest.
$ac_ext
11385 ac_res
=`eval echo '${'$as_ac_var'}'`
11386 { echo "$as_me:$LINENO: result: $ac_res" >&5
11387 echo "${ECHO_T}$ac_res" >&6; }
11388 if test `eval echo '${'$as_ac_var'}'` = yes; then
11389 cat >>confdefs.h
<<_ACEOF
11390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11392 HAVE_GTK_MULTIDISPLAY
=yes
11396 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11398 cat >>confdefs.h
<<\_ACEOF
11399 #define HAVE_GTK_MULTIDISPLAY 1
11404 HAVE_GTK_FILE_SELECTION
=no
11406 for ac_func
in gtk_file_selection_new
11408 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 cat >conftest.
$ac_ext <<_ACEOF
11417 cat confdefs.h
>>conftest.
$ac_ext
11418 cat >>conftest.
$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11422 #define $ac_func innocuous_$ac_func
11424 /* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func (); below.
11426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427 <limits.h> exists even on freestanding compilers. */
11430 # include <limits.h>
11432 # include <assert.h>
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11454 return $ac_func ();
11459 rm -f conftest.
$ac_objext conftest
$ac_exeext
11460 if { (ac_try
="$ac_link"
11461 case "(($ac_try" in
11462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_link") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest$ac_exeext &&
11476 $as_test_x conftest$ac_exeext; then
11477 eval "$as_ac_var=yes"
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 eval "$as_ac_var=no"
11485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486 conftest$ac_exeext conftest.$ac_ext
11488 ac_res=`eval echo '${'$as_ac_var'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 if test `eval echo '${'$as_ac_var'}'` = yes; then
11492 cat >>confdefs.h <<_ACEOF
11493 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11495 HAVE_GTK_FILE_SELECTION=yes
11500 HAVE_GTK_FILE_CHOOSER=no
11502 for ac_func in gtk_file_chooser_dialog_new
11504 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11518 #define $ac_func innocuous_$ac_func
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func (); below.
11522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523 <limits.h> exists even on freestanding compilers. */
11526 # include <limits.h>
11528 # include <assert.h>
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined __stub_$ac_func || defined __stub___$ac_func
11550 return $ac_func ();
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11559 *) ac_try_echo
=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1
>conftest.err
11566 cat conftest.err
>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest
$ac_exeext &&
11572 $as_test_x conftest
$ac_exeext; then
11573 eval "$as_ac_var=yes"
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.
$ac_ext >&5
11578 eval "$as_ac_var=no"
11581 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11582 conftest
$ac_exeext conftest.
$ac_ext
11584 ac_res
=`eval echo '${'$as_ac_var'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_var'}'` = yes; then
11588 cat >>confdefs.h
<<_ACEOF
11589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591 HAVE_GTK_FILE_CHOOSER
=yes
11596 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11597 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11599 cat >>confdefs.h
<<\_ACEOF
11600 #define HAVE_GTK_FILE_BOTH 1
11605 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11606 HAVE_GTK_AND_PTHREAD
=no
11608 for ac_header
in pthread.h
11610 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 ac_res
=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11621 # Is the header compilable?
11622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11624 cat >conftest.
$ac_ext <<_ACEOF
11627 cat confdefs.h
>>conftest.
$ac_ext
11628 cat >>conftest.
$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 $ac_includes_default
11631 #include <$ac_header>
11633 rm -f conftest.
$ac_objext
11634 if { (ac_try
="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11650 ac_header_compiler=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_compiler=no
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11660 echo "${ECHO_T}$ac_header_compiler" >&6; }
11662 # Is the header present?
11663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <$ac_header>
11673 if { (ac_try="$ac_cpp conftest.$ac_ext"
11674 case "(($ac_try" in
11675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11676 *) ac_try_echo
=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1
>conftest.err
11683 cat conftest.err
>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } >/dev
/null
&& {
11686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11689 ac_header_preproc
=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.
$ac_ext >&5
11694 ac_header_preproc
=no
11697 rm -f conftest.err conftest.
$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6; }
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc
=yes
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11728 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 eval "$as_ac_Header=\$ac_header_preproc"
11733 ac_res
=`eval echo '${'$as_ac_Header'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11739 cat >>confdefs.h
<<_ACEOF
11740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11747 if test "$ac_cv_header_pthread_h"; then
11748 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11749 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11750 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 ac_check_lib_save_LIBS
=$LIBS
11754 LIBS
="-lpthread $LIBS"
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11768 char pthread_self ();
11772 return pthread_self ();
11777 rm -f conftest.
$ac_objext conftest
$ac_exeext
11778 if { (ac_try
="$ac_link"
11779 case "(($ac_try" in
11780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext &&
11794 $as_test_x conftest$ac_exeext; then
11795 ac_cv_lib_pthread_pthread_self=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_cv_lib_pthread_pthread_self=no
11803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11807 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11808 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11809 if test $ac_cv_lib_pthread_pthread_self = yes; then
11810 HAVE_GTK_AND_PTHREAD=yes
11814 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11815 case "${canonical}" in
11817 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11820 cat >>confdefs.h <<\_ACEOF
11821 #define HAVE_GTK_AND_PTHREAD 1
11829 if test "${with_dbus}" = "yes"; then
11833 # Extract the first word of "pkg-config", so it can be a program name with args.
11834 set dummy pkg-config; ac_word=$2
11835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11837 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 case $PKG_CONFIG in
11842 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11864 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11865 if test -n "$PKG_CONFIG"; then
11866 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11867 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11869 { echo "$as_me:$LINENO: result: no" >&5
11870 echo "${ECHO_T}no" >&6; }
11875 if test "$PKG_CONFIG" = "no" ; then
11878 PKG_CONFIG_MIN_VERSION=0.9.0
11879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11880 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11881 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11883 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11884 { echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6; }
11888 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11889 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11890 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11891 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11892 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11894 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11895 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11896 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11897 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11898 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11900 { echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6; }
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so.
11906 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11918 if test $succeeded = yes; then
11924 if test "$HAVE_DBUS" = yes; then
11926 cat >>confdefs.h <<\_ACEOF
11927 #define HAVE_DBUS 1
11934 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11935 if test "$with_xaw3d" != no; then
11936 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11937 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11938 if test "${emacs_cv_xaw3d+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 #include <X11/Intrinsic.h>
11949 #include <X11/Xaw3d/Simple.h>
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11962 *) ac_try_echo
=$ac_try;;
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11967 grep -v '^ *+' conftest.er1
>conftest.err
11969 cat conftest.err
>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest
$ac_exeext &&
11975 $as_test_x conftest
$ac_exeext; then
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.
$ac_ext >&5
11984 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11985 conftest
$ac_exeext conftest.
$ac_ext
11991 if test $emacs_cv_xaw3d = yes; then
11992 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11993 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11994 USE_X_TOOLKIT
=LUCID
11997 cat >>confdefs.h
<<\_ACEOF
11998 #define HAVE_XAW3D 1
12002 { echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6; }
12004 { echo "$as_me:$LINENO: checking for libXaw" >&5
12005 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12006 if test "${emacs_cv_xaw+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12016 #include <X11/Intrinsic.h>
12017 #include <X11/Xaw/Simple.h>
12026 rm -f conftest.
$ac_objext conftest
$ac_exeext
12027 if { (ac_try
="$ac_link"
12028 case "(($ac_try" in
12029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_link") 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest$ac_exeext &&
12043 $as_test_x conftest$ac_exeext; then
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053 conftest$ac_exeext conftest.$ac_ext
12056 if test $emacs_cv_xaw = yes; then
12057 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12058 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12059 USE_X_TOOLKIT=LUCID
12060 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12061 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12062 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12063 { (exit 1); exit 1; }; }
12065 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12066 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12072 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12074 if test "${USE_X_TOOLKIT}" != "none"; then
12075 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12076 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12077 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <X11/Intrinsic.h>
12090 #if XtSpecificationRelease < 6
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12102 *) ac_try_echo
=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1
>conftest.err
12109 cat conftest.err
>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest
$ac_exeext &&
12115 $as_test_x conftest
$ac_exeext; then
12116 emacs_cv_x11_toolkit_version_6
=yes
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.
$ac_ext >&5
12121 emacs_cv_x11_toolkit_version_6
=no
12124 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12125 conftest
$ac_exeext conftest.
$ac_ext
12128 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12129 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12130 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12131 echo "${ECHO_T}6 or newer" >&6; }
12133 cat >>confdefs.h
<<\_ACEOF
12134 #define HAVE_X11XTR6 1
12138 { echo "$as_me:$LINENO: result: before 6" >&5
12139 echo "${ECHO_T}before 6" >&6; }
12143 if test x
$HAVE_X11XTR6 = xyes
; then
12144 LIBS
="-lXt -lSM -lICE $LIBS"
12149 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12150 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS
=$LIBS
12156 cat >conftest.
$ac_ext <<_ACEOF
12159 cat confdefs.h
>>conftest.
$ac_ext
12160 cat >>conftest.
$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12169 char XmuConvertStandardSelection ();
12173 return XmuConvertStandardSelection ();
12178 rm -f conftest.
$ac_objext conftest
$ac_exeext
12179 if { (ac_try
="$ac_link"
12180 case "(($ac_try" in
12181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12196 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12209 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12210 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE_LIBXMU 1
12219 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12222 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12223 if test "${HAVE_X11}" = "yes"; then
12224 if test "${USE_X_TOOLKIT}" != "none"; then
12226 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12227 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12228 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-lXext $LIBS"
12233 cat >conftest.$ac_ext <<_ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12246 char XShapeQueryExtension ();
12250 return XShapeQueryExtension ();
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12259 *) ac_try_echo
=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_link") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1
>conftest.err
12266 cat conftest.err
>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest
$ac_exeext &&
12272 $as_test_x conftest
$ac_exeext; then
12273 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.
$ac_ext >&5
12278 ac_cv_lib_Xext_XShapeQueryExtension
=no
12281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12282 conftest
$ac_exeext conftest.
$ac_ext
12283 LIBS
=$ac_check_lib_save_LIBS
12285 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12286 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12287 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12288 cat >>confdefs.h
<<_ACEOF
12289 #define HAVE_LIBXEXT 1
12292 LIBS
="-lXext $LIBS"
12299 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12300 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12301 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12302 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 cat >conftest.
$ac_ext <<_ACEOF
12308 cat confdefs.h
>>conftest.
$ac_ext
12309 cat >>conftest.
$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12315 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12318 Motif version prior to 2.1.
12324 rm -f conftest.
$ac_objext
12325 if { (ac_try
="$ac_compile"
12326 case "(($ac_try" in
12327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12341 emacs_cv_motif_version_2_1=yes
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 emacs_cv_motif_version_2_1=no
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12352 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12353 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12354 if test $emacs_cv_motif_version_2_1 = yes; then
12357 cat >>confdefs.h <<\_ACEOF
12358 #define HAVE_MOTIF_2_1 1
12361 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12362 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12363 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 ac_check_lib_save_LIBS=$LIBS
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12381 char XpCreateContext ();
12385 return XpCreateContext ();
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12394 *) ac_try_echo
=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_link") 2>conftest.er1
12399 grep -v '^ *+' conftest.er1
>conftest.err
12401 cat conftest.err
>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest
$ac_exeext &&
12407 $as_test_x conftest
$ac_exeext; then
12408 ac_cv_lib_Xp_XpCreateContext
=yes
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.
$ac_ext >&5
12413 ac_cv_lib_Xp_XpCreateContext
=no
12416 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12417 conftest
$ac_exeext conftest.
$ac_ext
12418 LIBS
=$ac_check_lib_save_LIBS
12420 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12421 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12422 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12426 if test ${HAVE_LIBXP} = yes; then
12428 cat >>confdefs.h
<<\_ACEOF
12429 #define HAVE_LIBXP 1
12434 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12435 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12436 if test "${emacs_cv_lesstif+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 # We put this in CFLAGS temporarily to precede other -I options
12440 # that might be in CFLAGS temporarily.
12441 # We put this in CPPFLAGS where it precedes the other -I options.
12442 OLD_CPPFLAGS
=$CPPFLAGS
12444 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12445 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12446 cat >conftest.
$ac_ext <<_ACEOF
12449 cat confdefs.h
>>conftest.
$ac_ext
12450 cat >>conftest.
$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12461 rm -f conftest.
$ac_objext
12462 if { (ac_try
="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
12478 emacs_cv_lesstif=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 emacs_cv_lesstif=no
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12489 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12490 if test $emacs_cv_lesstif = yes; then
12491 # Make sure this -I option remains in CPPFLAGS after it is set
12492 # back to REAL_CPPFLAGS.
12493 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12494 # have those other -I options anyway. Ultimately, having this
12495 # directory ultimately in CPPFLAGS will be enough.
12496 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12497 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12500 CPPFLAGS=$OLD_CPPFLAGS
12507 USE_TOOLKIT_SCROLL_BARS=no
12508 if test "${with_toolkit_scroll_bars}" != "no"; then
12509 if test "${USE_X_TOOLKIT}" != "none"; then
12510 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define USE_TOOLKIT_SCROLL_BARS 1
12516 USE_TOOLKIT_SCROLL_BARS=yes
12517 elif test "${HAVE_XAW3D}" = "yes"; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define USE_TOOLKIT_SCROLL_BARS 1
12522 USE_TOOLKIT_SCROLL_BARS=yes
12524 elif test "${HAVE_GTK}" = "yes"; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define USE_TOOLKIT_SCROLL_BARS 1
12529 USE_TOOLKIT_SCROLL_BARS=yes
12530 elif test "${HAVE_CARBON}" = "yes"; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define USE_TOOLKIT_SCROLL_BARS 1
12535 USE_TOOLKIT_SCROLL_BARS=yes
12539 cat >conftest.$ac_ext <<_ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12546 #include <X11/Xlib.h>
12547 #include <X11/Xresource.h>
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12560 *) ac_try_echo
=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1
>conftest.err
12567 cat conftest.err
>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest.
$ac_objext; then
12575 cat >>confdefs.h
<<\_ACEOF
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12589 if test "${with_xim}" != "no"; then
12591 cat >>confdefs.h
<<\_ACEOF
12598 if test "${HAVE_XIM}" != "no"; then
12599 late_CFLAGS
=$CFLAGS
12600 if test "$GCC" = yes; then
12601 CFLAGS
="$CFLAGS --pedantic-errors"
12603 cat >conftest.
$ac_ext <<_ACEOF
12606 cat confdefs.h
>>conftest.
$ac_ext
12607 cat >>conftest.
$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 #include <X11/Xlib.h>
12611 #include <X11/Xresource.h>
12620 XPointer *client_data;
12622 /* If we're not using GCC, it's probably not XFree86, and this is
12623 probably right, but we can't use something like --pedantic-errors. */
12624 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12625 char*, XIMProc, XPointer*);
12627 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12633 rm -f conftest.
$ac_objext
12634 if { (ac_try
="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12642 grep -v '^ *+' conftest.er1 >conftest.err
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.$ac_objext; then
12650 emacs_cv_arg6_star=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 if test "$emacs_cv_arg6_star" = yes; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12666 cat >>confdefs.h <<\_ACEOF
12667 #define XRegisterIMInstantiateCallback_arg6 XPointer
12671 CFLAGS=$late_CFLAGS
12674 ### Start of font-backend section.
12675 if test "${HAVE_X11}" != "yes"; then
12676 USE_FONT_BACKEND=no
12679 if test "${USE_FONT_BACKEND}" = "yes"; then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define USE_FONT_BACKEND 1
12686 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12688 if test "x${with_freetype}" = "xno"; then
12691 if test "x${with_xft}" != "xno"; then
12696 # Extract the first word of "pkg-config", so it can be a program name with args.
12697 set dummy pkg-config
; ac_word
=$2
12698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12700 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 case $PKG_CONFIG in
12705 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12709 for as_dir
in $PATH
12712 test -z "$as_dir" && as_dir
=.
12713 for ac_exec_ext
in '' $ac_executable_extensions; do
12714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12715 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12727 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12728 if test -n "$PKG_CONFIG"; then
12729 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12730 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12732 { echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6; }
12738 if test "$PKG_CONFIG" = "no" ; then
12741 PKG_CONFIG_MIN_VERSION
=0.9.0
12742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12743 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12744 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12746 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12747 { echo "$as_me:$LINENO: result: yes" >&5
12748 echo "${ECHO_T}yes" >&6; }
12751 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12752 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12753 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12754 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12755 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12757 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12758 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12759 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12760 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12761 echo "${ECHO_T}$XFT_LIBS" >&6; }
12763 { echo "$as_me:$LINENO: result: no" >&5
12764 echo "${ECHO_T}no" >&6; }
12767 ## If we have a custom action on failure, don't print errors, but
12768 ## do set a variable so people can do so.
12769 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12781 if test $succeeded = yes; then
12787 if test "$HAVE_XFT" != no
; then
12788 OLD_CPPFLAGS
="$CPPFLAGS"
12789 OLD_CFLAGS
="$CFLAGS"
12791 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12792 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12793 LIBS
="$XFT_LIBS $LIBS"
12794 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12795 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12796 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12797 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12801 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12803 # Is the header compilable?
12804 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12805 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12806 cat >conftest.
$ac_ext <<_ACEOF
12809 cat confdefs.h
>>conftest.
$ac_ext
12810 cat >>conftest.
$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 #include <X11/Xft/Xft.h>
12815 rm -f conftest.
$ac_objext
12816 if { (ac_try
="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1 >conftest.err
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest.$ac_objext; then
12832 ac_header_compiler=yes
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_header_compiler=no
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12842 echo "${ECHO_T}$ac_header_compiler" >&6; }
12844 # Is the header present?
12845 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12846 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 #include <X11/Xft/Xft.h>
12855 if { (ac_try="$ac_cpp conftest.$ac_ext"
12856 case "(($ac_try" in
12857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12858 *) ac_try_echo
=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12863 grep -v '^ *+' conftest.er1
>conftest.err
12865 cat conftest.err
>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } >/dev
/null
&& {
12868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12871 ac_header_preproc
=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ac_header_preproc
=no
12879 rm -f conftest.err conftest.
$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12883 # So? What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12886 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc
=yes
12893 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12908 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12909 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12910 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12916 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12919 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12920 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12921 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12922 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 ac_check_lib_save_LIBS
=$LIBS
12926 LIBS
="-lXft $XFT_LIBS $LIBS"
12927 cat >conftest.
$ac_ext <<_ACEOF
12930 cat confdefs.h
>>conftest.
$ac_ext
12931 cat >>conftest.
$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12940 char XftFontOpen ();
12944 return XftFontOpen ();
12949 rm -f conftest.
$ac_objext conftest
$ac_exeext
12950 if { (ac_try
="$ac_link"
12951 case "(($ac_try" in
12952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_c_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext &&
12966 $as_test_x conftest$ac_exeext; then
12967 ac_cv_lib_Xft_XftFontOpen=yes
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_cv_lib_Xft_XftFontOpen=no
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12979 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12980 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12981 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12989 if test "${HAVE_XFT}" = "yes"; then
12991 cat >>confdefs.h <<\_ACEOF
12996 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12998 CPPFLAGS="$OLD_CPPFLAGS"
12999 CFLAGS="$OLD_CFLAGS"
13001 fi # "${HAVE_XFT}" = "yes"
13002 fi # "$HAVE_XFT" != no
13003 fi # "x${with_xft}" != "xno"
13005 if test "$HAVE_XFT" != "yes"; then
13011 ### Use -lfreetype if available, unless `--with-freetype=no
'.
13012 if test "${HAVE_XFT}" = "yes"; then
13014 elif test "x${with_freetype}" != "xno"; then
13019 # Extract the first word of "pkg-config", so it can be a program name with args.
13020 set dummy pkg-config; ac_word=$2
13021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 case $PKG_CONFIG in
13028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13051 if test -n "$PKG_CONFIG"; then
13052 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13053 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13055 { echo "$as_me:$LINENO: result: no" >&5
13056 echo "${ECHO_T}no" >&6; }
13061 if test "$PKG_CONFIG" = "no" ; then
13064 PKG_CONFIG_MIN_VERSION=0.9.0
13065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13066 { echo "$as_me:$LINENO: checking for freetype2" >&5
13067 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13069 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13070 { echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6; }
13074 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13075 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13076 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13077 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13078 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13080 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13081 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13082 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13083 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13084 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13086 { echo "$as_me:$LINENO: result: no" >&5
13087 echo "${ECHO_T}no" >&6; }
13090 ## If we have a custom action on failure, don't print errors
, but
13091 ## do set a variable so people can do so.
13092 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13104 if test $succeeded = yes; then
13110 if test "${HAVE_FREETYPE}" = "yes"; then
13114 # Extract the first word of "pkg-config", so it can be a program name with args.
13115 set dummy pkg-config
; ac_word
=$2
13116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 case $PKG_CONFIG in
13123 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13127 for as_dir
in $PATH
13130 test -z "$as_dir" && as_dir
=.
13131 for ac_exec_ext
in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13145 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13146 if test -n "$PKG_CONFIG"; then
13147 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13156 if test "$PKG_CONFIG" = "no" ; then
13159 PKG_CONFIG_MIN_VERSION
=0.9.0
13160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13161 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13162 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13164 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13165 { echo "$as_me:$LINENO: result: yes" >&5
13166 echo "${ECHO_T}yes" >&6; }
13169 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13170 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13171 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13172 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13173 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13175 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13176 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13177 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13178 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13179 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13181 { echo "$as_me:$LINENO: result: no" >&5
13182 echo "${ECHO_T}no" >&6; }
13183 FONTCONFIG_CFLAGS
=""
13185 ## If we have a custom action on failure, don't print errors, but
13186 ## do set a variable so people can do so.
13187 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13199 if test $succeeded = yes; then
13205 if test "${HAVE_FC}" = "no"; then
13212 if test "${HAVE_FREETYPE}" = "yes"; then
13214 cat >>confdefs.h
<<\_ACEOF
13215 #define HAVE_FREETYPE 1
13218 if test "${with_libotf}" != "no"; then
13222 # Extract the first word of "pkg-config", so it can be a program name with args.
13223 set dummy pkg-config
; ac_word
=$2
13224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 case $PKG_CONFIG in
13231 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13235 for as_dir
in $PATH
13238 test -z "$as_dir" && as_dir
=.
13239 for ac_exec_ext
in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13253 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13254 if test -n "$PKG_CONFIG"; then
13255 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13256 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13258 { echo "$as_me:$LINENO: result: no" >&5
13259 echo "${ECHO_T}no" >&6; }
13264 if test "$PKG_CONFIG" = "no" ; then
13267 PKG_CONFIG_MIN_VERSION
=0.9.0
13268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13269 { echo "$as_me:$LINENO: checking for libotf" >&5
13270 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13272 if $PKG_CONFIG --exists "libotf" 2>&5; then
13273 { echo "$as_me:$LINENO: result: yes" >&5
13274 echo "${ECHO_T}yes" >&6; }
13277 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13278 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13279 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13280 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13281 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13283 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13284 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13285 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13286 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13287 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13289 { echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6; }
13293 ## If we have a custom action on failure, don't print errors, but
13294 ## do set a variable so people can do so.
13295 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13307 if test $succeeded = yes; then
13313 if test "$HAVE_LIBOTF" = "yes"; then
13315 cat >>confdefs.h
<<\_ACEOF
13316 #define HAVE_LIBOTF 1
13324 if test "${with_m17n_flt}" != "no"; then
13328 # Extract the first word of "pkg-config", so it can be a program name with args.
13329 set dummy pkg-config
; ac_word
=$2
13330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 case $PKG_CONFIG in
13337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13341 for as_dir
in $PATH
13344 test -z "$as_dir" && as_dir
=.
13345 for ac_exec_ext
in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13360 if test -n "$PKG_CONFIG"; then
13361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13364 { echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6; }
13370 if test "$PKG_CONFIG" = "no" ; then
13373 PKG_CONFIG_MIN_VERSION
=0.9.0
13374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13375 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13376 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13378 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13379 { echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6; }
13383 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13384 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13385 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13386 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13387 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13389 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13390 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13391 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13392 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13393 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13395 { echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6; }
13399 ## If we have a custom action on failure, don't print errors, but
13400 ## do set a variable so people can do so.
13401 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13413 if test $succeeded = yes; then
13419 if test "$HAVE_M17N_FLT" = "yes"; then
13421 cat >>confdefs.h
<<\_ACEOF
13422 #define HAVE_M17N_FLT 1
13437 fi # "${USE_FONT_BACKEND}" = "yes"
13438 ### End of font-backend section.
13440 ### Use -lXpm if available, unless `--with-xpm=no'.
13442 if test "${HAVE_X11}" = "yes"; then
13443 if test "${with_xpm}" != "no"; then
13444 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13445 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13446 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13447 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13451 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13453 # Is the header compilable?
13454 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13455 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13456 cat >conftest.
$ac_ext <<_ACEOF
13459 cat confdefs.h
>>conftest.
$ac_ext
13460 cat >>conftest.
$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 #include <X11/xpm.h>
13465 rm -f conftest.
$ac_objext
13466 if { (ac_try
="$ac_compile"
13467 case "(($ac_try" in
13468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_compile") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest.$ac_objext; then
13482 ac_header_compiler=yes
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_header_compiler=no
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13492 echo "${ECHO_T}$ac_header_compiler" >&6; }
13494 # Is the header present?
13495 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13496 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <X11/xpm.h>
13505 if { (ac_try="$ac_cpp conftest.$ac_ext"
13506 case "(($ac_try" in
13507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13508 *) ac_try_echo
=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1
>conftest.err
13515 cat conftest.err
>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } >/dev
/null
&& {
13518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13521 ac_header_preproc
=yes
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.
$ac_ext >&5
13526 ac_header_preproc
=no
13529 rm -f conftest.err conftest.
$ac_ext
13530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 echo "${ECHO_T}$ac_header_preproc" >&6; }
13533 # So? What about this header?
13534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13536 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13537 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13539 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13540 ac_header_preproc
=yes
13543 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13544 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13546 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13548 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13550 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13552 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13554 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13558 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13559 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13560 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13565 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13566 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13569 if test $ac_cv_header_X11_xpm_h = yes; then
13570 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13571 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 ac_check_lib_save_LIBS
=$LIBS
13576 LIBS
="-lXpm -lX11 $LIBS"
13577 cat >conftest.
$ac_ext <<_ACEOF
13580 cat confdefs.h
>>conftest.
$ac_ext
13581 cat >>conftest.
$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13590 char XpmReadFileToPixmap ();
13594 return XpmReadFileToPixmap ();
13599 rm -f conftest.
$ac_objext conftest
$ac_exeext
13600 if { (ac_try
="$ac_link"
13601 case "(($ac_try" in
13602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest$ac_exeext &&
13616 $as_test_x conftest$ac_exeext; then
13617 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LIBS=$ac_check_lib_save_LIBS
13629 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13630 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13631 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13638 if test "${HAVE_XPM}" = "yes"; then
13639 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13640 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include "X11/xpm.h"
13648 #ifndef XpmReturnAllocPixels
13649 no_return_alloc_pixels
13653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13654 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13662 if test "${HAVE_XPM}" = "yes"; then
13663 { echo "$as_me:$LINENO: result: yes" >&5
13664 echo "${ECHO_T}yes" >&6; }
13666 { echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6; }
13672 if test "${HAVE_XPM}" = "yes"; then
13674 cat >>confdefs.h <<\_ACEOF
13681 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13683 if test "${HAVE_X11}" = "yes"; then
13684 if test "${with_jpeg}" != "no"; then
13685 if test "${ac_cv_header_jerror_h+set}" = set; then
13686 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13687 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13688 if test "${ac_cv_header_jerror_h+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13691 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13692 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13694 # Is the header compilable?
13695 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13696 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13697 cat >conftest.$ac_ext <<_ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13704 #include <jerror.h>
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_compile") 2>conftest.er1
13715 grep -v '^
*+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest.$ac_objext; then
13723 ac_header_compiler=yes
13725 echo "$as_me: failed program was:" >&5
13726 sed 's
/^
/|
/' conftest.$ac_ext >&5
13728 ac_header_compiler=no
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13733 echo "${ECHO_T}$ac_header_compiler" >&6; }
13735 # Is the header present?
13736 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13737 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <jerror.h>
13746 if { (ac_try="$ac_cpp conftest.$ac_ext"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13754 grep -v '^
*+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev/null && {
13759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13762 ac_header_preproc=yes
13764 echo "$as_me: failed program was:" >&5
13765 sed 's
/^
/|
/' conftest.$ac_ext >&5
13767 ac_header_preproc=no
13770 rm -f conftest.err conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13772 echo "${ECHO_T}$ac_header_preproc" >&6; }
13774 # So? What about this header?
13775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13777 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13778 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13780 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13781 ac_header_preproc=yes
13784 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13785 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13787 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13789 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13791 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13793 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13795 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13799 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13800 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13801 if test "${ac_cv_header_jerror_h+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 ac_cv_header_jerror_h=$ac_header_preproc
13806 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13807 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13810 if test $ac_cv_header_jerror_h = yes; then
13811 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13812 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13813 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 ac_check_lib_save_LIBS=$LIBS
13817 LIBS="-ljpeg $LIBS"
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13831 char jpeg_destroy_compress ();
13835 return jpeg_destroy_compress ();
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13849 grep -v '^
*+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest$ac_exeext &&
13857 $as_test_x conftest$ac_exeext; then
13858 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13860 echo "$as_me: failed program was:" >&5
13861 sed 's
/^
/|
/' conftest.$ac_ext >&5
13863 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13870 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13871 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13872 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13882 if test "${HAVE_JPEG}" = "yes"; then
13883 cat >>confdefs.h <<\_ACEOF
13884 #define HAVE_JPEG 1
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 #include <jpeglib.h>
13894 version=JPEG_LIB_VERSION
13897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13898 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_JPEG 1
13904 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13905 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13913 ### Use -lpng if available, unless `--with-png=no'.
13915 if test "${HAVE_X11}" = "yes"; then
13916 if test "${with_png}" != "no"; then
13917 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13918 # in /usr/include/libpng.
13921 for ac_header
in png.h libpng
/png.h
13923 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13924 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 ac_res
=`eval echo '${'$as_ac_Header'}'`
13931 { echo "$as_me:$LINENO: result: $ac_res" >&5
13932 echo "${ECHO_T}$ac_res" >&6; }
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13937 cat >conftest.
$ac_ext <<_ACEOF
13940 cat confdefs.h
>>conftest.
$ac_ext
13941 cat >>conftest.
$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <$ac_header>
13946 rm -f conftest.
$ac_objext
13947 if { (ac_try
="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13955 grep -v '^ *+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_header_compiler=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <$ac_header>
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13989 *) ac_try_echo
=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 grep -v '^ *+' conftest.er1
>conftest.err
13996 cat conftest.err
>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev
/null
&& {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14002 ac_header_preproc
=yes
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.
$ac_ext >&5
14007 ac_header_preproc
=no
14010 rm -f conftest.err conftest.
$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc
=yes
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14041 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 eval "$as_ac_Header=\$ac_header_preproc"
14046 ac_res
=`eval echo '${'$as_ac_Header'}'`
14047 { echo "$as_me:$LINENO: result: $ac_res" >&5
14048 echo "${ECHO_T}$ac_res" >&6; }
14051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14052 cat >>confdefs.h
<<_ACEOF
14053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14060 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14061 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14062 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 ac_check_lib_save_LIBS
=$LIBS
14067 LIBS
="-lpng -lz -lm $LIBS"
14068 cat >conftest.
$ac_ext <<_ACEOF
14071 cat confdefs.h
>>conftest.
$ac_ext
14072 cat >>conftest.
$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14081 char png_get_channels ();
14085 return png_get_channels ();
14090 rm -f conftest.
$ac_objext conftest
$ac_exeext
14091 if { (ac_try
="$ac_link"
14092 case "(($ac_try" in
14093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14108 ac_cv_lib_png_png_get_channels=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_png_png_get_channels=no
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14122 if test $ac_cv_lib_png_png_get_channels = yes; then
14129 if test "${HAVE_PNG}" = "yes"; then
14131 cat >>confdefs.h <<\_ACEOF
14138 ### Use -ltiff if available, unless `--with-tiff=no
'.
14140 if test "${HAVE_X11}" = "yes"; then
14141 if test "${with_tiff}" != "no"; then
14142 if test "${ac_cv_header_tiffio_h+set}" = set; then
14143 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_tiffio_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14151 # Is the header compilable?
14152 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14161 #include <tiffio.h>
14163 rm -f conftest.$ac_objext
14164 if { (ac_try="$ac_compile"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14172 grep -v '^
*+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_header_compiler=yes
14182 echo "$as_me: failed program was:" >&5
14183 sed 's
/^
/|
/' conftest.$ac_ext >&5
14185 ac_header_compiler=no
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14190 echo "${ECHO_T}$ac_header_compiler" >&6; }
14192 # Is the header present?
14193 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14194 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <tiffio.h>
14203 if { (ac_try="$ac_cpp conftest.$ac_ext"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14211 grep -v '^
*+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null && {
14216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14219 ac_header_preproc=yes
14221 echo "$as_me: failed program was:" >&5
14222 sed 's
/^
/|
/' conftest.$ac_ext >&5
14224 ac_header_preproc=no
14227 rm -f conftest.err conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6; }
14231 # So? What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14234 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14237 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14238 ac_header_preproc=yes
14241 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14250 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14256 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14257 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_tiffio_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 ac_cv_header_tiffio_h=$ac_header_preproc
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14264 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14267 if test $ac_cv_header_tiffio_h = yes; then
14269 # At least one tiff package requires the jpeg library.
14270 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14271 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14272 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14273 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-ltiff $tifflibs $LIBS"
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14291 char TIFFGetVersion ();
14295 return TIFFGetVersion ();
14300 rm -f conftest.$ac_objext conftest$ac_exeext
14301 if { (ac_try="$ac_link"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_link") 2>conftest.er1
14309 grep -v '^
*+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest$ac_exeext &&
14317 $as_test_x conftest$ac_exeext; then
14318 ac_cv_lib_tiff_TIFFGetVersion=yes
14320 echo "$as_me: failed program was:" >&5
14321 sed 's
/^
/|
/' conftest.$ac_ext >&5
14323 ac_cv_lib_tiff_TIFFGetVersion=no
14326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14327 conftest$ac_exeext conftest.$ac_ext
14328 LIBS=$ac_check_lib_save_LIBS
14330 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14331 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14332 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14341 if test "${HAVE_TIFF}" = "yes"; then
14343 cat >>confdefs.h <<\_ACEOF
14344 #define HAVE_TIFF 1
14350 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14352 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14353 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14354 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14355 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14356 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14360 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14362 # Is the header compilable?
14363 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14364 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14365 cat >conftest.
$ac_ext <<_ACEOF
14368 cat confdefs.h
>>conftest.
$ac_ext
14369 cat >>conftest.
$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14372 #include <gif_lib.h>
14374 rm -f conftest.
$ac_objext
14375 if { (ac_try
="$ac_compile"
14376 case "(($ac_try" in
14377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_compile") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest.$ac_objext; then
14391 ac_header_compiler=yes
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_header_compiler=no
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14401 echo "${ECHO_T}$ac_header_compiler" >&6; }
14403 # Is the header present?
14404 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14405 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <gif_lib.h>
14414 if { (ac_try="$ac_cpp conftest.$ac_ext"
14415 case "(($ac_try" in
14416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14417 *) ac_try_echo
=$ac_try;;
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14422 grep -v '^ *+' conftest.er1
>conftest.err
14424 cat conftest.err
>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } >/dev
/null
&& {
14427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14428 test ! -s conftest.err
14430 ac_header_preproc
=yes
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.
$ac_ext >&5
14435 ac_header_preproc
=no
14438 rm -f conftest.err conftest.
$ac_ext
14439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14440 echo "${ECHO_T}$ac_header_preproc" >&6; }
14442 # So? What about this header?
14443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14445 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14446 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14448 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14449 ac_header_preproc
=yes
14452 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14453 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14455 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14457 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14459 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14461 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14463 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14467 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14468 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14469 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 ac_cv_header_gif_lib_h
=$ac_header_preproc
14474 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14475 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14478 if test $ac_cv_header_gif_lib_h = yes; then
14479 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14480 # Earlier versions can crash Emacs.
14481 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14482 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14483 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 ac_check_lib_save_LIBS
=$LIBS
14488 cat >conftest.
$ac_ext <<_ACEOF
14491 cat confdefs.h
>>conftest.
$ac_ext
14492 cat >>conftest.
$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14501 char EGifPutExtensionLast ();
14505 return EGifPutExtensionLast ();
14510 rm -f conftest.
$ac_objext conftest
$ac_exeext
14511 if { (ac_try
="$ac_link"
14512 case "(($ac_try" in
14513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest$ac_exeext &&
14527 $as_test_x conftest$ac_exeext; then
14528 ac_cv_lib_gif_EGifPutExtensionLast=yes
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_cv_lib_gif_EGifPutExtensionLast=no
14536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14541 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14542 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14552 if test "$HAVE_GIF" = yes; then
14553 ac_gif_lib_name="-lgif"
14556 # If gif_lib.h but no libgif, try libungif.
14557 if test x"$try_libungif" = xyes; then
14558 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14559 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14560 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 ac_check_lib_save_LIBS=$LIBS
14564 LIBS="-lungif $LIBS"
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14578 char EGifPutExtensionLast ();
14582 return EGifPutExtensionLast ();
14587 rm -f conftest.$ac_objext conftest$ac_exeext
14588 if { (ac_try="$ac_link"
14589 case "(($ac_try" in
14590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14591 *) ac_try_echo
=$ac_try;;
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_link") 2>conftest.er1
14596 grep -v '^ *+' conftest.er1
>conftest.err
14598 cat conftest.err
>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && {
14601 test -z "$ac_c_werror_flag" ||
14602 test ! -s conftest.err
14603 } && test -s conftest
$ac_exeext &&
14604 $as_test_x conftest
$ac_exeext; then
14605 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.
$ac_ext >&5
14610 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14614 conftest
$ac_exeext conftest.
$ac_ext
14615 LIBS
=$ac_check_lib_save_LIBS
14617 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14618 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14619 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14624 if test "$HAVE_GIF" = yes; then
14626 cat >>confdefs.h
<<\_ACEOF
14627 #define LIBGIF -lungif
14630 ac_gif_lib_name
="-lungif"
14634 if test "${HAVE_GIF}" = "yes"; then
14636 cat >>confdefs.h
<<\_ACEOF
14643 if test "${HAVE_X11}" = "yes"; then
14646 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14647 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14648 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14649 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14650 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14651 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14652 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14653 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14654 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14655 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14657 if test "X${MISSING}" != X
; then
14658 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14660 Maybe some development libraries/packages are missing?
14661 If you don't want to link with them give
14663 as options to configure" >&5
14664 echo "$as_me: error: The following required libraries were not found:
14666 Maybe some development libraries/packages are missing?
14667 If you don't want to link with them give
14669 as options to configure" >&2;}
14670 { (exit 1); exit 1; }; }
14674 ### Use -lgpm if available, unless `--with-gpm=no'.
14676 if test "${with_gpm}" != "no"; then
14677 if test "${ac_cv_header_gpm_h+set}" = set; then
14678 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14679 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14680 if test "${ac_cv_header_gpm_h+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14684 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14686 # Is the header compilable?
14687 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14688 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14689 cat >conftest.
$ac_ext <<_ACEOF
14692 cat confdefs.h
>>conftest.
$ac_ext
14693 cat >>conftest.
$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 $ac_includes_default
14698 rm -f conftest.
$ac_objext
14699 if { (ac_try
="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_header_compiler=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_header_compiler=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6; }
14727 # Is the header present?
14728 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14729 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14738 if { (ac_try="$ac_cpp conftest.$ac_ext"
14739 case "(($ac_try" in
14740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14741 *) ac_try_echo
=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } >/dev
/null
&& {
14751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14754 ac_header_preproc
=yes
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.
$ac_ext >&5
14759 ac_header_preproc
=no
14762 rm -f conftest.err conftest.
$ac_ext
14763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14764 echo "${ECHO_T}$ac_header_preproc" >&6; }
14766 # So? What about this header?
14767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14769 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14770 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14772 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14773 ac_header_preproc
=yes
14776 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14777 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14779 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14781 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14783 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14785 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14787 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14791 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14792 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14793 if test "${ac_cv_header_gpm_h+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 ac_cv_header_gpm_h
=$ac_header_preproc
14798 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14799 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14802 if test $ac_cv_header_gpm_h = yes; then
14803 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14804 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14805 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 ac_check_lib_save_LIBS
=$LIBS
14810 cat >conftest.
$ac_ext <<_ACEOF
14813 cat confdefs.h
>>conftest.
$ac_ext
14814 cat >>conftest.
$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14827 return Gpm_Open ();
14832 rm -f conftest.
$ac_objext conftest
$ac_exeext
14833 if { (ac_try
="$ac_link"
14834 case "(($ac_try" in
14835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_link") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest$ac_exeext &&
14849 $as_test_x conftest$ac_exeext; then
14850 ac_cv_lib_gpm_Gpm_Open=yes
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_cv_lib_gpm_Gpm_Open=no
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14862 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14863 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14864 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14873 if test "${HAVE_GPM}" = "yes"; then
14875 cat >>confdefs.h <<\_ACEOF
14881 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14882 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14883 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14888 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14890 # Is the header compilable?
14891 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14892 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 $ac_includes_default
14900 #include <malloc/malloc.h>
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14906 *) ac_try_echo
=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_compile") 2>conftest.er1
14911 grep -v '^ *+' conftest.er1
>conftest.err
14913 cat conftest.err
>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest.
$ac_objext; then
14919 ac_header_compiler
=yes
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.
$ac_ext >&5
14924 ac_header_compiler
=no
14927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14929 echo "${ECHO_T}$ac_header_compiler" >&6; }
14931 # Is the header present?
14932 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14933 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14934 cat >conftest.
$ac_ext <<_ACEOF
14937 cat confdefs.h
>>conftest.
$ac_ext
14938 cat >>conftest.
$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <malloc/malloc.h>
14942 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14943 case "(($ac_try" in
14944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } >/dev/null && {
14955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14958 ac_header_preproc=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ac_header_preproc=no
14966 rm -f conftest.err conftest.$ac_ext
14967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14968 echo "${ECHO_T}$ac_header_preproc" >&6; }
14970 # So? What about this header?
14971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14973 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14974 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14976 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14977 ac_header_preproc=yes
14980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14985 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14987 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14989 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14991 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14995 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14996 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14997 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15002 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15003 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15006 if test $ac_cv_header_malloc_malloc_h = yes; then
15008 cat >>confdefs.h <<\_ACEOF
15009 #define HAVE_MALLOC_MALLOC_H 1
15016 ### Use Mac OS X Carbon API to implement GUI.
15017 if test "${HAVE_CARBON}" = "yes"; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_CARBON 1
15023 ## Specify the install directory
15025 if test "${carbon_appdir_x}" != ""; then
15026 case ${carbon_appdir_x} in
15027 y | ye | yes) carbon_appdir=/Applications ;;
15028 * ) carbon_appdir=${carbon_appdir_x} ;;
15031 # We also have mouse menus.
15035 ### Use session management (-lSM -lICE) if available
15037 if test "${HAVE_X11}" = "yes"; then
15038 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15039 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15040 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15041 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15045 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15047 # Is the header compilable?
15048 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15049 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15050 cat >conftest.$ac_ext <<_ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 $ac_includes_default
15057 #include <X11/SM/SMlib.h>
15059 rm -f conftest.$ac_objext
15060 if { (ac_try="$ac_compile"
15061 case "(($ac_try" in
15062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15063 *) ac_try_echo
=$ac_try;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_compile") 2>conftest.er1
15068 grep -v '^ *+' conftest.er1
>conftest.err
15070 cat conftest.err
>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest.
$ac_objext; then
15076 ac_header_compiler
=yes
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.
$ac_ext >&5
15081 ac_header_compiler
=no
15084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15086 echo "${ECHO_T}$ac_header_compiler" >&6; }
15088 # Is the header present?
15089 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15090 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15091 cat >conftest.
$ac_ext <<_ACEOF
15094 cat confdefs.h
>>conftest.
$ac_ext
15095 cat >>conftest.
$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 #include <X11/SM/SMlib.h>
15099 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15100 case "(($ac_try" in
15101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } >/dev/null && {
15112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15115 ac_header_preproc=yes
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 ac_header_preproc=no
15123 rm -f conftest.err conftest.$ac_ext
15124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15125 echo "${ECHO_T}$ac_header_preproc" >&6; }
15127 # So? What about this header?
15128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15130 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15131 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15133 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15134 ac_header_preproc=yes
15137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15138 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15140 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15142 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15144 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15146 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15148 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15152 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15153 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15154 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15159 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15160 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15163 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15164 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15165 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15166 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 ac_check_lib_save_LIBS=$LIBS
15170 LIBS="-lSM -lICE $LIBS"
15171 cat >conftest.$ac_ext <<_ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15184 char SmcOpenConnection ();
15188 return SmcOpenConnection ();
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (ac_try="$ac_link"
15195 case "(($ac_try" in
15196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15197 *) ac_try_echo
=$ac_try;;
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_link") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1
>conftest.err
15204 cat conftest.err
>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest
$ac_exeext &&
15210 $as_test_x conftest
$ac_exeext; then
15211 ac_cv_lib_SM_SmcOpenConnection
=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.
$ac_ext >&5
15216 ac_cv_lib_SM_SmcOpenConnection
=no
15219 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15220 conftest
$ac_exeext conftest.
$ac_ext
15221 LIBS
=$ac_check_lib_save_LIBS
15223 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15224 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15225 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15233 if test "${HAVE_X_SM}" = "yes"; then
15235 cat >>confdefs.h
<<\_ACEOF
15236 #define HAVE_X_SM 1
15241 *) LIBS
="-lSM -lICE $LIBS" ;;
15246 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15247 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15248 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15249 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 cat >conftest.
$ac_ext <<_ACEOF
15255 cat confdefs.h
>>conftest.
$ac_ext
15256 cat >>conftest.
$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15267 rm -f conftest.
$ac_objext conftest
$ac_exeext
15268 if { (ac_try
="$ac_link"
15269 case "(($ac_try" in
15270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_link") 2>conftest.er1
15276 grep -v '^ *+' conftest.er1 >conftest.err
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest$ac_exeext &&
15284 $as_test_x conftest$ac_exeext; then
15285 emacs_cv_netdb_declares_h_errno=yes
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 emacs_cv_netdb_declares_h_errno=no
15293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15294 conftest$ac_exeext conftest.$ac_ext
15296 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15297 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15298 if test $emacs_cv_netdb_declares_h_errno = yes; then
15300 cat >>confdefs.h <<\_ACEOF
15301 #define HAVE_H_ERRNO 1
15306 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15307 # for constant arguments. Useless!
15308 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15309 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15310 if test "${ac_cv_working_alloca_h+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 #include <alloca.h>
15323 char *p = (char *) alloca (2 * sizeof (int));
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (ac_try="$ac_link"
15331 case "(($ac_try" in
15332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15333 *) ac_try_echo
=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_link") 2>conftest.er1
15338 grep -v '^ *+' conftest.er1
>conftest.err
15340 cat conftest.err
>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } && {
15343 test -z "$ac_c_werror_flag" ||
15344 test ! -s conftest.err
15345 } && test -s conftest
$ac_exeext &&
15346 $as_test_x conftest
$ac_exeext; then
15347 ac_cv_working_alloca_h
=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.
$ac_ext >&5
15352 ac_cv_working_alloca_h
=no
15355 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15356 conftest
$ac_exeext conftest.
$ac_ext
15358 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15359 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15360 if test $ac_cv_working_alloca_h = yes; then
15362 cat >>confdefs.h
<<\_ACEOF
15363 #define HAVE_ALLOCA_H 1
15368 { echo "$as_me:$LINENO: checking for alloca" >&5
15369 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15370 if test "${ac_cv_func_alloca_works+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 cat >conftest.
$ac_ext <<_ACEOF
15376 cat confdefs.h
>>conftest.
$ac_ext
15377 cat >>conftest.
$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15380 # define alloca __builtin_alloca
15383 # include <malloc.h>
15384 # define alloca _alloca
15386 # ifdef HAVE_ALLOCA_H
15387 # include <alloca.h>
15392 # ifndef alloca /* predefined by HP cc +Olibcalls */
15403 char *p = (char *) alloca (1);
15409 rm -f conftest.
$ac_objext conftest
$ac_exeext
15410 if { (ac_try
="$ac_link"
15411 case "(($ac_try" in
15412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
15427 ac_cv_func_alloca_works=yes
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_cv_func_alloca_works=no
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15439 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15441 if test $ac_cv_func_alloca_works = yes; then
15443 cat >>confdefs.h <<\_ACEOF
15444 #define HAVE_ALLOCA 1
15448 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15449 # that cause trouble. Some versions do not even contain alloca or
15450 # contain a buggy version. If you still want to use their alloca,
15451 # use ar to extract alloca.o from them instead of compiling alloca.c.
15453 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15455 cat >>confdefs.h <<\_ACEOF
15460 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15461 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15462 if test "${ac_cv_os_cray+set}" = set; then
15463 echo $ECHO_N "(cached
) $ECHO_C" >&6
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #if defined CRAY && ! defined CRAY2
15478 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15479 $EGREP "webecray
" >/dev/null 2>&1; then
15487 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15488 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15489 if test $ac_cv_os_cray = yes; then
15490 for ac_func in _getb67 GETB67 getb67; do
15491 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15492 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15493 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15494 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15495 echo $ECHO_N "(cached
) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15513 # include <limits.h>
15515 # include <assert.h>
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined __stub_$ac_func || defined __stub___$ac_func
15537 return $ac_func ();
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest$ac_exeext &&
15559 $as_test_x conftest$ac_exeext; then
15560 eval "$as_ac_var=yes"
15562 echo "$as_me: failed program was
:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 eval "$as_ac_var=no
"
15568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15569 conftest$ac_exeext conftest.$ac_ext
15571 ac_res=`eval echo '${'$as_ac_var'}'`
15572 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15573 echo "${ECHO_T}$ac_res" >&6; }
15574 if test `eval echo '${'$as_ac_var'}'` = yes; then
15576 cat >>confdefs.h <<_ACEOF
15577 #define CRAY_STACKSEG_END $ac_func
15586 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15587 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15588 if test "${ac_cv_c_stack_direction+set}" = set; then
15589 echo $ECHO_N "(cached
) $ECHO_C" >&6
15591 if test "$cross_compiling" = yes; then
15592 ac_cv_c_stack_direction=0
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15602 find_stack_direction ()
15604 static char *addr = 0;
15609 return find_stack_direction ();
15612 return (&dummy > addr) ? 1 : -1;
15618 return find_stack_direction () < 0;
15621 rm -f conftest$ac_exeext
15622 if { (ac_try="$ac_link"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_link") 2>&5
15630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_cv_c_stack_direction=1
15643 echo "$as_me: program exited with status
$ac_status" >&5
15644 echo "$as_me: failed program was
:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ( exit $ac_status )
15648 ac_cv_c_stack_direction=-1
15650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15655 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15656 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15658 cat >>confdefs.h <<_ACEOF
15659 #define STACK_DIRECTION $ac_cv_c_stack_direction
15666 if test x"$ac_cv_func_alloca_works" != xyes; then
15667 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15668 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15669 { (exit 1); exit 1; }; }
15672 # fmod, logb, and frexp are found in -lm on most systems.
15673 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15675 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15676 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15677 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15678 echo $ECHO_N "(cached
) $ECHO_C" >&6
15680 ac_check_lib_save_LIBS=$LIBS
15682 cat >conftest.$ac_ext <<_ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (ac_try="$ac_link"
15706 case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest$ac_exeext &&
15721 $as_test_x conftest$ac_exeext; then
15722 ac_cv_lib_m_sqrt=yes
15724 echo "$as_me: failed program was
:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_cv_lib_m_sqrt=no
15730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15731 conftest$ac_exeext conftest.$ac_ext
15732 LIBS=$ac_check_lib_save_LIBS
15734 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15735 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15736 if test $ac_cv_lib_m_sqrt = yes; then
15737 cat >>confdefs.h <<_ACEOF
15738 #define HAVE_LIBM 1
15746 # Check for mail-locking functions in a "mail" library. Probably this should
15747 # have the same check as for liblockfile below.
15749 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15750 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15751 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15752 echo $ECHO_N "(cached
) $ECHO_C" >&6
15754 ac_check_lib_save_LIBS=$LIBS
15755 LIBS="-lmail $LIBS"
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15763 /* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15773 return maillock ();
15778 rm -f conftest.$ac_objext conftest$ac_exeext
15779 if { (ac_try="$ac_link"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_link") 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15791 (exit $ac_status); } && {
15792 test -z "$ac_c_werror_flag" ||
15793 test ! -s conftest.err
15794 } && test -s conftest$ac_exeext &&
15795 $as_test_x conftest$ac_exeext; then
15796 ac_cv_lib_mail_maillock=yes
15798 echo "$as_me: failed program was
:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ac_cv_lib_mail_maillock=no
15804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15805 conftest$ac_exeext conftest.$ac_ext
15806 LIBS=$ac_check_lib_save_LIBS
15808 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15809 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15810 if test $ac_cv_lib_mail_maillock = yes; then
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_LIBMAIL 1
15815 LIBS="-lmail $LIBS"
15820 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15821 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15822 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15823 echo $ECHO_N "(cached
) $ECHO_C" >&6
15825 ac_check_lib_save_LIBS=$LIBS
15826 LIBS="-llockfile $LIBS"
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15834 /* Override any GCC internal prototype to avoid an error.
15835 Use char because int might match the return type of a GCC
15836 builtin and then its argument prototype would still apply. */
15844 return maillock ();
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (ac_try="$ac_link"
15851 case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_link") 2>conftest.er1
15858 grep -v '^ *+' conftest.er1 >conftest.err
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest$ac_exeext &&
15866 $as_test_x conftest$ac_exeext; then
15867 ac_cv_lib_lockfile_maillock=yes
15869 echo "$as_me: failed program was
:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 ac_cv_lib_lockfile_maillock=no
15875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15876 conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15879 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15880 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15881 if test $ac_cv_lib_lockfile_maillock = yes; then
15882 cat >>confdefs.h <<_ACEOF
15883 #define HAVE_LIBLOCKFILE 1
15886 LIBS="-llockfile $LIBS"
15890 # If we have the shared liblockfile, assume we must use it for mail
15891 # locking (e.g. Debian). If we couldn't link against liblockfile
15892 # (no liblockfile.a installed), ensure that we don't need to.
15893 if test "$ac_cv_lib_lockfile_maillock" = no; then
15894 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15895 set dummy liblockfile.so; ac_word=$2
15896 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15897 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15898 if test "${ac_cv_prog_liblockfile+set}" = set; then
15899 echo $ECHO_N "(cached
) $ECHO_C" >&6
15901 if test -n "$liblockfile"; then
15902 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15905 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15906 for as_dir in $as_dummy
15909 test -z "$as_dir" && as_dir=.
15910 for ac_exec_ext in '' $ac_executable_extensions; do
15911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15912 ac_cv_prog_liblockfile="yes"
15913 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15920 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15923 liblockfile=$ac_cv_prog_liblockfile
15924 if test -n "$liblockfile"; then
15925 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15926 echo "${ECHO_T}$liblockfile" >&6; }
15928 { echo "$as_me:$LINENO: result
: no
" >&5
15929 echo "${ECHO_T}no
" >&6; }
15933 if test $ac_cv_prog_liblockfile = yes; then
15934 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15935 This probably means that movemail could lose mail.
15936 There may be a \`development' package to
install containing liblockfile.
" >&5
15937 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15938 This probably means that movemail could lose mail.
15939 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15940 { (exit 1); exit 1; }; }
15945 for ac_func in touchlock
15947 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15948 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15949 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15950 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15951 echo $ECHO_N "(cached
) $ECHO_C" >&6
15953 cat >conftest.$ac_ext <<_ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15961 #define $ac_func innocuous_$ac_func
15963 /* System header to define __stub macros and hopefully few prototypes,
15964 which can conflict with char $ac_func (); below.
15965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15966 <limits.h> exists even on freestanding compilers. */
15969 # include <limits.h>
15971 # include <assert.h>
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15983 /* The GNU C library defines this for functions which it implements
15984 to always fail with ENOSYS. Some functions are actually named
15985 something starting with __ and the normal name is an alias. */
15986 #if defined __stub_$ac_func || defined __stub___$ac_func
15993 return $ac_func ();
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest$ac_exeext &&
16015 $as_test_x conftest$ac_exeext; then
16016 eval "$as_ac_var=yes"
16018 echo "$as_me: failed program was
:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 eval "$as_ac_var=no
"
16024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16025 conftest$ac_exeext conftest.$ac_ext
16027 ac_res=`eval echo '${'$as_ac_var'}'`
16028 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16029 echo "${ECHO_T}$ac_res" >&6; }
16030 if test `eval echo '${'$as_ac_var'}'` = yes; then
16031 cat >>confdefs.h <<_ACEOF
16032 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16039 for ac_header in maillock.h
16041 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16042 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16043 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16044 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16045 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached
) $ECHO_C" >&6
16048 ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16050 echo "${ECHO_T}$ac_res" >&6; }
16052 # Is the header compilable?
16053 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16054 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 $ac_includes_default
16062 #include <$ac_header>
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16073 grep -v '^ *+' conftest.er1 >conftest.err
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16077 (exit $ac_status); } && {
16078 test -z "$ac_c_werror_flag" ||
16079 test ! -s conftest.err
16080 } && test -s conftest.$ac_objext; then
16081 ac_header_compiler=yes
16083 echo "$as_me: failed program was
:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_header_compiler=no
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16091 echo "${ECHO_T}$ac_header_compiler" >&6; }
16093 # Is the header present?
16094 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16095 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16096 cat >conftest.$ac_ext <<_ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 #include <$ac_header>
16104 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16116 (exit $ac_status); } >/dev/null && {
16117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16120 ac_header_preproc=yes
16122 echo "$as_me: failed program was
:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_header_preproc=no
16128 rm -f conftest.err conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16130 echo "${ECHO_T}$ac_header_preproc" >&6; }
16132 # So? What about this header?
16133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16135 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16136 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16137 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16139 ac_header_preproc=yes
16142 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16143 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16144 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16145 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16146 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16147 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16148 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16149 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16150 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16152 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16153 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16157 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16158 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16159 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16160 echo $ECHO_N "(cached
) $ECHO_C" >&6
16162 eval "$as_ac_Header=\
$ac_header_preproc"
16164 ac_res=`eval echo '${'$as_ac_Header'}'`
16165 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16170 cat >>confdefs.h <<_ACEOF
16171 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16247 for ac_func in gethostname getdomainname dup2 \
16248 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16249 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16250 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16251 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16252 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16253 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16254 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16255 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16257 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16258 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16259 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16260 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16261 echo $ECHO_N "(cached
) $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16271 #define $ac_func innocuous_$ac_func
16273 /* System header to define __stub macros and hopefully few prototypes,
16274 which can conflict with char $ac_func (); below.
16275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16276 <limits.h> exists even on freestanding compilers. */
16279 # include <limits.h>
16281 # include <assert.h>
16286 /* Override any GCC internal prototype to avoid an error.
16287 Use char because int might match the return type of a GCC
16288 builtin and then its argument prototype would still apply. */
16293 /* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296 #if defined __stub_$ac_func || defined __stub___$ac_func
16303 return $ac_func ();
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (ac_try="$ac_link"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_link") 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest$ac_exeext &&
16325 $as_test_x conftest$ac_exeext; then
16326 eval "$as_ac_var=yes"
16328 echo "$as_me: failed program was
:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 eval "$as_ac_var=no
"
16334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16335 conftest$ac_exeext conftest.$ac_ext
16337 ac_res=`eval echo '${'$as_ac_var'}'`
16338 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16339 echo "${ECHO_T}$ac_res" >&6; }
16340 if test `eval echo '${'$as_ac_var'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16350 for ac_header in sys/un.h
16352 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16357 echo $ECHO_N "(cached
) $ECHO_C" >&6
16359 ac_res=`eval echo '${'$as_ac_Header'}'`
16360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16361 echo "${ECHO_T}$ac_res" >&6; }
16363 # Is the header compilable?
16364 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16365 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16366 cat >conftest.$ac_ext <<_ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 $ac_includes_default
16373 #include <$ac_header>
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16394 echo "$as_me: failed program was
:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_compiler=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16402 echo "${ECHO_T}$ac_header_compiler" >&6; }
16404 # Is the header present?
16405 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16406 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <$ac_header>
16415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16423 grep -v '^ *+' conftest.er1 >conftest.err
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16427 (exit $ac_status); } >/dev/null && {
16428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16431 ac_header_preproc=yes
16433 echo "$as_me: failed program was
:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_header_preproc=no
16439 rm -f conftest.err conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443 # So? What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16447 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16450 ac_header_preproc=yes
16453 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16454 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16455 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16456 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16457 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16458 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16459 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16460 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16463 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16464 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16468 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16469 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16470 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16471 echo $ECHO_N "(cached
) $ECHO_C" >&6
16473 eval "$as_ac_Header=\
$ac_header_preproc"
16475 ac_res=`eval echo '${'$as_ac_Header'}'`
16476 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16477 echo "${ECHO_T}$ac_res" >&6; }
16480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16481 cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16494 for ac_header in $ac_header_list
16496 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16497 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16498 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16499 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached
) $ECHO_C" >&6
16503 ac_res=`eval echo '${'$as_ac_Header'}'`
16504 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16507 # Is the header compilable?
16508 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16509 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 $ac_includes_default
16517 #include <$ac_header>
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16532 (exit $ac_status); } && {
16533 test -z "$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 } && test -s conftest.$ac_objext; then
16536 ac_header_compiler=yes
16538 echo "$as_me: failed program was
:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_header_compiler=no
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6; }
16548 # Is the header present?
16549 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16550 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16551 cat >conftest.$ac_ext <<_ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 #include <$ac_header>
16559 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16567 grep -v '^ *+' conftest.er1 >conftest.err
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16571 (exit $ac_status); } >/dev/null && {
16572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16575 ac_header_preproc=yes
16577 echo "$as_me: failed program was
:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 ac_header_preproc=no
16583 rm -f conftest.err conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16585 echo "${ECHO_T}$ac_header_preproc" >&6; }
16587 # So? What about this header?
16588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16590 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16591 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16592 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16594 ac_header_preproc=yes
16597 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16598 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16599 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16600 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16601 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16602 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16603 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16604 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16605 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16607 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16608 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16612 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16613 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16614 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached
) $ECHO_C" >&6
16617 eval "$as_ac_Header=\
$ac_header_preproc"
16619 ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16621 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16641 for ac_func in $ac_func_list
16643 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16644 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16645 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16646 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16647 echo $ECHO_N "(cached
) $ECHO_C" >&6
16649 cat >conftest.$ac_ext <<_ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16657 #define $ac_func innocuous_$ac_func
16659 /* System header to define __stub macros and hopefully few prototypes,
16660 which can conflict with char $ac_func (); below.
16661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16662 <limits.h> exists even on freestanding compilers. */
16665 # include <limits.h>
16667 # include <assert.h>
16672 /* Override any GCC internal prototype to avoid an error.
16673 Use char because int might match the return type of a GCC
16674 builtin and then its argument prototype would still apply. */
16679 /* The GNU C library defines this for functions which it implements
16680 to always fail with ENOSYS. Some functions are actually named
16681 something starting with __ and the normal name is an alias. */
16682 #if defined __stub_$ac_func || defined __stub___$ac_func
16689 return $ac_func ();
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_link") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16707 (exit $ac_status); } && {
16708 test -z "$ac_c_werror_flag" ||
16709 test ! -s conftest.err
16710 } && test -s conftest$ac_exeext &&
16711 $as_test_x conftest$ac_exeext; then
16712 eval "$as_ac_var=yes"
16714 echo "$as_me: failed program was
:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 eval "$as_ac_var=no
"
16720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16721 conftest$ac_exeext conftest.$ac_ext
16723 ac_res=`eval echo '${'$as_ac_var'}'`
16724 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16725 echo "${ECHO_T}$ac_res" >&6; }
16726 if test `eval echo '${'$as_ac_var'}'` = yes; then
16727 cat >>confdefs.h <<_ACEOF
16728 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16750 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16751 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16752 if test "${ac_cv_func_working_mktime+set}" = set; then
16753 echo $ECHO_N "(cached
) $ECHO_C" >&6
16755 if test "$cross_compiling" = yes; then
16756 ac_cv_func_working_mktime=no
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 /* Test program from Paul Eggert and Tony Leneis. */
16765 #ifdef TIME_WITH_SYS_TIME
16766 # include <sys/time.h>
16769 # ifdef HAVE_SYS_TIME_H
16770 # include <sys/time.h>
16776 #include <stdlib.h>
16778 #ifdef HAVE_UNISTD_H
16779 # include <unistd.h>
16783 # define alarm(X) /* empty */
16786 /* Work around redefinition to rpl_putenv by other config tests. */
16789 static time_t time_t_max;
16790 static time_t time_t_min;
16792 /* Values we'll use to set the TZ environment variable. */
16793 static char *tz_strings[] = {
16794 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16795 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16797 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16799 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16800 Based on a problem report from Andreas Jaeger. */
16802 spring_forward_gap ()
16804 /* glibc (up to about 1998-10-07) failed this test. */
16807 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16808 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16809 on systems that don't support the Olson extension, or don't have the
16810 full zoneinfo tables installed. */
16811 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16820 return mktime (&tm) != (time_t) -1;
16828 return ! (lt = localtime (&now)) || mktime (lt) == now;
16835 return (mktime_test1 (now)
16836 && mktime_test1 ((time_t) (time_t_max - now))
16837 && mktime_test1 ((time_t) (time_t_min + now)));
16843 /* Based on code from Ariel Faigon. */
16853 return tm.tm_mon == 2 && tm.tm_mday == 31;
16862 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16863 now = mktime (&tm);
16864 if (now != (time_t) -1)
16866 struct tm *lt = localtime (&now);
16868 && lt->tm_year == tm.tm_year
16869 && lt->tm_mon == tm.tm_mon
16870 && lt->tm_mday == tm.tm_mday
16871 && lt->tm_hour == tm.tm_hour
16872 && lt->tm_min == tm.tm_min
16873 && lt->tm_sec == tm.tm_sec
16874 && lt->tm_yday == tm.tm_yday
16875 && lt->tm_wday == tm.tm_wday
16876 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16877 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16886 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16887 ignoring leap seconds. */
16888 unsigned long int answer = 2527315200UL;
16892 tm.tm_year = 2050 - 1900;
16895 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16898 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16899 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16900 on systems that don't support the Olson extension, or don't have the
16901 full zoneinfo tables installed. */
16902 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16906 /* Check that the result is either a failure, or close enough
16907 to the correct answer that we can assume the discrepancy is
16908 due to leap seconds. */
16909 return (t == (time_t) -1
16910 || (0 < t && answer - 120 <= t && t <= answer + 120));
16919 /* This test makes some buggy mktime implementations loop.
16920 Give up after 60 seconds; a mktime slower than that
16921 isn't worth using anyway. */
16924 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16927 if ((time_t) -1 < 0)
16928 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16930 delta = time_t_max / 997; /* a suitable prime number */
16931 for (i = 0; i < N_STRINGS; i++)
16934 putenv (tz_strings[i]);
16936 for (t = 0; t <= time_t_max - delta; t += delta)
16937 if (! mktime_test (t))
16939 if (! (mktime_test ((time_t) 1)
16940 && mktime_test ((time_t) (60 * 60))
16941 && mktime_test ((time_t) (60 * 60 * 24))))
16944 for (j = 1; 0 < j; j *= 2)
16945 if (! bigtime_test (j))
16947 if (! bigtime_test (j - 1))
16950 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16953 rm -f conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>&5
16962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_cv_func_working_mktime=yes
16975 echo "$as_me: program exited with status
$ac_status" >&5
16976 echo "$as_me: failed program was
:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ( exit $ac_status )
16980 ac_cv_func_working_mktime=no
16982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16987 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16988 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16989 if test $ac_cv_func_working_mktime = no; then
16990 case " $LIBOBJS " in
16991 *" mktime.
$ac_objext "* ) ;;
16992 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16998 if test "$ac_cv_func_working_mktime" = no; then
17000 cat >>confdefs.h <<\_ACEOF
17001 #define BROKEN_MKTIME 1
17006 ac_have_func=no # yes means we've found a way to get the load average.
17008 # Make sure getloadavg.c is where it belongs, at configure-time.
17009 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17010 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17011 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17012 { (exit 1); exit 1; }; }
17016 # Check for getloadavg, but be sure not to touch the cache variable.
17017 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17018 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17019 if test "${ac_cv_func_getloadavg+set}" = set; then
17020 echo $ECHO_N "(cached
) $ECHO_C" >&6
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17030 #define getloadavg innocuous_getloadavg
17032 /* System header to define __stub macros and hopefully few prototypes,
17033 which can conflict with char getloadavg (); below.
17034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035 <limits.h> exists even on freestanding compilers. */
17038 # include <limits.h>
17040 # include <assert.h>
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17051 char getloadavg ();
17052 /* The GNU C library defines this for functions which it implements
17053 to always fail with ENOSYS. Some functions are actually named
17054 something starting with __ and the normal name is an alias. */
17055 #if defined __stub_getloadavg || defined __stub___getloadavg
17062 return getloadavg ();
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (ac_try="$ac_link"
17069 case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_link") 2>conftest.er1
17076 grep -v '^ *+' conftest.er1 >conftest.err
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17080 (exit $ac_status); } && {
17081 test -z "$ac_c_werror_flag" ||
17082 test ! -s conftest.err
17083 } && test -s conftest$ac_exeext &&
17084 $as_test_x conftest$ac_exeext; then
17085 ac_cv_func_getloadavg=yes
17087 echo "$as_me: failed program was
:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 ac_cv_func_getloadavg=no
17093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17094 conftest$ac_exeext conftest.$ac_ext
17096 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17097 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17098 if test $ac_cv_func_getloadavg = yes; then
17103 ) && ac_have_func=yes
17105 # On HPUX9, an unprivileged user can get load averages through this function.
17107 for ac_func in pstat_getdynamic
17109 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17110 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17111 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17112 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17113 echo $ECHO_N "(cached
) $ECHO_C" >&6
17115 cat >conftest.$ac_ext <<_ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17123 #define $ac_func innocuous_$ac_func
17125 /* System header to define __stub macros and hopefully few prototypes,
17126 which can conflict with char $ac_func (); below.
17127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128 <limits.h> exists even on freestanding compilers. */
17131 # include <limits.h>
17133 # include <assert.h>
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17145 /* The GNU C library defines this for functions which it implements
17146 to always fail with ENOSYS. Some functions are actually named
17147 something starting with __ and the normal name is an alias. */
17148 #if defined __stub_$ac_func || defined __stub___$ac_func
17155 return $ac_func ();
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1 >conftest.err
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest$ac_exeext &&
17177 $as_test_x conftest$ac_exeext; then
17178 eval "$as_ac_var=yes"
17180 echo "$as_me: failed program was
:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 eval "$as_ac_var=no
"
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17189 ac_res=`eval echo '${'$as_ac_var'}'`
17190 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17191 echo "${ECHO_T}$ac_res" >&6; }
17192 if test `eval echo '${'$as_ac_var'}'` = yes; then
17193 cat >>confdefs.h <<_ACEOF
17194 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17201 # Solaris has libkstat which does not require root.
17203 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17204 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17205 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17206 echo $ECHO_N "(cached
) $ECHO_C" >&6
17208 ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-lkstat $LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17223 char kstat_open ();
17227 return kstat_open ();
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17241 grep -v '^ *+' conftest.er1 >conftest.err
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest$ac_exeext &&
17249 $as_test_x conftest$ac_exeext; then
17250 ac_cv_lib_kstat_kstat_open=yes
17252 echo "$as_me: failed program was
:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 ac_cv_lib_kstat_kstat_open=no
17258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17259 conftest$ac_exeext conftest.$ac_ext
17260 LIBS=$ac_check_lib_save_LIBS
17262 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17263 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17264 if test $ac_cv_lib_kstat_kstat_open = yes; then
17265 cat >>confdefs.h <<_ACEOF
17266 #define HAVE_LIBKSTAT 1
17269 LIBS="-lkstat $LIBS"
17273 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17275 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17276 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17277 # to get the right answer into the cache.
17278 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17279 if test $ac_have_func = no; then
17280 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17281 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17282 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17283 echo $ECHO_N "(cached
) $ECHO_C" >&6
17285 ac_check_lib_save_LIBS=$LIBS
17287 cat >conftest.$ac_ext <<_ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17304 return elf_begin ();
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17318 grep -v '^ *+' conftest.er1 >conftest.err
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest$ac_exeext &&
17326 $as_test_x conftest$ac_exeext; then
17327 ac_cv_lib_elf_elf_begin=yes
17329 echo "$as_me: failed program was
:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_lib_elf_elf_begin=no
17335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17340 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17341 if test $ac_cv_lib_elf_elf_begin = yes; then
17346 if test $ac_have_func = no; then
17347 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17348 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17349 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17350 echo $ECHO_N "(cached
) $ECHO_C" >&6
17352 ac_check_lib_save_LIBS=$LIBS
17354 cat >conftest.$ac_ext <<_ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17361 /* Override any GCC internal prototype to avoid an error.
17362 Use char because int might match the return type of a GCC
17363 builtin and then its argument prototype would still apply. */
17371 return kvm_open ();
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (ac_try="$ac_link"
17378 case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_link") 2>conftest.er1
17385 grep -v '^ *+' conftest.er1 >conftest.err
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17389 (exit $ac_status); } && {
17390 test -z "$ac_c_werror_flag" ||
17391 test ! -s conftest.err
17392 } && test -s conftest$ac_exeext &&
17393 $as_test_x conftest$ac_exeext; then
17394 ac_cv_lib_kvm_kvm_open=yes
17396 echo "$as_me: failed program was
:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_cv_lib_kvm_kvm_open=no
17402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17403 conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_check_lib_save_LIBS
17406 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17407 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17408 if test $ac_cv_lib_kvm_kvm_open = yes; then
17412 # Check for the 4.4BSD definition of getloadavg.
17413 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17414 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17415 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17416 echo $ECHO_N "(cached
) $ECHO_C" >&6
17418 ac_check_lib_save_LIBS=$LIBS
17419 LIBS="-lutil $LIBS"
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17433 char getloadavg ();
17437 return getloadavg ();
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17455 (exit $ac_status); } && {
17456 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest$ac_exeext &&
17459 $as_test_x conftest$ac_exeext; then
17460 ac_cv_lib_util_getloadavg=yes
17462 echo "$as_me: failed program was
:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_cv_lib_util_getloadavg=no
17468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17469 conftest$ac_exeext conftest.$ac_ext
17470 LIBS=$ac_check_lib_save_LIBS
17472 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17473 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17474 if test $ac_cv_lib_util_getloadavg = yes; then
17475 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17480 if test $ac_have_func = no; then
17481 # There is a commonly available library for RS/6000 AIX.
17482 # Since it is not a standard part of AIX, it might be installed locally.
17483 ac_getloadavg_LIBS=$LIBS
17484 LIBS="-L/usr
/local
/lib
$LIBS"
17485 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17486 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17487 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17488 echo $ECHO_N "(cached
) $ECHO_C" >&6
17490 ac_check_lib_save_LIBS=$LIBS
17491 LIBS="-lgetloadavg $LIBS"
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17499 /* Override any GCC internal prototype to avoid an error.
17500 Use char because int might match the return type of a GCC
17501 builtin and then its argument prototype would still apply. */
17505 char getloadavg ();
17509 return getloadavg ();
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_link") 2>conftest.er1
17523 grep -v '^ *+' conftest.er1 >conftest.err
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17527 (exit $ac_status); } && {
17528 test -z "$ac_c_werror_flag" ||
17529 test ! -s conftest.err
17530 } && test -s conftest$ac_exeext &&
17531 $as_test_x conftest$ac_exeext; then
17532 ac_cv_lib_getloadavg_getloadavg=yes
17534 echo "$as_me: failed program was
:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_cv_lib_getloadavg_getloadavg=no
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541 conftest$ac_exeext conftest.$ac_ext
17542 LIBS=$ac_check_lib_save_LIBS
17544 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17545 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17546 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17547 LIBS="-lgetloadavg $LIBS"
17549 LIBS=$ac_getloadavg_LIBS
17554 # Make sure it is really in the library, if we think we found it,
17555 # otherwise set up the replacement function.
17557 for ac_func in getloadavg
17559 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17561 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached
) $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17581 # include <limits.h>
17583 # include <assert.h>
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17605 return $ac_func ();
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest$ac_exeext &&
17627 $as_test_x conftest$ac_exeext; then
17628 eval "$as_ac_var=yes"
17630 echo "$as_me: failed program was
:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17633 eval "$as_ac_var=no
"
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17639 ac_res=`eval echo '${'$as_ac_var'}'`
17640 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17641 echo "${ECHO_T}$ac_res" >&6; }
17642 if test `eval echo '${'$as_ac_var'}'` = yes; then
17643 cat >>confdefs.h <<_ACEOF
17644 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17648 case " $LIBOBJS " in
17649 *" getloadavg.
$ac_objext "* ) ;;
17650 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17655 cat >>confdefs.h <<\_ACEOF
17656 #define C_GETLOADAVG 1
17659 # Figure out what our getloadavg.c needs.
17661 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17662 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17663 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17664 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17665 echo $ECHO_N "(cached
) $ECHO_C" >&6
17667 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17668 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17670 # Is the header compilable?
17671 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17672 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17673 cat >conftest.$ac_ext <<_ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 $ac_includes_default
17680 #include <sys/dg_sys_info.h>
17682 rm -f conftest.$ac_objext
17683 if { (ac_try="$ac_compile"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_compile") 2>conftest.er1
17691 grep -v '^ *+' conftest.er1 >conftest.err
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17695 (exit $ac_status); } && {
17696 test -z "$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 } && test -s conftest.$ac_objext; then
17699 ac_header_compiler=yes
17701 echo "$as_me: failed program was
:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_header_compiler=no
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17708 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17709 echo "${ECHO_T}$ac_header_compiler" >&6; }
17711 # Is the header present?
17712 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17713 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include <sys/dg_sys_info.h>
17722 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17730 grep -v '^ *+' conftest.er1 >conftest.err
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17734 (exit $ac_status); } >/dev/null && {
17735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17736 test ! -s conftest.err
17738 ac_header_preproc=yes
17740 echo "$as_me: failed program was
:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 ac_header_preproc=no
17746 rm -f conftest.err conftest.$ac_ext
17747 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17748 echo "${ECHO_T}$ac_header_preproc" >&6; }
17750 # So? What about this header?
17751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17753 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17754 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17755 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17756 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17757 ac_header_preproc=yes
17760 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17761 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17762 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17763 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17764 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17765 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17766 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17767 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17768 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17769 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17770 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17771 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17775 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17776 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17777 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17778 echo $ECHO_N "(cached
) $ECHO_C" >&6
17780 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17782 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17783 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17786 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17789 cat >>confdefs.h <<\_ACEOF
17794 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17795 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17796 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17797 echo $ECHO_N "(cached
) $ECHO_C" >&6
17799 ac_check_lib_save_LIBS=$LIBS
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17808 /* Override any GCC internal prototype to avoid an error.
17809 Use char because int might match the return type of a GCC
17810 builtin and then its argument prototype would still apply. */
17814 char dg_sys_info ();
17818 return dg_sys_info ();
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_link") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest$ac_exeext &&
17840 $as_test_x conftest$ac_exeext; then
17841 ac_cv_lib_dgc_dg_sys_info=yes
17843 echo "$as_me: failed program was
:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_cv_lib_dgc_dg_sys_info=no
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850 conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17853 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17854 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17855 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_LIBDGC 1
17868 if test "${ac_cv_header_locale_h+set}" = set; then
17869 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17870 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17871 if test "${ac_cv_header_locale_h+set}" = set; then
17872 echo $ECHO_N "(cached
) $ECHO_C" >&6
17874 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17875 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17877 # Is the header compilable?
17878 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17879 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 $ac_includes_default
17887 #include <locale.h>
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_compile") 2>conftest.er1
17898 grep -v '^ *+' conftest.er1 >conftest.err
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17902 (exit $ac_status); } && {
17903 test -z "$ac_c_werror_flag" ||
17904 test ! -s conftest.err
17905 } && test -s conftest.$ac_objext; then
17906 ac_header_compiler=yes
17908 echo "$as_me: failed program was
:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 ac_header_compiler=no
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17916 echo "${ECHO_T}$ac_header_compiler" >&6; }
17918 # Is the header present?
17919 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17920 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17921 cat >conftest.$ac_ext <<_ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 #include <locale.h>
17929 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17937 grep -v '^ *+' conftest.er1 >conftest.err
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17941 (exit $ac_status); } >/dev/null && {
17942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17945 ac_header_preproc=yes
17947 echo "$as_me: failed program was
:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 ac_header_preproc=no
17953 rm -f conftest.err conftest.$ac_ext
17954 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17955 echo "${ECHO_T}$ac_header_preproc" >&6; }
17957 # So? What about this header?
17958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17960 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17961 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17962 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17963 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17964 ac_header_preproc=yes
17967 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17968 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17969 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17970 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17971 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17972 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17973 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17974 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17975 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17976 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17977 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17978 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17982 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17983 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17984 if test "${ac_cv_header_locale_h+set}" = set; then
17985 echo $ECHO_N "(cached
) $ECHO_C" >&6
17987 ac_cv_header_locale_h=$ac_header_preproc
17989 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17990 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17996 for ac_func in setlocale
17998 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17999 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18000 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18001 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18002 echo $ECHO_N "(cached
) $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18012 #define $ac_func innocuous_$ac_func
18014 /* System header to define __stub macros and hopefully few prototypes,
18015 which can conflict with char $ac_func (); below.
18016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017 <limits.h> exists even on freestanding compilers. */
18020 # include <limits.h>
18022 # include <assert.h>
18027 /* Override any GCC internal prototype to avoid an error.
18028 Use char because int might match the return type of a GCC
18029 builtin and then its argument prototype would still apply. */
18034 /* The GNU C library defines this for functions which it implements
18035 to always fail with ENOSYS. Some functions are actually named
18036 something starting with __ and the normal name is an alias. */
18037 #if defined __stub_$ac_func || defined __stub___$ac_func
18044 return $ac_func ();
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest$ac_exeext &&
18066 $as_test_x conftest$ac_exeext; then
18067 eval "$as_ac_var=yes"
18069 echo "$as_me: failed program was
:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 eval "$as_ac_var=no
"
18075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18076 conftest$ac_exeext conftest.$ac_ext
18078 ac_res=`eval echo '${'$as_ac_var'}'`
18079 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18080 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18090 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18091 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18092 # Irix 4.0.5F has the header but not the library.
18093 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18096 cat >>confdefs.h <<\_ACEOF
18102 if test $ac_have_func = no; then
18103 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18104 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18105 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18106 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18107 echo $ECHO_N "(cached
) $ECHO_C" >&6
18109 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18110 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18112 # Is the header compilable?
18113 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18114 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 $ac_includes_default
18122 #include <inq_stats/cpustats.h>
18124 rm -f conftest.$ac_objext
18125 if { (ac_try="$ac_compile"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_compile") 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest.$ac_objext; then
18141 ac_header_compiler=yes
18143 echo "$as_me: failed program was
:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_header_compiler=no
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18151 echo "${ECHO_T}$ac_header_compiler" >&6; }
18153 # Is the header present?
18154 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18155 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18156 cat >conftest.$ac_ext <<_ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 #include <inq_stats/cpustats.h>
18164 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18165 case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18180 ac_header_preproc=yes
18182 echo "$as_me: failed program was
:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_preproc=no
18188 rm -f conftest.err conftest.$ac_ext
18189 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18190 echo "${ECHO_T}$ac_header_preproc" >&6; }
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18195 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18196 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18197 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18198 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18199 ac_header_preproc=yes
18202 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18203 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18204 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18205 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18206 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18207 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18208 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18209 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18210 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18211 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18212 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18213 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18217 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18218 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18219 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18220 echo $ECHO_N "(cached
) $ECHO_C" >&6
18222 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18224 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18225 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18228 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18231 cat >>confdefs.h <<\_ACEOF
18236 cat >>confdefs.h <<\_ACEOF
18245 if test $ac_have_func = no; then
18246 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18247 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18248 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18249 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18250 echo $ECHO_N "(cached
) $ECHO_C" >&6
18252 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18253 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18255 # Is the header compilable?
18256 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18257 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18258 cat >conftest.$ac_ext <<_ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18264 $ac_includes_default
18265 #include <sys/cpustats.h>
18267 rm -f conftest.$ac_objext
18268 if { (ac_try="$ac_compile"
18269 case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_compile") 2>conftest.er1
18276 grep -v '^ *+' conftest.er1 >conftest.err
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18280 (exit $ac_status); } && {
18281 test -z "$ac_c_werror_flag" ||
18282 test ! -s conftest.err
18283 } && test -s conftest.$ac_objext; then
18284 ac_header_compiler=yes
18286 echo "$as_me: failed program was
:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_header_compiler=no
18292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18293 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18294 echo "${ECHO_T}$ac_header_compiler" >&6; }
18296 # Is the header present?
18297 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18298 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18299 cat >conftest.$ac_ext <<_ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 #include <sys/cpustats.h>
18307 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18308 case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18319 (exit $ac_status); } >/dev/null && {
18320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18321 test ! -s conftest.err
18323 ac_header_preproc=yes
18325 echo "$as_me: failed program was
:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18328 ac_header_preproc=no
18331 rm -f conftest.err conftest.$ac_ext
18332 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18333 echo "${ECHO_T}$ac_header_preproc" >&6; }
18335 # So? What about this header?
18336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18338 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18339 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18340 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18341 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18342 ac_header_preproc=yes
18345 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18346 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18347 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18348 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18349 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18350 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18351 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18352 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18353 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18354 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18355 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18356 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18360 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18361 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18362 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18363 echo $ECHO_N "(cached
) $ECHO_C" >&6
18365 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18367 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18368 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18371 if test $ac_cv_header_sys_cpustats_h = yes; then
18372 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18381 if test $ac_have_func = no; then
18383 for ac_header in mach/mach.h
18385 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18387 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18388 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18390 echo $ECHO_N "(cached
) $ECHO_C" >&6
18392 ac_res=`eval echo '${'$as_ac_Header'}'`
18393 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18394 echo "${ECHO_T}$ac_res" >&6; }
18396 # Is the header compilable?
18397 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18398 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 $ac_includes_default
18406 #include <$ac_header>
18408 rm -f conftest.$ac_objext
18409 if { (ac_try="$ac_compile"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_compile") 2>conftest.er1
18417 grep -v '^ *+' conftest.er1 >conftest.err
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18421 (exit $ac_status); } && {
18422 test -z "$ac_c_werror_flag" ||
18423 test ! -s conftest.err
18424 } && test -s conftest.$ac_objext; then
18425 ac_header_compiler=yes
18427 echo "$as_me: failed program was
:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_header_compiler=no
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18435 echo "${ECHO_T}$ac_header_compiler" >&6; }
18437 # Is the header present?
18438 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18439 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 #include <$ac_header>
18448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18460 (exit $ac_status); } >/dev/null && {
18461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18464 ac_header_preproc=yes
18466 echo "$as_me: failed program was
:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_header_preproc=no
18472 rm -f conftest.err conftest.$ac_ext
18473 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18474 echo "${ECHO_T}$ac_header_preproc" >&6; }
18476 # So? What about this header?
18477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18479 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18480 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18481 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18483 ac_header_preproc=yes
18486 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18487 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18488 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18489 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18490 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18491 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18492 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18493 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18494 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18496 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18497 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18501 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18502 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18503 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18504 echo $ECHO_N "(cached
) $ECHO_C" >&6
18506 eval "$as_ac_Header=\
$ac_header_preproc"
18508 ac_res=`eval echo '${'$as_ac_Header'}'`
18509 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18510 echo "${ECHO_T}$ac_res" >&6; }
18513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18514 cat >>confdefs.h <<_ACEOF
18515 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18525 for ac_header in nlist.h
18527 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18528 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18529 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18530 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18531 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18532 echo $ECHO_N "(cached
) $ECHO_C" >&6
18534 ac_res=`eval echo '${'$as_ac_Header'}'`
18535 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18536 echo "${ECHO_T}$ac_res" >&6; }
18538 # Is the header compilable?
18539 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18540 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 $ac_includes_default
18548 #include <$ac_header>
18550 rm -f conftest.$ac_objext
18551 if { (ac_try="$ac_compile"
18552 case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_compile") 2>conftest.er1
18559 grep -v '^ *+' conftest.er1 >conftest.err
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18563 (exit $ac_status); } && {
18564 test -z "$ac_c_werror_flag" ||
18565 test ! -s conftest.err
18566 } && test -s conftest.$ac_objext; then
18567 ac_header_compiler=yes
18569 echo "$as_me: failed program was
:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 ac_header_compiler=no
18575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18577 echo "${ECHO_T}$ac_header_compiler" >&6; }
18579 # Is the header present?
18580 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18581 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18582 cat >conftest.$ac_ext <<_ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <$ac_header>
18590 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18598 grep -v '^ *+' conftest.er1 >conftest.err
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18602 (exit $ac_status); } >/dev/null && {
18603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18604 test ! -s conftest.err
18606 ac_header_preproc=yes
18608 echo "$as_me: failed program was
:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18611 ac_header_preproc=no
18614 rm -f conftest.err conftest.$ac_ext
18615 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18616 echo "${ECHO_T}$ac_header_preproc" >&6; }
18618 # So? What about this header?
18619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18621 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18622 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18623 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18625 ac_header_preproc=yes
18628 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18629 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18630 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18631 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18632 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18633 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18634 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18635 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18636 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18638 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18639 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18643 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18644 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18645 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18646 echo $ECHO_N "(cached
) $ECHO_C" >&6
18648 eval "$as_ac_Header=\
$ac_header_preproc"
18650 ac_res=`eval echo '${'$as_ac_Header'}'`
18651 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18652 echo "${ECHO_T}$ac_res" >&6; }
18655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18659 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18660 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18661 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18662 echo $ECHO_N "(cached
) $ECHO_C" >&6
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18675 static struct nlist ac_aggr;
18676 if (ac_aggr.n_un.n_name)
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest.$ac_objext; then
18699 ac_cv_member_struct_nlist_n_un_n_name=yes
18701 echo "$as_me: failed program was
:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 cat >conftest.$ac_ext <<_ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18715 static struct nlist ac_aggr;
18716 if (sizeof ac_aggr.n_un.n_name)
18722 rm -f conftest.$ac_objext
18723 if { (ac_try="$ac_compile"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_compile") 2>conftest.er1
18731 grep -v '^ *+' conftest.er1 >conftest.err
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest.$ac_objext; then
18739 ac_cv_member_struct_nlist_n_un_n_name=yes
18741 echo "$as_me: failed program was
:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 ac_cv_member_struct_nlist_n_un_n_name=no
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18753 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18754 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18756 cat >>confdefs.h <<_ACEOF
18757 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18761 cat >>confdefs.h <<\_ACEOF
18762 #define NLIST_NAME_UNION 1
18776 # Some definitions of getloadavg require that the program be installed setgid.
18777 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18778 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18779 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18780 echo $ECHO_N "(cached
) $ECHO_C" >&6
18782 cat >conftest.$ac_ext <<_ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18789 #ifdef LDAV_PRIVILEGED
18790 Yowza Am I SETGID yet
18793 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18794 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18795 ac_cv_func_getloadavg_setgid=yes
18797 ac_cv_func_getloadavg_setgid=no
18802 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18803 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18804 if test $ac_cv_func_getloadavg_setgid = yes; then
18807 cat >>confdefs.h <<\_ACEOF
18808 #define GETLOADAVG_PRIVILEGED 1
18815 if test $ac_cv_func_getloadavg_setgid = yes; then
18816 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18817 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18818 if test "${ac_cv_group_kmem+set}" = set; then
18819 echo $ECHO_N "(cached
) $ECHO_C" >&6
18821 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18822 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18823 # If we got an error (system does not support symlinks), try without -L.
18824 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18825 ac_cv_group_kmem=`echo $ac_ls_output \
18826 | sed -ne 's/[ ][ ]*/ /g;
18827 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18831 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18832 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18833 KMEM_GROUP=$ac_cv_group_kmem
18835 if test "x
$ac_save_LIBS" = x; then
18836 GETLOADAVG_LIBS=$LIBS
18838 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18844 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18845 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18846 if test "${ac_cv_sys_largefile_source+set}" = set; then
18847 echo $ECHO_N "(cached
) $ECHO_C" >&6
18850 cat >conftest.$ac_ext <<_ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18860 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18874 grep -v '^ *+' conftest.er1 >conftest.err
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18878 (exit $ac_status); } && {
18879 test -z "$ac_c_werror_flag" ||
18880 test ! -s conftest.err
18881 } && test -s conftest$ac_exeext &&
18882 $as_test_x conftest$ac_exeext; then
18883 ac_cv_sys_largefile_source=no; break
18885 echo "$as_me: failed program was
:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18892 conftest$ac_exeext conftest.$ac_ext
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 #define _LARGEFILE_SOURCE 1
18904 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_link") 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest$ac_exeext &&
18926 $as_test_x conftest$ac_exeext; then
18927 ac_cv_sys_largefile_source=1; break
18929 echo "$as_me: failed program was
:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18936 conftest$ac_exeext conftest.$ac_ext
18937 ac_cv_sys_largefile_source=unknown
18941 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18942 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18943 case $ac_cv_sys_largefile_source in #(
18946 cat >>confdefs.h <<_ACEOF
18947 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18953 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18954 # in glibc 2.1.3, but that breaks too many other things.
18955 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18956 if test $ac_cv_sys_largefile_source != unknown; then
18958 cat >>confdefs.h <<\_ACEOF
18959 #define HAVE_FSEEKO 1
18965 # Configure getopt.
18966 # getopt.m4 serial 10
18968 # The getopt module assume you want GNU getopt, with getopt_long etc,
18969 # rather than vanilla POSIX getopt. This means your your code should
18970 # always include <getopt.h> for the getopt prototypes.
18982 # Prerequisites of lib/getopt*.
18989 for ac_header in getopt.h
18991 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18993 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18994 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18995 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18996 echo $ECHO_N "(cached
) $ECHO_C" >&6
18998 ac_res=`eval echo '${'$as_ac_Header'}'`
18999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19000 echo "${ECHO_T}$ac_res" >&6; }
19002 # Is the header compilable?
19003 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19004 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19005 cat >conftest.$ac_ext <<_ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 $ac_includes_default
19012 #include <$ac_header>
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_compile") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest.$ac_objext; then
19031 ac_header_compiler=yes
19033 echo "$as_me: failed program was
:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19036 ac_header_compiler=no
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19041 echo "${ECHO_T}$ac_header_compiler" >&6; }
19043 # Is the header present?
19044 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19045 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052 #include <$ac_header>
19054 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19066 (exit $ac_status); } >/dev/null && {
19067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19070 ac_header_preproc=yes
19072 echo "$as_me: failed program was
:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19075 ac_header_preproc=no
19078 rm -f conftest.err conftest.$ac_ext
19079 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19080 echo "${ECHO_T}$ac_header_preproc" >&6; }
19082 # So? What about this header?
19083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19085 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19086 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19087 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19089 ac_header_preproc=yes
19092 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19093 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19094 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19095 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19096 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19097 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19098 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19099 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19100 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19102 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19103 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19107 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19108 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19110 echo $ECHO_N "(cached
) $ECHO_C" >&6
19112 eval "$as_ac_Header=\
$ac_header_preproc"
19114 ac_res=`eval echo '${'$as_ac_Header'}'`
19115 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19116 echo "${ECHO_T}$ac_res" >&6; }
19119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19120 cat >>confdefs.h <<_ACEOF
19121 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19130 if test -z "$GETOPT_H"; then
19132 for ac_func in getopt_long_only
19134 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19135 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19136 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19137 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19138 echo $ECHO_N "(cached
) $ECHO_C" >&6
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19148 #define $ac_func innocuous_$ac_func
19150 /* System header to define __stub macros and hopefully few prototypes,
19151 which can conflict with char $ac_func (); below.
19152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19153 <limits.h> exists even on freestanding compilers. */
19156 # include <limits.h>
19158 # include <assert.h>
19163 /* Override any GCC internal prototype to avoid an error.
19164 Use char because int might match the return type of a GCC
19165 builtin and then its argument prototype would still apply. */
19170 /* The GNU C library defines this for functions which it implements
19171 to always fail with ENOSYS. Some functions are actually named
19172 something starting with __ and the normal name is an alias. */
19173 #if defined __stub_$ac_func || defined __stub___$ac_func
19180 return $ac_func ();
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (ac_try="$ac_link"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_link") 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest$ac_exeext &&
19202 $as_test_x conftest$ac_exeext; then
19203 eval "$as_ac_var=yes"
19205 echo "$as_me: failed program was
:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 eval "$as_ac_var=no
"
19211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19212 conftest$ac_exeext conftest.$ac_ext
19214 ac_res=`eval echo '${'$as_ac_var'}'`
19215 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19216 echo "${ECHO_T}$ac_res" >&6; }
19217 if test `eval echo '${'$as_ac_var'}'` = yes; then
19218 cat >>confdefs.h <<_ACEOF
19219 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19229 if test -z "$GETOPT_H"; then
19230 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19231 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19232 if test "${ac_cv_have_decl_optreset+set}" = set; then
19233 echo $ECHO_N "(cached
) $ECHO_C" >&6
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 #include <getopt.h>
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_cv_have_decl_optreset=yes
19273 echo "$as_me: failed program was
:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_have_decl_optreset=no
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19282 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19283 if test $ac_cv_have_decl_optreset = yes; then
19289 if test -z "$GETOPT_H"; then
19290 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19291 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19292 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19293 echo $ECHO_N "(cached
) $ECHO_C" >&6
19295 if test "$cross_compiling" = yes; then
19296 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19297 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19298 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19299 echo $ECHO_N "(cached
) $ECHO_C" >&6
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 #include <getopt.h>
19312 #ifndef getopt_clip
19313 (void) getopt_clip;
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 ac_cv_have_decl_getopt_clip=yes
19339 echo "$as_me: failed program was
:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_cv_have_decl_getopt_clip=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19348 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19349 if test $ac_cv_have_decl_getopt_clip = yes; then
19350 gl_cv_func_gnu_getopt=no
19352 gl_cv_func_gnu_getopt=yes
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 #include <getopt.h>
19368 myargv[0] = "conftest
";
19371 return getopt (2, myargv, "+a
") != '?';
19377 rm -f conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>&5
19386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 gl_cv_func_gnu_getopt=yes
19399 echo "$as_me: program exited with status
$ac_status" >&5
19400 echo "$as_me: failed program was
:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 ( exit $ac_status )
19404 gl_cv_func_gnu_getopt=no
19406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19411 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19412 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19413 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19420 if test -n "$GETOPT_H"; then
19425 cat >>confdefs.h <<\_ACEOF
19426 #define __GETOPT_PREFIX rpl_
19432 GETOPTOBJS='getopt.o getopt1.o'
19439 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19440 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19441 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19442 echo $ECHO_N "(cached
) $ECHO_C" >&6
19444 # Use it with a single arg.
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 $ac_includes_default
19460 rm -f conftest.$ac_objext
19461 if { (ac_try="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_compile") 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19473 (exit $ac_status); } && {
19474 test -z "$ac_c_werror_flag" ||
19475 test ! -s conftest.err
19476 } && test -s conftest.$ac_objext; then
19477 ac_cv_func_getpgrp_void=no
19479 echo "$as_me: failed program was
:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_cv_func_getpgrp_void=yes
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19489 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19490 if test $ac_cv_func_getpgrp_void = yes; then
19492 cat >>confdefs.h <<\_ACEOF
19493 #define GETPGRP_VOID 1
19500 for ac_func in strftime
19502 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19503 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19504 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19505 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19506 echo $ECHO_N "(cached
) $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19516 #define $ac_func innocuous_$ac_func
19518 /* System header to define __stub macros and hopefully few prototypes,
19519 which can conflict with char $ac_func (); below.
19520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19521 <limits.h> exists even on freestanding compilers. */
19524 # include <limits.h>
19526 # include <assert.h>
19531 /* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19538 /* The GNU C library defines this for functions which it implements
19539 to always fail with ENOSYS. Some functions are actually named
19540 something starting with __ and the normal name is an alias. */
19541 #if defined __stub_$ac_func || defined __stub___$ac_func
19548 return $ac_func ();
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_link") 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext &&
19570 $as_test_x conftest$ac_exeext; then
19571 eval "$as_ac_var=yes"
19573 echo "$as_me: failed program was
:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 eval "$as_ac_var=no
"
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580 conftest$ac_exeext conftest.$ac_ext
19582 ac_res=`eval echo '${'$as_ac_var'}'`
19583 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19584 echo "${ECHO_T}$ac_res" >&6; }
19585 if test `eval echo '${'$as_ac_var'}'` = yes; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19591 # strftime is in -lintl on SCO UNIX.
19592 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19593 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19594 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19595 echo $ECHO_N "(cached
) $ECHO_C" >&6
19597 ac_check_lib_save_LIBS=$LIBS
19598 LIBS="-lintl $LIBS"
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19616 return strftime ();
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest$ac_exeext &&
19638 $as_test_x conftest$ac_exeext; then
19639 ac_cv_lib_intl_strftime=yes
19641 echo "$as_me: failed program was
:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_cv_lib_intl_strftime=no
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_lib_save_LIBS
19651 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19652 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19653 if test $ac_cv_lib_intl_strftime = yes; then
19654 cat >>confdefs.h <<\_ACEOF
19655 #define HAVE_STRFTIME 1
19658 LIBS="-lintl $LIBS"
19667 for ac_func in grantpt
19669 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19670 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19671 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19672 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19673 echo $ECHO_N "(cached
) $ECHO_C" >&6
19675 cat >conftest.$ac_ext <<_ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19683 #define $ac_func innocuous_$ac_func
19685 /* System header to define __stub macros and hopefully few prototypes,
19686 which can conflict with char $ac_func (); below.
19687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19688 <limits.h> exists even on freestanding compilers. */
19691 # include <limits.h>
19693 # include <assert.h>
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19705 /* The GNU C library defines this for functions which it implements
19706 to always fail with ENOSYS. Some functions are actually named
19707 something starting with __ and the normal name is an alias. */
19708 #if defined __stub_$ac_func || defined __stub___$ac_func
19715 return $ac_func ();
19720 rm -f conftest.$ac_objext conftest$ac_exeext
19721 if { (ac_try="$ac_link"
19722 case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_link") 2>conftest.er1
19729 grep -v '^ *+' conftest.er1 >conftest.err
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19733 (exit $ac_status); } && {
19734 test -z "$ac_c_werror_flag" ||
19735 test ! -s conftest.err
19736 } && test -s conftest$ac_exeext &&
19737 $as_test_x conftest$ac_exeext; then
19738 eval "$as_ac_var=yes"
19740 echo "$as_me: failed program was
:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 eval "$as_ac_var=no
"
19746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19747 conftest$ac_exeext conftest.$ac_ext
19749 ac_res=`eval echo '${'$as_ac_var'}'`
19750 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19751 echo "${ECHO_T}$ac_res" >&6; }
19752 if test `eval echo '${'$as_ac_var'}'` = yes; then
19753 cat >>confdefs.h <<_ACEOF
19754 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19761 # PTY-related GNU extensions.
19763 for ac_func in getpt
19765 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19766 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19767 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19768 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19769 echo $ECHO_N "(cached
) $ECHO_C" >&6
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19779 #define $ac_func innocuous_$ac_func
19781 /* System header to define __stub macros and hopefully few prototypes,
19782 which can conflict with char $ac_func (); below.
19783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19784 <limits.h> exists even on freestanding compilers. */
19787 # include <limits.h>
19789 # include <assert.h>
19794 /* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19801 /* The GNU C library defines this for functions which it implements
19802 to always fail with ENOSYS. Some functions are actually named
19803 something starting with __ and the normal name is an alias. */
19804 #if defined __stub_$ac_func || defined __stub___$ac_func
19811 return $ac_func ();
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19825 grep -v '^ *+' conftest.er1 >conftest.err
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 eval "$as_ac_var=yes"
19836 echo "$as_me: failed program was
:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 eval "$as_ac_var=no
"
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext conftest.$ac_ext
19845 ac_res=`eval echo '${'$as_ac_var'}'`
19846 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19848 if test `eval echo '${'$as_ac_var'}'` = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19857 # Check this now, so that we will NOT find the above functions in ncurses.
19858 # That is because we have not set up to link ncurses in lib-src.
19859 # It's better to believe a function is not available
19860 # than to expect to find it in ncurses.
19862 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19863 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19864 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19865 echo $ECHO_N "(cached
) $ECHO_C" >&6
19867 ac_check_lib_save_LIBS=$LIBS
19868 LIBS="-lncurses $LIBS"
19869 cat >conftest.$ac_ext <<_ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19891 rm -f conftest.$ac_objext conftest$ac_exeext
19892 if { (ac_try="$ac_link"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_link") 2>conftest.er1
19900 grep -v '^ *+' conftest.er1 >conftest.err
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19904 (exit $ac_status); } && {
19905 test -z "$ac_c_werror_flag" ||
19906 test ! -s conftest.err
19907 } && test -s conftest$ac_exeext &&
19908 $as_test_x conftest$ac_exeext; then
19909 ac_cv_lib_ncurses_tparm=yes
19911 echo "$as_me: failed program was
:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_cv_lib_ncurses_tparm=no
19917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19918 conftest$ac_exeext conftest.$ac_ext
19919 LIBS=$ac_check_lib_save_LIBS
19921 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19922 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19923 if test $ac_cv_lib_ncurses_tparm = yes; then
19924 cat >>confdefs.h <<_ACEOF
19925 #define HAVE_LIBNCURSES 1
19928 LIBS="-lncurses $LIBS"
19933 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19936 cat >conftest.$ac_ext <<_ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 #include <netinet/in.h>
19943 #include <arpa/nameser.h>
19944 #include <resolv.h>
19953 rm -f conftest.$ac_objext conftest$ac_exeext
19954 if { (ac_try="$ac_link"
19955 case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_link") 2>conftest.er1
19962 grep -v '^ *+' conftest.er1 >conftest.err
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19966 (exit $ac_status); } && {
19967 test -z "$ac_c_werror_flag" ||
19968 test ! -s conftest.err
19969 } && test -s conftest$ac_exeext &&
19970 $as_test_x conftest$ac_exeext; then
19973 echo "$as_me: failed program was
:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19980 conftest$ac_exeext conftest.$ac_ext
19981 if test "$have_res_init" = no; then
19983 LIBS="$LIBS -lresolv"
19984 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19985 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <netinet/in.h>
19993 #include <arpa/nameser.h>
19994 #include <resolv.h>
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (ac_try="$ac_link"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_link") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20016 (exit $ac_status); } && {
20017 test -z "$ac_c_werror_flag" ||
20018 test ! -s conftest.err
20019 } && test -s conftest$ac_exeext &&
20020 $as_test_x conftest$ac_exeext; then
20023 echo "$as_me: failed program was
:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20030 conftest$ac_exeext conftest.$ac_ext
20031 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20032 echo "${ECHO_T}$have_res_init" >&6; }
20033 if test "$have_res_init" = yes ; then
20039 if test "$have_res_init" = yes; then
20041 cat >>confdefs.h <<\_ACEOF
20042 #define HAVE_RES_INIT 1
20047 # Do we need the Hesiod library to provide the support routines?
20048 if test "$with_hesiod" = yes ; then
20049 # Don't set $LIBS here -- see comments above.
20050 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20051 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20052 if test "${ac_cv_func_res_send+set}" = set; then
20053 echo $ECHO_N "(cached
) $ECHO_C" >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20063 #define res_send innocuous_res_send
20065 /* System header to define __stub macros and hopefully few prototypes,
20066 which can conflict with char res_send (); below.
20067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20068 <limits.h> exists even on freestanding compilers. */
20071 # include <limits.h>
20073 # include <assert.h>
20078 /* Override any GCC internal prototype to avoid an error.
20079 Use char because int might match the return type of a GCC
20080 builtin and then its argument prototype would still apply. */
20085 /* The GNU C library defines this for functions which it implements
20086 to always fail with ENOSYS. Some functions are actually named
20087 something starting with __ and the normal name is an alias. */
20088 #if defined __stub_res_send || defined __stub___res_send
20095 return res_send ();
20100 rm -f conftest.$ac_objext conftest$ac_exeext
20101 if { (ac_try="$ac_link"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_link") 2>conftest.er1
20109 grep -v '^ *+' conftest.er1 >conftest.err
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20113 (exit $ac_status); } && {
20114 test -z "$ac_c_werror_flag" ||
20115 test ! -s conftest.err
20116 } && test -s conftest$ac_exeext &&
20117 $as_test_x conftest$ac_exeext; then
20118 ac_cv_func_res_send=yes
20120 echo "$as_me: failed program was
:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_func_res_send=no
20126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20127 conftest$ac_exeext conftest.$ac_ext
20129 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20130 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20131 if test $ac_cv_func_res_send = yes; then
20134 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20135 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20136 if test "${ac_cv_func___res_send+set}" = set; then
20137 echo $ECHO_N "(cached
) $ECHO_C" >&6
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20147 #define __res_send innocuous___res_send
20149 /* System header to define __stub macros and hopefully few prototypes,
20150 which can conflict with char __res_send (); below.
20151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20152 <limits.h> exists even on freestanding compilers. */
20155 # include <limits.h>
20157 # include <assert.h>
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20168 char __res_send ();
20169 /* The GNU C library defines this for functions which it implements
20170 to always fail with ENOSYS. Some functions are actually named
20171 something starting with __ and the normal name is an alias. */
20172 #if defined __stub___res_send || defined __stub_____res_send
20179 return __res_send ();
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (ac_try="$ac_link"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_link") 2>conftest.er1
20193 grep -v '^ *+' conftest.er1 >conftest.err
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest$ac_exeext &&
20201 $as_test_x conftest$ac_exeext; then
20202 ac_cv_func___res_send=yes
20204 echo "$as_me: failed program was
:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_cv_func___res_send=no
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211 conftest$ac_exeext conftest.$ac_ext
20213 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20214 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20215 if test $ac_cv_func___res_send = yes; then
20218 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20219 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20220 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20221 echo $ECHO_N "(cached
) $ECHO_C" >&6
20223 ac_check_lib_save_LIBS=$LIBS
20224 LIBS="-lresolv $LIBS"
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20242 return res_send ();
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (ac_try="$ac_link"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_link") 2>conftest.er1
20256 grep -v '^ *+' conftest.er1 >conftest.err
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest$ac_exeext &&
20264 $as_test_x conftest$ac_exeext; then
20265 ac_cv_lib_resolv_res_send=yes
20267 echo "$as_me: failed program was
:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_lib_resolv_res_send=no
20273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20274 conftest$ac_exeext conftest.$ac_ext
20275 LIBS=$ac_check_lib_save_LIBS
20277 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20278 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20279 if test $ac_cv_lib_resolv_res_send = yes; then
20282 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20283 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20284 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20285 echo $ECHO_N "(cached
) $ECHO_C" >&6
20287 ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lresolv $LIBS"
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 /* Override any GCC internal prototype to avoid an error.
20297 Use char because int might match the return type of a GCC
20298 builtin and then its argument prototype would still apply. */
20302 char __res_send ();
20306 return __res_send ();
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (ac_try="$ac_link"
20313 case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_link") 2>conftest.er1
20320 grep -v '^ *+' conftest.er1 >conftest.err
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20324 (exit $ac_status); } && {
20325 test -z "$ac_c_werror_flag" ||
20326 test ! -s conftest.err
20327 } && test -s conftest$ac_exeext &&
20328 $as_test_x conftest$ac_exeext; then
20329 ac_cv_lib_resolv___res_send=yes
20331 echo "$as_me: failed program was
:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_cv_lib_resolv___res_send=no
20337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20341 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20342 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20343 if test $ac_cv_lib_resolv___res_send = yes; then
20353 if test "$resolv" = yes ; then
20358 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20359 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20360 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20361 echo $ECHO_N "(cached
) $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20371 #define hes_getmailhost innocuous_hes_getmailhost
20373 /* System header to define __stub macros and hopefully few prototypes,
20374 which can conflict with char hes_getmailhost (); below.
20375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20376 <limits.h> exists even on freestanding compilers. */
20379 # include <limits.h>
20381 # include <assert.h>
20384 #undef hes_getmailhost
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20392 char hes_getmailhost ();
20393 /* The GNU C library defines this for functions which it implements
20394 to always fail with ENOSYS. Some functions are actually named
20395 something starting with __ and the normal name is an alias. */
20396 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20403 return hes_getmailhost ();
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest$ac_exeext &&
20425 $as_test_x conftest$ac_exeext; then
20426 ac_cv_func_hes_getmailhost=yes
20428 echo "$as_me: failed program was
:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_cv_func_hes_getmailhost=no
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20437 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20438 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20439 if test $ac_cv_func_hes_getmailhost = yes; then
20442 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20443 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20444 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20445 echo $ECHO_N "(cached
) $ECHO_C" >&6
20447 ac_check_lib_save_LIBS=$LIBS
20448 LIBS="-lhesiod $RESOLVLIB $LIBS"
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 /* Override any GCC internal prototype to avoid an error.
20457 Use char because int might match the return type of a GCC
20458 builtin and then its argument prototype would still apply. */
20462 char hes_getmailhost ();
20466 return hes_getmailhost ();
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_link") 2>conftest.er1
20480 grep -v '^ *+' conftest.er1 >conftest.err
20482 cat conftest.err >&5
20483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest$ac_exeext &&
20488 $as_test_x conftest$ac_exeext; then
20489 ac_cv_lib_hesiod_hes_getmailhost=yes
20491 echo "$as_me: failed program was
:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_cv_lib_hesiod_hes_getmailhost=no
20497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20498 conftest$ac_exeext conftest.$ac_ext
20499 LIBS=$ac_check_lib_save_LIBS
20501 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20502 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20503 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20505 cat >>confdefs.h <<\_ACEOF
20506 #define HAVE_LIBHESIOD 1
20517 # Do we need libresolv (due to res_init or Hesiod)?
20518 if test "$resolv" = yes ; then
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_LIBRESOLV 1
20526 # These tell us which Kerberos-related libraries to use.
20527 if test "${with_kerberos+set}" = set; then
20529 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20530 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20531 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20532 echo $ECHO_N "(cached
) $ECHO_C" >&6
20534 ac_check_lib_save_LIBS=$LIBS
20535 LIBS="-lcom_err $LIBS"
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20543 /* Override any GCC internal prototype to avoid an error.
20544 Use char because int might match the return type of a GCC
20545 builtin and then its argument prototype would still apply. */
20558 rm -f conftest.$ac_objext conftest$ac_exeext
20559 if { (ac_try="$ac_link"
20560 case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_link") 2>conftest.er1
20567 grep -v '^ *+' conftest.er1 >conftest.err
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20571 (exit $ac_status); } && {
20572 test -z "$ac_c_werror_flag" ||
20573 test ! -s conftest.err
20574 } && test -s conftest$ac_exeext &&
20575 $as_test_x conftest$ac_exeext; then
20576 ac_cv_lib_com_err_com_err=yes
20578 echo "$as_me: failed program was
:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 ac_cv_lib_com_err_com_err=no
20584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20585 conftest$ac_exeext conftest.$ac_ext
20586 LIBS=$ac_check_lib_save_LIBS
20588 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20589 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20590 if test $ac_cv_lib_com_err_com_err = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_LIBCOM_ERR 1
20595 LIBS="-lcom_err $LIBS"
20600 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20601 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20602 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20603 echo $ECHO_N "(cached
) $ECHO_C" >&6
20605 ac_check_lib_save_LIBS=$LIBS
20606 LIBS="-lk5crypto $LIBS"
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20614 /* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20620 char mit_des_cbc_encrypt ();
20624 return mit_des_cbc_encrypt ();
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (ac_try="$ac_link"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_link") 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest$ac_exeext &&
20646 $as_test_x conftest$ac_exeext; then
20647 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20649 echo "$as_me: failed program was
:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20652 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656 conftest$ac_exeext conftest.$ac_ext
20657 LIBS=$ac_check_lib_save_LIBS
20659 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20660 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20661 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define HAVE_LIBK5CRYPTO 1
20666 LIBS="-lk5crypto $LIBS"
20671 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20672 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20673 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20674 echo $ECHO_N "(cached
) $ECHO_C" >&6
20676 ac_check_lib_save_LIBS=$LIBS
20677 LIBS="-lcrypto $LIBS"
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20691 char mit_des_cbc_encrypt ();
20695 return mit_des_cbc_encrypt ();
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_link") 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest$ac_exeext &&
20717 $as_test_x conftest$ac_exeext; then
20718 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20720 echo "$as_me: failed program was
:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20730 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20731 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20732 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_LIBCRYPTO 1
20737 LIBS="-lcrypto $LIBS"
20742 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20743 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20744 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20745 echo $ECHO_N "(cached
) $ECHO_C" >&6
20747 ac_check_lib_save_LIBS=$LIBS
20748 LIBS="-lkrb5 $LIBS"
20749 cat >conftest.$ac_ext <<_ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20756 /* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20762 char krb5_init_context ();
20766 return krb5_init_context ();
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (ac_try="$ac_link"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_link") 2>conftest.er1
20780 grep -v '^ *+' conftest.er1 >conftest.err
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest$ac_exeext &&
20788 $as_test_x conftest$ac_exeext; then
20789 ac_cv_lib_krb5_krb5_init_context=yes
20791 echo "$as_me: failed program was
:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 ac_cv_lib_krb5_krb5_init_context=no
20797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20798 conftest$ac_exeext conftest.$ac_ext
20799 LIBS=$ac_check_lib_save_LIBS
20801 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20802 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20803 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define HAVE_LIBKRB5 1
20808 LIBS="-lkrb5 $LIBS"
20812 if test "${with_kerberos5+set}" != set; then
20814 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20815 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20816 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20817 echo $ECHO_N "(cached
) $ECHO_C" >&6
20819 ac_check_lib_save_LIBS=$LIBS
20820 LIBS="-ldes425 $LIBS"
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20834 char des_cbc_encrypt ();
20838 return des_cbc_encrypt ();
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext &&
20860 $as_test_x conftest$ac_exeext; then
20861 ac_cv_lib_des425_des_cbc_encrypt=yes
20863 echo "$as_me: failed program was
:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 ac_cv_lib_des425_des_cbc_encrypt=no
20869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20870 conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20873 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20874 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20875 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20876 cat >>confdefs.h <<_ACEOF
20877 #define HAVE_LIBDES425 1
20880 LIBS="-ldes425 $LIBS"
20884 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20885 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20886 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20887 echo $ECHO_N "(cached
) $ECHO_C" >&6
20889 ac_check_lib_save_LIBS=$LIBS
20891 cat >conftest.$ac_ext <<_ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20898 /* Override any GCC internal prototype to avoid an error.
20899 Use char because int might match the return type of a GCC
20900 builtin and then its argument prototype would still apply. */
20904 char des_cbc_encrypt ();
20908 return des_cbc_encrypt ();
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (ac_try="$ac_link"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_link") 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20926 (exit $ac_status); } && {
20927 test -z "$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20929 } && test -s conftest$ac_exeext &&
20930 $as_test_x conftest$ac_exeext; then
20931 ac_cv_lib_des_des_cbc_encrypt=yes
20933 echo "$as_me: failed program was
:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 ac_cv_lib_des_des_cbc_encrypt=no
20939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20940 conftest$ac_exeext conftest.$ac_ext
20941 LIBS=$ac_check_lib_save_LIBS
20943 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20944 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20945 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20946 cat >>confdefs.h <<_ACEOF
20947 #define HAVE_LIBDES 1
20957 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20958 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20959 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20960 echo $ECHO_N "(cached
) $ECHO_C" >&6
20962 ac_check_lib_save_LIBS=$LIBS
20963 LIBS="-lkrb4 $LIBS"
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20971 /* Override any GCC internal prototype to avoid an error.
20972 Use char because int might match the return type of a GCC
20973 builtin and then its argument prototype would still apply. */
20977 char krb_get_cred ();
20981 return krb_get_cred ();
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest$ac_exeext &&
21003 $as_test_x conftest$ac_exeext; then
21004 ac_cv_lib_krb4_krb_get_cred=yes
21006 echo "$as_me: failed program was
:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 ac_cv_lib_krb4_krb_get_cred=no
21012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21013 conftest$ac_exeext conftest.$ac_ext
21014 LIBS=$ac_check_lib_save_LIBS
21016 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21017 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21018 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21019 cat >>confdefs.h <<_ACEOF
21020 #define HAVE_LIBKRB4 1
21023 LIBS="-lkrb4 $LIBS"
21027 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21028 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21029 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21030 echo $ECHO_N "(cached
) $ECHO_C" >&6
21032 ac_check_lib_save_LIBS=$LIBS
21034 cat >conftest.$ac_ext <<_ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21041 /* Override any GCC internal prototype to avoid an error.
21042 Use char because int might match the return type of a GCC
21043 builtin and then its argument prototype would still apply. */
21047 char krb_get_cred ();
21051 return krb_get_cred ();
21056 rm -f conftest.$ac_objext conftest$ac_exeext
21057 if { (ac_try="$ac_link"
21058 case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_link") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest$ac_exeext &&
21073 $as_test_x conftest$ac_exeext; then
21074 ac_cv_lib_krb_krb_get_cred=yes
21076 echo "$as_me: failed program was
:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 ac_cv_lib_krb_krb_get_cred=no
21082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21083 conftest$ac_exeext conftest.$ac_ext
21084 LIBS=$ac_check_lib_save_LIBS
21086 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21087 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21088 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define HAVE_LIBKRB 1
21101 if test "${with_kerberos5+set}" = set; then
21103 for ac_header in krb5.h
21105 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21107 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21108 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21110 echo $ECHO_N "(cached
) $ECHO_C" >&6
21112 ac_res=`eval echo '${'$as_ac_Header'}'`
21113 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21114 echo "${ECHO_T}$ac_res" >&6; }
21116 # Is the header compilable?
21117 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21118 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21119 cat >conftest.$ac_ext <<_ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 $ac_includes_default
21126 #include <$ac_header>
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_compile") 2>conftest.er1
21137 grep -v '^ *+' conftest.er1 >conftest.err
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21141 (exit $ac_status); } && {
21142 test -z "$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21144 } && test -s conftest.$ac_objext; then
21145 ac_header_compiler=yes
21147 echo "$as_me: failed program was
:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_header_compiler=no
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21155 echo "${ECHO_T}$ac_header_compiler" >&6; }
21157 # Is the header present?
21158 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21159 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <$ac_header>
21168 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21169 case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21176 grep -v '^ *+' conftest.er1 >conftest.err
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21180 (exit $ac_status); } >/dev/null && {
21181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21182 test ! -s conftest.err
21184 ac_header_preproc=yes
21186 echo "$as_me: failed program was
:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 ac_header_preproc=no
21192 rm -f conftest.err conftest.$ac_ext
21193 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21194 echo "${ECHO_T}$ac_header_preproc" >&6; }
21196 # So? What about this header?
21197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21199 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21200 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21201 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21203 ac_header_preproc=yes
21206 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21207 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21208 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21209 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21210 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21211 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21212 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21213 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21214 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21216 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21217 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21221 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21222 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21223 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21224 echo $ECHO_N "(cached
) $ECHO_C" >&6
21226 eval "$as_ac_Header=\
$ac_header_preproc"
21228 ac_res=`eval echo '${'$as_ac_Header'}'`
21229 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21230 echo "${ECHO_T}$ac_res" >&6; }
21233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21244 for ac_header in des.h
21246 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached
) $ECHO_C" >&6
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21259 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21278 grep -v '^ *+' conftest.er1 >conftest.err
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21288 echo "$as_me: failed program was
:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_compiler=no
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21300 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21325 ac_header_preproc=yes
21327 echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_preproc=no
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21340 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21341 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21344 ac_header_preproc=yes
21347 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21348 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21349 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21350 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21351 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21352 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21353 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21354 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21358 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached
) $ECHO_C" >&6
21367 eval "$as_ac_Header=\
$ac_header_preproc"
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21381 for ac_header in kerberosIV/des.h
21383 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21384 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21385 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21386 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21387 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21388 echo $ECHO_N "(cached
) $ECHO_C" >&6
21390 ac_res=`eval echo '${'$as_ac_Header'}'`
21391 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21392 echo "${ECHO_T}$ac_res" >&6; }
21394 # Is the header compilable?
21395 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21396 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21397 cat >conftest.$ac_ext <<_ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21404 #include <$ac_header>
21406 rm -f conftest.$ac_objext
21407 if { (ac_try="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_compile") 2>conftest.er1
21415 grep -v '^ *+' conftest.er1 >conftest.err
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest.$ac_objext; then
21423 ac_header_compiler=yes
21425 echo "$as_me: failed program was
:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ac_header_compiler=no
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21433 echo "${ECHO_T}$ac_header_compiler" >&6; }
21435 # Is the header present?
21436 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21437 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <$ac_header>
21446 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21458 (exit $ac_status); } >/dev/null && {
21459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21462 ac_header_preproc=yes
21464 echo "$as_me: failed program was
:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21467 ac_header_preproc=no
21470 rm -f conftest.err conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21472 echo "${ECHO_T}$ac_header_preproc" >&6; }
21474 # So? What about this header?
21475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21477 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21478 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21479 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21481 ac_header_preproc=yes
21484 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21485 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21486 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21487 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21488 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21489 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21490 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21491 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21492 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21494 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21495 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21499 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21500 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21501 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21502 echo $ECHO_N "(cached
) $ECHO_C" >&6
21504 eval "$as_ac_Header=\
$ac_header_preproc"
21506 ac_res=`eval echo '${'$as_ac_Header'}'`
21507 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21508 echo "${ECHO_T}$ac_res" >&6; }
21511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21512 cat >>confdefs.h <<_ACEOF
21513 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21518 for ac_header in kerberos/des.h
21520 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21522 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21523 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21525 echo $ECHO_N "(cached
) $ECHO_C" >&6
21527 ac_res=`eval echo '${'$as_ac_Header'}'`
21528 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21529 echo "${ECHO_T}$ac_res" >&6; }
21531 # Is the header compilable?
21532 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21533 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21534 cat >conftest.$ac_ext <<_ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 $ac_includes_default
21541 #include <$ac_header>
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21552 grep -v '^ *+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_header_compiler=yes
21562 echo "$as_me: failed program was
:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_header_compiler=no
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21570 echo "${ECHO_T}$ac_header_compiler" >&6; }
21572 # Is the header present?
21573 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21574 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21575 cat >conftest.$ac_ext <<_ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 #include <$ac_header>
21583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21595 (exit $ac_status); } >/dev/null && {
21596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21599 ac_header_preproc=yes
21601 echo "$as_me: failed program was
:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604 ac_header_preproc=no
21607 rm -f conftest.err conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21609 echo "${ECHO_T}$ac_header_preproc" >&6; }
21611 # So? What about this header?
21612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21614 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21615 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21616 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21618 ac_header_preproc=yes
21621 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21622 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21623 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21624 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21625 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21626 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21627 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21628 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21631 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21632 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21636 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21637 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21639 echo $ECHO_N "(cached
) $ECHO_C" >&6
21641 eval "$as_ac_Header=\
$ac_header_preproc"
21643 ac_res=`eval echo '${'$as_ac_Header'}'`
21644 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21645 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21666 for ac_header in krb.h
21668 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21669 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21670 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21671 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21673 echo $ECHO_N "(cached
) $ECHO_C" >&6
21675 ac_res=`eval echo '${'$as_ac_Header'}'`
21676 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21677 echo "${ECHO_T}$ac_res" >&6; }
21679 # Is the header compilable?
21680 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21681 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 $ac_includes_default
21689 #include <$ac_header>
21691 rm -f conftest.$ac_objext
21692 if { (ac_try="$ac_compile"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_compile") 2>conftest.er1
21700 grep -v '^ *+' conftest.er1 >conftest.err
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21704 (exit $ac_status); } && {
21705 test -z "$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 } && test -s conftest.$ac_objext; then
21708 ac_header_compiler=yes
21710 echo "$as_me: failed program was
:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 ac_header_compiler=no
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21718 echo "${ECHO_T}$ac_header_compiler" >&6; }
21720 # Is the header present?
21721 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21722 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21723 cat >conftest.$ac_ext <<_ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 #include <$ac_header>
21731 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21739 grep -v '^ *+' conftest.er1 >conftest.err
21741 cat conftest.err >&5
21742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21743 (exit $ac_status); } >/dev/null && {
21744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21745 test ! -s conftest.err
21747 ac_header_preproc=yes
21749 echo "$as_me: failed program was
:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21752 ac_header_preproc=no
21755 rm -f conftest.err conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21757 echo "${ECHO_T}$ac_header_preproc" >&6; }
21759 # So? What about this header?
21760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21762 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21763 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21764 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21766 ac_header_preproc=yes
21769 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21770 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21771 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21772 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21773 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21774 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21775 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21776 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21777 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21779 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21780 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21784 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21785 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21787 echo $ECHO_N "(cached
) $ECHO_C" >&6
21789 eval "$as_ac_Header=\
$ac_header_preproc"
21791 ac_res=`eval echo '${'$as_ac_Header'}'`
21792 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21793 echo "${ECHO_T}$ac_res" >&6; }
21796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21797 cat >>confdefs.h <<_ACEOF
21798 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21803 for ac_header in kerberosIV/krb.h
21805 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21806 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21807 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21808 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21809 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached
) $ECHO_C" >&6
21812 ac_res=`eval echo '${'$as_ac_Header'}'`
21813 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21814 echo "${ECHO_T}$ac_res" >&6; }
21816 # Is the header compilable?
21817 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21818 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21819 cat >conftest.$ac_ext <<_ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 $ac_includes_default
21826 #include <$ac_header>
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_compile") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest.$ac_objext; then
21845 ac_header_compiler=yes
21847 echo "$as_me: failed program was
:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_header_compiler=no
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21855 echo "${ECHO_T}$ac_header_compiler" >&6; }
21857 # Is the header present?
21858 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21859 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <$ac_header>
21868 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21880 (exit $ac_status); } >/dev/null && {
21881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21884 ac_header_preproc=yes
21886 echo "$as_me: failed program was
:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 ac_header_preproc=no
21892 rm -f conftest.err conftest.$ac_ext
21893 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6; }
21896 # So? What about this header?
21897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21899 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21900 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21901 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21903 ac_header_preproc=yes
21906 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21907 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21908 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21909 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21910 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21911 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21912 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21913 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21914 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21917 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21921 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21922 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21923 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached
) $ECHO_C" >&6
21926 eval "$as_ac_Header=\
$ac_header_preproc"
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21940 for ac_header in kerberos/krb.h
21942 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21943 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21944 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21945 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21947 echo $ECHO_N "(cached
) $ECHO_C" >&6
21949 ac_res=`eval echo '${'$as_ac_Header'}'`
21950 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21951 echo "${ECHO_T}$ac_res" >&6; }
21953 # Is the header compilable?
21954 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21955 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21956 cat >conftest.$ac_ext <<_ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21963 #include <$ac_header>
21965 rm -f conftest.$ac_objext
21966 if { (ac_try="$ac_compile"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_compile") 2>conftest.er1
21974 grep -v '^ *+' conftest.er1 >conftest.err
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest.$ac_objext; then
21982 ac_header_compiler=yes
21984 echo "$as_me: failed program was
:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ac_header_compiler=no
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21992 echo "${ECHO_T}$ac_header_compiler" >&6; }
21994 # Is the header present?
21995 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21996 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #include <$ac_header>
22005 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22013 grep -v '^ *+' conftest.er1 >conftest.err
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22017 (exit $ac_status); } >/dev/null && {
22018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22021 ac_header_preproc=yes
22023 echo "$as_me: failed program was
:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_header_preproc=no
22029 rm -f conftest.err conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22031 echo "${ECHO_T}$ac_header_preproc" >&6; }
22033 # So? What about this header?
22034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22036 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22037 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22038 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22040 ac_header_preproc=yes
22043 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22044 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22045 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22046 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22047 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22048 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22049 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22050 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22051 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22053 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22054 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22058 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22059 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22060 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22061 echo $ECHO_N "(cached
) $ECHO_C" >&6
22063 eval "$as_ac_Header=\
$ac_header_preproc"
22065 ac_res=`eval echo '${'$as_ac_Header'}'`
22066 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22067 echo "${ECHO_T}$ac_res" >&6; }
22070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22071 cat >>confdefs.h <<_ACEOF
22072 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22089 for ac_header in com_err.h
22091 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22092 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22093 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22094 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22095 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22096 echo $ECHO_N "(cached
) $ECHO_C" >&6
22098 ac_res=`eval echo '${'$as_ac_Header'}'`
22099 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22100 echo "${ECHO_T}$ac_res" >&6; }
22102 # Is the header compilable?
22103 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22104 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 $ac_includes_default
22112 #include <$ac_header>
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_compile") 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22127 (exit $ac_status); } && {
22128 test -z "$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 } && test -s conftest.$ac_objext; then
22131 ac_header_compiler=yes
22133 echo "$as_me: failed program was
:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_header_compiler=no
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22141 echo "${ECHO_T}$ac_header_compiler" >&6; }
22143 # Is the header present?
22144 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22145 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <$ac_header>
22154 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22162 grep -v '^ *+' conftest.er1 >conftest.err
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22166 (exit $ac_status); } >/dev/null && {
22167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22170 ac_header_preproc=yes
22172 echo "$as_me: failed program was
:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22175 ac_header_preproc=no
22178 rm -f conftest.err conftest.$ac_ext
22179 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22180 echo "${ECHO_T}$ac_header_preproc" >&6; }
22182 # So? What about this header?
22183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22185 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22186 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22187 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22189 ac_header_preproc=yes
22192 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22193 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22194 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22195 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22196 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22197 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22198 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22199 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22200 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22202 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22203 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22207 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22208 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22209 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22210 echo $ECHO_N "(cached
) $ECHO_C" >&6
22212 eval "$as_ac_Header=\
$ac_header_preproc"
22214 ac_res=`eval echo '${'$as_ac_Header'}'`
22215 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22216 echo "${ECHO_T}$ac_res" >&6; }
22219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22230 # Solaris requires -lintl if you want strerror (which calls dgettext)
22231 # to return localized messages.
22233 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22234 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22235 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22236 echo $ECHO_N "(cached
) $ECHO_C" >&6
22238 ac_check_lib_save_LIBS=$LIBS
22239 LIBS="-lintl $LIBS"
22240 cat >conftest.$ac_ext <<_ACEOF
22243 cat confdefs.h >>conftest.$ac_ext
22244 cat >>conftest.$ac_ext <<_ACEOF
22245 /* end confdefs.h. */
22247 /* Override any GCC internal prototype to avoid an error.
22248 Use char because int might match the return type of a GCC
22249 builtin and then its argument prototype would still apply. */
22257 return dgettext ();
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (ac_try="$ac_link"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_link") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22275 (exit $ac_status); } && {
22276 test -z "$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 } && test -s conftest$ac_exeext &&
22279 $as_test_x conftest$ac_exeext; then
22280 ac_cv_lib_intl_dgettext=yes
22282 echo "$as_me: failed program was
:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22285 ac_cv_lib_intl_dgettext=no
22288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22289 conftest$ac_exeext conftest.$ac_ext
22290 LIBS=$ac_check_lib_save_LIBS
22292 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22293 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22294 if test $ac_cv_lib_intl_dgettext = yes; then
22295 cat >>confdefs.h <<_ACEOF
22296 #define HAVE_LIBINTL 1
22299 LIBS="-lintl $LIBS"
22304 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22305 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22306 if test "${emacs_cv_localtime_cache+set}" = set; then
22307 echo $ECHO_N "(cached
) $ECHO_C" >&6
22309 if test x$ac_cv_func_tzset = xyes; then
22310 if test "$cross_compiling" = yes; then
22311 # If we have tzset, assume the worst when cross-compiling.
22312 emacs_cv_localtime_cache=yes
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22321 extern char **environ;
22325 for (to = from = environ; (*to = *from); from++)
22326 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22329 char TZ_GMT0[] = "TZ
=GMT0
";
22330 char TZ_PST8[] = "TZ
=PST8
";
22333 time_t now = time ((time_t *) 0);
22334 int hour_GMT0, hour_unset;
22335 if (putenv (TZ_GMT0) != 0)
22337 hour_GMT0 = localtime (&now)->tm_hour;
22339 hour_unset = localtime (&now)->tm_hour;
22340 if (putenv (TZ_PST8) != 0)
22342 if (localtime (&now)->tm_hour == hour_GMT0)
22345 if (localtime (&now)->tm_hour != hour_unset)
22350 rm -f conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>&5
22359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361 { (case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_try") 2>&5
22368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 emacs_cv_localtime_cache=no
22372 echo "$as_me: program exited with status
$ac_status" >&5
22373 echo "$as_me: failed program was
:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ( exit $ac_status )
22377 emacs_cv_localtime_cache=yes
22379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22384 # If we lack tzset, report that localtime does not cache TZ,
22385 # since we can't invalidate the cache if we don't have tzset.
22386 emacs_cv_localtime_cache=no
22389 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22390 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22391 if test $emacs_cv_localtime_cache = yes; then
22393 cat >>confdefs.h <<\_ACEOF
22394 #define LOCALTIME_CACHE 1
22399 if test "x
$HAVE_TIMEVAL" = xyes; then
22401 for ac_func in gettimeofday
22403 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22404 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22405 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22406 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22407 echo $ECHO_N "(cached
) $ECHO_C" >&6
22409 cat >conftest.$ac_ext <<_ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22417 #define $ac_func innocuous_$ac_func
22419 /* System header to define __stub macros and hopefully few prototypes,
22420 which can conflict with char $ac_func (); below.
22421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22422 <limits.h> exists even on freestanding compilers. */
22425 # include <limits.h>
22427 # include <assert.h>
22432 /* Override any GCC internal prototype to avoid an error.
22433 Use char because int might match the return type of a GCC
22434 builtin and then its argument prototype would still apply. */
22439 /* The GNU C library defines this for functions which it implements
22440 to always fail with ENOSYS. Some functions are actually named
22441 something starting with __ and the normal name is an alias. */
22442 #if defined __stub_$ac_func || defined __stub___$ac_func
22449 return $ac_func ();
22454 rm -f conftest.$ac_objext conftest$ac_exeext
22455 if { (ac_try="$ac_link"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_link") 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest$ac_exeext &&
22471 $as_test_x conftest$ac_exeext; then
22472 eval "$as_ac_var=yes"
22474 echo "$as_me: failed program was
:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 eval "$as_ac_var=no
"
22480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22481 conftest$ac_exeext conftest.$ac_ext
22483 ac_res=`eval echo '${'$as_ac_var'}'`
22484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22485 echo "${ECHO_T}$ac_res" >&6; }
22486 if test `eval echo '${'$as_ac_var'}'` = yes; then
22487 cat >>confdefs.h <<_ACEOF
22488 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22494 if test $ac_cv_func_gettimeofday = yes; then
22495 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22496 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22497 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22498 echo $ECHO_N "(cached
) $ECHO_C" >&6
22500 cat >conftest.$ac_ext <<_ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22507 #ifdef TIME_WITH_SYS_TIME
22508 #include <sys/time.h>
22511 #ifdef HAVE_SYS_TIME_H
22512 #include <sys/time.h>
22520 struct timeval time;
22521 gettimeofday (&time, 0);
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_compile") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest.$ac_objext; then
22543 emacs_cv_gettimeofday_two_arguments=yes
22545 echo "$as_me: failed program was
:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 emacs_cv_gettimeofday_two_arguments=no
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22554 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22555 if test $emacs_cv_gettimeofday_two_arguments = no; then
22557 cat >>confdefs.h <<\_ACEOF
22558 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22566 { echo "$as_me:$LINENO: checking
for socket
" >&5
22567 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22568 if test "${ac_cv_func_socket+set}" = set; then
22569 echo $ECHO_N "(cached
) $ECHO_C" >&6
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22579 #define socket innocuous_socket
22581 /* System header to define __stub macros and hopefully few prototypes,
22582 which can conflict with char socket (); below.
22583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22584 <limits.h> exists even on freestanding compilers. */
22587 # include <limits.h>
22589 # include <assert.h>
22594 /* Override any GCC internal prototype to avoid an error.
22595 Use char because int might match the return type of a GCC
22596 builtin and then its argument prototype would still apply. */
22601 /* The GNU C library defines this for functions which it implements
22602 to always fail with ENOSYS. Some functions are actually named
22603 something starting with __ and the normal name is an alias. */
22604 #if defined __stub_socket || defined __stub___socket
22616 rm -f conftest.$ac_objext conftest$ac_exeext
22617 if { (ac_try="$ac_link"
22618 case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_link") 2>conftest.er1
22625 grep -v '^ *+' conftest.er1 >conftest.err
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22629 (exit $ac_status); } && {
22630 test -z "$ac_c_werror_flag" ||
22631 test ! -s conftest.err
22632 } && test -s conftest$ac_exeext &&
22633 $as_test_x conftest$ac_exeext; then
22634 ac_cv_func_socket=yes
22636 echo "$as_me: failed program was
:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22639 ac_cv_func_socket=no
22642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22643 conftest$ac_exeext conftest.$ac_ext
22645 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22646 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22647 if test $ac_cv_func_socket = yes; then
22653 if test $ok_so_far = yes; then
22654 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22655 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22656 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22657 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22658 echo $ECHO_N "(cached
) $ECHO_C" >&6
22660 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22661 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22663 # Is the header compilable?
22664 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22665 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 $ac_includes_default
22673 #include <netinet/in.h>
22675 rm -f conftest.$ac_objext
22676 if { (ac_try="$ac_compile"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_compile") 2>conftest.er1
22684 grep -v '^ *+' conftest.er1 >conftest.err
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22688 (exit $ac_status); } && {
22689 test -z "$ac_c_werror_flag" ||
22690 test ! -s conftest.err
22691 } && test -s conftest.$ac_objext; then
22692 ac_header_compiler=yes
22694 echo "$as_me: failed program was
:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22697 ac_header_compiler=no
22700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22702 echo "${ECHO_T}$ac_header_compiler" >&6; }
22704 # Is the header present?
22705 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22706 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 #include <netinet/in.h>
22715 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22716 case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22723 grep -v '^ *+' conftest.er1 >conftest.err
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22727 (exit $ac_status); } >/dev/null && {
22728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22729 test ! -s conftest.err
22731 ac_header_preproc=yes
22733 echo "$as_me: failed program was
:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22736 ac_header_preproc=no
22739 rm -f conftest.err conftest.$ac_ext
22740 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22741 echo "${ECHO_T}$ac_header_preproc" >&6; }
22743 # So? What about this header?
22744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22746 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22747 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22748 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22749 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22750 ac_header_preproc=yes
22753 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22754 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22755 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22756 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22757 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22758 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22759 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22760 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22761 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22762 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22763 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22764 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22768 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22769 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22770 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22771 echo $ECHO_N "(cached
) $ECHO_C" >&6
22773 ac_cv_header_netinet_in_h=$ac_header_preproc
22775 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22776 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22779 if test $ac_cv_header_netinet_in_h = yes; then
22787 if test $ok_so_far = yes; then
22788 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22789 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22790 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22791 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22792 echo $ECHO_N "(cached
) $ECHO_C" >&6
22794 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22795 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22797 # Is the header compilable?
22798 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22799 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22800 cat >conftest.$ac_ext <<_ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 $ac_includes_default
22807 #include <arpa/inet.h>
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_compile") 2>conftest.er1
22818 grep -v '^ *+' conftest.er1 >conftest.err
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22822 (exit $ac_status); } && {
22823 test -z "$ac_c_werror_flag" ||
22824 test ! -s conftest.err
22825 } && test -s conftest.$ac_objext; then
22826 ac_header_compiler=yes
22828 echo "$as_me: failed program was
:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_header_compiler=no
22834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22836 echo "${ECHO_T}$ac_header_compiler" >&6; }
22838 # Is the header present?
22839 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22840 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22841 cat >conftest.$ac_ext <<_ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 #include <arpa/inet.h>
22849 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22861 (exit $ac_status); } >/dev/null && {
22862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22865 ac_header_preproc=yes
22867 echo "$as_me: failed program was
:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 ac_header_preproc=no
22873 rm -f conftest.err conftest.$ac_ext
22874 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22875 echo "${ECHO_T}$ac_header_preproc" >&6; }
22877 # So? What about this header?
22878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22880 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22881 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22882 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22883 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22884 ac_header_preproc=yes
22887 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22888 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22889 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22890 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22891 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22892 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22893 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22894 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22895 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22896 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22897 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22898 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22902 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22903 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22904 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22905 echo $ECHO_N "(cached
) $ECHO_C" >&6
22907 ac_cv_header_arpa_inet_h=$ac_header_preproc
22909 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22910 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22913 if test $ac_cv_header_arpa_inet_h = yes; then
22921 if test $ok_so_far = yes; then
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE_INET_SOCKETS 1
22930 for ac_header in sys/ioctl.h
22932 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22933 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22934 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22935 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22936 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22937 echo $ECHO_N "(cached
) $ECHO_C" >&6
22939 ac_res=`eval echo '${'$as_ac_Header'}'`
22940 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22941 echo "${ECHO_T}$ac_res" >&6; }
22943 # Is the header compilable?
22944 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22945 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 $ac_includes_default
22953 #include <$ac_header>
22955 rm -f conftest.$ac_objext
22956 if { (ac_try="$ac_compile"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_compile") 2>conftest.er1
22964 grep -v '^ *+' conftest.er1 >conftest.err
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22968 (exit $ac_status); } && {
22969 test -z "$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 } && test -s conftest.$ac_objext; then
22972 ac_header_compiler=yes
22974 echo "$as_me: failed program was
:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ac_header_compiler=no
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22982 echo "${ECHO_T}$ac_header_compiler" >&6; }
22984 # Is the header present?
22985 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22986 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22987 cat >conftest.$ac_ext <<_ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 #include <$ac_header>
22995 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
23000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23007 (exit $ac_status); } >/dev/null && {
23008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23011 ac_header_preproc=yes
23013 echo "$as_me: failed program was
:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 ac_header_preproc=no
23019 rm -f conftest.err conftest.$ac_ext
23020 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23021 echo "${ECHO_T}$ac_header_preproc" >&6; }
23023 # So? What about this header?
23024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23026 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23027 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23028 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23030 ac_header_preproc=yes
23033 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23034 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23035 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23036 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23037 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23038 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23039 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23040 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23041 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23043 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23044 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23048 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23049 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23050 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23051 echo $ECHO_N "(cached
) $ECHO_C" >&6
23053 eval "$as_ac_Header=\
$ac_header_preproc"
23055 ac_res=`eval echo '${'$as_ac_Header'}'`
23056 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23057 echo "${ECHO_T}$ac_res" >&6; }
23060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23061 cat >>confdefs.h <<_ACEOF
23062 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23070 if test -f /usr/lpp/X11/bin/smt.exp; then
23072 cat >>confdefs.h <<\_ACEOF
23073 #define HAVE_AIX_SMT_EXP 1
23078 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23079 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23080 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23081 { echo "$as_me:$LINENO: result
: yes" >&5
23082 echo "${ECHO_T}yes" >&6; }
23084 cat >>confdefs.h <<\_ACEOF
23085 #define HAVE_DEV_PTMX 1
23089 { echo "$as_me:$LINENO: result
: no
" >&5
23090 echo "${ECHO_T}no
" >&6; }
23093 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23094 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23095 if test "${ac_cv_type_pid_t+set}" = set; then
23096 echo $ECHO_N "(cached
) $ECHO_C" >&6
23098 cat >conftest.$ac_ext <<_ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23104 $ac_includes_default
23105 typedef pid_t ac__type_new_;
23109 if ((ac__type_new_ *) 0)
23111 if (sizeof (ac__type_new_))
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23124 (eval "$ac_compile") 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest.$ac_objext; then
23134 ac_cv_type_pid_t=yes
23136 echo "$as_me: failed program was
:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_cv_type_pid_t=no
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23145 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23146 if test $ac_cv_type_pid_t = yes; then
23150 cat >>confdefs.h <<_ACEOF
23157 for ac_header in vfork.h
23159 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23160 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23161 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23162 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23163 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23164 echo $ECHO_N "(cached
) $ECHO_C" >&6
23166 ac_res=`eval echo '${'$as_ac_Header'}'`
23167 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23168 echo "${ECHO_T}$ac_res" >&6; }
23170 # Is the header compilable?
23171 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23172 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23173 cat >conftest.$ac_ext <<_ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h. */
23179 $ac_includes_default
23180 #include <$ac_header>
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23191 grep -v '^ *+' conftest.er1 >conftest.err
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_header_compiler=yes
23201 echo "$as_me: failed program was
:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_header_compiler=no
23207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23209 echo "${ECHO_T}$ac_header_compiler" >&6; }
23211 # Is the header present?
23212 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23213 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 #include <$ac_header>
23222 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23230 grep -v '^ *+' conftest.er1 >conftest.err
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23234 (exit $ac_status); } >/dev/null && {
23235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23236 test ! -s conftest.err
23238 ac_header_preproc=yes
23240 echo "$as_me: failed program was
:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23243 ac_header_preproc=no
23246 rm -f conftest.err conftest.$ac_ext
23247 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23248 echo "${ECHO_T}$ac_header_preproc" >&6; }
23250 # So? What about this header?
23251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23253 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23254 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23255 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23257 ac_header_preproc=yes
23260 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23261 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23262 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23263 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23264 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23265 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23266 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23267 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23268 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23270 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23271 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23275 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23276 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23277 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23278 echo $ECHO_N "(cached
) $ECHO_C" >&6
23280 eval "$as_ac_Header=\
$ac_header_preproc"
23282 ac_res=`eval echo '${'$as_ac_Header'}'`
23283 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23284 echo "${ECHO_T}$ac_res" >&6; }
23287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23288 cat >>confdefs.h <<_ACEOF
23289 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23298 for ac_func in fork vfork
23300 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23301 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23302 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23303 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23304 echo $ECHO_N "(cached
) $ECHO_C" >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23314 #define $ac_func innocuous_$ac_func
23316 /* System header to define __stub macros and hopefully few prototypes,
23317 which can conflict with char $ac_func (); below.
23318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23319 <limits.h> exists even on freestanding compilers. */
23322 # include <limits.h>
23324 # include <assert.h>
23329 /* Override any GCC internal prototype to avoid an error.
23330 Use char because int might match the return type of a GCC
23331 builtin and then its argument prototype would still apply. */
23336 /* The GNU C library defines this for functions which it implements
23337 to always fail with ENOSYS. Some functions are actually named
23338 something starting with __ and the normal name is an alias. */
23339 #if defined __stub_$ac_func || defined __stub___$ac_func
23346 return $ac_func ();
23351 rm -f conftest.$ac_objext conftest$ac_exeext
23352 if { (ac_try="$ac_link"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_link") 2>conftest.er1
23360 grep -v '^ *+' conftest.er1 >conftest.err
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest$ac_exeext &&
23368 $as_test_x conftest$ac_exeext; then
23369 eval "$as_ac_var=yes"
23371 echo "$as_me: failed program was
:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 eval "$as_ac_var=no
"
23377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23378 conftest$ac_exeext conftest.$ac_ext
23380 ac_res=`eval echo '${'$as_ac_var'}'`
23381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23382 echo "${ECHO_T}$ac_res" >&6; }
23383 if test `eval echo '${'$as_ac_var'}'` = yes; then
23384 cat >>confdefs.h <<_ACEOF
23385 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23391 if test "x
$ac_cv_func_fork" = xyes; then
23392 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23393 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23394 if test "${ac_cv_func_fork_works+set}" = set; then
23395 echo $ECHO_N "(cached
) $ECHO_C" >&6
23397 if test "$cross_compiling" = yes; then
23398 ac_cv_func_fork_works=cross
23400 cat >conftest.$ac_ext <<_ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23406 $ac_includes_default
23411 /* By Ruediger Kuhlmann. */
23412 return fork () < 0;
23418 rm -f conftest$ac_exeext
23419 if { (ac_try="$ac_link"
23420 case "(($ac_try" in
23421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422 *) ac_try_echo=$ac_try;;
23424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23425 (eval "$ac_link") 2>&5
23427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23429 { (case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23434 (eval "$ac_try") 2>&5
23436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23437 (exit $ac_status); }; }; then
23438 ac_cv_func_fork_works=yes
23440 echo "$as_me: program exited with status
$ac_status" >&5
23441 echo "$as_me: failed program was
:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 ( exit $ac_status )
23445 ac_cv_func_fork_works=no
23447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23452 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23453 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23456 ac_cv_func_fork_works=$ac_cv_func_fork
23458 if test "x
$ac_cv_func_fork_works" = xcross; then
23460 *-*-amigaos* | *-*-msdosdjgpp*)
23461 # Override, as these systems have only a dummy fork() stub
23462 ac_cv_func_fork_works=no
23465 ac_cv_func_fork_works=yes
23468 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23469 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23471 ac_cv_func_vfork_works=$ac_cv_func_vfork
23472 if test "x
$ac_cv_func_vfork" = xyes; then
23473 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23474 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23475 if test "${ac_cv_func_vfork_works+set}" = set; then
23476 echo $ECHO_N "(cached
) $ECHO_C" >&6
23478 if test "$cross_compiling" = yes; then
23479 ac_cv_func_vfork_works=cross
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 /* Thanks to Paul Eggert for this test. */
23488 $ac_includes_default
23489 #include <sys/wait.h>
23490 #ifdef HAVE_VFORK_H
23491 # include <vfork.h>
23493 /* On some sparc systems, changes by the child to local and incoming
23494 argument registers are propagated back to the parent. The compiler
23495 is told about this with #include <vfork.h>, but some compilers
23496 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23497 static variable whose address is put into a register that is
23498 clobbered by the vfork. */
23501 sparc_address_test (int arg)
23503 sparc_address_test (arg) int arg;
23506 static pid_t child;
23524 pid_t parent = getpid ();
23527 sparc_address_test (0);
23532 /* Here is another test for sparc vfork register problems. This
23533 test uses lots of local variables, at least as many local
23534 variables as main has allocated so far including compiler
23535 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23536 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23537 reuse the register of parent for one of the local variables,
23538 since it will think that parent can't possibly be used any more
23539 in this routine. Assigning to the local variable will thus
23540 munge parent in the parent process. */
23542 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23543 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23544 /* Convince the compiler that p..p7 are live; otherwise, it might
23545 use the same hardware register for all 8 local variables. */
23546 if (p != p1 || p != p2 || p != p3 || p != p4
23547 || p != p5 || p != p6 || p != p7)
23550 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23551 from child file descriptors. If the child closes a descriptor
23552 before it execs or exits, this munges the parent's descriptor
23553 as well. Test for this by closing stdout in the child. */
23554 _exit(close(fileno(stdout)) != 0);
23559 while (wait(&status) != child)
23562 /* Was there some problem with vforking? */
23565 /* Did the child fail? (This shouldn't happen.) */
23568 /* Did the vfork/compiler bug occur? */
23569 || parent != getpid()
23571 /* Did the file descriptor bug occur? */
23572 || fstat(fileno(stdout), &st) != 0
23577 rm -f conftest$ac_exeext
23578 if { (ac_try="$ac_link"
23579 case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23584 (eval "$ac_link") 2>&5
23586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23588 { (case "(($ac_try" in
23589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590 *) ac_try_echo=$ac_try;;
23592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23593 (eval "$ac_try") 2>&5
23595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23596 (exit $ac_status); }; }; then
23597 ac_cv_func_vfork_works=yes
23599 echo "$as_me: program exited with status
$ac_status" >&5
23600 echo "$as_me: failed program was
:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 ( exit $ac_status )
23604 ac_cv_func_vfork_works=no
23606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23611 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23612 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23615 if test "x
$ac_cv_func_fork_works" = xcross; then
23616 ac_cv_func_vfork_works=$ac_cv_func_vfork
23617 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23618 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23621 if test "x
$ac_cv_func_vfork_works" = xyes; then
23623 cat >>confdefs.h <<\_ACEOF
23624 #define HAVE_WORKING_VFORK 1
23629 cat >>confdefs.h <<\_ACEOF
23634 if test "x
$ac_cv_func_fork_works" = xyes; then
23636 cat >>confdefs.h <<\_ACEOF
23637 #define HAVE_WORKING_FORK 1
23643 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23644 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23645 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23646 echo $ECHO_N "(cached
) $ECHO_C" >&6
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 #include <langinfo.h>
23658 char* cs = nl_langinfo(CODESET);
23663 rm -f conftest.$ac_objext conftest$ac_exeext
23664 if { (ac_try="$ac_link"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23670 (eval "$ac_link") 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest$ac_exeext &&
23680 $as_test_x conftest$ac_exeext; then
23681 emacs_cv_langinfo_codeset=yes
23683 echo "$as_me: failed program was
:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23686 emacs_cv_langinfo_codeset=no
23689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23690 conftest$ac_exeext conftest.$ac_ext
23693 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23694 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23695 if test $emacs_cv_langinfo_codeset = yes; then
23697 cat >>confdefs.h <<\_ACEOF
23698 #define HAVE_LANGINFO_CODESET 1
23703 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23704 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23705 if test "${ac_cv_type_size_t+set}" = set; then
23706 echo $ECHO_N "(cached
) $ECHO_C" >&6
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23715 typedef size_t ac__type_new_;
23719 if ((ac__type_new_ *) 0)
23721 if (sizeof (ac__type_new_))
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_compile") 2>conftest.er1
23736 grep -v '^ *+' conftest.er1 >conftest.err
23738 cat conftest.err >&5
23739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23740 (exit $ac_status); } && {
23741 test -z "$ac_c_werror_flag" ||
23742 test ! -s conftest.err
23743 } && test -s conftest.$ac_objext; then
23744 ac_cv_type_size_t=yes
23746 echo "$as_me: failed program was
:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23749 ac_cv_type_size_t=no
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23755 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23756 if test $ac_cv_type_size_t = yes; then
23758 cat >>confdefs.h <<_ACEOF
23759 #define HAVE_SIZE_T 1
23766 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23767 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23768 if test "${ac_cv_type_mbstate_t+set}" = set; then
23769 echo $ECHO_N "(cached
) $ECHO_C" >&6
23771 cat >conftest.$ac_ext <<_ACEOF
23774 cat confdefs.h >>conftest.$ac_ext
23775 cat >>conftest.$ac_ext <<_ACEOF
23776 /* end confdefs.h. */
23777 $ac_includes_default
23778 # include <wchar.h>
23782 mbstate_t x; return sizeof x;
23787 rm -f conftest.$ac_objext
23788 if { (ac_try="$ac_compile"
23789 case "(($ac_try" in
23790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791 *) ac_try_echo=$ac_try;;
23793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_compile") 2>conftest.er1
23796 grep -v '^ *+' conftest.er1 >conftest.err
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23800 (exit $ac_status); } && {
23801 test -z "$ac_c_werror_flag" ||
23802 test ! -s conftest.err
23803 } && test -s conftest.$ac_objext; then
23804 ac_cv_type_mbstate_t=yes
23806 echo "$as_me: failed program was
:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23809 ac_cv_type_mbstate_t=no
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23815 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23816 if test $ac_cv_type_mbstate_t = yes; then
23818 cat >>confdefs.h <<\_ACEOF
23819 #define HAVE_MBSTATE_T 1
23824 cat >>confdefs.h <<\_ACEOF
23825 #define mbstate_t int
23830 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23831 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23832 if test "${emacs_cv_c_restrict+set}" = set; then
23833 echo $ECHO_N "(cached
) $ECHO_C" >&6
23835 cat >conftest.$ac_ext <<_ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23841 void fred (int *restrict x);
23850 rm -f conftest.$ac_objext
23851 if { (ac_try="$ac_compile"
23852 case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23857 (eval "$ac_compile") 2>conftest.er1
23859 grep -v '^ *+' conftest.er1 >conftest.err
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23863 (exit $ac_status); } && {
23864 test -z "$ac_c_werror_flag" ||
23865 test ! -s conftest.err
23866 } && test -s conftest.$ac_objext; then
23867 emacs_cv_c_restrict=yes
23869 echo "$as_me: failed program was
:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 void fred (int *__restrict x);
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 emacs_cv_c_restrict=__restrict
23906 echo "$as_me: failed program was
:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 emacs_cv_c_restrict=no
23912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23917 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23918 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23919 case "$emacs_cv_c_restrict" in
23920 yes) emacs_restrict=restrict;;
23921 no) emacs_restrict="";;
23922 *) emacs_restrict="$emacs_cv_c_restrict";;
23924 if test "$emacs_restrict" != __restrict; then
23926 cat >>confdefs.h <<_ACEOF
23927 #define __restrict $emacs_restrict
23932 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23933 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23934 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23935 echo $ECHO_N "(cached
) $ECHO_C" >&6
23937 cat >conftest.$ac_ext <<_ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943 void fred (int x[__restrict]);
23952 rm -f conftest.$ac_objext
23953 if { (ac_try="$ac_compile"
23954 case "(($ac_try" in
23955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956 *) ac_try_echo=$ac_try;;
23958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23959 (eval "$ac_compile") 2>conftest.er1
23961 grep -v '^ *+' conftest.er1 >conftest.err
23963 cat conftest.err >&5
23964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23965 (exit $ac_status); } && {
23966 test -z "$ac_c_werror_flag" ||
23967 test ! -s conftest.err
23968 } && test -s conftest.$ac_objext; then
23969 emacs_cv_c_restrict_arr=yes
23971 echo "$as_me: failed program was
:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23974 emacs_cv_c_restrict_arr=no
23977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23979 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23980 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23981 if test "$emacs_cv_c_restrict_arr" = yes; then
23983 cat >>confdefs.h <<\_ACEOF
23984 #define __restrict_arr __restrict
23991 # Set up the CFLAGS for real compilation, so we can substitute it.
23992 CFLAGS="$REAL_CFLAGS"
23993 CPPFLAGS="$REAL_CPPFLAGS"
23995 #### Find out which version of Emacs this is.
23996 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23997 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23998 if test x"${version}" = x; then
23999 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24000 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24001 { (exit 1); exit 1; }; }
24004 ### Specify what sort of things we'll be editing into Makefile and config.h.
24005 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24041 cat >>confdefs.h <<_ACEOF
24042 #define EMACS_CONFIGURATION "${canonical}"
24046 cat >>confdefs.h <<_ACEOF
24047 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24051 cat >>confdefs.h <<_ACEOF
24052 #define config_machfile "${machfile}"
24056 cat >>confdefs.h <<_ACEOF
24057 #define config_opsysfile "${opsysfile}"
24061 cat >>confdefs.h <<_ACEOF
24062 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24066 cat >>confdefs.h <<_ACEOF
24067 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24071 cat >>confdefs.h <<_ACEOF
24072 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24076 cat >>confdefs.h <<_ACEOF
24077 #define UNEXEC_SRC ${UNEXEC_SRC}
24081 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_X_WINDOWS 1
24088 if test "${USE_X_TOOLKIT}" != "none
" ; then
24090 cat >>confdefs.h <<\_ACEOF
24091 #define USE_X_TOOLKIT 1
24094 if test "${USE_X_TOOLKIT}" == "LUCID
"; then
24096 cat >>confdefs.h <<\_ACEOF
24097 #define USE_LUCID 1
24100 elif test "${USE_X_TOOLKIT}" == "MOTIF
"; then
24102 cat >>confdefs.h <<\_ACEOF
24103 #define USE_MOTIF 1
24108 if test "${HAVE_X11}" = "yes" ; then
24110 cat >>confdefs.h <<\_ACEOF
24115 if test "${HAVE_MENUS}" = "yes" ; then
24117 cat >>confdefs.h <<\_ACEOF
24118 #define HAVE_MENUS 1
24122 if test "${GNU_MALLOC}" = "yes" ; then
24124 cat >>confdefs.h <<\_ACEOF
24125 #define GNU_MALLOC 1
24129 if test "${REL_ALLOC}" = "yes" ; then
24131 cat >>confdefs.h <<\_ACEOF
24132 #define REL_ALLOC 1
24142 #### Report on what we decided to do.
24143 #### Report GTK as a toolkit, even if it doesn't use Xt.
24144 #### It makes printing result more understandable as using GTK sets
24145 #### toolkit_scroll_bars to yes by default.
24146 if test "${HAVE_GTK}" = "yes"; then
24151 Configured
for \
`${canonical}'.
24153 Where should the build process find the source code? ${srcdir}
24154 What operating system and machine description files should Emacs use?
24155 \`${opsysfile}' and \`${machfile}'
24156 What compiler should emacs be built with?
${CC} ${CFLAGS}
24157 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24158 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24159 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24160 What window system should Emacs use?
${window_system}
24161 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24163 if test -n "${x_includes}"; then
24164 echo " Where
do we
find X Windows header files?
${x_includes}"
24166 echo " Where
do we
find X Windows header files? Standard
dirs"
24168 if test -n "${x_libraries}"; then
24169 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24171 echo " Where
do we
find X Windows libraries? Standard
dirs"
24174 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24175 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24176 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24177 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24178 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24179 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24180 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24181 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24182 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24183 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
24185 if test "${USE_FONT_BACKEND}" = "yes"; then
24186 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24187 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24188 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24189 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24191 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24194 if test $USE_XASSERTS = yes; then
24195 echo " Compiling with asserts turned on.
"
24196 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24201 if test "$USE_X_TOOLKIT" = GTK; then
24202 case "$canonical" in
24204 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24205 will probably get a crash on startup. If this happens
, please use another
24206 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24212 if test "$HAVE_CARBON" = "yes"; then
24214 echo "Warning
: The Mac Carbon port is currently unsupported and has
24215 known problems. It is not recommended
for use by non-developers.
24216 Read the emacs-devel archives
for more information.
"
24220 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24221 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24226 # Remove any trailing slashes in these variables.
24227 test "${prefix}" != NONE &&
24228 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24229 test "${exec_prefix}" != NONE &&
24230 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24232 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24233 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24234 ## from Makefile.c can correctly provide the arg `-traditional' to the
24237 cat >conftest.$ac_ext <<_ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h. */
24245 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24246 $EGREP "yes..
yes" >/dev/null 2>&1; then
24247 CPP_NEED_TRADITIONAL=no
24249 CPP_NEED_TRADITIONAL=yes
24254 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
"
24256 ac_config_commands="$ac_config_commands default
"
24258 cat >confcache <<\_ACEOF
24259 # This file is a shell script that caches the results of configure
24260 # tests run on this system so they can be shared between configure
24261 # scripts and configure runs, see configure's option --config-cache.
24262 # It is not useful on other systems. If it contains results you don't
24263 # want to keep, you may remove or edit it.
24265 # config.status only pays attention to the cache file if you give it
24266 # the --recheck option to rerun configure.
24268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24270 # following values.
24274 # The following way of writing the cache mishandles newlines in values,
24275 # but we know of no workaround that is simple, portable, and efficient.
24276 # So, we kill variables containing newlines.
24277 # Ultrix sh set writes to stderr and can't be redirected directly,
24278 # and sets the high bit in the cache file unless we assign to the vars.
24280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24281 eval ac_val=\$$ac_var
24285 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24286 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24289 _ | IFS | as_nl) ;; #(
24290 *) $as_unset $ac_var ;;
24296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24297 *${as_nl}ac_space=\ *)
24298 # `set' does not quote correctly, so add quotes (double-quote
24299 # substitution turns \\\\ into \\, and sed turns \\ into \).
24302 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24305 # `set' quotes correctly as required by POSIX, so do not add quotes.
24306 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24320 if test -w "$cache_file"; then
24321 test "x
$cache_file" != "x
/dev
/null
" &&
24322 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24323 echo "$as_me: updating cache
$cache_file" >&6;}
24324 cat confcache >$cache_file
24326 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24327 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24332 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24333 # Let make expand exec_prefix.
24334 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24336 DEFS=-DHAVE_CONFIG_H
24340 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24341 # 1. Remove the extension, and $U if already installed.
24342 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24343 ac_i=`echo "$ac_i" | sed "$ac_script"`
24344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24345 # will be set to the directory where LIBOBJS objects are built.
24346 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24347 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24349 LIBOBJS=$ac_libobjs
24351 LTLIBOBJS=$ac_ltlibobjs
24355 : ${CONFIG_STATUS=./config.status}
24356 ac_clean_files_save=$ac_clean_files
24357 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24358 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24359 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24360 cat >$CONFIG_STATUS <<_ACEOF
24362 # Generated by $as_me.
24363 # Run this file to recreate the current configuration.
24364 # Compiler output produced by configure, useful for debugging
24365 # configure, is in config.log if it exists.
24368 ac_cs_recheck=false
24370 SHELL=\${CONFIG_SHELL-$SHELL}
24373 cat >>$CONFIG_STATUS <<\_ACEOF
24374 ## --------------------- ##
24375 ## M4sh Initialization. ##
24376 ## --------------------- ##
24378 # Be more Bourne compatible
24379 DUALCASE=1; export DUALCASE # for MKS sh
24380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24384 # is contrary to our usage. Disable this feature.
24385 alias -g '${1+"$@"}'='"$@
"'
24386 setopt NO_GLOB_SUBST
24388 case `(set -o) 2>/dev/null` in
24389 *posix*) set -o posix ;;
24398 # Avoid depending upon Character Ranges.
24399 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24400 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24401 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24402 as_cr_digits='0123456789'
24403 as_cr_alnum=$as_cr_Letters$as_cr_digits
24405 # The user is always right.
24406 if test "${PATH_SEPARATOR+set}" != set; then
24407 echo "#! /bin/sh" >conf$$.sh
24408 echo "exit 0" >>conf$$.sh
24410 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24418 # Support unset when possible.
24419 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24427 # We need space, tab and new line, in precisely that order. Quoting is
24428 # there to prevent editors from complaining about space-tab.
24429 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24430 # splitting by setting IFS to empty value.)
24435 # Find who we are. Look in the path if we contain no directory separator.
24437 *[\\/]* ) as_myself
=$0 ;;
24438 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24439 for as_dir
in $PATH
24442 test -z "$as_dir" && as_dir
=.
24443 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24449 # We did not find ourselves, most probably we were run as `sh COMMAND'
24450 # in which case we are not to be found in the path.
24451 if test "x$as_myself" = x
; then
24454 if test ! -f "$as_myself"; then
24455 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24456 { (exit 1); exit 1; }
24459 # Work around bugs in pre-3.0 UWIN ksh.
24460 for as_var
in ENV MAIL MAILPATH
24461 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24469 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24470 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24471 LC_TELEPHONE LC_TIME
24473 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24474 eval $as_var=C
; export $as_var
24476 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24480 # Required to use basename.
24481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24488 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24489 as_basename
=basename
24495 # Name of the executable.
24496 as_me
=`$as_basename -- "$0" ||
24497 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24498 X"$0" : 'X\(//\)$' \| \
24499 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24501 sed '/^.*\/\([^/][^/]*\)\/*$/{
24520 as_lineno_1
=$LINENO
24521 as_lineno_2
=$LINENO
24522 test "x$as_lineno_1" != "x$as_lineno_2" &&
24523 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24525 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24526 # uniformly replaced by the line number. The first 'sed' inserts a
24527 # line-number line after each line using $LINENO; the second 'sed'
24528 # does the real work. The second script uses 'N' to pair each
24529 # line-number line with the line containing $LINENO, and appends
24530 # trailing '-' during substitution so that $LINENO is not a special
24531 # case at line end.
24532 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24533 # scripts with optimization help from Paolo Bonzini. Blame Lee
24534 # E. McMahon (1931-1989) for sed's syntax. :-)
24546 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24549 ' >$as_me.lineno
&&
24550 chmod +x
"$as_me.lineno" ||
24551 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24552 { (exit 1); exit 1; }; }
24554 # Don't try to exec as it changes $[0], causing all sort of problems
24555 # (the dirname of $[0] is not the place where we might find the
24556 # original and so on. Autoconf is especially sensitive to this).
24557 .
"./$as_me.lineno"
24558 # Exit status is that of the last command.
24563 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24569 ECHO_C
= ECHO_N
= ECHO_T
=
24570 case `echo -n x` in
24572 case `echo 'x\c'` in
24573 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24580 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24581 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24587 rm -f conf$$ conf$$.exe conf$$.
file
24588 if test -d conf$$.dir
; then
24589 rm -f conf$$.dir
/conf$$.
file
24595 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24597 # ... but there are two gotchas:
24598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24600 # In both cases, we have to default to `cp -p'.
24601 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24603 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24608 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24609 rmdir conf$$.dir
2>/dev
/null
24611 if mkdir
-p .
2>/dev
/null
; then
24614 test -d .
/-p && rmdir .
/-p
24618 if test -x / >/dev
/null
2>&1; then
24619 as_test_x
='test -x'
24621 if ls -dL / >/dev
/null
2>&1; then
24628 if test -d "$1"; then
24634 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24635 ???[sx]*):;;*)false;;esac;fi
24639 as_executable_p
=$as_test_x
24641 # Sed expression to map a string onto a valid CPP name.
24642 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24644 # Sed expression to map a string onto a valid variable name.
24645 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24650 # Save the log message, to keep $[0] and so on meaningful, and to
24651 # report actual input values of CONFIG_FILES etc. instead of their
24652 # values after options handling.
24654 This file was extended by emacs $as_me 23.0.60, which was
24655 generated by GNU Autoconf 2.61. Invocation command line was
24657 CONFIG_FILES = $CONFIG_FILES
24658 CONFIG_HEADERS = $CONFIG_HEADERS
24659 CONFIG_LINKS = $CONFIG_LINKS
24660 CONFIG_COMMANDS = $CONFIG_COMMANDS
24663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24668 cat >>$CONFIG_STATUS <<_ACEOF
24669 # Files that config.status was made for.
24670 config_files="$ac_config_files"
24671 config_headers="$ac_config_headers"
24672 config_commands="$ac_config_commands"
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24678 \`$as_me' instantiates files from templates according to the
24679 current configuration.
24681 Usage: $0 [OPTIONS] [FILE]...
24683 -h, --help print this help, then exit
24684 -V, --version print version number and configuration settings, then exit
24685 -q, --quiet do not print progress messages
24686 -d, --debug don't remove temporary files
24687 --recheck update $as_me by reconfiguring in the same conditions
24688 --file=FILE[:TEMPLATE]
24689 instantiate the configuration file FILE
24690 --header=FILE[:TEMPLATE]
24691 instantiate the configuration header FILE
24693 Configuration files:
24696 Configuration headers:
24699 Configuration commands:
24702 Report bugs to <bug-autoconf@gnu.org>."
24705 cat >>$CONFIG_STATUS <<_ACEOF
24707 emacs config.status 23.0.60
24708 configured by $0, generated by GNU Autoconf 2.61,
24709 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24711 Copyright (C) 2006 Free Software Foundation, Inc.
24712 This config.status script is free software; the Free Software Foundation
24713 gives unlimited permission to copy, distribute and modify it."
24720 cat >>$CONFIG_STATUS <<\_ACEOF
24721 # If no file are specified by the user, then we need to provide default
24722 # value. By we need to know if files were specified by the user.
24728 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24729 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24740 # Handling of the options.
24741 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24743 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24744 echo "$ac_cs_version"; exit ;;
24745 --debug |
--debu |
--deb |
--de |
--d |
-d )
24747 --file |
--fil |
--fi |
--f )
24749 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24750 ac_need_defaults
=false
;;
24751 --header |
--heade |
--head |
--hea )
24753 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24754 ac_need_defaults
=false
;;
24756 # Conflict between --help and --header
24757 { echo "$as_me: error: ambiguous option: $1
24758 Try \`$0 --help' for more information." >&2
24759 { (exit 1); exit 1; }; };;
24760 --help |
--hel |
-h )
24761 echo "$ac_cs_usage"; exit ;;
24762 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24763 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24766 # This is an error.
24767 -*) { echo "$as_me: error: unrecognized option: $1
24768 Try \`$0 --help' for more information." >&2
24769 { (exit 1); exit 1; }; } ;;
24771 *) ac_config_targets
="$ac_config_targets $1"
24772 ac_need_defaults
=false
;;
24778 ac_configure_extra_args
=
24780 if $ac_cs_silent; then
24782 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24786 cat >>$CONFIG_STATUS <<_ACEOF
24787 if \$ac_cs_recheck; then
24788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24789 CONFIG_SHELL=$SHELL
24790 export CONFIG_SHELL
24791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24795 cat >>$CONFIG_STATUS <<\_ACEOF
24799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24800 ## Running $as_me. ##
24806 cat >>$CONFIG_STATUS <<_ACEOF
24810 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24814 cat >>$CONFIG_STATUS <<\_ACEOF
24816 # Handling of arguments.
24817 for ac_config_target
in $ac_config_targets
24819 case $ac_config_target in
24820 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24821 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24822 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24823 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24824 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24825 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24826 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24827 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24828 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24829 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24830 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24831 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24832 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24836 { (exit 1); exit 1; }; };;
24841 # If the user did not use the arguments to specify the items to instantiate,
24842 # then the envvar interface is used. Set only those that are not.
24843 # We use the long form for the default assignment because of an extremely
24844 # bizarre bug on SunOS 4.1.3.
24845 if $ac_need_defaults; then
24846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24851 # Have a temporary directory for convenience. Make it in the build tree
24852 # simply because there is no reason against having it here, and in addition,
24853 # creating and moving files from /tmp can sometimes cause problems.
24854 # Hook for its removal unless debugging.
24855 # Note that there is a small window in which the directory will not be cleaned:
24856 # after its creation but before its name has been assigned to `$tmp'.
24860 trap 'exit_status=$?
24861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24863 trap '{ (exit 1); exit 1; }' 1 2 13 15
24865 # Create a (secure) tmp directory for tmp files.
24868 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24869 test -n "$tmp" && test -d "$tmp"
24872 tmp
=.
/conf$$
-$RANDOM
24873 (umask 077 && mkdir
"$tmp")
24876 echo "$me: cannot create a temporary directory in ." >&2
24877 { (exit 1); exit 1; }
24881 # Set up the sed scripts for CONFIG_FILES section.
24884 # No need to generate the scripts if there are no CONFIG_FILES.
24885 # This happens for instance when ./config.status config.h
24886 if test -n "$CONFIG_FILES"; then
24893 for ac_last_try
in false false false false false
:; do
24894 cat >conf$
$subs.
sed <<_ACEOF
24895 SHELL!$SHELL$ac_delim
24896 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24897 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24898 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24899 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24900 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24901 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24902 exec_prefix!$exec_prefix$ac_delim
24903 prefix!$prefix$ac_delim
24904 program_transform_name!$program_transform_name$ac_delim
24905 bindir!$bindir$ac_delim
24906 sbindir!$sbindir$ac_delim
24907 libexecdir!$libexecdir$ac_delim
24908 datarootdir!$datarootdir$ac_delim
24909 datadir!$datadir$ac_delim
24910 sysconfdir!$sysconfdir$ac_delim
24911 sharedstatedir!$sharedstatedir$ac_delim
24912 localstatedir!$localstatedir$ac_delim
24913 includedir!$includedir$ac_delim
24914 oldincludedir!$oldincludedir$ac_delim
24915 docdir!$docdir$ac_delim
24916 infodir!$infodir$ac_delim
24917 htmldir!$htmldir$ac_delim
24918 dvidir!$dvidir$ac_delim
24919 pdfdir!$pdfdir$ac_delim
24920 psdir!$psdir$ac_delim
24921 libdir!$libdir$ac_delim
24922 localedir!$localedir$ac_delim
24923 mandir!$mandir$ac_delim
24924 DEFS!$DEFS$ac_delim
24925 ECHO_C!$ECHO_C$ac_delim
24926 ECHO_N!$ECHO_N$ac_delim
24927 ECHO_T!$ECHO_T$ac_delim
24928 LIBS!$LIBS$ac_delim
24929 build_alias!$build_alias$ac_delim
24930 host_alias!$host_alias$ac_delim
24931 target_alias!$target_alias$ac_delim
24932 MAINT!$MAINT$ac_delim
24933 build!$build$ac_delim
24934 build_cpu!$build_cpu$ac_delim
24935 build_vendor!$build_vendor$ac_delim
24936 build_os!$build_os$ac_delim
24937 host!$host$ac_delim
24938 host_cpu!$host_cpu$ac_delim
24939 host_vendor!$host_vendor$ac_delim
24940 host_os!$host_os$ac_delim
24942 CFLAGS!$CFLAGS$ac_delim
24943 LDFLAGS!$LDFLAGS$ac_delim
24944 CPPFLAGS!$CPPFLAGS$ac_delim
24945 ac_ct_CC!$ac_ct_CC$ac_delim
24946 EXEEXT!$EXEEXT$ac_delim
24947 OBJEXT!$OBJEXT$ac_delim
24949 GREP!$GREP$ac_delim
24950 EGREP!$EGREP$ac_delim
24951 LN_S!$LN_S$ac_delim
24952 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24953 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24954 INSTALL_DATA!$INSTALL_DATA$ac_delim
24955 RANLIB!$RANLIB$ac_delim
24956 INSTALL_INFO!$INSTALL_INFO$ac_delim
24957 GZIP_PROG!$GZIP_PROG$ac_delim
24958 MAKEINFO!$MAKEINFO$ac_delim
24959 LIBSOUND!$LIBSOUND$ac_delim
24960 PKG_CONFIG!$PKG_CONFIG$ac_delim
24961 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24962 ALSA_LIBS!$ALSA_LIBS$ac_delim
24963 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24964 SET_MAKE!$SET_MAKE$ac_delim
24965 XMKMF!$XMKMF$ac_delim
24966 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24967 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24968 RSVG_LIBS!$RSVG_LIBS$ac_delim
24969 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24970 GTK_LIBS!$GTK_LIBS$ac_delim
24971 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24972 DBUS_LIBS!$DBUS_LIBS$ac_delim
24973 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24974 XFT_LIBS!$XFT_LIBS$ac_delim
24975 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24976 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24977 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24978 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24979 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24980 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24981 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24982 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24983 ALLOCA!$ALLOCA$ac_delim
24984 liblockfile!$liblockfile$ac_delim
24985 LIBOBJS!$LIBOBJS$ac_delim
24986 NEED_SETGID!$NEED_SETGID$ac_delim
24987 KMEM_GROUP!$KMEM_GROUP$ac_delim
24988 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24989 GETOPT_H!$GETOPT_H$ac_delim
24990 GETOPTOBJS!$GETOPTOBJS$ac_delim
24991 version!$version$ac_delim
24994 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24996 elif $ac_last_try; then
24997 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24998 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24999 { (exit 1); exit 1; }; }
25001 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25005 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25006 if test -n "$ac_eof"; then
25007 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25008 ac_eof
=`expr $ac_eof + 1`
25011 cat >>$CONFIG_STATUS <<_ACEOF
25012 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25016 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25017 s/^/s,@/; s/!/@,|#_!!_#|/
25020 s/'"$ac_delim"'$/,g/; t
25022 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25023 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25024 rm -f conf$
$subs.
sed
25025 cat >>$CONFIG_STATUS <<_ACEOF
25031 for ac_last_try
in false false false false false
:; do
25032 cat >conf$
$subs.
sed <<_ACEOF
25033 configuration!$configuration$ac_delim
25034 canonical!$canonical$ac_delim
25035 srcdir!$srcdir$ac_delim
25036 lispdir!$lispdir$ac_delim
25037 locallisppath!$locallisppath$ac_delim
25038 lisppath!$lisppath$ac_delim
25039 x_default_search_path!$x_default_search_path$ac_delim
25040 etcdir!$etcdir$ac_delim
25041 archlibdir!$archlibdir$ac_delim
25042 bitmapdir!$bitmapdir$ac_delim
25043 gamedir!$gamedir$ac_delim
25044 gameuser!$gameuser$ac_delim
25045 c_switch_system!$c_switch_system$ac_delim
25046 c_switch_machine!$c_switch_machine$ac_delim
25047 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25048 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25049 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25050 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25051 machfile!$machfile$ac_delim
25052 opsysfile!$opsysfile$ac_delim
25053 carbon_appdir!$carbon_appdir$ac_delim
25054 LTLIBOBJS!$LTLIBOBJS$ac_delim
25057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25059 elif $ac_last_try; then
25060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25062 { (exit 1); exit 1; }; }
25064 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25068 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25069 if test -n "$ac_eof"; then
25070 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25071 ac_eof
=`expr $ac_eof + 1`
25074 cat >>$CONFIG_STATUS <<_ACEOF
25075 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25080 s/^/s,@/; s/!/@,|#_!!_#|/
25083 s/'"$ac_delim"'$/,g/; t
25085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25086 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25087 rm -f conf$
$subs.
sed
25088 cat >>$CONFIG_STATUS <<_ACEOF
25095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25097 # trailing colons and then remove the whole line if VPATH becomes empty
25098 # (actually we leave an empty line to preserve line numbers).
25099 if test "x$srcdir" = x.
; then
25100 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25101 s/:*\$(srcdir):*/:/
25102 s/:*\${srcdir}:*/:/
25104 s/^\([^=]*=[ ]*\):*/\1/
25110 cat >>$CONFIG_STATUS <<\_ACEOF
25111 fi # test -n "$CONFIG_FILES"
25114 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25117 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25119 case $ac_mode$ac_tag in
25121 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25122 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25123 { (exit 1); exit 1; }; };;
25124 :[FH
]-) ac_tag
=-:-;;
25125 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25142 -) ac_f
="$tmp/stdin";;
25143 *) # Look for the file first in the build tree, then in the source tree
25144 # (if the path is not absolute). The absolute path cannot be DOS-style,
25145 # because $ac_f cannot contain `:'.
25149 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25151 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25152 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25153 { (exit 1); exit 1; }; };;
25155 ac_file_inputs
="$ac_file_inputs $ac_f"
25158 # Let's still pretend it is `configure' which instantiates (i.e., don't
25159 # use $as_me), people would be surprised to read:
25160 # /* config.h. Generated by config.status. */
25161 configure_input
="Generated from "`IFS=:
25162 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25163 if test x
"$ac_file" != x-
; then
25164 configure_input
="$ac_file. $configure_input"
25165 { echo "$as_me:$LINENO: creating $ac_file" >&5
25166 echo "$as_me: creating $ac_file" >&6;}
25170 *:-:* |
*:-) cat >"$tmp/stdin";;
25175 ac_dir
=`$as_dirname -- "$ac_file" ||
25176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25177 X"$ac_file" : 'X\(//\)[^/]' \| \
25178 X"$ac_file" : 'X\(//\)$' \| \
25179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25185 /^X\(\/\/\)[^/].*/{
25200 -*) as_dir
=.
/$as_dir;;
25202 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25206 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25207 *) as_qdir
=$as_dir;;
25209 as_dirs
="'$as_qdir' $as_dirs"
25210 as_dir
=`$as_dirname -- "$as_dir" ||
25211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25212 X"$as_dir" : 'X\(//\)[^/]' \| \
25213 X"$as_dir" : 'X\(//\)$' \| \
25214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25220 /^X\(\/\/\)[^/].*/{
25233 test -d "$as_dir" && break
25235 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25236 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25237 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25238 { (exit 1); exit 1; }; }; }
25242 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25244 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25245 # A ".." for each directory in $ac_dir_suffix.
25246 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25247 case $ac_top_builddir_sub in
25248 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25249 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25252 ac_abs_top_builddir
=$ac_pwd
25253 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25254 # for backward compatibility:
25255 ac_top_builddir
=$ac_top_build_prefix
25258 .
) # We are building in place.
25260 ac_top_srcdir
=$ac_top_builddir_sub
25261 ac_abs_top_srcdir
=$ac_pwd ;;
25262 [\\/]* | ?
:[\\/]* ) # Absolute name.
25263 ac_srcdir
=$srcdir$ac_dir_suffix;
25264 ac_top_srcdir
=$srcdir
25265 ac_abs_top_srcdir
=$srcdir ;;
25266 *) # Relative name.
25267 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25268 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25269 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25271 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25281 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25282 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25286 cat >>$CONFIG_STATUS <<\_ACEOF
25287 # If the template does not know about datarootdir, expand it.
25288 # FIXME: This hack should be removed a few years after 2.60.
25289 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25291 case `sed -n '/datarootdir/ {
25300 ' $ac_file_inputs` in
25301 *datarootdir
*) ac_datarootdir_seen
=yes;;
25302 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25303 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25304 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25306 cat >>$CONFIG_STATUS <<_ACEOF
25307 ac_datarootdir_hack='
25308 s&@datadir@&$datadir&g
25309 s&@docdir@&$docdir&g
25310 s&@infodir@&$infodir&g
25311 s&@localedir@&$localedir&g
25312 s&@mandir@&$mandir&g
25313 s&\\\${datarootdir}&$datarootdir&g' ;;
25317 # Neutralize VPATH when `$srcdir' = `.'.
25318 # Shell code in configure.ac might set extrasub.
25319 # FIXME: do we really want to maintain this feature?
25320 cat >>$CONFIG_STATUS <<_ACEOF
25324 cat >>$CONFIG_STATUS <<\_ACEOF
25326 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25327 s
&@configure_input@
&$configure_input&;t t
25328 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25329 s
&@srcdir@
&$ac_srcdir&;t t
25330 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25331 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25332 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25333 s
&@builddir@
&$ac_builddir&;t t
25334 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25335 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25336 s
&@INSTALL@
&$ac_INSTALL&;t t
25337 $ac_datarootdir_hack
25338 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25343 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25344 which seems to be undefined. Please make sure it is defined." >&5
25345 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25346 which seems to be undefined. Please make sure it is defined." >&2;}
25350 -) cat "$tmp/out"; rm -f "$tmp/out";;
25351 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25360 # Transform confdefs.h into a sed script `conftest.defines', that
25361 # substitutes the proper values into config.h.in to produce config.h.
25362 rm -f conftest.defines conftest.
tail
25363 # First, append a space to every undef/define line, to ease matching.
25364 echo 's/$/ /' >conftest.defines
25365 # Then, protect against being on the right side of a sed subst, or in
25366 # an unquoted here document, in config.status. If some macros were
25367 # called several times there might be several #defines for the same
25368 # symbol, which is useless. But do not sort them, since the last
25369 # AC_DEFINE must be honored.
25370 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25371 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25372 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25373 # PARAMS is the parameter list in the macro definition--in most cases, it's
25374 # just an empty string.
25375 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25376 ac_dB
='\\)[ (].*,\\1define\\2'
25384 s/^[ ]*#[ ]*define[ ][ ]*//
25389 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25390 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25391 ' >>conftest.defines
25393 # Remove the space that was appended to ease matching.
25394 # Then replace #undef with comments. This is necessary, for
25395 # example, in the case of _POSIX_SOURCE, which is predefined and required
25396 # on some systems where configure will not decide to define it.
25397 # (The regexp can be short, since the line contains either #define or #undef.)
25399 s,^[ #]*u.*,/* & */,' >>conftest.defines
25401 # Break up conftest.defines:
25402 ac_max_sed_lines
=50
25404 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25405 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25406 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25408 ac_in
='$ac_file_inputs'
25409 ac_out
='"$tmp/out1"'
25410 ac_nxt
='"$tmp/out2"'
25414 # Write a here document:
25415 cat >>$CONFIG_STATUS <<_ACEOF
25416 # First, check the format of the line:
25417 cat >"\$tmp/defines.sed" <<\\CEOF
25418 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25419 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25423 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25425 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25426 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25427 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25428 grep . conftest.
tail >/dev
/null ||
break
25429 rm -f conftest.defines
25430 mv conftest.
tail conftest.defines
25432 rm -f conftest.defines conftest.
tail
25434 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25435 cat >>$CONFIG_STATUS <<\_ACEOF
25436 if test x
"$ac_file" != x-
; then
25437 echo "/* $configure_input */" >"$tmp/config.h"
25438 cat "$ac_result" >>"$tmp/config.h"
25439 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25440 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25441 echo "$as_me: $ac_file is unchanged" >&6;}
25444 mv "$tmp/config.h" $ac_file
25447 echo "/* $configure_input */"
25453 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25454 echo "$as_me: executing $ac_file commands" >&6;}
25459 case $ac_file$ac_mode in
25462 ### Make the necessary directories, if they don't exist.
25463 for dir
in etc lisp
; do
25464 test -d ${dir} || mkdir
${dir}
25467 # Build src/Makefile from ${srcdir}/src/Makefile.c
25468 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25469 # This must be done after src/config.h is built, since we rely on that file.
25471 # Now get this: Some word that is part of the ${srcdir} directory name
25472 # or the ${configuration} value might, just might, happen to be an
25473 # identifier like `sun4' or `i386' or something, and be predefined by
25474 # the C preprocessor to some helpful value like 1, or maybe the empty
25475 # string. Needless to say consequent macro substitutions are less
25476 # than conducive to the makefile finding the correct directory.
25477 undefs
="`echo $top_srcdir $configuration $canonical |
25478 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25479 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25482 echo creating src
/epaths.h
25483 ${MAKE-make} epaths-force
25485 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25486 # `..' to `. .' unless invoked with -traditional
25488 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25489 CPPFLAGS
="$CPPFLAGS -traditional"
25492 echo creating lib-src
/Makefile
25494 rm -f junk.c junk1.c junk2.c
25495 sed -e '/start of cpp stuff/q' \
25496 < Makefile.c
> junk1.c
25497 sed -e '1,/start of cpp stuff/d'\
25498 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25499 < Makefile.c
> junk.c
25500 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25501 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25502 cat junk1.c junk2.c
> Makefile.new
25503 rm -f junk.c junk1.c junk2.c
25504 chmod 444 Makefile.new
25505 mv -f Makefile.new Makefile
25508 echo creating src
/Makefile
25510 rm -f junk.c junk1.c junk2.c
25511 sed -e '/start of cpp stuff/q' \
25512 < Makefile.c
> junk1.c
25513 sed -e '1,/start of cpp stuff/d'\
25514 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25515 < Makefile.c
> junk.c
25516 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25517 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25518 cat junk1.c junk2.c
> Makefile.new
25519 rm -f junk.c junk1.c junk2.c
25520 chmod 444 Makefile.new
25521 mv -f Makefile.new Makefile
25524 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25525 echo creating src
/.gdbinit
25526 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25529 # This is how we know whether to re-run configure in certain cases.
25530 touch src
/config.stamp
25538 { (exit 0); exit 0; }
25540 chmod +x
$CONFIG_STATUS
25541 ac_clean_files
=$ac_clean_files_save
25544 # configure is writing to config.log, and then calls config.status.
25545 # config.status does its own redirection, appending to config.log.
25546 # Unfortunately, on DOS this fails, as config.log is still kept open
25547 # by configure, so config.status won't be able to write to it; its
25548 # output is simply discarded. So we exec the FD to /dev/null,
25549 # effectively closing config.log, so it can be properly (re)opened and
25550 # appended to by config.status. When coming back to configure, we
25551 # need to make the FD available again.
25552 if test "$no_create" != yes; then
25554 ac_config_status_args
=
25555 test "$silent" = yes &&
25556 ac_config_status_args
="$ac_config_status_args --quiet"
25558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25561 # would make configure fail if this is the last instruction.
25562 $ac_cs_success ||
{ (exit 1); exit 1; }