2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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.50'
576 PACKAGE_STRING
='emacs 23.0.50'
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
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.50 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.50:";;
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 --enable-font-backend compile code of 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-gcc don
't use GCC to compile Emacs even if GCC is found
1349 --without-pop don't support POP
mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version
5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server
host
1353 --without-sound don
't compile with sound support
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 --with-gtk use GTK toolkit
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don
't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1372 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1374 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config
for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables
:
1380 CC C compiler
command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1383 nonstandard directory
<lib dir
>
1384 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1385 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1386 you have headers
in a nonstandard directory
<include dir
>
1388 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1390 Use these variables to override the choices made by
`configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1420 .) # We are building in place.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1453 emacs configure 23.0.50
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.50, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1480 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1481 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1482 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1483 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1484 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1486 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1487 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1489 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1490 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1491 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1492 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1493 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1494 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1495 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_must_keep_next=false
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1539 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557 -* ) ac_must_keep_next=true ;;
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1587 eval ac_val=\$$ac_var
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1601 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1631 if test -n "$ac_subst_files"; then
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 echo "$ac_var='\''$ac_val'\''"
1649 if test -s confdefs.h; then
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1754 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1758 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1765 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1766 echo "$as_me: former value
: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1768 echo "$as_me: current value
: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1786 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1787 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s
,x
,x
', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1841 lispdir='${datadir}/emacs
/${version}/lisp
'
1842 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1843 '${datadir}/emacs
/site-lisp
'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1845 etcdir='${datadir}/emacs
/${version}/etc
'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs
/${version}/etc
'
1848 gamedir='${localstatedir}/games
/emacs
'
1855 # Check whether --with-gcc was given.
1856 if test "${with_gcc+set}" = set; then
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h <<\_ACEOF
1871 #define MAIL_USE_POP 1
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos;
1885 if test "$with_kerberos" = yes; then
1886 cat >>confdefs.h <<\_ACEOF
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval=$with_kerberos5;
1901 if test "${with_kerberos5}" = yes; then
1902 if test "${with_kerberos}" != yes; then
1904 cat >>confdefs.h <<\_ACEOF
1910 cat >>confdefs.h <<\_ACEOF
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval=$with_hesiod;
1924 if test "$with_hesiod" = yes; then
1926 cat >>confdefs.h <<\_ACEOF
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval=$with_sound;
1942 # Check whether --with-x-toolkit was given.
1943 if test "${with_x_toolkit+set}" = set; then
1944 withval=$with_x_toolkit; case "${withval}" in
1945 y | ye | yes ) val=gtk ;;
1947 l | lu | luc | luci | lucid ) val=lucid ;;
1948 a | at | ath | athe | athen | athena ) val=athena ;;
1949 m | mo | mot | moti | motif ) val=motif ;;
1950 g | gt | gtk ) val=gtk ;;
1952 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1953 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1954 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1955 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1956 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1957 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1958 { (exit 1); exit 1; }; }
1967 # Check whether --with-xpm was given.
1968 if test "${with_xpm+set}" = set; then
1975 # Check whether --with-jpeg was given.
1976 if test "${with_jpeg+set}" = set; then
1983 # Check whether --with-tiff was given.
1984 if test "${with_tiff+set}" = set; then
1991 # Check whether --with-gif was given.
1992 if test "${with_gif+set}" = set; then
1999 # Check whether --with-png was given.
2000 if test "${with_png+set}" = set; then
2007 # Check whether --with-rsvg was given.
2008 if test "${with_rsvg+set}" = set; then
2016 # Check whether --with-freetype was given.
2017 if test "${with_freetype+set}" = set; then
2018 withval=$with_freetype;
2024 # Check whether --with-xft was given.
2025 if test "${with_xft+set}" = set; then
2032 # Check whether --with-libotf was given.
2033 if test "${with_libotf+set}" = set; then
2034 withval=$with_libotf;
2040 # Check whether --with-m17n-flt was given.
2041 if test "${with_m17n_flt+set}" = set; then
2042 withval=$with_m17n_flt;
2049 # Check whether --with-gtk was given.
2050 if test "${with_gtk+set}" = set; then
2057 # Check whether --with-toolkit-scroll-bars was given.
2058 if test "${with_toolkit_scroll_bars+set}" = set; then
2059 withval=$with_toolkit_scroll_bars;
2061 with_toolkit_scroll_bars=yes
2065 # Check whether --with-xaw3d was given.
2066 if test "${with_xaw3d+set}" = set; then
2067 withval=$with_xaw3d;
2073 # Check whether --with-xim was given.
2074 if test "${with_xim+set}" = set; then
2081 # Check whether --with-carbon was given.
2082 if test "${with_carbon+set}" = set; then
2083 withval=$with_carbon;
2090 # Check whether --with-gpm was given.
2091 if test "${with_gpm+set}" = set; then
2098 # Check whether --with-dbus was given.
2099 if test "${with_dbus+set}" = set; then
2107 # Check whether --with-pkg-config-prog was given.
2108 if test "${with_pkg_config_prog+set}" = set; then
2109 withval=$with_pkg_config_prog;
2112 if test "X${with_pkg_config_prog}" != X; then
2113 if test "${with_pkg_config_prog}" != yes; then
2114 PKG_CONFIG="${with_pkg_config_prog}"
2118 # Check whether --enable-carbon-app was given.
2119 if test "${enable_carbon_app+set}" = set; then
2120 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2124 # Check whether --enable-font-backend was given.
2125 if test "${enable_font_backend+set}" = set; then
2126 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2132 # Check whether --enable-asserts was given.
2133 if test "${enable_asserts+set}" = set; then
2134 enableval=$enable_asserts; USE_XASSERTS=$enableval
2140 # Check whether --enable-maintainer-mode was given.
2141 if test "${enable_maintainer_mode+set}" = set; then
2142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2144 USE_MAINTAINER_MODE=no
2147 if test $USE_MAINTAINER_MODE = yes; then
2154 # Check whether --enable-locallisppath was given.
2155 if test "${enable_locallisppath+set}" = set; then
2156 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2158 elif test "${enableval}" != "yes"; then
2159 locallisppath=${enableval}
2164 #### Make srcdir absolute, if it isn't already. It
's important to
2165 #### avoid running the path through pwd unnecessarily, since pwd can
2166 #### give you automounter prefixes, which can go away. We do all this
2167 #### so Emacs can find its files when run uninstalled.
2168 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2173 ## We may be able to use the $PWD environment variable to make this
2174 ## absolute. But sometimes PWD is inaccurate.
2175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2176 ## but that tested only for a well-formed and valid PWD,
2177 ## it did not object when PWD was well-formed and valid but just wrong.
2178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2182 srcdir
="`(cd ${srcdir}; pwd)`"
2185 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2188 #### Check if the source directory already has a configured system in it.
2189 if test `pwd` != `(cd ${srcdir} && pwd)` \
2190 && test -f "${srcdir}/src/config.h" ; then
2191 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2192 as a build directory right now; it has been configured in its own
2193 right. To configure in another directory as well, you MUST
2194 use GNU make. If you do not have GNU make, then you must
2195 now do \`make distclean' in ${srcdir},
2196 and then run $0 again." >&5
2197 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&2;}
2205 #### Given the configuration name, set machfile and opsysfile to the
2206 #### names of the m/*.h and s/*.h files we should use.
2208 ### Canonicalize the configuration name.
2211 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 if test -f "$ac_dir/install-sh"; then
2214 ac_install_sh
="$ac_aux_dir/install-sh -c"
2216 elif test -f "$ac_dir/install.sh"; then
2218 ac_install_sh
="$ac_aux_dir/install.sh -c"
2220 elif test -f "$ac_dir/shtool"; then
2222 ac_install_sh
="$ac_aux_dir/shtool install -c"
2226 if test -z "$ac_aux_dir"; then
2227 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2228 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2229 { (exit 1); exit 1; }; }
2232 # These three variables are undocumented and unsupported,
2233 # and are intended to be withdrawn in a future Autoconf release.
2234 # They can cause serious problems if a builder's source tree is in a directory
2235 # whose full name contains unusual characters.
2236 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2237 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2238 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2241 # Make sure we can run config.sub.
2242 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2243 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2245 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: checking build system type" >&5
2248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2249 if test "${ac_cv_build+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 ac_build_alias
=$build_alias
2253 test "x$ac_build_alias" = x
&&
2254 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x
&&
2256 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2258 { (exit 1); exit 1; }; }
2259 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2266 echo "${ECHO_T}$ac_cv_build" >&6; }
2267 case $ac_cv_build in
2269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2270 echo "$as_me: error: invalid value of canonical build" >&2;}
2271 { (exit 1); exit 1; }; };;
2274 ac_save_IFS
=$IFS; IFS
='-'
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2284 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2287 { echo "$as_me:$LINENO: checking host system type" >&5
2288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2289 if test "${ac_cv_host+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test "x$host_alias" = x
; then
2293 ac_cv_host
=$ac_cv_build
2295 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303 echo "${ECHO_T}$ac_cv_host" >&6; }
2306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2307 echo "$as_me: error: invalid value of canonical host" >&2;}
2308 { (exit 1); exit 1; }; };;
2311 ac_save_IFS
=$IFS; IFS
='-'
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2321 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2325 configuration
=${host_alias-${build_alias-$host}}
2329 ### If you add support for a new configuration, add code to this
2330 ### switch statement to recognize your configuration name and select
2331 ### the appropriate operating system and machine description files.
2333 ### You would hope that you could choose an m/*.h file pretty much
2334 ### based on the machine portion of the configuration name, and an s-
2335 ### file based on the operating system portion. However, it turns out
2336 ### that each m/*.h file is pretty manufacturer-specific - for
2337 ### example hp9000s300.h is a 68000 machine;
2338 ### mips.h, pmax.h are all MIPS
2339 ### machines. So we basically have to have a special case for each
2340 ### configuration name.
2342 ### As far as handling version numbers on operating systems is
2343 ### concerned, make sure things will fail in a fixable way. If
2344 ### /etc/MACHINES doesn't say anything about version numbers, be
2345 ### prepared to handle anything reasonably. If version numbers
2346 ### matter, be sure /etc/MACHINES says something about it.
2348 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2349 ### "System V Release 4"; he writes, "The old convention encouraged
2350 ### confusion between `system' and `release' levels'."
2352 machine
='' opsys
='' unported
=no
2353 case "${canonical}" in
2358 case "${canonical}" in
2359 alpha
*-*-freebsd*) machine
=alpha
;;
2360 arm
*-*-freebsd*) machine
=arm
;;
2361 ia64-
*-freebsd*) machine
=ia64
;;
2362 sparc64-
*-freebsd*) machine
=sparc
;;
2363 powerpc-
*-freebsd*) machine
=macppc
;;
2364 i
[3456]86-*-freebsd*) machine
=intel386
;;
2365 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2369 ## FreeBSD kernel + glibc based userland
2372 case "${canonical}" in
2373 alpha
*-*-kfreebsd*) machine
=alpha
;;
2374 ia64-
*-kfreebsd*) machine
=ia64
;;
2375 sparc64-
*-kfreebsd*) machine
=sparc
;;
2376 powerpc-
*-kfreebsd*) machine
=macppc
;;
2377 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2378 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2385 if test -f /usr
/lib
/crti.o
; then
2387 cat >>confdefs.h
<<\_ACEOF
2393 case "${canonical}" in
2394 alpha
*-*-netbsd*) machine
=alpha
;;
2395 i
[3456]86-*-netbsd*) machine
=intel386
;;
2397 # This is somewhat bogus.
2398 machine
=hp9000s300
;;
2399 mips-
*-netbsd*) machine
=pmax
;;
2400 mipsel-
*-netbsd*) machine
=pmax
;;
2401 mipseb-
*-netbsd*) machine
=pmax
;;
2402 powerpc-
*-netbsd*) machine
=macppc
;;
2403 sparc
*-*-netbsd*) machine
=sparc
;;
2404 vax-
*-netbsd*) machine
=vax
;;
2405 arm-
*-netbsd*) machine
=arm
;;
2406 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2407 hppa-
*-netbsd*) machine
=hp800
;;
2414 case "${canonical}" in
2415 alpha
*-*-openbsd*) machine
=alpha
;;
2416 arm-
*-openbsd*) machine
=arm
;;
2417 hppa-
*-openbsd*) machine
=hp9000s300
;;
2418 i386-
*-openbsd*) machine
=intel386
;;
2419 m68k-
*-openbsd*) machine
=hp9000s300
;;
2420 mips64-
*-openbsd*) machine
=mips64
;;
2421 powerpc-
*-openbsd*) machine
=macppc
;;
2422 sparc
*-*-openbsd*) machine
=sparc
;;
2423 vax-
*-openbsd*) machine
=vax
;;
2424 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2431 case "${canonical}" in
2432 i
[3456]86-*-lynxos*) machine
=intel386
;;
2433 powerpc-
*-lynxos*) machine
=powerpc
;;
2440 case "${canonical}" in
2441 i
[345]86-*-bsdi*) machine
=intel386
;;
2442 sparc-
*-bsdi*) machine
=sparc
;;
2443 powerpc-
*-bsdi*) machine
=macppc
;;
2445 case "${canonical}" in
2446 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2447 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2448 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2449 *-*-bsdi3* ) opsys
=bsdos3
;;
2450 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2454 ## Alpha (DEC) machines.
2456 machine
=alpha opsys
=osf1
2457 # This is needed to find X11R6.1 libraries for certain tests.
2458 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2459 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2460 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2461 # due to non-traditional preprocessing with the current compiler
2462 # defaults. OSF 4 can also have that compiler version, and there
2463 # seems always to have been a usable /usr/bin/cpp.
2464 NON_GNU_CPP
=/usr
/bin
/cpp
2465 case "${canonical}" in
2466 alpha
*-dec-osf[5-9]*)
2471 alpha
*-*-linux-gnu* )
2472 machine
=alpha opsys
=gnu-linux
2476 machine
=arm opsys
=gnu-linux
2479 ## Apple Darwin / Mac OS X
2481 case "${canonical}" in
2482 i
[3456]86-* ) machine
=intel386
;;
2483 powerpc-
* ) machine
=powermac
;;
2487 # Define CPP as follows to make autoconf work correctly.
2488 CPP
="${CC-cc} -E -no-cpp-precomp"
2489 # Use fink packages if available.
2490 if test -d /sw
/include
&& test -d /sw
/lib
; then
2491 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2492 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2493 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2498 mips-compaq-nonstopux
* )
2499 machine
=nonstopux opsys
=nonstopux
2503 i
[3456]86-cubix-sysv* )
2504 machine
=intel386 opsys
=usg5-3
2507 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2508 machine
=pmax opsys
=bsd4-2
2510 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2511 machine
=pmax opsys
=bsd4-3
2514 machine
=pmax opsys
=ultrix4-3
2517 machine
=pmax opsys
=osf1
2519 mips-dec-mach_bsd4.3
* )
2520 machine
=pmax opsys
=mach-bsd4-3
2523 ## HP 9000 series 200 or 300
2525 machine
=hp9000s300 opsys
=bsd4-3
2527 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2529 case "`uname -r`" in
2530 ## Someone's system reports A.B8.05 for this.
2531 ## I wonder what other possibilities there are.
2532 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2533 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2534 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2535 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2536 *) machine
=hp9000s300 opsys
=hpux
;;
2540 ## HP 9000 series 700 and 800, running HP/UX
2542 machine
=hp800 opsys
=hpux
2545 machine
=hp800 opsys
=hpux8
2547 hppa
*-hp-hpux9shr* )
2548 machine
=hp800 opsys
=hpux9shr
2551 machine
=hp800 opsys
=hpux9
2553 hppa
*-hp-hpux10.2
* )
2554 machine
=hp800 opsys
=hpux10-20
2557 machine
=hp800 opsys
=hpux10
2559 hppa
*-hp-hpux1[1-9]* )
2560 machine
=hp800 opsys
=hpux11
2561 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2564 hppa
*-*-linux-gnu* )
2565 machine
=hp800 opsys
=gnu-linux
2568 ## HP 9000 series 700 and 800, running HP/UX
2570 ## Cross-compilation? Nah!
2571 case "`uname -r`" in
2572 ## Someone's system reports A.B8.05 for this.
2573 ## I wonder what other possibilities there are.
2574 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2575 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2576 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2577 *) machine
=hp800 opsys
=hpux10
;;
2581 machine
=hp800 opsys
=nextstep
2586 machine
=ibm370aix opsys
=usg5-3
2589 machine
=ibms390 opsys
=gnu-linux
2591 s390x-
*-linux-gnu* )
2592 machine
=ibms390x opsys
=gnu-linux
2594 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2595 machine
=ibmrs6000 opsys
=aix3-1
2597 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2598 machine
=ibmrs6000 opsys
=aix3-2-5
2600 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2601 machine
=ibmrs6000 opsys
=aix4-1
2603 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2604 machine
=ibmrs6000 opsys
=aix4-2
2606 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2607 machine
=ibmrs6000 opsys
=aix4-2
2609 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2610 machine
=ibmrs6000 opsys
=aix4-2
2612 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2613 machine
=ibmrs6000 opsys
=aix4
2615 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2616 machine
=ibmrs6000 opsys
=aix4-1
2618 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2619 machine
=ibmrs6000 opsys
=aix3-2
2623 i
[3456]86-prime-sysv* )
2624 machine
=i386 opsys
=usg5-3
2627 ## ncr machine running svr4.3.
2628 i
[3456]86-ncr-sysv4.3
)
2629 machine
=ncr386 opsys
=usg5-4-3
2632 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2633 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2634 i
[3456]86-ncr-sysv* )
2635 machine
=ncr386 opsys
=usg5-4-2
2638 ## Macintosh PowerPC
2639 powerpc
*-*-linux-gnu* )
2640 machine
=macppc opsys
=gnu-linux
2643 ## Workstations sold by MIPS
2644 ## This is not necessarily all workstations using the MIPS processor -
2645 ## Irises are produced by SGI, and DECstations by DEC.
2647 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2648 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2649 ## it gives for choosing between the alternatives seems to be "Use
2650 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2651 ## the BSD world." I'll assume that these are instructions for
2652 ## handling two odd situations, and that every other situation
2653 ## should use mips.h and usg5-2-2, they being listed first.
2656 ## Fall through to the general code at the bottom to decide on the OS.
2658 mips-mips-riscos4
* )
2659 machine
=mips4 opsys
=bsd4-3
2660 NON_GNU_CC
="cc -systype bsd43"
2661 NON_GNU_CPP
="cc -systype bsd43 -E"
2663 mips-mips-riscos5
* )
2664 machine
=mips4 opsys
=riscos5
2665 NON_GNU_CC
="cc -systype bsd43"
2666 NON_GNU_CPP
="cc -systype bsd43 -E"
2669 machine
=mips opsys
=bsd4-3
2672 machine
=mips opsys
=usg5-2-2
2676 m68
*-next-* | m68k-
*-nextstep* )
2677 machine
=m68k opsys
=nextstep
2682 machine
=ews4800 opsys
=ux4800
2686 mips-siemens-sysv
* | mips-sni-sysv
*)
2687 machine
=mips-siemens opsys
=usg5-4
2688 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2689 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2692 ## Silicon Graphics machines
2695 machine
=iris4d opsys
=irix6-5
2696 # Without defining _LANGUAGE_C, things get masked out in the headers
2697 # so that, for instance, grepping for `free' in stdlib.h fails and
2698 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2699 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2700 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2703 machine
=iris4d opsys
=irix6-0
2704 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2705 # but presumably it does no harm.
2706 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2707 # -32 probably isn't necessary in later v.6s -- anyone know which?
2708 NON_GCC_TEST_OPTIONS
=-32
2710 mips-sgi-irix5.
[01]* )
2711 machine
=iris4d opsys
=irix5-0
2713 mips-sgi-irix5
* | mips-sgi-irix
* )
2714 machine
=iris4d opsys
=irix5-2
2718 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2719 machine
=sparc opsys
=gnu-linux
2722 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2723 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2724 | rs6000-
*-solaris2*)
2725 case "${canonical}" in
2726 i
[3456]86-*-* ) machine
=intel386
;;
2727 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2728 powerpcle
* ) machine
=powerpcle
;;
2729 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2730 sparc
* ) machine
=sparc
;;
2733 case "${canonical}" in
2734 *-sunos5.3
* |
*-solaris2.3
* )
2736 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2738 *-sunos5.4
* |
*-solaris2.4
* )
2740 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2743 *-sunos5.5
* |
*-solaris2.5
* )
2745 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2748 *-sunos5.6
* |
*-solaris2.6
* )
2750 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2753 *-sunos5* |
*-solaris* )
2755 emacs_check_sunpro_c
=yes
2756 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2760 ## Watch out for a compiler that we know will not work.
2761 case "${canonical}" in
2762 *-solaris* |
*-sunos5* )
2763 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2764 ## /usr/ucb/cc doesn't work;
2765 ## we should find some other compiler that does work.
2773 machine
=sparc opsys
=nextstep
2776 ## Tandem Integrity S2
2778 machine
=tandem-s2 opsys
=usg5-3
2784 case "${canonical}" in
2785 *-bsd4.1
* ) opsys
=bsd4-1
;;
2786 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2787 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2788 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2789 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2790 *-vms* ) opsys
=vms
;;
2797 machine
=ia64 opsys
=gnu-linux
2800 ## Intel 386 machines where we don't care about the manufacturer
2803 case "${canonical}" in
2804 *-cygwin ) opsys
=cygwin
;;
2805 *-darwin* ) opsys
=darwin
2806 CPP
="${CC-cc} -E -no-cpp-precomp"
2808 *-xenix* ) opsys
=xenix
;;
2809 *-linux-gnu* ) opsys
=gnu-linux
;;
2810 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2811 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2812 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2813 *-386bsd* ) opsys
=386bsd
;;
2814 *-nextstep* ) opsys
=nextstep
;;
2815 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2819 ## m68k Linux-based GNU system
2821 machine
=m68k opsys
=gnu-linux
2824 ## Mips Linux-based GNU system
2825 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2826 machine
=mips opsys
=gnu-linux
2830 sparc-fujitsu-sysv4
* )
2831 machine
=sparc opsys
=uxpds
2832 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2836 ## AMD x86-64 Linux-based GNU system
2837 x86_64-
*-linux-gnu* )
2838 machine
=amdx86-64 opsys
=gnu-linux
2841 ## Tensilica Xtensa Linux-based GNU system
2842 xtensa
*-*-linux-gnu* )
2843 machine
=xtensa opsys
=gnu-linux
2851 ### If the code above didn't choose an operating system, just choose
2852 ### an operating system based on the configuration name. You really
2853 ### only want to use this when you have no idea what the right
2854 ### operating system is; if you know what operating systems a machine
2855 ### runs, it's cleaner to make it explicit in the case statement
2857 if test x
"${opsys}" = x
; then
2858 case "${canonical}" in
2859 *-gnu* ) opsys
=gnu
;;
2860 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2861 *-bsd4.2
) opsys
=bsd4-2
;;
2862 *-bsd4.3
) opsys
=bsd4-3
;;
2863 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2864 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2865 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2866 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2867 *-sysv4.2uw
* ) opsys
=unixware
;;
2868 *-sysv5uw* ) opsys
=unixware
;;
2869 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2870 *-sysv4.1
* |
*-sysvr4.1
* )
2871 NON_GNU_CPP
=/usr
/lib
/cpp
2873 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2874 if [ x
$NON_GNU_CPP = x
]; then
2875 if [ -f /usr
/ccs
/lib
/cpp
]; then
2876 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2878 NON_GNU_CPP
=/lib
/cpp
2882 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2891 if test $unported = yes; then
2892 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2893 Check \`etc/MACHINES' for recognized configuration names." >&5
2894 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2895 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2896 { (exit 1); exit 1; }; }
2899 machfile
="m/${machine}.h"
2900 opsysfile
="s/${opsys}.h"
2903 #### Choose a compiler.
2904 test -n "$CC" && cc_specified
=yes
2906 # Save the value of CFLAGS that the user specified.
2907 SPECIFIED_CFLAGS
="$CFLAGS"
2910 "yes" ) CC
="gcc" GCC
=yes ;;
2911 "no" ) : ${CC=cc} ;;
2915 ac_cpp
='$CPP $CPPFLAGS'
2916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC
="$CC" # Let the user override the test.
2930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir
=.
2935 for ac_exec_ext
in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 if test -n "$CC"; then
2949 { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2958 if test -z "$ac_cv_prog_CC"; then
2960 # Extract the first word of "gcc", so it can be a program name with args.
2961 set dummy gcc
; ac_word
=$2
2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir
=.
2975 for ac_exec_ext
in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC
="gcc"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2990 echo "${ECHO_T}$ac_ct_CC" >&6; }
2992 { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2996 if test "x$ac_ct_CC" = x
; then
2999 case $cross_compiling:$ac_tool_warned in
3001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3002 whose name does not start with the host triplet. If you think this
3003 configuration is useful to you, please write to autoconf@gnu.org." >&5
3004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3005 whose name does not start with the host triplet. If you think this
3006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3007 ac_tool_warned
=yes ;;
3015 if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3018 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC
="$CC" # Let the user override the test.
3027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir
=.
3032 for ac_exec_ext
in '' $ac_executable_extensions; do
3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 if test -n "$CC"; then
3046 { echo "$as_me:$LINENO: result: $CC" >&5
3047 echo "${ECHO_T}$CC" >&6; }
3049 { echo "$as_me:$LINENO: result: no" >&5
3050 echo "${ECHO_T}no" >&6; }
3056 if test -z "$CC"; then
3057 # Extract the first word of "cc", so it can be a program name with args.
3058 set dummy cc
; ac_word
=$2
3059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_CC+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC
="$CC" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3076 ac_prog_rejected
=yes
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 if test $ac_prog_rejected = yes; then
3088 # We found a bogon in the path, so make sure we never use it.
3089 set dummy
$ac_cv_prog_CC
3091 if test $# != 0; then
3092 # We chose a different compiler from the bogus one.
3093 # However, it has the same basename, so the bogon will be chosen
3094 # first if we set CC to just the basename; use the full file name.
3096 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3102 if test -n "$CC"; then
3103 { echo "$as_me:$LINENO: result: $CC" >&5
3104 echo "${ECHO_T}$CC" >&6; }
3106 { echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6; }
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 for ac_prog
in cl.exe
3116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3117 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3120 if test "${ac_cv_prog_CC+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC
="$CC" # Let the user override the test.
3126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir
=.
3131 for ac_exec_ext
in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 if test -n "$CC"; then
3145 { echo "$as_me:$LINENO: result: $CC" >&5
3146 echo "${ECHO_T}$CC" >&6; }
3148 { echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6; }
3153 test -n "$CC" && break
3156 if test -z "$CC"; then
3158 for ac_prog
in cl.exe
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy
$ac_prog; ac_word
=$2
3162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 if test -n "$ac_ct_CC"; then
3168 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir
=.
3175 for ac_exec_ext
in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_ac_ct_CC
="$ac_prog"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3188 if test -n "$ac_ct_CC"; then
3189 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3190 echo "${ECHO_T}$ac_ct_CC" >&6; }
3192 { echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6; }
3197 test -n "$ac_ct_CC" && break
3200 if test "x$ac_ct_CC" = x
; then
3203 case $cross_compiling:$ac_tool_warned in
3205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3206 whose name does not start with the host triplet. If you think this
3207 configuration is useful to you, please write to autoconf@gnu.org." >&5
3208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3209 whose name does not start with the host triplet. If you think this
3210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3211 ac_tool_warned
=yes ;;
3220 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details." >&5
3222 echo "$as_me: error: no acceptable C compiler found in \$PATH
3223 See \`config.log' for more details." >&2;}
3224 { (exit 1); exit 1; }; }
3226 # Provide some information about the compiler.
3227 echo "$as_me:$LINENO: checking for C compiler version" >&5
3228 ac_compiler
=`set X $ac_compile; echo $2`
3229 { (ac_try
="$ac_compiler --version >&5"
3231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compiler --version >&5") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3239 { (ac_try="$ac_compiler -v >&5"
3241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3242 *) ac_try_echo
=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compiler -v >&5") 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3249 { (ac_try
="$ac_compiler -V >&5"
3251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compiler -V >&5") 2>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3275 ac_clean_files_save=$ac_clean_files
3276 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3277 # Try to create an executable without -o first, disregard a.out.
3278 # It will help us diagnose broken compilers, and finding out an intuition
3280 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3281 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3282 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3284 # List of possible output files, starting from the most likely.
3285 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3286 # only as a last resort. b.out is created by i960 compilers.
3287 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3289 # The IRIX 6 linker writes into existing files which may not be
3290 # executable, retaining their permissions. Remove them first so a
3291 # subsequent execution test works.
3293 for ac_file in $ac_files
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302 if { (ac_try="$ac_link_default"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_link_default") 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; then
3312 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3313 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3314 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3315 # so that the user can short-circuit this test for compilers unknown to
3317 for ac_file
in $ac_files ''
3319 test -f "$ac_file" ||
continue
3321 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3324 # We found the default executable, but exeext='' is most
3328 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3330 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 # We set ac_cv_exeext here because the later test for it is not
3333 # safe: cross compilers may not add the suffix if given an `-o'
3334 # argument, so we may need to know it at that point already.
3335 # Even if this section looks crufty: it has the advantage of
3342 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3348 { echo "$as_me:$LINENO: result: $ac_file" >&5
3349 echo "${ECHO_T}$ac_file" >&6; }
3350 if test -z "$ac_file"; then
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.
$ac_ext >&5
3354 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C compiler cannot create executables
3357 See \`config.log' for more details." >&2;}
3358 { (exit 77); exit 77; }; }
3361 ac_exeext
=$ac_cv_exeext
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3366 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3367 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3368 # If not cross compiling, check that we can run a simple program.
3369 if test "$cross_compiling" != yes; then
3370 if { ac_try
='./$ac_file'
3371 { (case "(($ac_try" in
3372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3382 if test "$cross_compiling" = maybe; then
3385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3386 If you meant to cross compile, use \`--host'.
3387 See \`config.log' for more details.
" >&5
3388 echo "$as_me: error
: cannot run C compiled programs.
3389 If you meant to cross compile
, use \
`--host'.
3390 See \`config.log
' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3395 { echo "$as_me:$LINENO: result: yes" >&5
3396 echo "${ECHO_T}yes" >&6; }
3398 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3399 ac_clean_files=$ac_clean_files_save
3400 # Check that the compiler produces executables we can run. If not, either
3401 # the compiler is broken, or we cross compile.
3402 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3404 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3405 echo "${ECHO_T}$cross_compiling" >&6; }
3407 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3409 if { (ac_try="$ac_link"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_link") 2>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; then
3419 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3420 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3421 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3423 for ac_file
in conftest.exe conftest conftest.
*; do
3424 test -f "$ac_file" ||
continue
3426 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3427 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details." >&5
3435 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3436 See \`config.log' for more details." >&2;}
3437 { (exit 1); exit 1; }; }
3440 rm -f conftest
$ac_cv_exeext
3441 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3442 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3444 rm -f conftest.
$ac_ext
3445 EXEEXT
=$ac_cv_exeext
3447 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3448 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3449 if test "${ac_cv_objext+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 cat >conftest.
$ac_ext <<_ACEOF
3455 cat confdefs.h
>>conftest.
$ac_ext
3456 cat >>conftest.
$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3467 rm -f conftest.o conftest.obj
3468 if { (ac_try
="$ac_compile"
3470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_compile") 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; then
3478 for ac_file in conftest.o conftest.obj conftest.*; do
3479 test -f "$ac_file" || continue;
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3482 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3491 See \`config.log
' for more details." >&5
3492 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3493 See \`config.log' for more details.
" >&2;}
3494 { (exit 1); exit 1; }; }
3497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3499 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3500 echo "${ECHO_T}$ac_cv_objext" >&6; }
3501 OBJEXT=$ac_cv_objext
3503 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3504 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3505 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3506 echo $ECHO_N "(cached
) $ECHO_C" >&6
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compile") 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3539 (exit $ac_status); } && {
3540 test -z "$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 } && test -s conftest.$ac_objext; then
3545 echo "$as_me: failed program was
:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3556 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3557 GCC=`test $ac_compiler_gnu = yes && echo yes`
3558 ac_test_CFLAGS=${CFLAGS+set}
3559 ac_save_CFLAGS=$CFLAGS
3560 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3561 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3562 if test "${ac_cv_prog_cc_g+set}" = set; then
3563 echo $ECHO_N "(cached
) $ECHO_C" >&6
3565 ac_save_c_werror_flag=$ac_c_werror_flag
3566 ac_c_werror_flag=yes
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3603 echo "$as_me: failed program was
:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3641 echo "$as_me: failed program was
:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 ac_c_werror_flag=$ac_save_c_werror_flag
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3661 rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.$ac_objext; then
3680 echo "$as_me: failed program was
:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3695 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3696 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3697 if test "$ac_test_CFLAGS" = set; then
3698 CFLAGS=$ac_save_CFLAGS
3699 elif test $ac_cv_prog_cc_g = yes; then
3700 if test "$GCC" = yes; then
3706 if test "$GCC" = yes; then
3712 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3713 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3714 if test "${ac_cv_prog_cc_c89+set}" = set; then
3715 echo $ECHO_N "(cached
) $ECHO_C" >&6
3717 ac_cv_prog_cc_c89=no
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3727 #include <sys/types.h>
3728 #include <sys/stat.h>
3729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3730 struct buf { int x; };
3731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732 static char *e (p, i)
3738 static char *f (char * (*g) (char **, int), char **p, ...)
3743 s = g (p, va_arg (v,int));
3748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3749 function prototypes and stuff, but not '\xHH' hex character constants.
3750 These don't provoke an error unfortunately, instead are silently treated
3751 as 'x'. The following induces an error, until -std is added to get
3752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3753 array size at least. It's necessary to write '\x00'==0 to get something
3754 that's true only with -std. */
3755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758 inside strings and character constants. */
3760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3762 int test (int i, double x);
3763 struct s1 {int (*f) (int a);};
3764 struct s2 {int (*f) (double a);};
3765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779 CC="$ac_save_CC $ac_arg"
3780 rm -f conftest.$ac_objext
3781 if { (ac_try="$ac_compile"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compile") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3793 (exit $ac_status); } && {
3794 test -z "$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 } && test -s conftest.$ac_objext; then
3797 ac_cv_prog_cc_c89=$ac_arg
3799 echo "$as_me: failed program was
:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3805 rm -f core conftest.err conftest.$ac_objext
3806 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3808 rm -f conftest.$ac_ext
3813 case "x
$ac_cv_prog_cc_c89" in
3815 { echo "$as_me:$LINENO: result
: none needed
" >&5
3816 echo "${ECHO_T}none needed
" >&6; } ;;
3818 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3819 echo "${ECHO_T}unsupported
" >&6; } ;;
3821 CC="$CC $ac_cv_prog_cc_c89"
3822 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3823 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3839 ## If not using gcc, and on Solaris, and no CPP specified, see if
3840 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3841 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3842 test x"$CPP" = x; then
3843 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3844 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3846 if test "${emacs_cv_sunpro_c+set}" = set; then
3847 echo $ECHO_N "(cached
) $ECHO_C" >&6
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (ac_try="$ac_link"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_link") 2>conftest.er1
3876 grep -v '^ *+' conftest.er1 >conftest.err
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest$ac_exeext &&
3884 $as_test_x conftest$ac_exeext; then
3885 emacs_cv_sunpro_c=yes
3887 echo "$as_me: failed program was
:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 emacs_cv_sunpro_c=no
3893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3894 conftest$ac_exeext conftest.$ac_ext
3897 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3898 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3900 if test x"$emacs_cv_sunpro_c" = xyes; then
3901 NON_GNU_CPP="$CC -E -Xs"
3905 #### Some systems specify a CPP 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_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3913 #### Some systems specify a CC to use unless we are using GCC.
3914 #### Now that we know whether we are using GCC, we can decide whether
3915 #### to use that one.
3916 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3917 test x$cc_specified != xyes
3922 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3924 CC="$CC $GCC_TEST_OPTIONS"
3927 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3929 CC="$CC $NON_GCC_TEST_OPTIONS"
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3938 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3939 # On Suns, sometimes $CPP names a directory.
3940 if test -n "$CPP" && test -d "$CPP"; then
3943 if test -z "$CPP"; then
3944 if test "${ac_cv_prog_CPP+set}" = set; then
3945 echo $ECHO_N "(cached
) $ECHO_C" >&6
3947 # Double quotes because CPP needs to be expanded
3948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3951 for ac_c_preproc_warn_flag in '' yes
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error
" is here to catch this case.
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3966 # include <limits.h>
3968 # include <assert.h>
3972 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3984 (exit $ac_status); } >/dev/null && {
3985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3990 echo "$as_me: failed program was
:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 # Broken: fails on valid input.
3997 rm -f conftest.err conftest.$ac_ext
3999 # OK, works on sane cases. Now check whether nonexistent headers
4000 # can be detected and how.
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <ac_nonexistent.h>
4009 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4021 (exit $ac_status); } >/dev/null && {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4025 # Broken: success on invalid input.
4028 echo "$as_me: failed program was
:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Passes both tests.
4036 rm -f conftest.err conftest.$ac_ext
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.$ac_ext
4041 if $ac_preproc_ok; then
4053 { echo "$as_me:$LINENO: result
: $CPP" >&5
4054 echo "${ECHO_T}$CPP" >&6; }
4056 for ac_c_preproc_warn_flag in '' yes
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error
" is here to catch this case.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4071 # include <limits.h>
4073 # include <assert.h>
4077 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4089 (exit $ac_status); } >/dev/null && {
4090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4095 echo "$as_me: failed program was
:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 # Broken: fails on valid input.
4102 rm -f conftest.err conftest.$ac_ext
4104 # OK, works on sane cases. Now check whether nonexistent headers
4105 # can be detected and how.
4106 cat >conftest.$ac_ext <<_ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4114 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4126 (exit $ac_status); } >/dev/null && {
4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4130 # Broken: success on invalid input.
4133 echo "$as_me: failed program was
:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 # Passes both tests.
4141 rm -f conftest.err conftest.$ac_ext
4144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4145 rm -f conftest.err conftest.$ac_ext
4146 if $ac_preproc_ok; then
4149 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4150 See \
`config.log' for more details." >&5
4151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4152 See \`config.log
' for more details." >&2;}
4153 { (exit 1); exit 1; }; }
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4159 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4164 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4165 if test "${ac_cv_path_GREP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 # Extract the first word of "grep ggrep" to use in msg output
4169 if test -z "$GREP"; then
4170 set dummy grep ggrep; ac_prog_name=$2
4171 if test "${ac_cv_path_GREP+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 ac_path_GREP_found=false
4175 # Loop through the user's path and
test for each of PROGNAME-LIST
4176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4177 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4180 test -z "$as_dir" && as_dir
=.
4181 for ac_prog
in grep ggrep
; do
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4184 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4185 # Check for GNU ac_path_GREP and select it if it is found.
4186 # Check for GNU $ac_path_GREP
4187 case `"$ac_path_GREP" --version 2>&1` in
4189 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4192 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4195 cat "conftest.in" "conftest.in" >"conftest.tmp"
4196 mv "conftest.tmp" "conftest.in"
4197 cp "conftest.in" "conftest.nl"
4198 echo 'GREP' >> "conftest.nl"
4199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4200 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4201 ac_count
=`expr $ac_count + 1`
4202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4203 # Best one so far, save it but keep looking for a better one
4204 ac_cv_path_GREP
="$ac_path_GREP"
4205 ac_path_GREP_max
=$ac_count
4207 # 10*(2^10) chars as input seems more than enough
4208 test $ac_count -gt 10 && break
4210 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4214 $ac_path_GREP_found && break 3
4224 GREP
="$ac_cv_path_GREP"
4225 if test -z "$GREP"; then
4226 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4227 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4228 { (exit 1); exit 1; }; }
4232 ac_cv_path_GREP
=$GREP
4237 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4238 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4239 GREP
="$ac_cv_path_GREP"
4242 { echo "$as_me:$LINENO: checking for egrep" >&5
4243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4244 if test "${ac_cv_path_EGREP+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4248 then ac_cv_path_EGREP
="$GREP -E"
4250 # Extract the first word of "egrep" to use in msg output
4251 if test -z "$EGREP"; then
4252 set dummy
egrep; ac_prog_name
=$2
4253 if test "${ac_cv_path_EGREP+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_path_EGREP_found
=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4259 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4262 test -z "$as_dir" && as_dir
=.
4263 for ac_prog
in egrep; do
4264 for ac_exec_ext
in '' $ac_executable_extensions; do
4265 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4267 # Check for GNU ac_path_EGREP and select it if it is found.
4268 # Check for GNU $ac_path_EGREP
4269 case `"$ac_path_EGREP" --version 2>&1` in
4271 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4274 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 echo 'EGREP' >> "conftest.nl"
4281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4282 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4283 ac_count
=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_EGREP
="$ac_path_EGREP"
4287 ac_path_EGREP_max
=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4292 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4296 $ac_path_EGREP_found && break 3
4306 EGREP
="$ac_cv_path_EGREP"
4307 if test -z "$EGREP"; then
4308 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4309 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4310 { (exit 1); exit 1; }; }
4314 ac_cv_path_EGREP
=$EGREP
4320 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4321 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4322 EGREP
="$ac_cv_path_EGREP"
4326 { echo "$as_me:$LINENO: checking for AIX" >&5
4327 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4328 cat >conftest.
$ac_ext <<_ACEOF
4331 cat confdefs.h
>>conftest.
$ac_ext
4332 cat >>conftest.
$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "yes" >/dev
/null
2>&1; then
4341 { echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6; }
4343 cat >>confdefs.h
<<\_ACEOF
4344 #define _ALL_SOURCE 1
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4355 cat >>confdefs.h
<<\_ACEOF
4356 #define _GNU_SOURCE 1
4361 ### Use -Wno-pointer-sign if the compiler supports it
4362 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4363 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4364 SAVE_CFLAGS
="$CFLAGS"
4365 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4366 cat >conftest.
$ac_ext <<_ACEOF
4369 cat confdefs.h
>>conftest.
$ac_ext
4370 cat >>conftest.
$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4381 rm -f conftest.
$ac_objext
4382 if { (ac_try
="$ac_compile"
4384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 if test $has_option = yes; then
4408 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4410 { echo "$as_me:$LINENO: result: $has_option" >&5
4411 echo "${ECHO_T}$has_option" >&6; }
4412 CFLAGS="$SAVE_CFLAGS"
4416 #### Some other nice autoconf tests.
4418 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4419 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4421 if test "$LN_S" = "ln -s"; then
4422 { echo "$as_me:$LINENO: result: yes" >&5
4423 echo "${ECHO_T}yes" >&6; }
4425 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4426 echo "${ECHO_T}no, using $LN_S" >&6; }
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4435 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4436 # On Suns, sometimes $CPP names a directory.
4437 if test -n "$CPP" && test -d "$CPP"; then
4440 if test -z "$CPP"; then
4441 if test "${ac_cv_prog_CPP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 # Double quotes because CPP needs to be expanded
4445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4448 for ac_c_preproc_warn_flag in '' yes
4450 # Use a header file that comes with gcc, so configuring glibc
4451 # with a fresh cross-compiler works.
4452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453 # <limits.h> exists even on freestanding compilers.
4454 # On the NeXT, cc -E runs the code through the compiler's parser,
4455 # not just through cpp. "Syntax error" is here to catch this case.
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4463 # include <limits.h>
4465 # include <assert.h>
4469 if { (ac_try="$ac_cpp conftest.$ac_ext"
4471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4472 *) ac_try_echo
=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1
>conftest.err
4479 cat conftest.err
>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } >/dev
/null
&& {
4482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.
$ac_ext >&5
4490 # Broken: fails on valid input.
4494 rm -f conftest.err conftest.
$ac_ext
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat >conftest.
$ac_ext <<_ACEOF
4501 cat confdefs.h
>>conftest.
$ac_ext
4502 cat >>conftest.
$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 #include <ac_nonexistent.h>
4506 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4514 grep -v '^ *+' conftest.er1 >conftest.err
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } >/dev/null && {
4519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4520 test ! -s conftest.err
4522 # Broken: success on invalid input.
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 # Passes both tests.
4533 rm -f conftest.err conftest.$ac_ext
4536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4537 rm -f conftest.err conftest.
$ac_ext
4538 if $ac_preproc_ok; then
4550 { echo "$as_me:$LINENO: result: $CPP" >&5
4551 echo "${ECHO_T}$CPP" >&6; }
4553 for ac_c_preproc_warn_flag
in '' yes
4555 # Use a header file that comes with gcc, so configuring glibc
4556 # with a fresh cross-compiler works.
4557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558 # <limits.h> exists even on freestanding compilers.
4559 # On the NeXT, cc -E runs the code through the compiler's parser,
4560 # not just through cpp. "Syntax error" is here to catch this case.
4561 cat >conftest.
$ac_ext <<_ACEOF
4564 cat confdefs.h
>>conftest.
$ac_ext
4565 cat >>conftest.
$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 # include <limits.h>
4570 # include <assert.h>
4574 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev/null && {
4587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 # Broken: fails on valid input.
4599 rm -f conftest.err conftest.$ac_ext
4601 # OK, works on sane cases. Now check whether nonexistent headers
4602 # can be detected and how.
4603 cat >conftest.$ac_ext <<_ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 #include <ac_nonexistent.h>
4611 if { (ac_try="$ac_cpp conftest.$ac_ext"
4613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4614 *) ac_try_echo
=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4619 grep -v '^ *+' conftest.er1
>conftest.err
4621 cat conftest.err
>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } >/dev
/null
&& {
4624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4627 # Broken: success on invalid input.
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.
$ac_ext >&5
4633 # Passes both tests.
4638 rm -f conftest.err conftest.
$ac_ext
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.err conftest.
$ac_ext
4643 if $ac_preproc_ok; then
4646 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4649 See \`config.log' for more details." >&2;}
4650 { (exit 1); exit 1; }; }
4654 ac_cpp
='$CPP $CPPFLAGS'
4655 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4659 # Find a good install program. We prefer a C program (faster),
4660 # so one script is as good as another. But avoid the broken or
4661 # incompatible versions:
4662 # SysV /etc/install, /usr/sbin/install
4663 # SunOS /usr/etc/install
4664 # IRIX /sbin/install
4666 # AmigaOS /C/install, which installs bootblocks on floppy discs
4667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4670 # OS/2's system install, which has a completely different semantic
4671 # ./install, which can be erroneously created by make from ./install.sh.
4672 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4673 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4674 if test -z "$INSTALL"; then
4675 if test "${ac_cv_path_install+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir
=.
4683 # Account for people who put trailing slashes in PATH elements.
4685 .
/ | .
// |
/cC
/* | \
4686 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4687 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4690 # OSF1 and SCO ODT 3.0 have their own names for install.
4691 # Don't use installbsd from OSF since it installs stuff as root
4693 for ac_prog
in ginstall scoinst
install; do
4694 for ac_exec_ext
in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4696 if test $ac_prog = install &&
4697 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4698 # AIX install. It has an incompatible calling convention.
4700 elif test $ac_prog = install &&
4701 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4702 # program-specific install script used by HP pwplus--don't use.
4705 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4718 if test "${ac_cv_path_install+set}" = set; then
4719 INSTALL
=$ac_cv_path_install
4721 # As a last resort, use the slow shell script. Don't cache a
4722 # value for INSTALL within a source directory, because that will
4723 # break other packages using the cache if that directory is
4724 # removed, or if the value is a relative name.
4725 INSTALL
=$ac_install_sh
4728 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4729 echo "${ECHO_T}$INSTALL" >&6; }
4731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4732 # It thinks the first close brace ends the variable substitution.
4733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4737 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4739 if test "x$RANLIB" = x
; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4742 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745 if test "${ac_cv_prog_RANLIB+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test -n "$RANLIB"; then
4749 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir
=.
4756 for ac_exec_ext
in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 RANLIB
=$ac_cv_prog_RANLIB
4769 if test -n "$RANLIB"; then
4770 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4771 echo "${ECHO_T}$RANLIB" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4779 if test -z "$ac_cv_prog_RANLIB"; then
4780 ac_ct_RANLIB
=$RANLIB
4781 # Extract the first word of "ranlib", so it can be a program name with args.
4782 set dummy ranlib
; ac_word
=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 if test -n "$ac_ct_RANLIB"; then
4789 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir
=.
4796 for ac_exec_ext
in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4809 if test -n "$ac_ct_RANLIB"; then
4810 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4811 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4817 if test "x$ac_ct_RANLIB" = x
; then
4820 case $cross_compiling:$ac_tool_warned in
4822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4823 whose name does not start with the host triplet. If you think this
4824 configuration is useful to you, please write to autoconf@gnu.org." >&5
4825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4826 whose name does not start with the host triplet. If you think this
4827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4828 ac_tool_warned
=yes ;;
4830 RANLIB
=$ac_ct_RANLIB
4833 RANLIB
="$ac_cv_prog_RANLIB"
4837 # Extract the first word of "install-info", so it can be a program name with args.
4838 set dummy install-info
; ac_word
=$2
4839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 case $INSTALL_INFO in
4846 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir
=.
4854 for ac_exec_ext
in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4868 if test -n "$INSTALL_INFO"; then
4869 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4870 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4872 { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4877 # Extract the first word of "install-info", so it can be a program name with args.
4878 set dummy install-info
; ac_word
=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 case $INSTALL_INFO in
4886 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4890 for as_dir
in /usr
/sbin
4893 test -z "$as_dir" && as_dir
=.
4894 for ac_exec_ext
in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4908 if test -n "$INSTALL_INFO"; then
4909 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4910 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4912 { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4917 # Extract the first word of "install-info", so it can be a program name with args.
4918 set dummy install-info
; ac_word
=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 case $INSTALL_INFO in
4926 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir
=.
4934 for ac_exec_ext
in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4948 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4949 if test -n "$INSTALL_INFO"; then
4950 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4951 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4958 # Extract the first word of "gzip", so it can be a program name with args.
4959 set dummy
gzip; ac_word
=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir
=.
4975 for ac_exec_ext
in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4989 if test -n "$GZIP_PROG"; then
4990 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4991 echo "${ECHO_T}$GZIP_PROG" >&6; }
4993 { echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6; }
5000 ## Need makeinfo >= 4.6 (?) to build the manuals.
5001 # Extract the first word of "makeinfo", so it can be a program name with args.
5002 set dummy makeinfo
; ac_word
=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir
=.
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5032 MAKEINFO
=$ac_cv_path_MAKEINFO
5033 if test -n "$MAKEINFO"; then
5034 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5035 echo "${ECHO_T}$MAKEINFO" >&6; }
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5042 if test "$MAKEINFO" != "no" && \
5043 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
5047 if test "$MAKEINFO" = "no"; then
5048 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5049 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5050 { (exit 1); exit 1; }; }
5055 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5057 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5060 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5062 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5066 late_LDFLAGS
=$LDFLAGS
5067 if test "$GCC" = yes; then
5068 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5070 LDFLAGS
="$LDFLAGS -znocombreloc"
5073 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5074 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5075 cat >conftest.
$ac_ext <<_ACEOF
5078 rm -f conftest.
$ac_objext conftest
$ac_exeext
5079 if { (ac_try
="$ac_link"
5081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_link") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest$ac_exeext &&
5095 $as_test_x conftest$ac_exeext; then
5096 { echo "$as_me:$LINENO: result: yes" >&5
5097 echo "${ECHO_T}yes" >&6; }
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 LDFLAGS=$late_LDFLAGS
5103 { echo "$as_me:$LINENO: result: no" >&5
5104 echo "${ECHO_T}no" >&6; }
5107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5108 conftest$ac_exeext conftest.$ac_ext
5110 #### Extract some information from the operating system and machine files.
5112 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5113 - which libraries the lib-src programs will want, and
5114 - whether the GNU malloc routines are usable..." >&5
5115 echo "$as_me: checking the machine- and system-dependent files to find out
5116 - which libraries the lib-src programs will want, and
5117 - whether the GNU malloc routines are usable..." >&6;}
5119 ### First figure out CFLAGS (which we use for running the compiler here)
5120 ### and REAL_CFLAGS (which we use for real compilation).
5121 ### The two are the same except on a few systems, where they are made
5122 ### different to work around various lossages. For example,
5123 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5124 ### as implying static linking.
5126 ### If the CFLAGS env var is specified, we use that value
5127 ### instead of the default.
5129 ### It's not important that this name contain the PID; you can't run
5130 ### two configures in the same directory and have anything work
5132 tempcname="conftest.c"
5135 #include "'${srcdir}'/src/'${opsysfile}'"
5136 #include "'${srcdir}'/src/'${machfile}'"
5137 #ifndef LIBS_MACHINE
5138 #define LIBS_MACHINE
5143 #ifndef C_SWITCH_SYSTEM
5144 #define C_SWITCH_SYSTEM
5146 #ifndef C_SWITCH_MACHINE
5147 #define C_SWITCH_MACHINE
5149 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5150 configure___ c_switch_system=C_SWITCH_SYSTEM
5151 configure___ c_switch_machine=C_SWITCH_MACHINE
5154 #define LIB_X11_LIB -lX11
5157 #ifndef LIBX11_MACHINE
5158 #define LIBX11_MACHINE
5161 #ifndef LIBX11_SYSTEM
5162 #define LIBX11_SYSTEM
5164 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5167 configure___ unexec=UNEXEC
5169 configure___ unexec=unexec.o
5172 #ifdef SYSTEM_MALLOC
5173 configure___ system_malloc=yes
5175 configure___ system_malloc=no
5178 #ifdef USE_MMAP_FOR_BUFFERS
5179 configure___ use_mmap_for_buffers=yes
5181 configure___ use_mmap_for_buffers=no
5184 #ifndef C_DEBUG_SWITCH
5185 #define C_DEBUG_SWITCH -g
5188 #ifndef C_OPTIMIZE_SWITCH
5190 #define C_OPTIMIZE_SWITCH -O2
5192 #define C_OPTIMIZE_SWITCH -O
5196 #ifndef C_WARNINGS_SWITCH
5197 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5200 #ifndef LD_SWITCH_MACHINE
5201 #define LD_SWITCH_MACHINE
5204 #ifndef LD_SWITCH_SYSTEM
5205 #define LD_SWITCH_SYSTEM
5208 #ifndef LD_SWITCH_X_SITE_AUX
5209 #define LD_SWITCH_X_SITE_AUX
5212 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5213 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5215 #ifdef THIS_IS_CONFIGURE
5217 /* Get the CFLAGS for tests in configure. */
5219 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5221 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5224 #else /* not THIS_IS_CONFIGURE */
5226 /* Get the CFLAGS for real compilation. */
5228 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5230 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5233 #endif /* not THIS_IS_CONFIGURE */
5236 # The value of CPP is a quoted variable reference, so we need to do this
5237 # to get its actual value...
5238 CPP=`eval "echo $CPP"`
5239 eval `${CPP} -Isrc ${tempcname} \
5240 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5241 if test "x$SPECIFIED_CFLAGS" = x; then
5242 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5243 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5245 REAL_CFLAGS="$CFLAGS"
5249 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5251 ### Make sure subsequent tests use flags consistent with the build flags.
5253 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5254 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5256 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5261 # Check whether --enable-largefile was given.
5262 if test "${enable_largefile+set}" = set; then
5263 enableval=$enable_largefile;
5266 if test "$enable_largefile" != no; then
5268 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5269 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5270 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 ac_cv_sys_largefile_CC=no
5274 if test "$GCC" != yes; then
5277 # IRIX 6.2 and later do not support large files by default,
5278 # so use the C compiler's -n32 option if that helps.
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286 /* Check that off_t can represent 2**63 - 1 correctly.
5287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288 since some C++ compilers masquerading as C compilers
5289 incorrectly reject 9223372036854775807. */
5290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292 && LARGE_OFF_T % 2147483647 == 1)
5302 rm -f conftest.$ac_objext
5303 if { (ac_try="$ac_compile"
5305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5306 *) ac_try_echo
=$ac_try;;
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_compile") 2>conftest.er1
5311 grep -v '^ *+' conftest.er1
>conftest.err
5313 cat conftest.err
>&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && {
5316 test -z "$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5318 } && test -s conftest.
$ac_objext; then
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.
$ac_ext >&5
5327 rm -f core conftest.err conftest.
$ac_objext
5329 rm -f conftest.
$ac_objext
5330 if { (ac_try
="$ac_compile"
5332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5338 grep -v '^ *+' conftest.er1 >conftest.err
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_cv_sys_largefile_CC=' -n32'; break
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f core conftest.err conftest.$ac_objext
5358 rm -f conftest.$ac_ext
5361 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5362 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5363 if test "$ac_cv_sys_largefile_CC" != no; then
5364 CC=$CC$ac_cv_sys_largefile_CC
5367 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5368 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5369 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <sys/types.h>
5380 /* Check that off_t can represent 2**63 - 1 correctly.
5381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5382 since some C++ compilers masquerading as C compilers
5383 incorrectly reject 9223372036854775807. */
5384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5386 && LARGE_OFF_T % 2147483647 == 1)
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5400 *) ac_try_echo
=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5405 grep -v '^ *+' conftest.er1
>conftest.err
5407 cat conftest.err
>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.
$ac_objext; then
5413 ac_cv_sys_file_offset_bits
=no
; break
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.
$ac_ext >&5
5421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5422 cat >conftest.
$ac_ext <<_ACEOF
5425 cat confdefs.h
>>conftest.
$ac_ext
5426 cat >>conftest.
$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #define _FILE_OFFSET_BITS 64
5429 #include <sys/types.h>
5430 /* Check that off_t can represent 2**63 - 1 correctly.
5431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5432 since some C++ compilers masquerading as C compilers
5433 incorrectly reject 9223372036854775807. */
5434 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5436 && LARGE_OFF_T % 2147483647 == 1)
5446 rm -f conftest.
$ac_objext
5447 if { (ac_try
="$ac_compile"
5449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest.$ac_objext; then
5463 ac_cv_sys_file_offset_bits=64; break
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 ac_cv_sys_file_offset_bits=unknown
5476 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5477 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5478 case $ac_cv_sys_file_offset_bits in #(
5481 cat >>confdefs.h <<_ACEOF
5482 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5487 if test $ac_cv_sys_file_offset_bits = unknown; then
5488 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5489 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5490 if test "${ac_cv_sys_large_files+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 cat >conftest.$ac_ext <<_ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 /* Check that off_t can represent 2**63 - 1 correctly.
5502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5503 since some C++ compilers masquerading as C compilers
5504 incorrectly reject 9223372036854775807. */
5505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5507 && LARGE_OFF_T % 2147483647 == 1)
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5521 *) ac_try_echo
=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1
>conftest.err
5528 cat conftest.err
>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.
$ac_objext; then
5534 ac_cv_sys_large_files
=no
; break
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.
$ac_ext >&5
5542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5543 cat >conftest.
$ac_ext <<_ACEOF
5546 cat confdefs.h
>>conftest.
$ac_ext
5547 cat >>conftest.
$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 #define _LARGE_FILES 1
5550 #include <sys/types.h>
5551 /* Check that off_t can represent 2**63 - 1 correctly.
5552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5553 since some C++ compilers masquerading as C compilers
5554 incorrectly reject 9223372036854775807. */
5555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5557 && LARGE_OFF_T % 2147483647 == 1)
5567 rm -f conftest.
$ac_objext
5568 if { (ac_try
="$ac_compile"
5570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_sys_large_files=1; break
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_cv_sys_large_files=unknown
5597 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5598 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5599 case $ac_cv_sys_large_files in #(
5602 cat >>confdefs.h <<_ACEOF
5603 #define _LARGE_FILES $ac_cv_sys_large_files
5613 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5614 ### be located in either /usr/lib64 or /usr/lib.
5615 case "${canonical}" in
5616 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5617 if test -d /usr/lib64; then
5619 cat >>confdefs.h <<\_ACEOF
5620 #define HAVE_LIB64_DIR 1
5629 if test "${with_sound}" != "no"; then
5630 # Sound support for GNU/Linux and the free BSDs.
5631 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5632 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5633 if test "${ac_cv_header_stdc+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5659 *) ac_try_echo
=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1
>conftest.err
5666 cat conftest.err
>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.
$ac_objext; then
5672 ac_cv_header_stdc
=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.
$ac_ext >&5
5677 ac_cv_header_stdc
=no
5680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5682 if test $ac_cv_header_stdc = yes; then
5683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5684 cat >conftest.
$ac_ext <<_ACEOF
5687 cat confdefs.h
>>conftest.
$ac_ext
5688 cat >>conftest.
$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "memchr" >/dev
/null
2>&1; then
5697 ac_cv_header_stdc
=no
5703 if test $ac_cv_header_stdc = yes; then
5704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5705 cat >conftest.
$ac_ext <<_ACEOF
5708 cat confdefs.h
>>conftest.
$ac_ext
5709 cat >>conftest.
$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5715 $EGREP "free" >/dev
/null
2>&1; then
5718 ac_cv_header_stdc
=no
5724 if test $ac_cv_header_stdc = yes; then
5725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5726 if test "$cross_compiling" = yes; then
5729 cat >conftest.
$ac_ext <<_ACEOF
5732 cat confdefs.h
>>conftest.
$ac_ext
5733 cat >>conftest.
$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5737 #if ((' ' & 0x0FF) == 0x020)
5738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5741 # define ISLOWER(c) \
5742 (('a' <= (c) && (c) <= 'i') \
5743 || ('j' <= (c) && (c) <= 'r') \
5744 || ('s' <= (c) && (c) <= 'z'))
5745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5753 for (i = 0; i < 256; i++)
5754 if (XOR (islower (i), ISLOWER (i))
5755 || toupper (i) != TOUPPER (i))
5760 rm -f conftest
$ac_exeext
5761 if { (ac_try
="$ac_link"
5763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_link") 2>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5771 { (case "(($ac_try" in
5772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5773 *) ac_try_echo
=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_try") 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5782 echo "$as_me: program exited with status $ac_status" >&5
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5787 ac_cv_header_stdc
=no
5789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5795 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5796 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5797 if test $ac_cv_header_stdc = yes; then
5799 cat >>confdefs.h
<<\_ACEOF
5800 #define STDC_HEADERS 1
5805 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5815 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5816 inttypes.h stdint.h unistd.h
5818 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5821 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 cat >conftest.
$ac_ext <<_ACEOF
5827 cat confdefs.h
>>conftest.
$ac_ext
5828 cat >>conftest.
$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5832 #include <$ac_header>
5834 rm -f conftest.
$ac_objext
5835 if { (ac_try
="$ac_compile"
5837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 eval "$as_ac_Header=yes"
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 eval "$as_ac_Header=no"
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_res=`eval echo '${'$as_ac_Header'}'`
5862 { echo "$as_me:$LINENO: result: $ac_res" >&5
5863 echo "${ECHO_T}$ac_res" >&6; }
5864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5865 cat >>confdefs.h <<_ACEOF
5866 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5877 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5879 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_res=`eval echo '${'$as_ac_Header'}'`
5887 { echo "$as_me:$LINENO: result: $ac_res" >&5
5888 echo "${ECHO_T}$ac_res" >&6; }
5890 # Is the header compilable?
5891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5893 cat >conftest.$ac_ext <<_ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 $ac_includes_default
5900 #include <$ac_header>
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5906 *) ac_try_echo
=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.
$ac_objext; then
5919 ac_header_compiler
=yes
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_header_compiler
=no
5927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5929 echo "${ECHO_T}$ac_header_compiler" >&6; }
5931 # Is the header present?
5932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <$ac_header>
5942 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } >/dev/null && {
5955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5958 ac_header_preproc=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_header_preproc=no
5966 rm -f conftest.err conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5968 echo "${ECHO_T}$ac_header_preproc" >&6; }
5970 # So? What about this header?
5971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5977 ac_header_preproc=yes
5980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 eval "$as_ac_Header=\$ac_header_preproc"
6002 ac_res=`eval echo '${'$as_ac_Header'}'`
6003 { echo "$as_me:$LINENO: result: $ac_res" >&5
6004 echo "${ECHO_T}$ac_res" >&6; }
6007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6016 # Emulation library used on NetBSD.
6017 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6018 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6019 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 ac_check_lib_save_LIBS=$LIBS
6023 LIBS="-lossaudio $LIBS"
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6031 /* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
6041 return _oss_ioctl ();
6046 rm -f conftest.$ac_objext conftest$ac_exeext
6047 if { (ac_try="$ac_link"
6049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6050 *) ac_try_echo
=$ac_try;;
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_link") 2>conftest.er1
6055 grep -v '^ *+' conftest.er1
>conftest.err
6057 cat conftest.err
>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest
$ac_exeext &&
6063 $as_test_x conftest
$ac_exeext; then
6064 ac_cv_lib_ossaudio__oss_ioctl
=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.
$ac_ext >&5
6069 ac_cv_lib_ossaudio__oss_ioctl
=no
6072 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6073 conftest
$ac_exeext conftest.
$ac_ext
6074 LIBS
=$ac_check_lib_save_LIBS
6076 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6077 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6078 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6087 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6091 # Extract the first word of "pkg-config", so it can be a program name with args.
6092 set dummy pkg-config
; ac_word
=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir
=.
6108 for ac_exec_ext
in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6122 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6123 if test -n "$PKG_CONFIG"; then
6124 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6125 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6133 if test "$PKG_CONFIG" = "no" ; then
6136 PKG_CONFIG_MIN_VERSION
=0.9.0
6137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6138 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6139 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6141 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6142 { echo "$as_me:$LINENO: result: yes" >&5
6143 echo "${ECHO_T}yes" >&6; }
6146 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6147 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6148 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6149 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6150 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6152 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6153 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6154 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6155 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6156 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6158 { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6162 ## If we have a custom action on failure, don't print errors, but
6163 ## do set a variable so people can do so.
6164 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6176 if test $succeeded = yes; then
6182 if test $HAVE_ALSA = yes; then
6183 SAVE_CFLAGS
="$CFLAGS"
6184 SAVE_LDFLAGS
="$LDFLAGS"
6185 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6186 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6187 cat >conftest.
$ac_ext <<_ACEOF
6190 cat confdefs.h
>>conftest.
$ac_ext
6191 cat >>conftest.
$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <asoundlib.h>
6197 snd_lib_error_set_handler (0);
6202 rm -f conftest.
$ac_objext
6203 if { (ac_try
="$ac_compile"
6205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219 emacs_alsa_normal=yes
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 emacs_alsa_normal=no
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 if test "$emacs_alsa_normal" != yes; then
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <alsa/asoundlib.h>
6239 snd_lib_error_set_handler (0);
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6248 *) ac_try_echo
=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.
$ac_objext; then
6261 emacs_alsa_subdir
=yes
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.
$ac_ext >&5
6266 emacs_alsa_subdir
=no
6269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6270 if test "$emacs_alsa_subdir" != yes; then
6271 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6272 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6273 { (exit 1); exit 1; }; }
6275 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6278 CFLAGS
="$SAVE_CFLAGS"
6279 LDFLAGS
="$SAVE_LDFLAGS"
6280 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6281 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6283 cat >>confdefs.h
<<\_ACEOF
6316 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6317 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6318 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6319 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6322 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6323 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6326 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 ac_res
=`eval echo '${'$as_ac_Header'}'`
6330 { echo "$as_me:$LINENO: result: $ac_res" >&5
6331 echo "${ECHO_T}$ac_res" >&6; }
6333 # Is the header compilable?
6334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6336 cat >conftest.
$ac_ext <<_ACEOF
6339 cat confdefs.h
>>conftest.
$ac_ext
6340 cat >>conftest.
$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 $ac_includes_default
6343 #include <$ac_header>
6345 rm -f conftest.
$ac_objext
6346 if { (ac_try
="$ac_compile"
6348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compile") 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.$ac_objext; then
6362 ac_header_compiler=yes
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 ac_header_compiler=no
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6372 echo "${ECHO_T}$ac_header_compiler" >&6; }
6374 # Is the header present?
6375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6377 cat >conftest.$ac_ext <<_ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 #include <$ac_header>
6385 if { (ac_try="$ac_cpp conftest.$ac_ext"
6387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6388 *) ac_try_echo
=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1
>conftest.err
6395 cat conftest.err
>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } >/dev
/null
&& {
6398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6401 ac_header_preproc
=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.
$ac_ext >&5
6406 ac_header_preproc
=no
6409 rm -f conftest.err conftest.
$ac_ext
6410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6411 echo "${ECHO_T}$ac_header_preproc" >&6; }
6413 # So? What about this header?
6414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6420 ac_header_preproc
=yes
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6440 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 eval "$as_ac_Header=\$ac_header_preproc"
6445 ac_res
=`eval echo '${'$as_ac_Header'}'`
6446 { echo "$as_me:$LINENO: result: $ac_res" >&5
6447 echo "${ECHO_T}$ac_res" >&6; }
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h
<<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6460 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6461 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6462 cat >conftest.
$ac_ext <<_ACEOF
6465 cat confdefs.h
>>conftest.
$ac_ext
6466 cat >>conftest.
$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <sys/personality.h>
6472 personality (PER_LINUX32)
6477 rm -f conftest.
$ac_objext
6478 if { (ac_try
="$ac_compile"
6480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1 >conftest.err
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest.$ac_objext; then
6494 emacs_cv_personality_linux32=yes
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 emacs_cv_personality_linux32=no
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6504 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6506 if test $emacs_cv_personality_linux32 = yes; then
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_PERSONALITY_LINUX32 1
6515 for ac_header in term.h
6517 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 #include <$ac_header>
6531 if { (ac_try="$ac_cpp conftest.$ac_ext"
6533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6534 *) ac_try_echo
=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6539 grep -v '^ *+' conftest.er1
>conftest.err
6541 cat conftest.err
>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } >/dev
/null
&& {
6544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6547 eval "$as_ac_Header=yes"
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.
$ac_ext >&5
6552 eval "$as_ac_Header=no"
6555 rm -f conftest.err conftest.
$ac_ext
6557 ac_res
=`eval echo '${'$as_ac_Header'}'`
6558 { echo "$as_me:$LINENO: result: $ac_res" >&5
6559 echo "${ECHO_T}$ac_res" >&6; }
6560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6561 cat >>confdefs.h
<<_ACEOF
6562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6570 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6571 if test "${ac_cv_header_stdc+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 cat >conftest.
$ac_ext <<_ACEOF
6577 cat confdefs.h
>>conftest.
$ac_ext
6578 cat >>conftest.
$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6593 rm -f conftest.
$ac_objext
6594 if { (ac_try
="$ac_compile"
6596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_compile") 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest.$ac_objext; then
6610 ac_cv_header_stdc=yes
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_cv_header_stdc=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 if test $ac_cv_header_stdc = yes; then
6621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6622 cat >conftest.$ac_ext <<_ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6632 $EGREP "memchr" >/dev/null 2>&1; then
6635 ac_cv_header_stdc=no
6641 if test $ac_cv_header_stdc = yes; then
6642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6643 cat >conftest.$ac_ext <<_ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6653 $EGREP "free" >/dev/null 2>&1; then
6656 ac_cv_header_stdc=no
6662 if test $ac_cv_header_stdc = yes; then
6663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6664 if test "$cross_compiling" = yes; then
6667 cat >conftest.$ac_ext <<_ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6675 #if ((' ' & 0x0FF) == 0x020)
6676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6679 # define ISLOWER(c) \
6680 (('a' <= (c) && (c) <= 'i') \
6681 || ('j' <= (c) && (c) <= 'r') \
6682 || ('s' <= (c) && (c) <= 'z'))
6683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6691 for (i = 0; i < 256; i++)
6692 if (XOR (islower (i), ISLOWER (i))
6693 || toupper (i) != TOUPPER (i))
6698 rm -f conftest$ac_exeext
6699 if { (ac_try="$ac_link"
6701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6702 *) ac_try_echo
=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_link") 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6709 { (case "(($ac_try" in
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_try") 2>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6720 echo "$as_me: program exited with status $ac_status" >&5
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6725 ac_cv_header_stdc=no
6727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6733 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6734 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6735 if test $ac_cv_header_stdc = yes; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define STDC_HEADERS 1
6743 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6744 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6745 if test "${ac_cv_header_time+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 #include <sys/types.h>
6755 #include <sys/time.h>
6761 if ((struct tm *) 0)
6767 rm -f conftest.$ac_objext
6768 if { (ac_try="$ac_compile"
6770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6771 *) ac_try_echo
=$ac_try;;
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6776 grep -v '^ *+' conftest.er1
>conftest.err
6778 cat conftest.err
>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest.
$ac_objext; then
6784 ac_cv_header_time
=yes
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.
$ac_ext >&5
6789 ac_cv_header_time
=no
6792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6794 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6795 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6796 if test $ac_cv_header_time = yes; then
6798 cat >>confdefs.h
<<\_ACEOF
6799 #define TIME_WITH_SYS_TIME 1
6804 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6805 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6806 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 cat >conftest.
$ac_ext <<_ACEOF
6812 cat confdefs.h
>>conftest.
$ac_ext
6813 cat >>conftest.
$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 $ac_includes_default
6827 rm -f conftest.
$ac_objext
6828 if { (ac_try
="$ac_compile"
6830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6836 grep -v '^ *+' conftest.er1 >conftest.err
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } && {
6841 test -z "$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 } && test -s conftest.$ac_objext; then
6844 ac_cv_have_decl_sys_siglist=yes
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_cv_have_decl_sys_siglist=no
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6855 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6856 if test $ac_cv_have_decl_sys_siglist = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_DECL_SYS_SIGLIST 1
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_DECL_SYS_SIGLIST 0
6872 if test $ac_cv_have_decl_sys_siglist != yes; then
6873 # For Tru64, at least:
6874 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6875 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6876 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6889 #ifndef __sys_siglist
6890 (void) __sys_siglist;
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6901 *) ac_try_echo
=$ac_try;;
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1
>conftest.err
6908 cat conftest.err
>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.
$ac_objext; then
6914 ac_cv_have_decl___sys_siglist
=yes
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.
$ac_ext >&5
6919 ac_cv_have_decl___sys_siglist
=no
6922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6924 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6925 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6926 if test $ac_cv_have_decl___sys_siglist = yes; then
6928 cat >>confdefs.h
<<_ACEOF
6929 #define HAVE_DECL___SYS_SIGLIST 1
6934 cat >>confdefs.h
<<_ACEOF
6935 #define HAVE_DECL___SYS_SIGLIST 0
6942 if test $ac_cv_have_decl___sys_siglist = yes; then
6944 cat >>confdefs.h
<<\_ACEOF
6945 #define sys_siglist __sys_siglist
6950 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6951 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6952 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 cat >conftest.
$ac_ext <<_ACEOF
6958 cat confdefs.h
>>conftest.
$ac_ext
6959 cat >>conftest.
$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 #include <sys/types.h>
6962 #include <sys/wait.h>
6964 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6967 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6975 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6980 rm -f conftest.
$ac_objext
6981 if { (ac_try
="$ac_compile"
6983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_compile") 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
6997 ac_cv_header_sys_wait_h=yes
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_cv_header_sys_wait_h=no
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7008 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7009 if test $ac_cv_header_sys_wait_h = yes; then
7011 cat >>confdefs.h <<\_ACEOF
7012 #define HAVE_SYS_WAIT_H 1
7018 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7019 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7020 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 cat >conftest.$ac_ext <<_ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #ifdef TIME_WITH_SYS_TIME
7030 #include <sys/time.h>
7033 #ifdef HAVE_SYS_TIME_H
7034 #include <sys/time.h>
7045 static struct utimbuf x; x.actime = x.modtime;
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7054 *) ac_try_echo
=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
7059 grep -v '^ *+' conftest.er1
>conftest.err
7061 cat conftest.err
>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.
$ac_objext; then
7067 emacs_cv_struct_utimbuf
=yes
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.
$ac_ext >&5
7072 emacs_cv_struct_utimbuf
=no
7075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7077 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7078 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7079 if test $emacs_cv_struct_utimbuf = yes; then
7081 cat >>confdefs.h
<<\_ACEOF
7082 #define HAVE_STRUCT_UTIMBUF 1
7087 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7088 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7089 if test "${ac_cv_type_signal+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 cat >conftest.
$ac_ext <<_ACEOF
7095 cat confdefs.h
>>conftest.
$ac_ext
7096 cat >>conftest.
$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <sys/types.h>
7104 return *(signal (0, 0)) (0) == 1;
7109 rm -f conftest.
$ac_objext
7110 if { (ac_try
="$ac_compile"
7112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7118 grep -v '^ *+' conftest.er1 >conftest.err
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 ac_cv_type_signal=int
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_type_signal=void
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7137 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7139 cat >>confdefs.h <<_ACEOF
7140 #define RETSIGTYPE $ac_cv_type_signal
7145 { echo "$as_me:$LINENO: checking for speed_t" >&5
7146 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7147 if test "${emacs_cv_speed_t+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <termios.h>
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7169 *) ac_try_echo
=$ac_try;;
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.
$ac_objext; then
7182 emacs_cv_speed_t
=yes
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.
$ac_ext >&5
7190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7192 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7193 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7194 if test $emacs_cv_speed_t = yes; then
7196 cat >>confdefs.h
<<\_ACEOF
7197 #define HAVE_SPEED_T 1
7202 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7203 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7204 if test "${emacs_cv_struct_timeval+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 cat >conftest.
$ac_ext <<_ACEOF
7210 cat confdefs.h
>>conftest.
$ac_ext
7211 cat >>conftest.
$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #ifdef TIME_WITH_SYS_TIME
7214 #include <sys/time.h>
7217 #ifdef HAVE_SYS_TIME_H
7218 #include <sys/time.h>
7226 static struct timeval x; x.tv_sec = x.tv_usec;
7231 rm -f conftest.
$ac_objext
7232 if { (ac_try
="$ac_compile"
7234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7240 grep -v '^ *+' conftest.er1 >conftest.err
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.$ac_objext; then
7248 emacs_cv_struct_timeval=yes
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7253 emacs_cv_struct_timeval=no
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7259 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7260 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7261 if test $emacs_cv_struct_timeval = yes; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_TIMEVAL 1
7269 { echo "$as_me:$LINENO: checking for struct exception" >&5
7270 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7271 if test "${emacs_cv_struct_exception+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7284 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7293 *) ac_try_echo
=$ac_try;;
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7298 grep -v '^ *+' conftest.er1
>conftest.err
7300 cat conftest.err
>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.
$ac_objext; then
7306 emacs_cv_struct_exception
=yes
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.
$ac_ext >&5
7311 emacs_cv_struct_exception
=no
7314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7316 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7317 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7318 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7319 if test $emacs_cv_struct_exception != yes; then
7321 cat >>confdefs.h
<<\_ACEOF
7322 #define NO_MATHERR 1
7328 for ac_header
in sys
/socket.h
7330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7334 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 ac_res
=`eval echo '${'$as_ac_Header'}'`
7338 { echo "$as_me:$LINENO: result: $ac_res" >&5
7339 echo "${ECHO_T}$ac_res" >&6; }
7341 # Is the header compilable?
7342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7344 cat >conftest.
$ac_ext <<_ACEOF
7347 cat confdefs.h
>>conftest.
$ac_ext
7348 cat >>conftest.
$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 $ac_includes_default
7351 #include <$ac_header>
7353 rm -f conftest.
$ac_objext
7354 if { (ac_try
="$ac_compile"
7356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7362 grep -v '^ *+' conftest.er1 >conftest.err
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 ac_header_compiler=yes
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_header_compiler=no
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7380 echo "${ECHO_T}$ac_header_compiler" >&6; }
7382 # Is the header present?
7383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7385 cat >conftest.$ac_ext <<_ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 #include <$ac_header>
7393 if { (ac_try="$ac_cpp conftest.$ac_ext"
7395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7396 *) ac_try_echo
=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1
>conftest.err
7403 cat conftest.err
>&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } >/dev
/null
&& {
7406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7409 ac_header_preproc
=yes
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.
$ac_ext >&5
7414 ac_header_preproc
=no
7417 rm -f conftest.err conftest.
$ac_ext
7418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7419 echo "${ECHO_T}$ac_header_preproc" >&6; }
7421 # So? What about this header?
7422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7428 ac_header_preproc
=yes
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7448 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 eval "$as_ac_Header=\$ac_header_preproc"
7453 ac_res
=`eval echo '${'$as_ac_Header'}'`
7454 { echo "$as_me:$LINENO: result: $ac_res" >&5
7455 echo "${ECHO_T}$ac_res" >&6; }
7458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7459 cat >>confdefs.h
<<_ACEOF
7460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 for ac_header
in net
/if.h
7470 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7473 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 cat >conftest.
$ac_ext <<_ACEOF
7479 cat confdefs.h
>>conftest.
$ac_ext
7480 cat >>conftest.
$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 $ac_includes_default
7483 #if HAVE_SYS_SOCKET_H
7484 #include <sys/socket.h>
7487 #include <$ac_header>
7489 rm -f conftest.
$ac_objext
7490 if { (ac_try
="$ac_compile"
7492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_compile") 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest.$ac_objext; then
7506 eval "$as_ac_Header=yes"
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 eval "$as_ac_Header=no"
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 ac_res=`eval echo '${'$as_ac_Header'}'`
7517 { echo "$as_me:$LINENO: result: $ac_res" >&5
7518 echo "${ECHO_T}$ac_res" >&6; }
7519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7520 cat >>confdefs.h <<_ACEOF
7521 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7529 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7530 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7531 if test "${ac_cv_struct_tm+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 cat >conftest.$ac_ext <<_ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 #include <sys/types.h>
7547 int *p = &tm.tm_sec;
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7557 *) ac_try_echo
=$ac_try;;
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7562 grep -v '^ *+' conftest.er1
>conftest.err
7564 cat conftest.err
>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.
$ac_objext; then
7570 ac_cv_struct_tm
=time.h
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.
$ac_ext >&5
7575 ac_cv_struct_tm
=sys
/time.h
7578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7581 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7582 if test $ac_cv_struct_tm = sys
/time.h
; then
7584 cat >>confdefs.h
<<\_ACEOF
7585 #define TM_IN_SYS_TIME 1
7590 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.
$ac_ext <<_ACEOF
7598 cat confdefs.h
>>conftest.
$ac_ext
7599 cat >>conftest.
$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <$ac_cv_struct_tm>
7608 static struct tm ac_aggr;
7609 if (ac_aggr.tm_zone)
7615 rm -f conftest.
$ac_objext
7616 if { (ac_try
="$ac_compile"
7618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 ac_cv_member_struct_tm_tm_zone=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <sys/types.h>
7644 #include <$ac_cv_struct_tm>
7650 static struct tm ac_aggr;
7651 if (sizeof ac_aggr.tm_zone)
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7661 *) ac_try_echo
=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1
>conftest.err
7668 cat conftest.err
>&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.
$ac_objext; then
7674 ac_cv_member_struct_tm_tm_zone
=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.
$ac_ext >&5
7679 ac_cv_member_struct_tm_tm_zone
=no
7682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7687 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7688 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7689 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7691 cat >>confdefs.h
<<_ACEOF
7692 #define HAVE_STRUCT_TM_TM_ZONE 1
7698 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7700 cat >>confdefs.h
<<\_ACEOF
7701 #define HAVE_TM_ZONE 1
7705 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7706 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7707 if test "${ac_cv_have_decl_tzname+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 cat >conftest.
$ac_ext <<_ACEOF
7713 cat confdefs.h
>>conftest.
$ac_ext
7714 cat >>conftest.
$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7729 rm -f conftest.
$ac_objext
7730 if { (ac_try
="$ac_compile"
7732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 ac_cv_have_decl_tzname=yes
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_have_decl_tzname=no
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7757 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7758 if test $ac_cv_have_decl_tzname = yes; then
7760 cat >>confdefs.h <<_ACEOF
7761 #define HAVE_DECL_TZNAME 1
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_DECL_TZNAME 0
7774 { echo "$as_me:$LINENO: checking for tzname" >&5
7775 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7776 if test "${ac_cv_var_tzname+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7786 #if !HAVE_DECL_TZNAME
7787 extern char *tzname[];
7793 return tzname[0][0];
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7802 *) ac_try_echo
=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_link") 2>conftest.er1
7807 grep -v '^ *+' conftest.er1
>conftest.err
7809 cat conftest.err
>&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest
$ac_exeext &&
7815 $as_test_x conftest
$ac_exeext; then
7816 ac_cv_var_tzname
=yes
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.
$ac_ext >&5
7824 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7825 conftest
$ac_exeext conftest.
$ac_ext
7827 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7828 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7829 if test $ac_cv_var_tzname = yes; then
7831 cat >>confdefs.h
<<\_ACEOF
7832 #define HAVE_TZNAME 1
7838 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7839 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7840 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 cat >conftest.
$ac_ext <<_ACEOF
7846 cat confdefs.h
>>conftest.
$ac_ext
7847 cat >>conftest.
$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7854 static struct tm ac_aggr;
7855 if (ac_aggr.tm_gmtoff)
7861 rm -f conftest.
$ac_objext
7862 if { (ac_try
="$ac_compile"
7864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_compile") 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } && {
7875 test -z "$ac_c_werror_flag" ||
7876 test ! -s conftest.err
7877 } && test -s conftest.$ac_objext; then
7878 ac_cv_member_struct_tm_tm_gmtoff=yes
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 cat >conftest.$ac_ext <<_ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7894 static struct tm ac_aggr;
7895 if (sizeof ac_aggr.tm_gmtoff)
7901 rm -f conftest.$ac_objext
7902 if { (ac_try="$ac_compile"
7904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7905 *) ac_try_echo
=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1
>conftest.err
7912 cat conftest.err
>&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.
$ac_objext; then
7918 ac_cv_member_struct_tm_tm_gmtoff
=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.
$ac_ext >&5
7923 ac_cv_member_struct_tm_tm_gmtoff
=no
7926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7933 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7935 cat >>confdefs.h
<<\_ACEOF
7936 #define HAVE_TM_GMTOFF 1
7941 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7942 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7943 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 cat >conftest.
$ac_ext <<_ACEOF
7949 cat confdefs.h
>>conftest.
$ac_ext
7950 cat >>conftest.
$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 #if HAVE_SYS_SOCKET_H
7954 #include <sys/socket.h>
7963 static struct ifreq ac_aggr;
7964 if (ac_aggr.ifr_flags)
7970 rm -f conftest.
$ac_objext
7971 if { (ac_try
="$ac_compile"
7973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_member_struct_ifreq_ifr_flags=yes
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 #if HAVE_SYS_SOCKET_H
8000 #include <sys/socket.h>
8009 static struct ifreq ac_aggr;
8010 if (sizeof ac_aggr.ifr_flags)
8016 rm -f conftest.$ac_objext
8017 if { (ac_try="$ac_compile"
8019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8020 *) ac_try_echo
=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1
>conftest.err
8027 cat conftest.err
>&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.
$ac_objext; then
8033 ac_cv_member_struct_ifreq_ifr_flags
=yes
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.
$ac_ext >&5
8038 ac_cv_member_struct_ifreq_ifr_flags
=no
8041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8046 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8047 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8048 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8050 cat >>confdefs.h
<<_ACEOF
8051 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8056 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8057 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8058 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.
$ac_ext <<_ACEOF
8064 cat confdefs.h
>>conftest.
$ac_ext
8065 cat >>conftest.
$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 $ac_includes_default
8068 #if HAVE_SYS_SOCKET_H
8069 #include <sys/socket.h>
8078 static struct ifreq ac_aggr;
8079 if (ac_aggr.ifr_hwaddr)
8085 rm -f conftest.
$ac_objext
8086 if { (ac_try
="$ac_compile"
8088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_compile") 2>conftest.er1
8094 grep -v '^ *+' conftest.er1 >conftest.err
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest.$ac_objext; then
8102 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 $ac_includes_default
8114 #if HAVE_SYS_SOCKET_H
8115 #include <sys/socket.h>
8124 static struct ifreq ac_aggr;
8125 if (sizeof ac_aggr.ifr_hwaddr)
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_ifreq_ifr_hwaddr
=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.
$ac_ext >&5
8153 ac_cv_member_struct_ifreq_ifr_hwaddr
=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_ifreq_ifr_hwaddr" >&5
8162 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8163 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8165 cat >>confdefs.h
<<_ACEOF
8166 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8171 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8172 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8173 if test "${ac_cv_member_struct_ifreq_ifr_netmask+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_netmask)
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_netmask=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_netmask)
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_netmask
=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8268 ac_cv_member_struct_ifreq_ifr_netmask
=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_netmask" >&5
8277 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8278 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8280 cat >>confdefs.h
<<_ACEOF
8281 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8286 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8287 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8288 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+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_broadaddr)
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_broadaddr=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_broadaddr)
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_broadaddr
=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.
$ac_ext >&5
8383 ac_cv_member_struct_ifreq_ifr_broadaddr
=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_broadaddr" >&5
8392 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8393 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8395 cat >>confdefs.h
<<_ACEOF
8396 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8401 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8402 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8403 if test "${ac_cv_member_struct_ifreq_ifr_addr+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_addr)
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_addr=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_addr)
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_addr
=yes
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.
$ac_ext >&5
8498 ac_cv_member_struct_ifreq_ifr_addr
=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_addr" >&5
8507 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8508 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8510 cat >>confdefs.h
<<_ACEOF
8511 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8519 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8520 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8521 if test "$ac_cv_prog_cc_c89" != no
; then
8522 { echo "$as_me:$LINENO: result: yes" >&5
8523 echo "${ECHO_T}yes" >&6; }
8525 cat >>confdefs.h
<<\_ACEOF
8526 #define PROTOTYPES 1
8530 cat >>confdefs.h
<<\_ACEOF
8531 #define __PROTOTYPES 1
8535 { echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6; }
8539 { echo "$as_me:$LINENO: checking for working volatile" >&5
8540 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8541 if test "${ac_cv_c_volatile+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 cat >conftest.
$ac_ext <<_ACEOF
8547 cat confdefs.h
>>conftest.
$ac_ext
8548 cat >>conftest.
$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8556 int * volatile y = (int *) 0;
8562 rm -f conftest.
$ac_objext
8563 if { (ac_try
="$ac_compile"
8565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.$ac_objext; then
8579 ac_cv_c_volatile=yes
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8590 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8591 if test $ac_cv_c_volatile = no; then
8593 cat >>confdefs.h <<\_ACEOF
8599 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8600 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8601 if test "${ac_cv_c_const+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8614 /* FIXME: Include the comments suggested by Paul. */
8616 /* Ultrix mips cc rejects this. */
8617 typedef int charset[2];
8619 /* SunOS 4.1.1 cc rejects this. */
8620 char const *const *pcpcc;
8622 /* NEC SVR4.0.2 mips cc rejects this. */
8623 struct point {int x, y;};
8624 static struct point const zero = {0,0};
8625 /* AIX XL C 1.02.0.0 rejects this.
8626 It does not let you subtract one const X* pointer from another in
8627 an arm of an if-expression whose if-part is not a constant
8629 const char *g = "string";
8630 pcpcc = &g + (g ? g-g : 0);
8631 /* HPUX 7.0 cc rejects these. */
8633 ppc = (char**) pcpcc;
8634 pcpcc = (char const *const *) ppc;
8635 { /* SCO 3.2v4 cc rejects this. */
8637 char const *s = 0 ? (char *) 0 : (char const *) 0;
8642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8644 const int *foo = &x[0];
8647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8648 typedef const int *iptr;
8652 { /* AIX XL C 1.02.0.0 rejects this saying
8653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8654 struct s { int j; const int *ap[3]; };
8655 struct s *b; b->j = 5;
8657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8661 return !cs[0] && !zero.x;
8668 rm -f conftest.$ac_objext
8669 if { (ac_try="$ac_compile"
8671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8672 *) ac_try_echo
=$ac_try;;
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_compile") 2>conftest.er1
8677 grep -v '^ *+' conftest.er1
>conftest.err
8679 cat conftest.err
>&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && {
8682 test -z "$ac_c_werror_flag" ||
8683 test ! -s conftest.err
8684 } && test -s conftest.
$ac_objext; then
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.
$ac_ext >&5
8693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8696 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8697 if test $ac_cv_c_const = no
; then
8699 cat >>confdefs.h
<<\_ACEOF
8705 { echo "$as_me:$LINENO: checking for void * support" >&5
8706 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8707 if test "${emacs_cv_void_star+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 cat >conftest.
$ac_ext <<_ACEOF
8713 cat confdefs.h
>>conftest.
$ac_ext
8714 cat >>conftest.
$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8725 rm -f conftest.
$ac_objext
8726 if { (ac_try
="$ac_compile"
8728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 emacs_cv_void_star=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 emacs_cv_void_star=no
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8753 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8754 if test $emacs_cv_void_star = yes; then
8755 cat >>confdefs.h <<\_ACEOF
8756 #define POINTER_TYPE void
8760 cat >>confdefs.h <<\_ACEOF
8761 #define POINTER_TYPE char
8770 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8771 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8772 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8773 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 cat >conftest.make <<\_ACEOF
8779 @echo '@@@%%%=$(MAKE)=@@@%%%'
8781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8782 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8784 eval ac_cv_prog_make_${ac_make}_set=yes;;
8786 eval ac_cv_prog_make_${ac_make}_set=no;;
8790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8791 { echo "$as_me:$LINENO: result: yes" >&5
8792 echo "${ECHO_T}yes" >&6; }
8795 { echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6; }
8797 SET_MAKE="MAKE=${MAKE-make}"
8801 { echo "$as_me:$LINENO: checking for long file names" >&5
8802 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8803 if test "${ac_cv_sys_long_file_names+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 ac_cv_sys_long_file_names=yes
8807 # Test for long file names in all the places we know might matter:
8808 # . the current directory, where building will happen
8809 # $prefix/lib where we will be installing things
8810 # $exec_prefix/lib likewise
8811 # $TMPDIR if set, where it might want to write temporary files
8812 # /tmp where it might want to write temporary files
8815 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8816 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8817 # in the usual case where exec_prefix is '${prefix}'.
8819 . | /* | ?:[\\/]*) ;; #(
8822 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8823 ac_xdir=$ac_dir/cf$$
8824 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8825 ac_tf1=$ac_xdir/conftest9012345
8826 ac_tf2=$ac_xdir/conftest9012346
8827 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8828 ac_cv_sys_long_file_names=no
8829 rm -f -r "$ac_xdir" 2>/dev/null
8830 test $ac_cv_sys_long_file_names = no && break
8833 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8834 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8835 if test $ac_cv_sys_long_file_names = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define HAVE_LONG_FILE_NAMES 1
8844 #### Choose a window system.
8846 { echo "$as_me:$LINENO: checking for X" >&5
8847 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8850 # Check whether --with-x was given.
8851 if test "${with_x+set}" = set; then
8855 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8856 if test "x$with_x" = xno; then
8857 # The user explicitly disabled X.
8860 case $x_includes,$x_libraries in #(
8861 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8862 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8863 { (exit 1); exit 1; }; };; #(
8864 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 # One or both of the vars are not set, and there is no cached value.
8868 ac_x_includes=no ac_x_libraries=no
8869 rm -f -r conftest.dir
8870 if mkdir conftest.dir; then
8872 cat >Imakefile <<'_ACEOF'
8874 @echo incroot='${INCROOT}'
8876 @echo usrlibdir='${USRLIBDIR}'
8878 @echo libdir='${LIBDIR}'
8880 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8882 for ac_var in incroot usrlibdir libdir; do
8883 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8885 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8886 for ac_extension in a so sl; do
8887 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8888 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8889 ac_im_usrlibdir=$ac_im_libdir; break
8892 # Screen out bogus values from the imake configuration. They are
8893 # bogus both because they are the default anyway, and because
8894 # using them would break gcc on systems where it needs fixed includes.
8895 case $ac_im_incroot in
8896 /usr/include) ac_x_includes= ;;
8897 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8899 case $ac_im_usrlibdir in
8901 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8905 rm -f -r conftest.dir
8908 # Standard set of common directories for X headers.
8909 # Check X11 before X11Rn because it is often a symlink to the current release.
8921 /usr/local/X11/include
8922 /usr/local/X11R6/include
8923 /usr/local/X11R5/include
8924 /usr/local/X11R4/include
8926 /usr/local/include/X11
8927 /usr/local/include/X11R6
8928 /usr/local/include/X11R5
8929 /usr/local/include/X11R4
8933 /usr/XFree86/include/X11
8937 /usr/unsupported/include
8939 /usr/local/x11r5/include
8940 /usr/lpp/Xamples/include
8942 /usr/openwin/include
8943 /usr/openwin/share/include'
8945 if test "$ac_x_includes" = no; then
8946 # Guess where to find include files, by looking for Xlib.h.
8947 # First, try using that file with no special directory specified.
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #include <X11/Xlib.h>
8956 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
8969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8972 # We can compile using X headers with no special include directory.
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.
$ac_ext >&5
8978 for ac_dir
in $ac_x_header_dirs; do
8979 if test -r "$ac_dir/X11/Xlib.h"; then
8980 ac_x_includes
=$ac_dir
8986 rm -f conftest.err conftest.
$ac_ext
8987 fi # $ac_x_includes = no
8989 if test "$ac_x_libraries" = no
; then
8990 # Check for the libraries.
8991 # See if we find them without any special options.
8992 # Don't add to $LIBS permanently.
8995 cat >conftest.
$ac_ext <<_ACEOF
8998 cat confdefs.h
>>conftest.
$ac_ext
8999 cat >>conftest.
$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 #include <X11/Xlib.h>
9010 rm -f conftest.
$ac_objext conftest
$ac_exeext
9011 if { (ac_try
="$ac_link"
9013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9014 *) ac_try_echo=$ac_try;;
9016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9017 (eval "$ac_link") 2>conftest.er1
9019 grep -v '^ *+' conftest.er1 >conftest.err
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } && {
9024 test -z "$ac_c_werror_flag" ||
9025 test ! -s conftest.err
9026 } && test -s conftest$ac_exeext &&
9027 $as_test_x conftest$ac_exeext; then
9029 # We can link X programs with no special library path.
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9036 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9038 # Don't even attempt the hair of trying to link an X program!
9039 for ac_extension in a so sl; do
9040 if test -r "$ac_dir/libX11.$ac_extension"; then
9041 ac_x_libraries=$ac_dir
9048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
9050 fi # $ac_x_libraries = no
9052 case $ac_x_includes,$ac_x_libraries in #(
9054 # Didn't find X, or a directory has "'" in its name.
9055 ac_cv_have_x="have_x=no";; #(
9057 # Record where we found X for the cache.
9058 ac_cv_have_x="have_x=yes\
9059 ac_x_includes='$ac_x_includes'\
9060 ac_x_libraries='$ac_x_libraries'"
9066 eval "$ac_cv_have_x"
9069 if test "$have_x" != yes; then
9070 { echo "$as_me:$LINENO: result: $have_x" >&5
9071 echo "${ECHO_T}$have_x" >&6; }
9074 # If each of the values was on the command line, it overrides each guess.
9075 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9076 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9077 # Update the cache value to reflect the command line values.
9078 ac_cv_have_x="have_x=yes\
9079 ac_x_includes='$x_includes'\
9080 ac_x_libraries='$x_libraries'"
9081 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9082 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9085 if test "$no_x" = yes; then
9091 if test "${x_libraries}" != NONE; then
9092 if test -n "${x_libraries}"; then
9093 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9094 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9096 x_default_search_path=""
9097 x_search_path=${x_libraries}
9098 if test -z "${x_search_path}"; then
9099 x_search_path=/usr/lib
9101 for x_library in `echo ${x_search_path}: | \
9102 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9104 ${x_library}/X11/%L/%T/%N%C%S:\
9105 ${x_library}/X11/%l/%T/%N%C%S:\
9106 ${x_library}/X11/%T/%N%C%S:\
9107 ${x_library}/X11/%L/%T/%N%S:\
9108 ${x_library}/X11/%l/%T/%N%S:\
9109 ${x_library}/X11/%T/%N%S"
9110 if test x"${x_default_search_path}" = x; then
9111 x_default_search_path=${x_search_path}
9113 x_default_search_path="${x_search_path}:${x_default_search_path}"
9117 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9118 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9121 if test x"${x_includes}" = x; then
9122 bitmapdir=/usr/include/X11/bitmaps
9124 # accumulate include directories that have X11 bitmap subdirectories
9126 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9127 if test -d "${bmd}/X11/bitmaps"; then
9128 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9130 if test -d "${bmd}/bitmaps"; then
9131 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9134 if test ${bmd_acc} != "dummyval"; then
9135 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9140 if test "${with_carbon}" != no; then
9141 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9142 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9143 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9144 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9148 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9150 # Is the header compilable?
9151 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9152 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 #include <Carbon/Carbon.h>
9162 rm -f conftest.$ac_objext
9163 if { (ac_try="$ac_compile"
9165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9166 *) ac_try_echo
=$ac_try;;
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_compile") 2>conftest.er1
9171 grep -v '^ *+' conftest.er1
>conftest.err
9173 cat conftest.err
>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.
$ac_objext; then
9179 ac_header_compiler
=yes
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.
$ac_ext >&5
9184 ac_header_compiler
=no
9187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9189 echo "${ECHO_T}$ac_header_compiler" >&6; }
9191 # Is the header present?
9192 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9193 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9194 cat >conftest.
$ac_ext <<_ACEOF
9197 cat confdefs.h
>>conftest.
$ac_ext
9198 cat >>conftest.
$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 #include <Carbon/Carbon.h>
9202 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9210 grep -v '^ *+' conftest.er1 >conftest.err
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } >/dev/null && {
9215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9218 ac_header_preproc=yes
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_header_preproc=no
9226 rm -f conftest.err conftest.$ac_ext
9227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9228 echo "${ECHO_T}$ac_header_preproc" >&6; }
9230 # So? What about this header?
9231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9233 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9234 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9236 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9237 ac_header_preproc=yes
9240 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9241 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9243 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9245 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9247 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9249 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9251 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9255 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9256 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9257 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9262 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9263 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9266 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9272 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9273 if test "${with_carbon+set}" != set \
9274 && test "${carbon_appdir_x+set}" != set; then
9275 for var in with_x with_x_toolkit with_gtk with_xim \
9276 with_xpm with_jpeg with_tiff with_gif with_png; do
9277 if eval test \"\${$var+set}\" = set; then
9284 if test "${HAVE_CARBON}" = yes; then
9288 case "${window_system}" in
9292 case "${with_x_toolkit}" in
9293 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9294 motif ) USE_X_TOOLKIT=MOTIF ;;
9296 USE_X_TOOLKIT=none ;;
9297 no ) USE_X_TOOLKIT=none ;;
9299 if test x"$with_gtk" = xyes; then
9314 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9315 # Extract the first word of "X", so it can be a program name with args.
9316 set dummy X; ac_word=$2
9317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9319 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 if test -n "$HAVE_XSERVER"; then
9323 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_prog_HAVE_XSERVER="true"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9343 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9344 if test -n "$HAVE_XSERVER"; then
9345 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9346 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9348 { echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6; }
9353 if test "$HAVE_XSERVER" = true ||
9354 test -n "$DISPLAY" ||
9355 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9356 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9357 were found. You should install the relevant development files for X
9358 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9359 sure you have development files for image handling, i.e.
9360 tiff, gif, jpeg, png and xpm.
9361 If you are sure you want Emacs compiled without X window support, pass
9364 echo "$as_me: error: You seem to be running X, but no X development libraries
9365 were found. You should install the relevant development files for X
9366 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9367 sure you have development files for image handling, i.e.
9368 tiff, gif, jpeg, png and xpm.
9369 If you are sure you want Emacs compiled without X window support, pass
9371 to configure." >&2;}
9372 { (exit 1); exit 1; }; }
9376 ### If we're using X11, we should use the X menu package.
9379 yes ) HAVE_MENUS=yes ;;
9382 ### Compute the unexec source name from the object name.
9383 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9385 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9386 # Assume not, until told otherwise.
9389 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9390 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9391 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define malloc_get_state innocuous_malloc_get_state
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char malloc_get_state (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9410 # include <limits.h>
9412 # include <assert.h>
9415 #undef malloc_get_state
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9423 char malloc_get_state ();
9424 /* The GNU C library defines this for functions which it implements
9425 to always fail with ENOSYS. Some functions are actually named
9426 something starting with __ and the normal name is an alias. */
9427 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9434 return malloc_get_state ();
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (ac_try="$ac_link"
9442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9443 *) ac_try_echo
=$ac_try;;
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446 (eval "$ac_link") 2>conftest.er1
9448 grep -v '^ *+' conftest.er1
>conftest.err
9450 cat conftest.err
>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && {
9453 test -z "$ac_c_werror_flag" ||
9454 test ! -s conftest.err
9455 } && test -s conftest
$ac_exeext &&
9456 $as_test_x conftest
$ac_exeext; then
9457 ac_cv_func_malloc_get_state
=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.
$ac_ext >&5
9462 ac_cv_func_malloc_get_state
=no
9465 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9466 conftest
$ac_exeext conftest.
$ac_ext
9468 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9469 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9470 if test $ac_cv_func_malloc_get_state = yes; then
9476 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9477 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9478 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 cat >conftest.
$ac_ext <<_ACEOF
9484 cat confdefs.h
>>conftest.
$ac_ext
9485 cat >>conftest.
$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9489 #define malloc_set_state innocuous_malloc_set_state
9491 /* System header to define __stub macros and hopefully few prototypes,
9492 which can conflict with char malloc_set_state (); below.
9493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9494 <limits.h> exists even on freestanding compilers. */
9497 # include <limits.h>
9499 # include <assert.h>
9502 #undef malloc_set_state
9504 /* Override any GCC internal prototype to avoid an error.
9505 Use char because int might match the return type of a GCC
9506 builtin and then its argument prototype would still apply. */
9510 char malloc_set_state ();
9511 /* The GNU C library defines this for functions which it implements
9512 to always fail with ENOSYS. Some functions are actually named
9513 something starting with __ and the normal name is an alias. */
9514 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9521 return malloc_set_state ();
9526 rm -f conftest.
$ac_objext conftest
$ac_exeext
9527 if { (ac_try
="$ac_link"
9529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest$ac_exeext &&
9543 $as_test_x conftest$ac_exeext; then
9544 ac_cv_func_malloc_set_state=yes
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_func_malloc_set_state=no
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553 conftest$ac_exeext conftest.$ac_ext
9555 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9556 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9557 if test $ac_cv_func_malloc_set_state = yes; then
9563 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9564 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9565 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 extern void (* __after_morecore_hook)();
9578 __after_morecore_hook = 0
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9587 *) ac_try_echo
=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9592 grep -v '^ *+' conftest.er1
>conftest.err
9594 cat conftest.err
>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } && {
9597 test -z "$ac_c_werror_flag" ||
9598 test ! -s conftest.err
9599 } && test -s conftest
$ac_exeext &&
9600 $as_test_x conftest
$ac_exeext; then
9601 emacs_cv_var___after_morecore_hook
=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.
$ac_ext >&5
9606 emacs_cv_var___after_morecore_hook
=no
9609 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9610 conftest
$ac_exeext conftest.
$ac_ext
9612 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9613 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9614 if test $emacs_cv_var___after_morecore_hook = no
; then
9617 if test "${system_malloc}" = "yes"; then
9620 (The GNU allocators don't work with this system configuration.)"
9622 if test "$doug_lea_malloc" = "yes" ; then
9623 if test "$GNU_MALLOC" = yes ; then
9625 (Using Doug Lea's new malloc from the GNU C Library.)"
9628 cat >>confdefs.h
<<\_ACEOF
9629 #define DOUG_LEA_MALLOC 1
9634 if test x
"${REL_ALLOC}" = x
; then
9635 REL_ALLOC
=${GNU_MALLOC}
9641 for ac_header
in stdlib.h unistd.h
9643 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9647 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 ac_res
=`eval echo '${'$as_ac_Header'}'`
9651 { echo "$as_me:$LINENO: result: $ac_res" >&5
9652 echo "${ECHO_T}$ac_res" >&6; }
9654 # Is the header compilable?
9655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9657 cat >conftest.
$ac_ext <<_ACEOF
9660 cat confdefs.h
>>conftest.
$ac_ext
9661 cat >>conftest.
$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9663 $ac_includes_default
9664 #include <$ac_header>
9666 rm -f conftest.
$ac_objext
9667 if { (ac_try
="$ac_compile"
9669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_compile") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
9683 ac_header_compiler=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_header_compiler=no
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693 echo "${ECHO_T}$ac_header_compiler" >&6; }
9695 # Is the header present?
9696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <$ac_header>
9706 if { (ac_try="$ac_cpp conftest.$ac_ext"
9708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9709 *) ac_try_echo
=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1
>conftest.err
9716 cat conftest.err
>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } >/dev
/null
&& {
9719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9722 ac_header_preproc
=yes
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.
$ac_ext >&5
9727 ac_header_preproc
=no
9730 rm -f conftest.err conftest.
$ac_ext
9731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6; }
9734 # So? What about this header?
9735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741 ac_header_preproc
=yes
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9761 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 eval "$as_ac_Header=\$ac_header_preproc"
9766 ac_res
=`eval echo '${'$as_ac_Header'}'`
9767 { echo "$as_me:$LINENO: result: $ac_res" >&5
9768 echo "${ECHO_T}$ac_res" >&6; }
9771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9772 cat >>confdefs.h
<<_ACEOF
9773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9781 for ac_func
in getpagesize
9783 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9786 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 cat >conftest.
$ac_ext <<_ACEOF
9792 cat confdefs.h
>>conftest.
$ac_ext
9793 cat >>conftest.
$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9797 #define $ac_func innocuous_$ac_func
9799 /* System header to define __stub macros and hopefully few prototypes,
9800 which can conflict with char $ac_func (); below.
9801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9802 <limits.h> exists even on freestanding compilers. */
9805 # include <limits.h>
9807 # include <assert.h>
9812 /* Override any GCC internal prototype to avoid an error.
9813 Use char because int might match the return type of a GCC
9814 builtin and then its argument prototype would still apply. */
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined __stub_$ac_func || defined __stub___$ac_func
9834 rm -f conftest.
$ac_objext conftest
$ac_exeext
9835 if { (ac_try
="$ac_link"
9837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_link") 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest$ac_exeext &&
9851 $as_test_x conftest$ac_exeext; then
9852 eval "$as_ac_var=yes"
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 eval "$as_ac_var=no"
9860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861 conftest$ac_exeext conftest.$ac_ext
9863 ac_res=`eval echo '${'$as_ac_var'}'`
9864 { echo "$as_me:$LINENO: result: $ac_res" >&5
9865 echo "${ECHO_T}$ac_res" >&6; }
9866 if test `eval echo '${'$as_ac_var'}'` = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9874 { echo "$as_me:$LINENO: checking for working mmap" >&5
9875 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9876 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 if test "$cross_compiling" = yes; then
9880 ac_cv_func_mmap_fixed_mapped=no
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 $ac_includes_default
9889 /* malloc might have been renamed as rpl_malloc. */
9892 /* Thanks to Mike Haertel and Jim Avera for this test.
9893 Here is a matrix of mmap possibilities:
9894 mmap private not fixed
9895 mmap private fixed at somewhere currently unmapped
9896 mmap private fixed at somewhere already mapped
9897 mmap shared not fixed
9898 mmap shared fixed at somewhere currently unmapped
9899 mmap shared fixed at somewhere already mapped
9900 For private mappings, we should verify that changes cannot be read()
9901 back from the file, nor mmap's back from the file at a different
9902 address. (There have been systems where private was not correctly
9903 implemented like the infamous i386 svr4.0, and systems where the
9904 VM page cache was not coherent with the file system buffer cache
9905 like early versions of FreeBSD and possibly contemporary NetBSD.)
9906 For shared mappings, we should conversely verify that changes get
9907 propagated back to all the places they're supposed to be.
9909 Grep wants private fixed already mapped.
9910 The main things grep needs to know about mmap are:
9911 * does it exist and is it safe to write into the mmap'd area
9912 * how to use it (BSD variants) */
9915 #include <sys/mman.h>
9917 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9921 /* This mess was copied from the GNU getpagesize.h. */
9922 #ifndef HAVE_GETPAGESIZE
9923 /* Assume that all systems that can run configure have sys/param.h. */
9924 # ifndef HAVE_SYS_PARAM_H
9925 # define HAVE_SYS_PARAM_H 1
9928 # ifdef _SC_PAGESIZE
9929 # define getpagesize() sysconf(_SC_PAGESIZE)
9930 # else /* no _SC_PAGESIZE */
9931 # ifdef HAVE_SYS_PARAM_H
9932 # include <sys/param.h>
9933 # ifdef EXEC_PAGESIZE
9934 # define getpagesize() EXEC_PAGESIZE
9935 # else /* no EXEC_PAGESIZE */
9937 # define getpagesize() NBPG * CLSIZE
9940 # endif /* no CLSIZE */
9941 # else /* no NBPG */
9943 # define getpagesize() NBPC
9944 # else /* no NBPC */
9946 # define getpagesize() PAGESIZE
9947 # endif /* PAGESIZE */
9948 # endif /* no NBPC */
9949 # endif /* no NBPG */
9950 # endif /* no EXEC_PAGESIZE */
9951 # else /* no HAVE_SYS_PARAM_H */
9952 # define getpagesize() 8192 /* punt totally */
9953 # endif /* no HAVE_SYS_PARAM_H */
9954 # endif /* no _SC_PAGESIZE */
9956 #endif /* no HAVE_GETPAGESIZE */
9961 char *data, *data2, *data3;
9965 pagesize = getpagesize ();
9967 /* First, make a file with some known garbage in it. */
9968 data = (char *) malloc (pagesize);
9971 for (i = 0; i < pagesize; ++i)
9972 *(data + i) = rand ();
9974 fd = creat ("conftest.mmap", 0600);
9977 if (write (fd, data, pagesize) != pagesize)
9981 /* Next, try to mmap the file at a fixed address which already has
9982 something else allocated at it. If we can, also make sure that
9983 we see the same garbage. */
9984 fd = open ("conftest.mmap", O_RDWR);
9987 data2 = (char *) malloc (2 * pagesize);
9990 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9991 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9992 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9994 for (i = 0; i < pagesize; ++i)
9995 if (*(data + i) != *(data2 + i))
9998 /* Finally, make sure that changes to the mapped area do not
9999 percolate back to the file as seen by read(). (This is a bug on
10000 some variants of i386 svr4.0.) */
10001 for (i = 0; i < pagesize; ++i)
10002 *(data2 + i) = *(data2 + i) + 1;
10003 data3 = (char *) malloc (pagesize);
10006 if (read (fd, data3, pagesize) != pagesize)
10008 for (i = 0; i < pagesize; ++i)
10009 if (*(data + i) != *(data3 + i))
10015 rm -f conftest$ac_exeext
10016 if { (ac_try="$ac_link"
10017 case "(($ac_try" in
10018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10019 *) ac_try_echo
=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_link") 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10026 { (case "(($ac_try" in
10027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_try") 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_func_mmap_fixed_mapped=yes
10037 echo "$as_me: program exited with status $ac_status" >&5
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ( exit $ac_status )
10042 ac_cv_func_mmap_fixed_mapped=no
10044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10049 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10050 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10051 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10053 cat >>confdefs.h <<\_ACEOF
10054 #define HAVE_MMAP 1
10058 rm -f conftest.mmap
10060 if test $use_mmap_for_buffers = yes; then
10064 LIBS="$libsrc_libs $LIBS"
10067 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10068 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10069 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 ac_check_lib_save_LIBS=$LIBS
10073 LIBS="-ldnet $LIBS"
10074 cat >conftest.$ac_ext <<_ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10091 return dnet_ntoa ();
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10100 *) ac_try_echo
=$ac_try;;
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1
>conftest.err
10107 cat conftest.err
>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest
$ac_exeext &&
10113 $as_test_x conftest
$ac_exeext; then
10114 ac_cv_lib_dnet_dnet_ntoa
=yes
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.
$ac_ext >&5
10119 ac_cv_lib_dnet_dnet_ntoa
=no
10122 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10123 conftest
$ac_exeext conftest.
$ac_ext
10124 LIBS
=$ac_check_lib_save_LIBS
10126 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10127 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10128 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10129 cat >>confdefs.h
<<_ACEOF
10130 #define HAVE_LIBDNET 1
10133 LIBS
="-ldnet $LIBS"
10138 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10139 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10140 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 ac_check_lib_save_LIBS
=$LIBS
10144 LIBS
="-lXbsd $LIBS"
10145 cat >conftest.
$ac_ext <<_ACEOF
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10161 rm -f conftest.
$ac_objext conftest
$ac_exeext
10162 if { (ac_try
="$ac_link"
10163 case "(($ac_try" in
10164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_link") 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext &&
10178 $as_test_x conftest$ac_exeext; then
10179 ac_cv_lib_Xbsd_main=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_Xbsd_main=no
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10192 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10193 if test $ac_cv_lib_Xbsd_main = yes; then
10194 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10199 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10200 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-lpthreads $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10223 return cma_open ();
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10232 *) ac_try_echo
=$ac_try;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1
>conftest.err
10239 cat conftest.err
>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest
$ac_exeext &&
10245 $as_test_x conftest
$ac_exeext; then
10246 ac_cv_lib_pthreads_cma_open
=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.
$ac_ext >&5
10251 ac_cv_lib_pthreads_cma_open
=no
10254 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10255 conftest
$ac_exeext conftest.
$ac_ext
10256 LIBS
=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10259 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10260 if test $ac_cv_lib_pthreads_cma_open = yes; then
10261 cat >>confdefs.h
<<_ACEOF
10262 #define HAVE_LIBPTHREADS 1
10265 LIBS
="-lpthreads $LIBS"
10270 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10271 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10272 if test -d /usr
/X386
/include
; then
10274 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10278 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10279 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10284 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10285 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10286 if test "${gdb_cv_bigtoc+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10292 *) gdb_cv_bigtoc
=-bbigtoc ;;
10295 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10296 cat >conftest.
$ac_ext <<_ACEOF
10299 cat confdefs.h
>>conftest.
$ac_ext
10300 cat >>conftest.
$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10311 rm -f conftest.
$ac_objext conftest
$ac_exeext
10312 if { (ac_try
="$ac_link"
10313 case "(($ac_try" in
10314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>conftest.er1
10320 grep -v '^ *+' conftest.er1 >conftest.err
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && {
10325 test -z "$ac_c_werror_flag" ||
10326 test ! -s conftest.err
10327 } && test -s conftest$ac_exeext &&
10328 $as_test_x conftest$ac_exeext; then
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10338 conftest$ac_exeext conftest.$ac_ext
10341 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10342 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10346 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10347 # used for the tests that follow. We set them back to REAL_CFLAGS and
10348 # REAL_CPPFLAGS later on.
10350 REAL_CPPFLAGS="$CPPFLAGS"
10352 if test "${HAVE_X11}" = "yes"; then
10353 DEFS="$C_SWITCH_X_SITE $DEFS"
10354 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10356 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10357 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10359 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10360 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10361 # but it's more convenient here to set LD_RUN_PATH
10362 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10363 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10364 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10368 if test "${opsys}" = "gnu-linux"; then
10369 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10370 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10381 XOpenDisplay ("foo");
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10390 *) ac_try_echo
=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1
>conftest.err
10397 cat conftest.err
>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest
$ac_exeext &&
10403 $as_test_x conftest
$ac_exeext; then
10404 xlinux_first_failure
=no
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.
$ac_ext >&5
10409 xlinux_first_failure
=yes
10412 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10413 conftest
$ac_exeext conftest.
$ac_ext
10414 if test "${xlinux_first_failure}" = "yes"; then
10415 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10416 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10417 OLD_CPPFLAGS
="$CPPFLAGS"
10419 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10420 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10421 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10422 LIBS
="$LIBS -b i486-linuxaout"
10423 cat >conftest.
$ac_ext <<_ACEOF
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10433 XOpenDisplay ("foo");
10438 rm -f conftest.
$ac_objext conftest
$ac_exeext
10439 if { (ac_try
="$ac_link"
10440 case "(($ac_try" in
10441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext &&
10455 $as_test_x conftest$ac_exeext; then
10456 xlinux_second_failure=no
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 xlinux_second_failure=yes
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10466 if test "${xlinux_second_failure}" = "yes"; then
10467 # If we get the same failure with -b, there is no use adding -b.
10468 # So take it out. This plays safe.
10469 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10470 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10471 CPPFLAGS="$OLD_CPPFLAGS"
10473 { echo "$as_me:$LINENO: result: no" >&5
10474 echo "${ECHO_T}no" >&6; }
10476 { echo "$as_me:$LINENO: result: yes" >&5
10477 echo "${ECHO_T}yes" >&6; }
10480 { echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6; }
10485 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10486 # header files included from there.
10487 { echo "$as_me:$LINENO: checking for Xkb" >&5
10488 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10489 cat >conftest.$ac_ext <<_ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 #include <X11/Xlib.h>
10496 #include <X11/XKBlib.h>
10500 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (ac_try="$ac_link"
10507 case "(($ac_try" in
10508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10509 *) ac_try_echo
=$ac_try;;
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_link") 2>conftest.er1
10514 grep -v '^ *+' conftest.er1
>conftest.err
10516 cat conftest.err
>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } && {
10519 test -z "$ac_c_werror_flag" ||
10520 test ! -s conftest.err
10521 } && test -s conftest
$ac_exeext &&
10522 $as_test_x conftest
$ac_exeext; then
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.
$ac_ext >&5
10531 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10532 conftest
$ac_exeext conftest.
$ac_ext
10533 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10534 echo "${ECHO_T}$emacs_xkb" >&6; }
10535 if test $emacs_xkb = yes; then
10537 cat >>confdefs.h
<<\_ACEOF
10538 #define HAVE_XKBGETKEYBOARD 1
10547 for ac_func
in XrmSetDatabase XScreenResourceString \
10548 XScreenNumberOfScreen XSetWMProtocols
10550 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10551 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10553 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 cat >conftest.
$ac_ext <<_ACEOF
10559 cat confdefs.h
>>conftest.
$ac_ext
10560 cat >>conftest.
$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10564 #define $ac_func innocuous_$ac_func
10566 /* System header to define __stub macros and hopefully few prototypes,
10567 which can conflict with char $ac_func (); below.
10568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569 <limits.h> exists even on freestanding compilers. */
10572 # include <limits.h>
10574 # include <assert.h>
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10586 /* The GNU C library defines this for functions which it implements
10587 to always fail with ENOSYS. Some functions are actually named
10588 something starting with __ and the normal name is an alias. */
10589 #if defined __stub_$ac_func || defined __stub___$ac_func
10596 return $ac_func ();
10601 rm -f conftest.
$ac_objext conftest
$ac_exeext
10602 if { (ac_try
="$ac_link"
10603 case "(($ac_try" in
10604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext &&
10618 $as_test_x conftest$ac_exeext; then
10619 eval "$as_ac_var=yes"
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 eval "$as_ac_var=no"
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10630 ac_res=`eval echo '${'$as_ac_var'}'`
10631 { echo "$as_me:$LINENO: result: $ac_res" >&5
10632 echo "${ECHO_T}$ac_res" >&6; }
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10643 if test "${window_system}" = "x11"; then
10644 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10645 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10646 if test "${emacs_cv_x11_version_6+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 #include <X11/Xlib.h>
10659 #if XlibSpecificationRelease < 6
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10671 *) ac_try_echo
=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1
>conftest.err
10678 cat conftest.err
>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest
$ac_exeext &&
10684 $as_test_x conftest
$ac_exeext; then
10685 emacs_cv_x11_version_6
=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.
$ac_ext >&5
10690 emacs_cv_x11_version_6
=no
10693 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10694 conftest
$ac_exeext conftest.
$ac_ext
10697 if test $emacs_cv_x11_version_6 = yes; then
10698 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10699 echo "${ECHO_T}6 or newer" >&6; }
10701 cat >>confdefs.h
<<\_ACEOF
10702 #define HAVE_X11R6 1
10706 { echo "$as_me:$LINENO: result: before 6" >&5
10707 echo "${ECHO_T}before 6" >&6; }
10712 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10714 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10715 if test "${with_rsvg}" != "no"; then
10716 RSVG_REQUIRED
=2.0.0
10717 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10722 # Extract the first word of "pkg-config", so it can be a program name with args.
10723 set dummy pkg-config
; ac_word
=$2
10724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 case $PKG_CONFIG in
10731 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10735 for as_dir
in $PATH
10738 test -z "$as_dir" && as_dir
=.
10739 for ac_exec_ext
in '' $ac_executable_extensions; do
10740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10741 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10753 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10754 if test -n "$PKG_CONFIG"; then
10755 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10756 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10758 { echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6; }
10764 if test "$PKG_CONFIG" = "no" ; then
10767 PKG_CONFIG_MIN_VERSION
=0.9.0
10768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10769 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10770 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10772 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10773 { echo "$as_me:$LINENO: result: yes" >&5
10774 echo "${ECHO_T}yes" >&6; }
10777 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10778 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10779 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10780 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10781 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10783 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10784 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10785 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10786 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10787 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10789 { echo "$as_me:$LINENO: result: no" >&5
10790 echo "${ECHO_T}no" >&6; }
10793 ## If we have a custom action on failure, don't print errors, but
10794 ## do set a variable so people can do so.
10795 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10807 if test $succeeded = yes; then
10816 if test ".${RSVG_CFLAGS}" != "."; then
10819 cat >>confdefs.h
<<\_ACEOF
10820 #define HAVE_RSVG 1
10823 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10824 LIBS
="$RSVG_LIBS $LIBS"
10831 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10834 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
10835 test "$USE_X_TOOLKIT" = "maybe"; then
10836 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10837 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10838 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10839 { (exit 1); exit 1; }; };
10843 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10848 # Extract the first word of "pkg-config", so it can be a program name with args.
10849 set dummy pkg-config
; ac_word
=$2
10850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 case $PKG_CONFIG in
10857 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10861 for as_dir
in $PATH
10864 test -z "$as_dir" && as_dir
=.
10865 for ac_exec_ext
in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10879 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10880 if test -n "$PKG_CONFIG"; then
10881 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10882 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10890 if test "$PKG_CONFIG" = "no" ; then
10893 PKG_CONFIG_MIN_VERSION
=0.9.0
10894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10895 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10896 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10898 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10899 { echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6; }
10903 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10904 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10905 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10906 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10907 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10909 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10910 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10911 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10912 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10913 echo "${ECHO_T}$GTK_LIBS" >&6; }
10915 { echo "$as_me:$LINENO: result: no" >&5
10916 echo "${ECHO_T}no" >&6; }
10919 ## If we have a custom action on failure, don't print errors, but
10920 ## do set a variable so people can do so.
10921 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 if test $succeeded = yes; then
10939 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10940 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10941 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10942 { (exit 1); exit 1; }; }
10947 if test x
"$pkg_check_gtk" = xyes
; then
10951 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10952 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10953 LIBS
="$GTK_LIBS $LIBS"
10956 for ac_func
in gtk_main
10958 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10961 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 cat >conftest.
$ac_ext <<_ACEOF
10967 cat confdefs.h
>>conftest.
$ac_ext
10968 cat >>conftest.
$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10972 #define $ac_func innocuous_$ac_func
10974 /* System header to define __stub macros and hopefully few prototypes,
10975 which can conflict with char $ac_func (); below.
10976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10977 <limits.h> exists even on freestanding compilers. */
10980 # include <limits.h>
10982 # include <assert.h>
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10994 /* The GNU C library defines this for functions which it implements
10995 to always fail with ENOSYS. Some functions are actually named
10996 something starting with __ and the normal name is an alias. */
10997 #if defined __stub_$ac_func || defined __stub___$ac_func
11004 return $ac_func ();
11009 rm -f conftest.
$ac_objext conftest
$ac_exeext
11010 if { (ac_try
="$ac_link"
11011 case "(($ac_try" in
11012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest$ac_exeext &&
11026 $as_test_x conftest$ac_exeext; then
11027 eval "$as_ac_var=yes"
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 eval "$as_ac_var=no"
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11038 ac_res=`eval echo '${'$as_ac_var'}'`
11039 { echo "$as_me:$LINENO: result: $ac_res" >&5
11040 echo "${ECHO_T}$ac_res" >&6; }
11041 if test `eval echo '${'$as_ac_var'}'` = yes; then
11042 cat >>confdefs.h <<_ACEOF
11043 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11049 if test "${GTK_COMPILES}" != "yes"; then
11050 if test "$USE_X_TOOLKIT" != "maybe"; then
11051 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11052 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11053 { (exit 1); exit 1; }; };
11058 cat >>confdefs.h <<\_ACEOF
11068 if test "${HAVE_GTK}" = "yes"; then
11070 if test "$with_toolkit_scroll_bars" != no; then
11071 with_toolkit_scroll_bars=yes
11074 HAVE_GTK_MULTIDISPLAY=no
11076 for ac_func in gdk_display_open
11078 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define $ac_func innocuous_$ac_func
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char $ac_func (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11100 # include <limits.h>
11102 # include <assert.h>
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub_$ac_func || defined __stub___$ac_func
11124 return $ac_func ();
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11133 *) ac_try_echo
=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1
>conftest.err
11140 cat conftest.err
>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest
$ac_exeext &&
11146 $as_test_x conftest
$ac_exeext; then
11147 eval "$as_ac_var=yes"
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.
$ac_ext >&5
11152 eval "$as_ac_var=no"
11155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11156 conftest
$ac_exeext conftest.
$ac_ext
11158 ac_res
=`eval echo '${'$as_ac_var'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 if test `eval echo '${'$as_ac_var'}'` = yes; then
11162 cat >>confdefs.h
<<_ACEOF
11163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11165 HAVE_GTK_MULTIDISPLAY
=yes
11169 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11171 cat >>confdefs.h
<<\_ACEOF
11172 #define HAVE_GTK_MULTIDISPLAY 1
11177 HAVE_GTK_FILE_SELECTION
=no
11179 for ac_func
in gtk_file_selection_new
11181 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11184 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 cat >conftest.
$ac_ext <<_ACEOF
11190 cat confdefs.h
>>conftest.
$ac_ext
11191 cat >>conftest.
$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11195 #define $ac_func innocuous_$ac_func
11197 /* System header to define __stub macros and hopefully few prototypes,
11198 which can conflict with char $ac_func (); below.
11199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11200 <limits.h> exists even on freestanding compilers. */
11203 # include <limits.h>
11205 # include <assert.h>
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined __stub_$ac_func || defined __stub___$ac_func
11227 return $ac_func ();
11232 rm -f conftest.
$ac_objext conftest
$ac_exeext
11233 if { (ac_try
="$ac_link"
11234 case "(($ac_try" in
11235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11241 grep -v '^ *+' conftest.er1 >conftest.err
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest$ac_exeext &&
11249 $as_test_x conftest$ac_exeext; then
11250 eval "$as_ac_var=yes"
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 eval "$as_ac_var=no"
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11261 ac_res=`eval echo '${'$as_ac_var'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11268 HAVE_GTK_FILE_SELECTION=yes
11273 HAVE_GTK_FILE_CHOOSER=no
11275 for ac_func in gtk_file_chooser_dialog_new
11277 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11291 #define $ac_func innocuous_$ac_func
11293 /* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char $ac_func (); below.
11295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296 <limits.h> exists even on freestanding compilers. */
11299 # include <limits.h>
11301 # include <assert.h>
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11313 /* The GNU C library defines this for functions which it implements
11314 to always fail with ENOSYS. Some functions are actually named
11315 something starting with __ and the normal name is an alias. */
11316 #if defined __stub_$ac_func || defined __stub___$ac_func
11323 return $ac_func ();
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (ac_try="$ac_link"
11330 case "(($ac_try" in
11331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11332 *) ac_try_echo
=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_link") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1
>conftest.err
11339 cat conftest.err
>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest
$ac_exeext &&
11345 $as_test_x conftest
$ac_exeext; then
11346 eval "$as_ac_var=yes"
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.
$ac_ext >&5
11351 eval "$as_ac_var=no"
11354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11355 conftest
$ac_exeext conftest.
$ac_ext
11357 ac_res
=`eval echo '${'$as_ac_var'}'`
11358 { echo "$as_me:$LINENO: result: $ac_res" >&5
11359 echo "${ECHO_T}$ac_res" >&6; }
11360 if test `eval echo '${'$as_ac_var'}'` = yes; then
11361 cat >>confdefs.h
<<_ACEOF
11362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11364 HAVE_GTK_FILE_CHOOSER
=yes
11369 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11370 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11372 cat >>confdefs.h
<<\_ACEOF
11373 #define HAVE_GTK_FILE_BOTH 1
11378 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11379 HAVE_GTK_AND_PTHREAD
=no
11381 for ac_header
in pthread.h
11383 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11384 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11387 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 ac_res
=`eval echo '${'$as_ac_Header'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11394 # Is the header compilable?
11395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11397 cat >conftest.
$ac_ext <<_ACEOF
11400 cat confdefs.h
>>conftest.
$ac_ext
11401 cat >>conftest.
$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11403 $ac_includes_default
11404 #include <$ac_header>
11406 rm -f conftest.
$ac_objext
11407 if { (ac_try
="$ac_compile"
11408 case "(($ac_try" in
11409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413 (eval "$ac_compile") 2>conftest.er1
11415 grep -v '^ *+' conftest.er1 >conftest.err
11417 cat conftest.err >&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } && {
11420 test -z "$ac_c_werror_flag" ||
11421 test ! -s conftest.err
11422 } && test -s conftest.$ac_objext; then
11423 ac_header_compiler=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_header_compiler=no
11431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11433 echo "${ECHO_T}$ac_header_compiler" >&6; }
11435 # Is the header present?
11436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11438 cat >conftest.$ac_ext <<_ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 #include <$ac_header>
11446 if { (ac_try="$ac_cpp conftest.$ac_ext"
11447 case "(($ac_try" in
11448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11449 *) ac_try_echo
=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11454 grep -v '^ *+' conftest.er1
>conftest.err
11456 cat conftest.err
>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } >/dev
/null
&& {
11459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11460 test ! -s conftest.err
11462 ac_header_preproc
=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.
$ac_ext >&5
11467 ac_header_preproc
=no
11470 rm -f conftest.err conftest.
$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11472 echo "${ECHO_T}$ac_header_preproc" >&6; }
11474 # So? What about this header?
11475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11481 ac_header_preproc
=yes
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 eval "$as_ac_Header=\$ac_header_preproc"
11506 ac_res
=`eval echo '${'$as_ac_Header'}'`
11507 { echo "$as_me:$LINENO: result: $ac_res" >&5
11508 echo "${ECHO_T}$ac_res" >&6; }
11511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11512 cat >>confdefs.h
<<_ACEOF
11513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11520 if test "$ac_cv_header_pthread_h"; then
11521 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11522 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11523 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 ac_check_lib_save_LIBS
=$LIBS
11527 LIBS
="-lpthread $LIBS"
11528 cat >conftest.
$ac_ext <<_ACEOF
11531 cat confdefs.h
>>conftest.
$ac_ext
11532 cat >>conftest.
$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11541 char pthread_self ();
11545 return pthread_self ();
11550 rm -f conftest.
$ac_objext conftest
$ac_exeext
11551 if { (ac_try
="$ac_link"
11552 case "(($ac_try" in
11553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_link") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && {
11564 test -z "$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11566 } && test -s conftest$ac_exeext &&
11567 $as_test_x conftest$ac_exeext; then
11568 ac_cv_lib_pthread_pthread_self=yes
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_cv_lib_pthread_pthread_self=no
11576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11577 conftest$ac_exeext conftest.$ac_ext
11578 LIBS=$ac_check_lib_save_LIBS
11580 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11581 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11582 if test $ac_cv_lib_pthread_pthread_self = yes; then
11583 HAVE_GTK_AND_PTHREAD=yes
11587 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11588 case "${canonical}" in
11590 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11593 cat >>confdefs.h <<\_ACEOF
11594 #define HAVE_GTK_AND_PTHREAD 1
11602 if test "${with_dbus}" = "yes"; then
11606 # Extract the first word of "pkg-config", so it can be a program name with args.
11607 set dummy pkg-config; ac_word=$2
11608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11610 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 case $PKG_CONFIG in
11615 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11638 if test -n "$PKG_CONFIG"; then
11639 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11640 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11642 { echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6; }
11648 if test "$PKG_CONFIG" = "no" ; then
11651 PKG_CONFIG_MIN_VERSION=0.9.0
11652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11653 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11654 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11656 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11657 { echo "$as_me:$LINENO: result: yes" >&5
11658 echo "${ECHO_T}yes" >&6; }
11661 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11662 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11663 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11664 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11665 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11667 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11668 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11669 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11670 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11671 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11673 { echo "$as_me:$LINENO: result: no" >&5
11674 echo "${ECHO_T}no" >&6; }
11677 ## If we have a custom action on failure, don't print errors, but
11678 ## do set a variable so people can do so.
11679 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11686 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11687 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11691 if test $succeeded = yes; then
11697 if test "$HAVE_DBUS" = yes; then
11699 cat >>confdefs.h <<\_ACEOF
11700 #define HAVE_DBUS 1
11707 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11708 if test "$with_xaw3d" != no; then
11709 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11710 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11711 if test "${emacs_cv_xaw3d+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 #include <X11/Intrinsic.h>
11722 #include <X11/Xaw3d/Simple.h>
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11735 *) ac_try_echo
=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1
>conftest.err
11742 cat conftest.err
>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest
$ac_exeext &&
11748 $as_test_x conftest
$ac_exeext; then
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.
$ac_ext >&5
11757 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11758 conftest
$ac_exeext conftest.
$ac_ext
11764 if test $emacs_cv_xaw3d = yes; then
11765 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11766 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11767 USE_X_TOOLKIT
=LUCID
11770 cat >>confdefs.h
<<\_ACEOF
11771 #define HAVE_XAW3D 1
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 { echo "$as_me:$LINENO: checking for libXaw" >&5
11778 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11779 if test "${emacs_cv_xaw+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 cat >conftest.
$ac_ext <<_ACEOF
11785 cat confdefs.h
>>conftest.
$ac_ext
11786 cat >>conftest.
$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11789 #include <X11/Intrinsic.h>
11790 #include <X11/Xaw/Simple.h>
11799 rm -f conftest.
$ac_objext conftest
$ac_exeext
11800 if { (ac_try
="$ac_link"
11801 case "(($ac_try" in
11802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_link") 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest$ac_exeext &&
11816 $as_test_x conftest$ac_exeext; then
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11826 conftest$ac_exeext conftest.$ac_ext
11829 if test $emacs_cv_xaw = yes; then
11830 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11831 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11832 USE_X_TOOLKIT=LUCID
11833 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11834 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11835 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11836 { (exit 1); exit 1; }; }
11838 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11839 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11845 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11847 if test "${USE_X_TOOLKIT}" != "none"; then
11848 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11849 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11850 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 cat >conftest.$ac_ext <<_ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 #include <X11/Intrinsic.h>
11863 #if XtSpecificationRelease < 6
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (ac_try="$ac_link"
11873 case "(($ac_try" in
11874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11875 *) ac_try_echo
=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_link") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1
>conftest.err
11882 cat conftest.err
>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest
$ac_exeext &&
11888 $as_test_x conftest
$ac_exeext; then
11889 emacs_cv_x11_toolkit_version_6
=yes
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.
$ac_ext >&5
11894 emacs_cv_x11_toolkit_version_6
=no
11897 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11898 conftest
$ac_exeext conftest.
$ac_ext
11901 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11902 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11903 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11904 echo "${ECHO_T}6 or newer" >&6; }
11906 cat >>confdefs.h
<<\_ACEOF
11907 #define HAVE_X11XTR6 1
11911 { echo "$as_me:$LINENO: result: before 6" >&5
11912 echo "${ECHO_T}before 6" >&6; }
11916 if test x
$HAVE_X11XTR6 = xyes
; then
11917 LIBS
="-lXt -lSM -lICE $LIBS"
11922 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11923 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11924 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 ac_check_lib_save_LIBS
=$LIBS
11929 cat >conftest.
$ac_ext <<_ACEOF
11932 cat confdefs.h
>>conftest.
$ac_ext
11933 cat >>conftest.
$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11942 char XmuConvertStandardSelection ();
11946 return XmuConvertStandardSelection ();
11951 rm -f conftest.
$ac_objext conftest
$ac_exeext
11952 if { (ac_try
="$ac_link"
11953 case "(($ac_try" in
11954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest$ac_exeext &&
11968 $as_test_x conftest$ac_exeext; then
11969 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11982 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11983 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985 #define HAVE_LIBXMU 1
11992 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11995 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11996 if test "${HAVE_X11}" = "yes"; then
11997 if test "${USE_X_TOOLKIT}" != "none"; then
11999 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12000 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12001 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lXext $LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12013 /* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12019 char XShapeQueryExtension ();
12023 return XShapeQueryExtension ();
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12032 *) ac_try_echo
=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1
>conftest.err
12039 cat conftest.err
>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest
$ac_exeext &&
12045 $as_test_x conftest
$ac_exeext; then
12046 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.
$ac_ext >&5
12051 ac_cv_lib_Xext_XShapeQueryExtension
=no
12054 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12055 conftest
$ac_exeext conftest.
$ac_ext
12056 LIBS
=$ac_check_lib_save_LIBS
12058 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12059 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12060 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12061 cat >>confdefs.h
<<_ACEOF
12062 #define HAVE_LIBXEXT 1
12065 LIBS
="-lXext $LIBS"
12072 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12073 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12074 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12075 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.
$ac_ext <<_ACEOF
12081 cat confdefs.h
>>conftest.
$ac_ext
12082 cat >>conftest.
$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12088 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12091 Motif version prior to 2.1.
12097 rm -f conftest.
$ac_objext
12098 if { (ac_try
="$ac_compile"
12099 case "(($ac_try" in
12100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_compile") 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } && {
12111 test -z "$ac_c_werror_flag" ||
12112 test ! -s conftest.err
12113 } && test -s conftest.$ac_objext; then
12114 emacs_cv_motif_version_2_1=yes
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 emacs_cv_motif_version_2_1=no
12122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12125 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12126 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12127 if test $emacs_cv_motif_version_2_1 = yes; then
12130 cat >>confdefs.h <<\_ACEOF
12131 #define HAVE_MOTIF_2_1 1
12134 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12135 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12136 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 ac_check_lib_save_LIBS=$LIBS
12141 cat >conftest.$ac_ext <<_ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12154 char XpCreateContext ();
12158 return XpCreateContext ();
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12167 *) ac_try_echo
=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_link") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1
>conftest.err
12174 cat conftest.err
>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest
$ac_exeext &&
12180 $as_test_x conftest
$ac_exeext; then
12181 ac_cv_lib_Xp_XpCreateContext
=yes
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.
$ac_ext >&5
12186 ac_cv_lib_Xp_XpCreateContext
=no
12189 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12190 conftest
$ac_exeext conftest.
$ac_ext
12191 LIBS
=$ac_check_lib_save_LIBS
12193 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12194 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12195 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12199 if test ${HAVE_LIBXP} = yes; then
12201 cat >>confdefs.h
<<\_ACEOF
12202 #define HAVE_LIBXP 1
12207 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12208 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12209 if test "${emacs_cv_lesstif+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 # We put this in CFLAGS temporarily to precede other -I options
12213 # that might be in CFLAGS temporarily.
12214 # We put this in CPPFLAGS where it precedes the other -I options.
12215 OLD_CPPFLAGS
=$CPPFLAGS
12217 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12218 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12219 cat >conftest.
$ac_ext <<_ACEOF
12222 cat confdefs.h
>>conftest.
$ac_ext
12223 cat >>conftest.
$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12234 rm -f conftest.
$ac_objext
12235 if { (ac_try
="$ac_compile"
12236 case "(($ac_try" in
12237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_compile") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && {
12248 test -z "$ac_c_werror_flag" ||
12249 test ! -s conftest.err
12250 } && test -s conftest.$ac_objext; then
12251 emacs_cv_lesstif=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 emacs_cv_lesstif=no
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12262 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12263 if test $emacs_cv_lesstif = yes; then
12264 # Make sure this -I option remains in CPPFLAGS after it is set
12265 # back to REAL_CPPFLAGS.
12266 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12267 # have those other -I options anyway. Ultimately, having this
12268 # directory ultimately in CPPFLAGS will be enough.
12269 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12270 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12273 CPPFLAGS=$OLD_CPPFLAGS
12280 USE_TOOLKIT_SCROLL_BARS=no
12281 if test "${with_toolkit_scroll_bars}" != "no"; then
12282 if test "${USE_X_TOOLKIT}" != "none"; then
12283 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12284 cat >>confdefs.h <<\_ACEOF
12285 #define USE_TOOLKIT_SCROLL_BARS 1
12289 USE_TOOLKIT_SCROLL_BARS=yes
12290 elif test "${HAVE_XAW3D}" = "yes"; then
12291 cat >>confdefs.h <<\_ACEOF
12292 #define USE_TOOLKIT_SCROLL_BARS 1
12295 USE_TOOLKIT_SCROLL_BARS=yes
12297 elif test "${HAVE_GTK}" = "yes"; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define USE_TOOLKIT_SCROLL_BARS 1
12302 USE_TOOLKIT_SCROLL_BARS=yes
12303 elif test "${HAVE_CARBON}" = "yes"; then
12304 cat >>confdefs.h <<\_ACEOF
12305 #define USE_TOOLKIT_SCROLL_BARS 1
12308 USE_TOOLKIT_SCROLL_BARS=yes
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 #include <X11/Xlib.h>
12320 #include <X11/Xresource.h>
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12333 *) ac_try_echo
=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1
>conftest.err
12340 cat conftest.err
>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.
$ac_objext; then
12348 cat >>confdefs.h
<<\_ACEOF
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.
$ac_ext >&5
12359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12362 if test "${with_xim}" != "no"; then
12364 cat >>confdefs.h
<<\_ACEOF
12371 if test "${HAVE_XIM}" != "no"; then
12372 late_CFLAGS
=$CFLAGS
12373 if test "$GCC" = yes; then
12374 CFLAGS
="$CFLAGS --pedantic-errors"
12376 cat >conftest.
$ac_ext <<_ACEOF
12379 cat confdefs.h
>>conftest.
$ac_ext
12380 cat >>conftest.
$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 #include <X11/Xlib.h>
12384 #include <X11/Xresource.h>
12393 XPointer *client_data;
12395 /* If we're not using GCC, it's probably not XFree86, and this is
12396 probably right, but we can't use something like --pedantic-errors. */
12397 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12398 char*, XIMProc, XPointer*);
12400 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12406 rm -f conftest.
$ac_objext
12407 if { (ac_try
="$ac_compile"
12408 case "(($ac_try" in
12409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_compile") 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } && {
12420 test -z "$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 } && test -s conftest.$ac_objext; then
12423 emacs_cv_arg6_star=yes
12425 echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433 if test "$emacs_cv_arg6_star" = yes; then
12434 cat >>confdefs.h <<\_ACEOF
12435 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12439 cat >>confdefs.h <<\_ACEOF
12440 #define XRegisterIMInstantiateCallback_arg6 XPointer
12444 CFLAGS=$late_CFLAGS
12447 #### For font-backend
12448 if test "${USE_FONT_BACKEND}" = "yes"; then
12451 cat >>confdefs.h <<\_ACEOF
12452 #define USE_FONT_BACKEND 1
12456 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12458 if test "${HAVE_X11}" = "yes"; then
12459 if test "x${with_freetype}" = "xno"; then
12462 if test "x${with_xft}" != "xno"; then
12464 if test "X${with_pkg_config_prog}" != X
; then
12465 PKG_CONFIG
="${with_pkg_config_prog}"
12471 # Extract the first word of "pkg-config", so it can be a program name with args.
12472 set dummy pkg-config
; ac_word
=$2
12473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12475 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 case $PKG_CONFIG in
12480 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12484 for as_dir
in $PATH
12487 test -z "$as_dir" && as_dir
=.
12488 for ac_exec_ext
in '' $ac_executable_extensions; do
12489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12502 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12503 if test -n "$PKG_CONFIG"; then
12504 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12505 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12507 { echo "$as_me:$LINENO: result: no" >&5
12508 echo "${ECHO_T}no" >&6; }
12513 if test "$PKG_CONFIG" = "no" ; then
12516 PKG_CONFIG_MIN_VERSION
=0.9.0
12517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12518 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12519 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12521 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12522 { echo "$as_me:$LINENO: result: yes" >&5
12523 echo "${ECHO_T}yes" >&6; }
12526 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12527 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12528 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12529 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12530 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12532 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12533 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12534 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12535 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12536 echo "${ECHO_T}$XFT_LIBS" >&6; }
12538 { echo "$as_me:$LINENO: result: no" >&5
12539 echo "${ECHO_T}no" >&6; }
12542 ## If we have a custom action on failure, don't print errors, but
12543 ## do set a variable so people can do so.
12544 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12556 if test $succeeded = yes; then
12562 if test "$HAVE_XFT" != no
; then
12563 OLD_CPPFLAGS
="$CPPFLAGS"
12564 OLD_CFLAGS
="$CFLAGS"
12566 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12567 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12568 LIBS
="$XFT_LIBS $LIBS"
12569 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12570 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12571 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12572 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12576 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12578 # Is the header compilable?
12579 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12580 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12581 cat >conftest.
$ac_ext <<_ACEOF
12584 cat confdefs.h
>>conftest.
$ac_ext
12585 cat >>conftest.
$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 $ac_includes_default
12588 #include <X11/Xft/Xft.h>
12590 rm -f conftest.
$ac_objext
12591 if { (ac_try
="$ac_compile"
12592 case "(($ac_try" in
12593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_compile") 2>conftest.er1
12599 grep -v '^ *+' conftest.er1 >conftest.err
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest.$ac_objext; then
12607 ac_header_compiler=yes
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 ac_header_compiler=no
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617 echo "${ECHO_T}$ac_header_compiler" >&6; }
12619 # Is the header present?
12620 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12621 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 #include <X11/Xft/Xft.h>
12630 if { (ac_try="$ac_cpp conftest.$ac_ext"
12631 case "(($ac_try" in
12632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12633 *) ac_try_echo
=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1
>conftest.err
12640 cat conftest.err
>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev
/null
&& {
12643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12646 ac_header_preproc
=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.
$ac_ext >&5
12651 ac_header_preproc
=no
12654 rm -f conftest.err conftest.
$ac_ext
12655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12656 echo "${ECHO_T}$ac_header_preproc" >&6; }
12658 # So? What about this header?
12659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12661 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12662 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12664 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12665 ac_header_preproc
=yes
12668 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12669 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12671 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12673 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12675 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12677 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12679 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12683 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12684 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12685 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12690 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12691 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12694 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12695 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12696 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12697 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 ac_check_lib_save_LIBS
=$LIBS
12701 LIBS
="-lXft $XFT_LIBS $LIBS"
12702 cat >conftest.
$ac_ext <<_ACEOF
12705 cat confdefs.h
>>conftest.
$ac_ext
12706 cat >>conftest.
$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12715 char XftFontOpen ();
12719 return XftFontOpen ();
12724 rm -f conftest.
$ac_objext conftest
$ac_exeext
12725 if { (ac_try
="$ac_link"
12726 case "(($ac_try" in
12727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_link") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest$ac_exeext &&
12741 $as_test_x conftest$ac_exeext; then
12742 ac_cv_lib_Xft_XftFontOpen=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_cv_lib_Xft_XftFontOpen=no
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12752 LIBS=$ac_check_lib_save_LIBS
12754 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12755 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12756 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12764 if test "${HAVE_XFT}" = "yes"; then
12766 cat >>confdefs.h <<\_ACEOF
12771 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12773 CPPFLAGS="$OLD_CPPFLAGS"
12774 CFLAGS="$OLD_CFLAGS"
12780 if test "$HAVE_XFT" != "yes"; then
12786 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12787 if test "${HAVE_XFT}" = "yes"; then
12789 elif test "x${with_freetype}" != "xno"; then
12790 if test "X${with_pkg_config_prog}" != X; then
12791 PKG_CONFIG="${with_pkg_config_prog}"
12797 # Extract the first word of "pkg-config", so it can be a program name with args.
12798 set dummy pkg-config; ac_word=$2
12799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12801 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 case $PKG_CONFIG in
12806 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12816 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12829 if test -n "$PKG_CONFIG"; then
12830 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12831 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12833 { echo "$as_me:$LINENO: result: no" >&5
12834 echo "${ECHO_T}no" >&6; }
12839 if test "$PKG_CONFIG" = "no" ; then
12842 PKG_CONFIG_MIN_VERSION=0.9.0
12843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12844 { echo "$as_me:$LINENO: checking for freetype2" >&5
12845 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12847 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12848 { echo "$as_me:$LINENO: result: yes" >&5
12849 echo "${ECHO_T}yes" >&6; }
12852 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12853 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12854 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12855 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12856 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12858 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12859 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12860 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12861 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12862 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12864 { echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6; }
12868 ## If we have a custom action on failure, don't print errors
, but
12869 ## do set a variable so people can do so.
12870 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12877 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12878 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12882 if test $succeeded = yes; then
12888 if test "${HAVE_FREETYPE}" = "yes"; then
12892 # Extract the first word of "pkg-config", so it can be a program name with args.
12893 set dummy pkg-config
; ac_word
=$2
12894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12896 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 case $PKG_CONFIG in
12901 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12905 for as_dir
in $PATH
12908 test -z "$as_dir" && as_dir
=.
12909 for ac_exec_ext
in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12919 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12923 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12924 if test -n "$PKG_CONFIG"; then
12925 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12926 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12928 { echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6; }
12934 if test "$PKG_CONFIG" = "no" ; then
12937 PKG_CONFIG_MIN_VERSION
=0.9.0
12938 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12939 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12940 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12942 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12943 { echo "$as_me:$LINENO: result: yes" >&5
12944 echo "${ECHO_T}yes" >&6; }
12947 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12948 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12949 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12950 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12951 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12953 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12954 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12955 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12956 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12957 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12959 { echo "$as_me:$LINENO: result: no" >&5
12960 echo "${ECHO_T}no" >&6; }
12961 FONTCONFIG_CFLAGS
=""
12963 ## If we have a custom action on failure, don't print errors, but
12964 ## do set a variable so people can do so.
12965 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12977 if test $succeeded = yes; then
12983 if test "${HAVE_FC}" = "no"; then
12990 if test "${HAVE_FREETYPE}" = "yes"; then
12992 cat >>confdefs.h
<<\_ACEOF
12993 #define HAVE_FREETYPE 1
12996 if test "${with_libotf}" != "no"; then
12997 if test "X${with_pkg_config_prog}" != X
; then
12998 PKG_CONFIG
="${with_pkg_config_prog}"
13003 # Extract the first word of "pkg-config", so it can be a program name with args.
13004 set dummy pkg-config
; ac_word
=$2
13005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13007 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 case $PKG_CONFIG in
13012 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13016 for as_dir
in $PATH
13019 test -z "$as_dir" && as_dir
=.
13020 for ac_exec_ext
in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13034 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13035 if test -n "$PKG_CONFIG"; then
13036 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13037 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13039 { echo "$as_me:$LINENO: result: no" >&5
13040 echo "${ECHO_T}no" >&6; }
13045 if test "$PKG_CONFIG" = "no" ; then
13048 PKG_CONFIG_MIN_VERSION
=0.9.0
13049 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13050 { echo "$as_me:$LINENO: checking for libotf" >&5
13051 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13053 if $PKG_CONFIG --exists "libotf" 2>&5; then
13054 { echo "$as_me:$LINENO: result: yes" >&5
13055 echo "${ECHO_T}yes" >&6; }
13058 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13059 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13060 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13061 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13062 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13064 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13065 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13066 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13067 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13068 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13070 { echo "$as_me:$LINENO: result: no" >&5
13071 echo "${ECHO_T}no" >&6; }
13074 ## If we have a custom action on failure, don't print errors, but
13075 ## do set a variable so people can do so.
13076 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13083 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13084 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13088 if test $succeeded = yes; then
13094 if test "$HAVE_LIBOTF" = "yes"; then
13096 cat >>confdefs.h
<<\_ACEOF
13097 #define HAVE_LIBOTF 1
13105 if test "${with_m17n_flt}" != "no"; then
13106 if test "X${with_pkg_config_prog}" != X
; then
13107 PKG_CONFIG
="${with_pkg_config_prog}"
13112 # Extract the first word of "pkg-config", so it can be a program name with args.
13113 set dummy pkg-config
; ac_word
=$2
13114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13116 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 case $PKG_CONFIG in
13121 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13125 for as_dir
in $PATH
13128 test -z "$as_dir" && as_dir
=.
13129 for ac_exec_ext
in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13143 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13144 if test -n "$PKG_CONFIG"; then
13145 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13146 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13148 { echo "$as_me:$LINENO: result: no" >&5
13149 echo "${ECHO_T}no" >&6; }
13154 if test "$PKG_CONFIG" = "no" ; then
13157 PKG_CONFIG_MIN_VERSION
=0.9.0
13158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13159 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13160 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13162 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13163 { echo "$as_me:$LINENO: result: yes" >&5
13164 echo "${ECHO_T}yes" >&6; }
13167 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13168 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13169 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13170 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13171 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13173 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13174 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13175 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13176 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13177 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13179 { echo "$as_me:$LINENO: result: no" >&5
13180 echo "${ECHO_T}no" >&6; }
13183 ## If we have a custom action on failure, don't print errors, but
13184 ## do set a variable so people can do so.
13185 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13197 if test $succeeded = yes; then
13203 if test "$HAVE_M17N_FLT" = "yes"; then
13205 cat >>confdefs.h
<<\_ACEOF
13206 #define HAVE_M17N_FLT 1
13222 #### End for font-backend
13224 ### Use -lXpm if available, unless `--with-xpm=no'.
13226 if test "${HAVE_X11}" = "yes"; then
13227 if test "${with_xpm}" != "no"; then
13228 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13229 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13230 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13231 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13235 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13237 # Is the header compilable?
13238 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13239 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13240 cat >conftest.
$ac_ext <<_ACEOF
13243 cat confdefs.h
>>conftest.
$ac_ext
13244 cat >>conftest.
$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 $ac_includes_default
13247 #include <X11/xpm.h>
13249 rm -f conftest.
$ac_objext
13250 if { (ac_try
="$ac_compile"
13251 case "(($ac_try" in
13252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13258 grep -v '^ *+' conftest.er1 >conftest.err
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.$ac_objext; then
13266 ac_header_compiler=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ac_header_compiler=no
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13276 echo "${ECHO_T}$ac_header_compiler" >&6; }
13278 # Is the header present?
13279 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13280 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <X11/xpm.h>
13289 if { (ac_try="$ac_cpp conftest.$ac_ext"
13290 case "(($ac_try" in
13291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13292 *) ac_try_echo
=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13297 grep -v '^ *+' conftest.er1
>conftest.err
13299 cat conftest.err
>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } >/dev
/null
&& {
13302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13303 test ! -s conftest.err
13305 ac_header_preproc
=yes
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.
$ac_ext >&5
13310 ac_header_preproc
=no
13313 rm -f conftest.err conftest.
$ac_ext
13314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13315 echo "${ECHO_T}$ac_header_preproc" >&6; }
13317 # So? What about this header?
13318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13320 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13321 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13323 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13324 ac_header_preproc
=yes
13327 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13328 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13330 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13332 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13334 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13336 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13338 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13342 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13343 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13344 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13349 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13350 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13353 if test $ac_cv_header_X11_xpm_h = yes; then
13354 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13355 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13356 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 ac_check_lib_save_LIBS
=$LIBS
13360 LIBS
="-lXpm -lX11 $LIBS"
13361 cat >conftest.
$ac_ext <<_ACEOF
13364 cat confdefs.h
>>conftest.
$ac_ext
13365 cat >>conftest.
$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13368 /* Override any GCC internal prototype to avoid an error.
13369 Use char because int might match the return type of a GCC
13370 builtin and then its argument prototype would still apply. */
13374 char XpmReadFileToPixmap ();
13378 return XpmReadFileToPixmap ();
13383 rm -f conftest.
$ac_objext conftest
$ac_exeext
13384 if { (ac_try
="$ac_link"
13385 case "(($ac_try" in
13386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } && {
13397 test -z "$ac_c_werror_flag" ||
13398 test ! -s conftest.err
13399 } && test -s conftest$ac_exeext &&
13400 $as_test_x conftest$ac_exeext; then
13401 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13413 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13414 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13415 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13422 if test "${HAVE_XPM}" = "yes"; then
13423 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13424 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 #include "X11/xpm.h"
13432 #ifndef XpmReturnAllocPixels
13433 no_return_alloc_pixels
13437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13446 if test "${HAVE_XPM}" = "yes"; then
13447 { echo "$as_me:$LINENO: result: yes" >&5
13448 echo "${ECHO_T}yes" >&6; }
13450 { echo "$as_me:$LINENO: result: no" >&5
13451 echo "${ECHO_T}no" >&6; }
13456 if test "${HAVE_XPM}" = "yes"; then
13458 cat >>confdefs.h <<\_ACEOF
13465 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13467 if test "${HAVE_X11}" = "yes"; then
13468 if test "${with_jpeg}" != "no"; then
13469 if test "${ac_cv_header_jerror_h+set}" = set; then
13470 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13471 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13472 if test "${ac_cv_header_jerror_h+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13476 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13478 # Is the header compilable?
13479 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13480 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 $ac_includes_default
13488 #include <jerror.h>
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13499 grep -v '^
*+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_header_compiler=yes
13509 echo "$as_me: failed program was:" >&5
13510 sed 's
/^
/|
/' conftest.$ac_ext >&5
13512 ac_header_compiler=no
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13517 echo "${ECHO_T}$ac_header_compiler" >&6; }
13519 # Is the header present?
13520 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13521 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13522 cat >conftest.$ac_ext <<_ACEOF
13525 cat confdefs.h >>conftest.$ac_ext
13526 cat >>conftest.$ac_ext <<_ACEOF
13527 /* end confdefs.h. */
13528 #include <jerror.h>
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13538 grep -v '^
*+' conftest.er1 >conftest.err
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } >/dev/null && {
13543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13546 ac_header_preproc=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's
/^
/|
/' conftest.$ac_ext >&5
13551 ac_header_preproc=no
13554 rm -f conftest.err conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13556 echo "${ECHO_T}$ac_header_preproc" >&6; }
13558 # So? What about this header?
13559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13561 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13562 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13564 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13565 ac_header_preproc=yes
13568 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13569 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13571 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13573 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13575 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13577 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13579 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13583 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13584 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13585 if test "${ac_cv_header_jerror_h+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 ac_cv_header_jerror_h=$ac_header_preproc
13590 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13591 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13594 if test $ac_cv_header_jerror_h = yes; then
13595 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13596 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13597 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 ac_check_lib_save_LIBS=$LIBS
13601 LIBS="-ljpeg $LIBS"
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13609 /* Override any GCC internal prototype to avoid an error.
13610 Use char because int might match the return type of a GCC
13611 builtin and then its argument prototype would still apply. */
13615 char jpeg_destroy_compress ();
13619 return jpeg_destroy_compress ();
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (ac_try="$ac_link"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_link") 2>conftest.er1
13633 grep -v '^
*+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest$ac_exeext &&
13641 $as_test_x conftest$ac_exeext; then
13642 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13644 echo "$as_me: failed program was:" >&5
13645 sed 's
/^
/|
/' conftest.$ac_ext >&5
13647 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13651 conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_check_lib_save_LIBS
13654 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13655 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13656 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13666 if test "${HAVE_JPEG}" = "yes"; then
13667 cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_JPEG 1
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #include <jpeglib.h>
13678 version=JPEG_LIB_VERSION
13681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13683 cat >>confdefs.h <<\_ACEOF
13684 #define HAVE_JPEG 1
13688 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13689 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13697 ### Use -lpng if available, unless `--with-png=no'.
13699 if test "${HAVE_X11}" = "yes"; then
13700 if test "${with_png}" != "no"; then
13701 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13702 # in /usr/include/libpng.
13705 for ac_header
in png.h libpng
/png.h
13707 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13708 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13711 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 ac_res
=`eval echo '${'$as_ac_Header'}'`
13715 { echo "$as_me:$LINENO: result: $ac_res" >&5
13716 echo "${ECHO_T}$ac_res" >&6; }
13718 # Is the header compilable?
13719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13721 cat >conftest.
$ac_ext <<_ACEOF
13724 cat confdefs.h
>>conftest.
$ac_ext
13725 cat >>conftest.
$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13728 #include <$ac_header>
13730 rm -f conftest.
$ac_objext
13731 if { (ac_try
="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } && {
13744 test -z "$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 } && test -s conftest.$ac_objext; then
13747 ac_header_compiler=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_header_compiler=no
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13757 echo "${ECHO_T}$ac_header_compiler" >&6; }
13759 # Is the header present?
13760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 #include <$ac_header>
13770 if { (ac_try="$ac_cpp conftest.$ac_ext"
13771 case "(($ac_try" in
13772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13773 *) ac_try_echo
=$ac_try;;
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13778 grep -v '^ *+' conftest.er1
>conftest.err
13780 cat conftest.err
>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } >/dev
/null
&& {
13783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13786 ac_header_preproc
=yes
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.
$ac_ext >&5
13791 ac_header_preproc
=no
13794 rm -f conftest.err conftest.
$ac_ext
13795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13796 echo "${ECHO_T}$ac_header_preproc" >&6; }
13798 # So? What about this header?
13799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13805 ac_header_preproc
=yes
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 eval "$as_ac_Header=\$ac_header_preproc"
13830 ac_res
=`eval echo '${'$as_ac_Header'}'`
13831 { echo "$as_me:$LINENO: result: $ac_res" >&5
13832 echo "${ECHO_T}$ac_res" >&6; }
13835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836 cat >>confdefs.h
<<_ACEOF
13837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13844 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13845 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13846 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13847 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 ac_check_lib_save_LIBS
=$LIBS
13851 LIBS
="-lpng -lz -lm $LIBS"
13852 cat >conftest.
$ac_ext <<_ACEOF
13855 cat confdefs.h
>>conftest.
$ac_ext
13856 cat >>conftest.
$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13859 /* Override any GCC internal prototype to avoid an error.
13860 Use char because int might match the return type of a GCC
13861 builtin and then its argument prototype would still apply. */
13865 char png_get_channels ();
13869 return png_get_channels ();
13874 rm -f conftest.
$ac_objext conftest
$ac_exeext
13875 if { (ac_try
="$ac_link"
13876 case "(($ac_try" in
13877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_link") 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest$ac_exeext &&
13891 $as_test_x conftest$ac_exeext; then
13892 ac_cv_lib_png_png_get_channels=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_cv_lib_png_png_get_channels=no
13900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13904 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13905 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13906 if test $ac_cv_lib_png_png_get_channels = yes; then
13913 if test "${HAVE_PNG}" = "yes"; then
13915 cat >>confdefs.h <<\_ACEOF
13922 ### Use -ltiff if available, unless `--with-tiff=no
'.
13924 if test "${HAVE_X11}" = "yes"; then
13925 if test "${with_tiff}" != "no"; then
13926 if test "${ac_cv_header_tiffio_h+set}" = set; then
13927 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13928 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13929 if test "${ac_cv_header_tiffio_h+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13933 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13935 # Is the header compilable?
13936 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13937 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 $ac_includes_default
13945 #include <tiffio.h>
13947 rm -f conftest.$ac_objext
13948 if { (ac_try="$ac_compile"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_compile") 2>conftest.er1
13956 grep -v '^
*+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest.$ac_objext; then
13964 ac_header_compiler=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's
/^
/|
/' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13978 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <tiffio.h>
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13995 grep -v '^
*+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } >/dev/null && {
14000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14003 ac_header_preproc=yes
14005 echo "$as_me: failed program was:" >&5
14006 sed 's
/^
/|
/' conftest.$ac_ext >&5
14008 ac_header_preproc=no
14011 rm -f conftest.err conftest.$ac_ext
14012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6; }
14015 # So? What about this header?
14016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14018 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14021 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14022 ac_header_preproc=yes
14025 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14026 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14028 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14030 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14032 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14034 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14036 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14040 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14041 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_tiffio_h+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 ac_cv_header_tiffio_h=$ac_header_preproc
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14051 if test $ac_cv_header_tiffio_h = yes; then
14053 # At least one tiff package requires the jpeg library.
14054 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14055 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14056 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14057 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-ltiff $tifflibs $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14075 char TIFFGetVersion ();
14079 return TIFFGetVersion ();
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
14093 grep -v '^
*+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest$ac_exeext &&
14101 $as_test_x conftest$ac_exeext; then
14102 ac_cv_lib_tiff_TIFFGetVersion=yes
14104 echo "$as_me: failed program was:" >&5
14105 sed 's
/^
/|
/' conftest.$ac_ext >&5
14107 ac_cv_lib_tiff_TIFFGetVersion=no
14110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14111 conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14115 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14116 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14125 if test "${HAVE_TIFF}" = "yes"; then
14127 cat >>confdefs.h <<\_ACEOF
14128 #define HAVE_TIFF 1
14134 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14136 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14137 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14138 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14139 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14140 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14144 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14146 # Is the header compilable?
14147 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14148 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14149 cat >conftest.
$ac_ext <<_ACEOF
14152 cat confdefs.h
>>conftest.
$ac_ext
14153 cat >>conftest.
$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14156 #include <gif_lib.h>
14158 rm -f conftest.
$ac_objext
14159 if { (ac_try
="$ac_compile"
14160 case "(($ac_try" in
14161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_compile") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest.$ac_objext; then
14175 ac_header_compiler=yes
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_header_compiler=no
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14185 echo "${ECHO_T}$ac_header_compiler" >&6; }
14187 # Is the header present?
14188 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14189 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <gif_lib.h>
14198 if { (ac_try="$ac_cpp conftest.$ac_ext"
14199 case "(($ac_try" in
14200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14201 *) ac_try_echo
=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14206 grep -v '^ *+' conftest.er1
>conftest.err
14208 cat conftest.err
>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } >/dev
/null
&& {
14211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14214 ac_header_preproc
=yes
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.
$ac_ext >&5
14219 ac_header_preproc
=no
14222 rm -f conftest.err conftest.
$ac_ext
14223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14224 echo "${ECHO_T}$ac_header_preproc" >&6; }
14226 # So? What about this header?
14227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14229 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14230 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14232 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14233 ac_header_preproc
=yes
14236 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14237 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14239 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14241 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14243 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14245 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14247 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14251 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14252 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14253 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 ac_cv_header_gif_lib_h
=$ac_header_preproc
14258 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14259 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14262 if test $ac_cv_header_gif_lib_h = yes; then
14263 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14264 # Earlier versions can crash Emacs.
14265 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14266 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14267 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 ac_check_lib_save_LIBS
=$LIBS
14272 cat >conftest.
$ac_ext <<_ACEOF
14275 cat confdefs.h
>>conftest.
$ac_ext
14276 cat >>conftest.
$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14285 char EGifPutExtensionLast ();
14289 return EGifPutExtensionLast ();
14294 rm -f conftest.
$ac_objext conftest
$ac_exeext
14295 if { (ac_try
="$ac_link"
14296 case "(($ac_try" in
14297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_link") 2>conftest.er1
14303 grep -v '^ *+' conftest.er1 >conftest.err
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } && {
14308 test -z "$ac_c_werror_flag" ||
14309 test ! -s conftest.err
14310 } && test -s conftest$ac_exeext &&
14311 $as_test_x conftest$ac_exeext; then
14312 ac_cv_lib_gif_EGifPutExtensionLast=yes
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 ac_cv_lib_gif_EGifPutExtensionLast=no
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321 conftest$ac_exeext conftest.$ac_ext
14322 LIBS=$ac_check_lib_save_LIBS
14324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14325 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14326 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14336 if test "$HAVE_GIF" = yes; then
14337 ac_gif_lib_name="-lgif"
14340 # If gif_lib.h but no libgif, try libungif.
14341 if test x"$try_libungif" = xyes; then
14342 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14343 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14344 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 ac_check_lib_save_LIBS=$LIBS
14348 LIBS="-lungif $LIBS"
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14362 char EGifPutExtensionLast ();
14366 return EGifPutExtensionLast ();
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (ac_try="$ac_link"
14373 case "(($ac_try" in
14374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14375 *) ac_try_echo
=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_link") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1
>conftest.err
14382 cat conftest.err
>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest
$ac_exeext &&
14388 $as_test_x conftest
$ac_exeext; then
14389 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.
$ac_ext >&5
14394 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14397 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14398 conftest
$ac_exeext conftest.
$ac_ext
14399 LIBS
=$ac_check_lib_save_LIBS
14401 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14402 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14403 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14408 if test "$HAVE_GIF" = yes; then
14410 cat >>confdefs.h
<<\_ACEOF
14411 #define LIBGIF -lungif
14414 ac_gif_lib_name
="-lungif"
14418 if test "${HAVE_GIF}" = "yes"; then
14420 cat >>confdefs.h
<<\_ACEOF
14427 if test "${HAVE_X11}" = "yes"; then
14430 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14431 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14432 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14433 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14434 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14435 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14436 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14437 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14438 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14439 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14441 if test "X${MISSING}" != X
; then
14442 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14444 Maybe some development libraries/packages are missing?
14445 If you don't want to link with them give
14447 as options to configure" >&5
14448 echo "$as_me: error: The following required libraries were not found:
14450 Maybe some development libraries/packages are missing?
14451 If you don't want to link with them give
14453 as options to configure" >&2;}
14454 { (exit 1); exit 1; }; }
14458 ### Use -lgpm if available, unless `--with-gpm=no'.
14460 if test "${with_gpm}" != "no"; then
14461 if test "${ac_cv_header_gpm_h+set}" = set; then
14462 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14463 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14464 if test "${ac_cv_header_gpm_h+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14468 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14470 # Is the header compilable?
14471 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14472 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14473 cat >conftest.
$ac_ext <<_ACEOF
14476 cat confdefs.h
>>conftest.
$ac_ext
14477 cat >>conftest.
$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14482 rm -f conftest.
$ac_objext
14483 if { (ac_try
="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_compile") 2>conftest.er1
14491 grep -v '^ *+' conftest.er1 >conftest.err
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } && {
14496 test -z "$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 } && test -s conftest.$ac_objext; then
14499 ac_header_compiler=yes
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_header_compiler=no
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 echo "${ECHO_T}$ac_header_compiler" >&6; }
14511 # Is the header present?
14512 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14513 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14522 if { (ac_try="$ac_cpp conftest.$ac_ext"
14523 case "(($ac_try" in
14524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14525 *) ac_try_echo
=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14530 grep -v '^ *+' conftest.er1
>conftest.err
14532 cat conftest.err
>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev
/null
&& {
14535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14536 test ! -s conftest.err
14538 ac_header_preproc
=yes
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.
$ac_ext >&5
14543 ac_header_preproc
=no
14546 rm -f conftest.err conftest.
$ac_ext
14547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14548 echo "${ECHO_T}$ac_header_preproc" >&6; }
14550 # So? What about this header?
14551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14553 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14554 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14556 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14557 ac_header_preproc
=yes
14560 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14561 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14563 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14565 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14567 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14569 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14571 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14575 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14576 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14577 if test "${ac_cv_header_gpm_h+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 ac_cv_header_gpm_h
=$ac_header_preproc
14582 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14583 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14586 if test $ac_cv_header_gpm_h = yes; then
14587 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14588 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14589 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 ac_check_lib_save_LIBS
=$LIBS
14594 cat >conftest.
$ac_ext <<_ACEOF
14597 cat confdefs.h
>>conftest.
$ac_ext
14598 cat >>conftest.
$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14601 /* Override any GCC internal prototype to avoid an error.
14602 Use char because int might match the return type of a GCC
14603 builtin and then its argument prototype would still apply. */
14611 return Gpm_Open ();
14616 rm -f conftest.
$ac_objext conftest
$ac_exeext
14617 if { (ac_try
="$ac_link"
14618 case "(($ac_try" in
14619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_link") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest$ac_exeext &&
14633 $as_test_x conftest$ac_exeext; then
14634 ac_cv_lib_gpm_Gpm_Open=yes
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ac_cv_lib_gpm_Gpm_Open=no
14642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14643 conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14646 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14647 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14648 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14657 if test "${HAVE_GPM}" = "yes"; then
14659 cat >>confdefs.h <<\_ACEOF
14665 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14666 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14667 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14668 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14672 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14674 # Is the header compilable?
14675 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14676 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 $ac_includes_default
14684 #include <malloc/malloc.h>
14686 rm -f conftest.$ac_objext
14687 if { (ac_try="$ac_compile"
14688 case "(($ac_try" in
14689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14690 *) ac_try_echo
=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_compile") 2>conftest.er1
14695 grep -v '^ *+' conftest.er1
>conftest.err
14697 cat conftest.err
>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } && {
14700 test -z "$ac_c_werror_flag" ||
14701 test ! -s conftest.err
14702 } && test -s conftest.
$ac_objext; then
14703 ac_header_compiler
=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.
$ac_ext >&5
14708 ac_header_compiler
=no
14711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14713 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715 # Is the header present?
14716 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14717 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14718 cat >conftest.
$ac_ext <<_ACEOF
14721 cat confdefs.h
>>conftest.
$ac_ext
14722 cat >>conftest.
$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 #include <malloc/malloc.h>
14726 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14727 case "(($ac_try" in
14728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } >/dev/null && {
14739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14742 ac_header_preproc=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_header_preproc=no
14750 rm -f conftest.err conftest.$ac_ext
14751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14752 echo "${ECHO_T}$ac_header_preproc" >&6; }
14754 # So? What about this header?
14755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14757 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14758 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14760 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14761 ac_header_preproc=yes
14764 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14765 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14767 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14768 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14769 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14770 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14771 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14773 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14775 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14779 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14780 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14781 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14786 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14787 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14790 if test $ac_cv_header_malloc_malloc_h = yes; then
14792 cat >>confdefs.h <<\_ACEOF
14793 #define HAVE_MALLOC_MALLOC_H 1
14800 ### Use Mac OS X Carbon API to implement GUI.
14801 if test "${HAVE_CARBON}" = "yes"; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_CARBON 1
14807 ## Specify the install directory
14809 if test "${carbon_appdir_x}" != ""; then
14810 case ${carbon_appdir_x} in
14811 y | ye | yes) carbon_appdir=/Applications ;;
14812 * ) carbon_appdir=${carbon_appdir_x} ;;
14815 # We also have mouse menus.
14819 ### Use session management (-lSM -lICE) if available
14821 if test "${HAVE_X11}" = "yes"; then
14822 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14823 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14824 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14825 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14829 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14831 # Is the header compilable?
14832 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14833 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14834 cat >conftest.$ac_ext <<_ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 $ac_includes_default
14841 #include <X11/SM/SMlib.h>
14843 rm -f conftest.$ac_objext
14844 if { (ac_try="$ac_compile"
14845 case "(($ac_try" in
14846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14847 *) ac_try_echo
=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_compile") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1
>conftest.err
14854 cat conftest.err
>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && {
14857 test -z "$ac_c_werror_flag" ||
14858 test ! -s conftest.err
14859 } && test -s conftest.
$ac_objext; then
14860 ac_header_compiler
=yes
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.
$ac_ext >&5
14865 ac_header_compiler
=no
14868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14870 echo "${ECHO_T}$ac_header_compiler" >&6; }
14872 # Is the header present?
14873 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14874 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14875 cat >conftest.
$ac_ext <<_ACEOF
14878 cat confdefs.h
>>conftest.
$ac_ext
14879 cat >>conftest.
$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14881 #include <X11/SM/SMlib.h>
14883 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14884 case "(($ac_try" in
14885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1 >conftest.err
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } >/dev/null && {
14896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14899 ac_header_preproc=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_header_preproc=no
14907 rm -f conftest.err conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14909 echo "${ECHO_T}$ac_header_preproc" >&6; }
14911 # So? What about this header?
14912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14914 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14915 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14917 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14918 ac_header_preproc=yes
14921 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14922 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14924 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14926 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14928 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14930 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14932 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14936 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14937 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14938 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14943 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14944 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14947 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14948 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14949 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14950 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 ac_check_lib_save_LIBS=$LIBS
14954 LIBS="-lSM -lICE $LIBS"
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14968 char SmcOpenConnection ();
14972 return SmcOpenConnection ();
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14981 *) ac_try_echo
=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1
>conftest.err
14988 cat conftest.err
>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest
$ac_exeext &&
14994 $as_test_x conftest
$ac_exeext; then
14995 ac_cv_lib_SM_SmcOpenConnection
=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.
$ac_ext >&5
15000 ac_cv_lib_SM_SmcOpenConnection
=no
15003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15004 conftest
$ac_exeext conftest.
$ac_ext
15005 LIBS
=$ac_check_lib_save_LIBS
15007 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15008 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15009 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15017 if test "${HAVE_X_SM}" = "yes"; then
15019 cat >>confdefs.h
<<\_ACEOF
15020 #define HAVE_X_SM 1
15025 *) LIBS
="-lSM -lICE $LIBS" ;;
15030 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15031 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15032 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15033 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 cat >conftest.
$ac_ext <<_ACEOF
15039 cat confdefs.h
>>conftest.
$ac_ext
15040 cat >>conftest.
$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15051 rm -f conftest.
$ac_objext conftest
$ac_exeext
15052 if { (ac_try
="$ac_link"
15053 case "(($ac_try" in
15054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext &&
15068 $as_test_x conftest$ac_exeext; then
15069 emacs_cv_netdb_declares_h_errno=yes
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 emacs_cv_netdb_declares_h_errno=no
15077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15078 conftest$ac_exeext conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15081 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15082 if test $emacs_cv_netdb_declares_h_errno = yes; then
15084 cat >>confdefs.h <<\_ACEOF
15085 #define HAVE_H_ERRNO 1
15090 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15091 # for constant arguments. Useless!
15092 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15093 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15094 if test "${ac_cv_working_alloca_h+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 cat >conftest.$ac_ext <<_ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 #include <alloca.h>
15107 char *p = (char *) alloca (2 * sizeof (int));
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (ac_try="$ac_link"
15115 case "(($ac_try" in
15116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15117 *) ac_try_echo
=$ac_try;;
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_link") 2>conftest.er1
15122 grep -v '^ *+' conftest.er1
>conftest.err
15124 cat conftest.err
>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } && {
15127 test -z "$ac_c_werror_flag" ||
15128 test ! -s conftest.err
15129 } && test -s conftest
$ac_exeext &&
15130 $as_test_x conftest
$ac_exeext; then
15131 ac_cv_working_alloca_h
=yes
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.
$ac_ext >&5
15136 ac_cv_working_alloca_h
=no
15139 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15140 conftest
$ac_exeext conftest.
$ac_ext
15142 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15143 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15144 if test $ac_cv_working_alloca_h = yes; then
15146 cat >>confdefs.h
<<\_ACEOF
15147 #define HAVE_ALLOCA_H 1
15152 { echo "$as_me:$LINENO: checking for alloca" >&5
15153 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15154 if test "${ac_cv_func_alloca_works+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 cat >conftest.
$ac_ext <<_ACEOF
15160 cat confdefs.h
>>conftest.
$ac_ext
15161 cat >>conftest.
$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15164 # define alloca __builtin_alloca
15167 # include <malloc.h>
15168 # define alloca _alloca
15170 # ifdef HAVE_ALLOCA_H
15171 # include <alloca.h>
15176 # ifndef alloca /* predefined by HP cc +Olibcalls */
15187 char *p = (char *) alloca (1);
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_func_alloca_works=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_cv_func_alloca_works=no
15219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15220 conftest$ac_exeext conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15223 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15225 if test $ac_cv_func_alloca_works = yes; then
15227 cat >>confdefs.h <<\_ACEOF
15228 #define HAVE_ALLOCA 1
15232 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15233 # that cause trouble. Some versions do not even contain alloca or
15234 # contain a buggy version. If you still want to use their alloca,
15235 # use ar to extract alloca.o from them instead of compiling alloca.c.
15237 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15239 cat >>confdefs.h <<\_ACEOF
15244 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15245 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15246 if test "${ac_cv_os_cray+set}" = set; then
15247 echo $ECHO_N "(cached
) $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 #if defined CRAY && ! defined CRAY2
15262 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15263 $EGREP "webecray
" >/dev/null 2>&1; then
15271 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15272 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15273 if test $ac_cv_os_cray = yes; then
15274 for ac_func in _getb67 GETB67 getb67; do
15275 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15276 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15277 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15278 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached
) $ECHO_C" >&6
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15297 # include <limits.h>
15299 # include <assert.h>
15304 /* Override any GCC internal prototype to avoid an error.
15305 Use char because int might match the return type of a GCC
15306 builtin and then its argument prototype would still apply. */
15311 /* The GNU C library defines this for functions which it implements
15312 to always fail with ENOSYS. Some functions are actually named
15313 something starting with __ and the normal name is an alias. */
15314 #if defined __stub_$ac_func || defined __stub___$ac_func
15321 return $ac_func ();
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_link") 2>conftest.er1
15335 grep -v '^ *+' conftest.er1 >conftest.err
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest$ac_exeext &&
15343 $as_test_x conftest$ac_exeext; then
15344 eval "$as_ac_var=yes"
15346 echo "$as_me: failed program was
:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 eval "$as_ac_var=no
"
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353 conftest$ac_exeext conftest.$ac_ext
15355 ac_res=`eval echo '${'$as_ac_var'}'`
15356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15358 if test `eval echo '${'$as_ac_var'}'` = yes; then
15360 cat >>confdefs.h <<_ACEOF
15361 #define CRAY_STACKSEG_END $ac_func
15370 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15371 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15372 if test "${ac_cv_c_stack_direction+set}" = set; then
15373 echo $ECHO_N "(cached
) $ECHO_C" >&6
15375 if test "$cross_compiling" = yes; then
15376 ac_cv_c_stack_direction=0
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 $ac_includes_default
15386 find_stack_direction ()
15388 static char *addr = 0;
15393 return find_stack_direction ();
15396 return (&dummy > addr) ? 1 : -1;
15402 return find_stack_direction () < 0;
15405 rm -f conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>&5
15414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_cv_c_stack_direction=1
15427 echo "$as_me: program exited with status
$ac_status" >&5
15428 echo "$as_me: failed program was
:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ( exit $ac_status )
15432 ac_cv_c_stack_direction=-1
15434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15439 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15440 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15442 cat >>confdefs.h <<_ACEOF
15443 #define STACK_DIRECTION $ac_cv_c_stack_direction
15450 if test x"$ac_cv_func_alloca_works" != xyes; then
15451 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15452 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15453 { (exit 1); exit 1; }; }
15456 # fmod, logb, and frexp are found in -lm on most systems.
15457 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15459 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15460 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15461 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15462 echo $ECHO_N "(cached
) $ECHO_C" >&6
15464 ac_check_lib_save_LIBS=$LIBS
15466 cat >conftest.$ac_ext <<_ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (ac_try="$ac_link"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_link") 2>conftest.er1
15497 grep -v '^ *+' conftest.er1 >conftest.err
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest$ac_exeext &&
15505 $as_test_x conftest$ac_exeext; then
15506 ac_cv_lib_m_sqrt=yes
15508 echo "$as_me: failed program was
:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_cv_lib_m_sqrt=no
15514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15518 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15519 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15520 if test $ac_cv_lib_m_sqrt = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define HAVE_LIBM 1
15530 # Check for mail-locking functions in a "mail" library. Probably this should
15531 # have the same check as for liblockfile below.
15533 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15534 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15535 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15536 echo $ECHO_N "(cached
) $ECHO_C" >&6
15538 ac_check_lib_save_LIBS=$LIBS
15539 LIBS="-lmail $LIBS"
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15547 /* Override any GCC internal prototype to avoid an error.
15548 Use char because int might match the return type of a GCC
15549 builtin and then its argument prototype would still apply. */
15557 return maillock ();
15562 rm -f conftest.$ac_objext conftest$ac_exeext
15563 if { (ac_try="$ac_link"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_link") 2>conftest.er1
15571 grep -v '^ *+' conftest.er1 >conftest.err
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15575 (exit $ac_status); } && {
15576 test -z "$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15578 } && test -s conftest$ac_exeext &&
15579 $as_test_x conftest$ac_exeext; then
15580 ac_cv_lib_mail_maillock=yes
15582 echo "$as_me: failed program was
:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 ac_cv_lib_mail_maillock=no
15588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15589 conftest$ac_exeext conftest.$ac_ext
15590 LIBS=$ac_check_lib_save_LIBS
15592 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15593 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15594 if test $ac_cv_lib_mail_maillock = yes; then
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_LIBMAIL 1
15599 LIBS="-lmail $LIBS"
15604 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15605 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15606 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15607 echo $ECHO_N "(cached
) $ECHO_C" >&6
15609 ac_check_lib_save_LIBS=$LIBS
15610 LIBS="-llockfile $LIBS"
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15618 /* Override any GCC internal prototype to avoid an error.
15619 Use char because int might match the return type of a GCC
15620 builtin and then its argument prototype would still apply. */
15628 return maillock ();
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_link") 2>conftest.er1
15642 grep -v '^ *+' conftest.er1 >conftest.err
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest$ac_exeext &&
15650 $as_test_x conftest$ac_exeext; then
15651 ac_cv_lib_lockfile_maillock=yes
15653 echo "$as_me: failed program was
:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_cv_lib_lockfile_maillock=no
15659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15660 conftest$ac_exeext conftest.$ac_ext
15661 LIBS=$ac_check_lib_save_LIBS
15663 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15664 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15665 if test $ac_cv_lib_lockfile_maillock = yes; then
15666 cat >>confdefs.h <<_ACEOF
15667 #define HAVE_LIBLOCKFILE 1
15670 LIBS="-llockfile $LIBS"
15674 # If we have the shared liblockfile, assume we must use it for mail
15675 # locking (e.g. Debian). If we couldn't link against liblockfile
15676 # (no liblockfile.a installed), ensure that we don't need to.
15677 if test "$ac_cv_lib_lockfile_maillock" = no; then
15678 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15679 set dummy liblockfile.so; ac_word=$2
15680 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15681 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15682 if test "${ac_cv_prog_liblockfile+set}" = set; then
15683 echo $ECHO_N "(cached
) $ECHO_C" >&6
15685 if test -n "$liblockfile"; then
15686 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15690 for as_dir in $as_dummy
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15696 ac_cv_prog_liblockfile="yes"
15697 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15704 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15707 liblockfile=$ac_cv_prog_liblockfile
15708 if test -n "$liblockfile"; then
15709 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15710 echo "${ECHO_T}$liblockfile" >&6; }
15712 { echo "$as_me:$LINENO: result
: no
" >&5
15713 echo "${ECHO_T}no
" >&6; }
15717 if test $ac_cv_prog_liblockfile = yes; then
15718 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15719 This probably means that movemail could lose mail.
15720 There may be a \`development' package to
install containing liblockfile.
" >&5
15721 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15722 This probably means that movemail could lose mail.
15723 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15724 { (exit 1); exit 1; }; }
15729 for ac_func in touchlock
15731 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15732 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15733 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15734 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15735 echo $ECHO_N "(cached
) $ECHO_C" >&6
15737 cat >conftest.$ac_ext <<_ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15745 #define $ac_func innocuous_$ac_func
15747 /* System header to define __stub macros and hopefully few prototypes,
15748 which can conflict with char $ac_func (); below.
15749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15750 <limits.h> exists even on freestanding compilers. */
15753 # include <limits.h>
15755 # include <assert.h>
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15767 /* The GNU C library defines this for functions which it implements
15768 to always fail with ENOSYS. Some functions are actually named
15769 something starting with __ and the normal name is an alias. */
15770 #if defined __stub_$ac_func || defined __stub___$ac_func
15777 return $ac_func ();
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (ac_try="$ac_link"
15784 case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_link") 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15795 (exit $ac_status); } && {
15796 test -z "$ac_c_werror_flag" ||
15797 test ! -s conftest.err
15798 } && test -s conftest$ac_exeext &&
15799 $as_test_x conftest$ac_exeext; then
15800 eval "$as_ac_var=yes"
15802 echo "$as_me: failed program was
:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 eval "$as_ac_var=no
"
15808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15809 conftest$ac_exeext conftest.$ac_ext
15811 ac_res=`eval echo '${'$as_ac_var'}'`
15812 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15814 if test `eval echo '${'$as_ac_var'}'` = yes; then
15815 cat >>confdefs.h <<_ACEOF
15816 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15823 for ac_header in maillock.h
15825 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15826 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15827 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15828 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15829 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15830 echo $ECHO_N "(cached
) $ECHO_C" >&6
15832 ac_res=`eval echo '${'$as_ac_Header'}'`
15833 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15834 echo "${ECHO_T}$ac_res" >&6; }
15836 # Is the header compilable?
15837 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15838 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 $ac_includes_default
15846 #include <$ac_header>
15848 rm -f conftest.$ac_objext
15849 if { (ac_try="$ac_compile"
15850 case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_compile") 2>conftest.er1
15857 grep -v '^ *+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15861 (exit $ac_status); } && {
15862 test -z "$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15864 } && test -s conftest.$ac_objext; then
15865 ac_header_compiler=yes
15867 echo "$as_me: failed program was
:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_compiler=no
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15875 echo "${ECHO_T}$ac_header_compiler" >&6; }
15877 # Is the header present?
15878 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15879 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <$ac_header>
15888 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15889 case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15896 grep -v '^ *+' conftest.er1 >conftest.err
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15900 (exit $ac_status); } >/dev/null && {
15901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15902 test ! -s conftest.err
15904 ac_header_preproc=yes
15906 echo "$as_me: failed program was
:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15909 ac_header_preproc=no
15912 rm -f conftest.err conftest.$ac_ext
15913 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15914 echo "${ECHO_T}$ac_header_preproc" >&6; }
15916 # So? What about this header?
15917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15919 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15920 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15921 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15923 ac_header_preproc=yes
15926 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15927 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15928 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15929 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15930 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15931 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15932 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15933 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15934 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15936 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15937 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15941 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15942 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15943 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15944 echo $ECHO_N "(cached
) $ECHO_C" >&6
15946 eval "$as_ac_Header=\
$ac_header_preproc"
15948 ac_res=`eval echo '${'$as_ac_Header'}'`
15949 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15950 echo "${ECHO_T}$ac_res" >&6; }
15953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15954 cat >>confdefs.h <<_ACEOF
15955 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16031 for ac_func in gethostname getdomainname dup2 \
16032 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16033 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16034 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16035 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16036 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16037 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16038 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16039 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16041 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16042 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16043 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16044 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16045 echo $ECHO_N "(cached
) $ECHO_C" >&6
16047 cat >conftest.$ac_ext <<_ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16055 #define $ac_func innocuous_$ac_func
16057 /* System header to define __stub macros and hopefully few prototypes,
16058 which can conflict with char $ac_func (); below.
16059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16060 <limits.h> exists even on freestanding compilers. */
16063 # include <limits.h>
16065 # include <assert.h>
16070 /* Override any GCC internal prototype to avoid an error.
16071 Use char because int might match the return type of a GCC
16072 builtin and then its argument prototype would still apply. */
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined __stub_$ac_func || defined __stub___$ac_func
16087 return $ac_func ();
16092 rm -f conftest.$ac_objext conftest$ac_exeext
16093 if { (ac_try="$ac_link"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_link") 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16105 (exit $ac_status); } && {
16106 test -z "$ac_c_werror_flag" ||
16107 test ! -s conftest.err
16108 } && test -s conftest$ac_exeext &&
16109 $as_test_x conftest$ac_exeext; then
16110 eval "$as_ac_var=yes"
16112 echo "$as_me: failed program was
:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 eval "$as_ac_var=no
"
16118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16119 conftest$ac_exeext conftest.$ac_ext
16121 ac_res=`eval echo '${'$as_ac_var'}'`
16122 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16123 echo "${ECHO_T}$ac_res" >&6; }
16124 if test `eval echo '${'$as_ac_var'}'` = yes; then
16125 cat >>confdefs.h <<_ACEOF
16126 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16134 for ac_header in sys/un.h
16136 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16137 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16138 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16139 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached
) $ECHO_C" >&6
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16147 # Is the header compilable?
16148 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16149 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $ac_includes_default
16157 #include <$ac_header>
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_compile") 2>conftest.er1
16168 grep -v '^ *+' conftest.er1 >conftest.err
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16172 (exit $ac_status); } && {
16173 test -z "$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 } && test -s conftest.$ac_objext; then
16176 ac_header_compiler=yes
16178 echo "$as_me: failed program was
:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_compiler=no
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16186 echo "${ECHO_T}$ac_header_compiler" >&6; }
16188 # Is the header present?
16189 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16190 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <$ac_header>
16199 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16211 (exit $ac_status); } >/dev/null && {
16212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16215 ac_header_preproc=yes
16217 echo "$as_me: failed program was
:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_preproc=no
16223 rm -f conftest.err conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16225 echo "${ECHO_T}$ac_header_preproc" >&6; }
16227 # So? What about this header?
16228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16230 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16231 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16232 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16234 ac_header_preproc=yes
16237 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16238 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16239 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16240 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16241 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16242 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16243 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16244 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16245 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16247 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16248 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16252 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16253 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16255 echo $ECHO_N "(cached
) $ECHO_C" >&6
16257 eval "$as_ac_Header=\
$ac_header_preproc"
16259 ac_res=`eval echo '${'$as_ac_Header'}'`
16260 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16265 cat >>confdefs.h <<_ACEOF
16266 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16278 for ac_header in $ac_header_list
16280 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16281 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16282 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16283 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16284 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16285 echo $ECHO_N "(cached
) $ECHO_C" >&6
16287 ac_res=`eval echo '${'$as_ac_Header'}'`
16288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16289 echo "${ECHO_T}$ac_res" >&6; }
16291 # Is the header compilable?
16292 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16293 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 $ac_includes_default
16301 #include <$ac_header>
16303 rm -f conftest.$ac_objext
16304 if { (ac_try="$ac_compile"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16320 ac_header_compiler=yes
16322 echo "$as_me: failed program was
:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_compiler=no
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16330 echo "${ECHO_T}$ac_header_compiler" >&6; }
16332 # Is the header present?
16333 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16334 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16335 cat >conftest.$ac_ext <<_ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 #include <$ac_header>
16343 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16351 grep -v '^ *+' conftest.er1 >conftest.err
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16355 (exit $ac_status); } >/dev/null && {
16356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16357 test ! -s conftest.err
16359 ac_header_preproc=yes
16361 echo "$as_me: failed program was
:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_header_preproc=no
16367 rm -f conftest.err conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6; }
16371 # So? What about this header?
16372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16374 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16375 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16378 ac_header_preproc=yes
16381 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16382 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16383 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16384 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16385 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16386 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16387 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16388 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16389 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16391 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16392 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16396 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16397 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16398 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16399 echo $ECHO_N "(cached
) $ECHO_C" >&6
16401 eval "$as_ac_Header=\
$ac_header_preproc"
16403 ac_res=`eval echo '${'$as_ac_Header'}'`
16404 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16405 echo "${ECHO_T}$ac_res" >&6; }
16408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16409 cat >>confdefs.h <<_ACEOF
16410 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16425 for ac_func in $ac_func_list
16427 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16428 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16429 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16430 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16431 echo $ECHO_N "(cached
) $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16441 #define $ac_func innocuous_$ac_func
16443 /* System header to define __stub macros and hopefully few prototypes,
16444 which can conflict with char $ac_func (); below.
16445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16446 <limits.h> exists even on freestanding compilers. */
16449 # include <limits.h>
16451 # include <assert.h>
16456 /* Override any GCC internal prototype to avoid an error.
16457 Use char because int might match the return type of a GCC
16458 builtin and then its argument prototype would still apply. */
16463 /* The GNU C library defines this for functions which it implements
16464 to always fail with ENOSYS. Some functions are actually named
16465 something starting with __ and the normal name is an alias. */
16466 #if defined __stub_$ac_func || defined __stub___$ac_func
16473 return $ac_func ();
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (ac_try="$ac_link"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_link") 2>conftest.er1
16487 grep -v '^ *+' conftest.er1 >conftest.err
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16491 (exit $ac_status); } && {
16492 test -z "$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 } && test -s conftest$ac_exeext &&
16495 $as_test_x conftest$ac_exeext; then
16496 eval "$as_ac_var=yes"
16498 echo "$as_me: failed program was
:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 eval "$as_ac_var=no
"
16504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16505 conftest$ac_exeext conftest.$ac_ext
16507 ac_res=`eval echo '${'$as_ac_var'}'`
16508 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16510 if test `eval echo '${'$as_ac_var'}'` = yes; then
16511 cat >>confdefs.h <<_ACEOF
16512 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16534 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16535 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16536 if test "${ac_cv_func_working_mktime+set}" = set; then
16537 echo $ECHO_N "(cached
) $ECHO_C" >&6
16539 if test "$cross_compiling" = yes; then
16540 ac_cv_func_working_mktime=no
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 /* Test program from Paul Eggert and Tony Leneis. */
16549 #ifdef TIME_WITH_SYS_TIME
16550 # include <sys/time.h>
16553 # ifdef HAVE_SYS_TIME_H
16554 # include <sys/time.h>
16560 #include <stdlib.h>
16562 #ifdef HAVE_UNISTD_H
16563 # include <unistd.h>
16567 # define alarm(X) /* empty */
16570 /* Work around redefinition to rpl_putenv by other config tests. */
16573 static time_t time_t_max;
16574 static time_t time_t_min;
16576 /* Values we'll use to set the TZ environment variable. */
16577 static char *tz_strings[] = {
16578 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16579 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16581 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16583 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16584 Based on a problem report from Andreas Jaeger. */
16586 spring_forward_gap ()
16588 /* glibc (up to about 1998-10-07) failed this test. */
16591 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16592 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16593 on systems that don't support the Olson extension, or don't have the
16594 full zoneinfo tables installed. */
16595 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16604 return mktime (&tm) != (time_t) -1;
16612 return ! (lt = localtime (&now)) || mktime (lt) == now;
16619 return (mktime_test1 (now)
16620 && mktime_test1 ((time_t) (time_t_max - now))
16621 && mktime_test1 ((time_t) (time_t_min + now)));
16627 /* Based on code from Ariel Faigon. */
16637 return tm.tm_mon == 2 && tm.tm_mday == 31;
16646 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16647 now = mktime (&tm);
16648 if (now != (time_t) -1)
16650 struct tm *lt = localtime (&now);
16652 && lt->tm_year == tm.tm_year
16653 && lt->tm_mon == tm.tm_mon
16654 && lt->tm_mday == tm.tm_mday
16655 && lt->tm_hour == tm.tm_hour
16656 && lt->tm_min == tm.tm_min
16657 && lt->tm_sec == tm.tm_sec
16658 && lt->tm_yday == tm.tm_yday
16659 && lt->tm_wday == tm.tm_wday
16660 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16661 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16670 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16671 ignoring leap seconds. */
16672 unsigned long int answer = 2527315200UL;
16676 tm.tm_year = 2050 - 1900;
16679 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16682 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16683 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16684 on systems that don't support the Olson extension, or don't have the
16685 full zoneinfo tables installed. */
16686 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16690 /* Check that the result is either a failure, or close enough
16691 to the correct answer that we can assume the discrepancy is
16692 due to leap seconds. */
16693 return (t == (time_t) -1
16694 || (0 < t && answer - 120 <= t && t <= answer + 120));
16703 /* This test makes some buggy mktime implementations loop.
16704 Give up after 60 seconds; a mktime slower than that
16705 isn't worth using anyway. */
16708 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16711 if ((time_t) -1 < 0)
16712 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16714 delta = time_t_max / 997; /* a suitable prime number */
16715 for (i = 0; i < N_STRINGS; i++)
16718 putenv (tz_strings[i]);
16720 for (t = 0; t <= time_t_max - delta; t += delta)
16721 if (! mktime_test (t))
16723 if (! (mktime_test ((time_t) 1)
16724 && mktime_test ((time_t) (60 * 60))
16725 && mktime_test ((time_t) (60 * 60 * 24))))
16728 for (j = 1; 0 < j; j *= 2)
16729 if (! bigtime_test (j))
16731 if (! bigtime_test (j - 1))
16734 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16737 rm -f conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>&5
16746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16748 { (case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_try") 2>&5
16755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_func_working_mktime=yes
16759 echo "$as_me: program exited with status
$ac_status" >&5
16760 echo "$as_me: failed program was
:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ( exit $ac_status )
16764 ac_cv_func_working_mktime=no
16766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16771 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16772 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16773 if test $ac_cv_func_working_mktime = no; then
16774 case " $LIBOBJS " in
16775 *" mktime.
$ac_objext "* ) ;;
16776 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16782 if test "$ac_cv_func_working_mktime" = no; then
16784 cat >>confdefs.h <<\_ACEOF
16785 #define BROKEN_MKTIME 1
16790 ac_have_func=no # yes means we've found a way to get the load average.
16792 # Make sure getloadavg.c is where it belongs, at configure-time.
16793 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16794 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16795 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16796 { (exit 1); exit 1; }; }
16800 # Check for getloadavg, but be sure not to touch the cache variable.
16801 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16802 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16803 if test "${ac_cv_func_getloadavg+set}" = set; then
16804 echo $ECHO_N "(cached
) $ECHO_C" >&6
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16814 #define getloadavg innocuous_getloadavg
16816 /* System header to define __stub macros and hopefully few prototypes,
16817 which can conflict with char getloadavg (); below.
16818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819 <limits.h> exists even on freestanding compilers. */
16822 # include <limits.h>
16824 # include <assert.h>
16829 /* Override any GCC internal prototype to avoid an error.
16830 Use char because int might match the return type of a GCC
16831 builtin and then its argument prototype would still apply. */
16835 char getloadavg ();
16836 /* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839 #if defined __stub_getloadavg || defined __stub___getloadavg
16846 return getloadavg ();
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16864 (exit $ac_status); } && {
16865 test -z "$ac_c_werror_flag" ||
16866 test ! -s conftest.err
16867 } && test -s conftest$ac_exeext &&
16868 $as_test_x conftest$ac_exeext; then
16869 ac_cv_func_getloadavg=yes
16871 echo "$as_me: failed program was
:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 ac_cv_func_getloadavg=no
16877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16878 conftest$ac_exeext conftest.$ac_ext
16880 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16881 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16882 if test $ac_cv_func_getloadavg = yes; then
16887 ) && ac_have_func=yes
16889 # On HPUX9, an unprivileged user can get load averages through this function.
16891 for ac_func in pstat_getdynamic
16893 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16894 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16895 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16896 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16897 echo $ECHO_N "(cached
) $ECHO_C" >&6
16899 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16907 #define $ac_func innocuous_$ac_func
16909 /* System header to define __stub macros and hopefully few prototypes,
16910 which can conflict with char $ac_func (); below.
16911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16912 <limits.h> exists even on freestanding compilers. */
16915 # include <limits.h>
16917 # include <assert.h>
16922 /* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
16929 /* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
16932 #if defined __stub_$ac_func || defined __stub___$ac_func
16939 return $ac_func ();
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (ac_try="$ac_link"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_link") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest$ac_exeext &&
16961 $as_test_x conftest$ac_exeext; then
16962 eval "$as_ac_var=yes"
16964 echo "$as_me: failed program was
:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 eval "$as_ac_var=no
"
16970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16971 conftest$ac_exeext conftest.$ac_ext
16973 ac_res=`eval echo '${'$as_ac_var'}'`
16974 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_var'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16985 # Solaris has libkstat which does not require root.
16987 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16988 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16989 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16990 echo $ECHO_N "(cached
) $ECHO_C" >&6
16992 ac_check_lib_save_LIBS=$LIBS
16993 LIBS="-lkstat $LIBS"
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17001 /* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17007 char kstat_open ();
17011 return kstat_open ();
17016 rm -f conftest.$ac_objext conftest$ac_exeext
17017 if { (ac_try="$ac_link"
17018 case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_link") 2>conftest.er1
17025 grep -v '^ *+' conftest.er1 >conftest.err
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17029 (exit $ac_status); } && {
17030 test -z "$ac_c_werror_flag" ||
17031 test ! -s conftest.err
17032 } && test -s conftest$ac_exeext &&
17033 $as_test_x conftest$ac_exeext; then
17034 ac_cv_lib_kstat_kstat_open=yes
17036 echo "$as_me: failed program was
:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_cv_lib_kstat_kstat_open=no
17042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17043 conftest$ac_exeext conftest.$ac_ext
17044 LIBS=$ac_check_lib_save_LIBS
17046 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17047 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17048 if test $ac_cv_lib_kstat_kstat_open = yes; then
17049 cat >>confdefs.h <<_ACEOF
17050 #define HAVE_LIBKSTAT 1
17053 LIBS="-lkstat $LIBS"
17057 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17059 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17060 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17061 # to get the right answer into the cache.
17062 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17063 if test $ac_have_func = no; then
17064 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17065 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17066 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17067 echo $ECHO_N "(cached
) $ECHO_C" >&6
17069 ac_check_lib_save_LIBS=$LIBS
17071 cat >conftest.$ac_ext <<_ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17078 /* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17088 return elf_begin ();
17093 rm -f conftest.$ac_objext conftest$ac_exeext
17094 if { (ac_try="$ac_link"
17095 case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_link") 2>conftest.er1
17102 grep -v '^ *+' conftest.er1 >conftest.err
17104 cat conftest.err >&5
17105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17106 (exit $ac_status); } && {
17107 test -z "$ac_c_werror_flag" ||
17108 test ! -s conftest.err
17109 } && test -s conftest$ac_exeext &&
17110 $as_test_x conftest$ac_exeext; then
17111 ac_cv_lib_elf_elf_begin=yes
17113 echo "$as_me: failed program was
:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_lib_elf_elf_begin=no
17119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17120 conftest$ac_exeext conftest.$ac_ext
17121 LIBS=$ac_check_lib_save_LIBS
17123 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17124 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17125 if test $ac_cv_lib_elf_elf_begin = yes; then
17130 if test $ac_have_func = no; then
17131 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17132 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17133 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17134 echo $ECHO_N "(cached
) $ECHO_C" >&6
17136 ac_check_lib_save_LIBS=$LIBS
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17145 /* Override any GCC internal prototype to avoid an error.
17146 Use char because int might match the return type of a GCC
17147 builtin and then its argument prototype would still apply. */
17155 return kvm_open ();
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 ac_cv_lib_kvm_kvm_open=yes
17180 echo "$as_me: failed program was
:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_lib_kvm_kvm_open=no
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LIBS=$ac_check_lib_save_LIBS
17190 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17191 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17192 if test $ac_cv_lib_kvm_kvm_open = yes; then
17196 # Check for the 4.4BSD definition of getloadavg.
17197 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17198 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17199 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17200 echo $ECHO_N "(cached
) $ECHO_C" >&6
17202 ac_check_lib_save_LIBS=$LIBS
17203 LIBS="-lutil $LIBS"
17204 cat >conftest.$ac_ext <<_ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 /* Override any GCC internal prototype to avoid an error.
17212 Use char because int might match the return type of a GCC
17213 builtin and then its argument prototype would still apply. */
17217 char getloadavg ();
17221 return getloadavg ();
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_link") 2>conftest.er1
17235 grep -v '^ *+' conftest.er1 >conftest.err
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest$ac_exeext &&
17243 $as_test_x conftest$ac_exeext; then
17244 ac_cv_lib_util_getloadavg=yes
17246 echo "$as_me: failed program was
:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_cv_lib_util_getloadavg=no
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253 conftest$ac_exeext conftest.$ac_ext
17254 LIBS=$ac_check_lib_save_LIBS
17256 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17257 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17258 if test $ac_cv_lib_util_getloadavg = yes; then
17259 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17264 if test $ac_have_func = no; then
17265 # There is a commonly available library for RS/6000 AIX.
17266 # Since it is not a standard part of AIX, it might be installed locally.
17267 ac_getloadavg_LIBS=$LIBS
17268 LIBS="-L/usr
/local
/lib
$LIBS"
17269 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17270 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17271 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17272 echo $ECHO_N "(cached
) $ECHO_C" >&6
17274 ac_check_lib_save_LIBS=$LIBS
17275 LIBS="-lgetloadavg $LIBS"
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17289 char getloadavg ();
17293 return getloadavg ();
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 ac_cv_lib_getloadavg_getloadavg=yes
17318 echo "$as_me: failed program was
:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_cv_lib_getloadavg_getloadavg=no
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 LIBS=$ac_check_lib_save_LIBS
17328 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17329 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17330 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17331 LIBS="-lgetloadavg $LIBS"
17333 LIBS=$ac_getloadavg_LIBS
17338 # Make sure it is really in the library, if we think we found it,
17339 # otherwise set up the replacement function.
17341 for ac_func in getloadavg
17343 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17344 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17345 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17346 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17347 echo $ECHO_N "(cached
) $ECHO_C" >&6
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17357 #define $ac_func innocuous_$ac_func
17359 /* System header to define __stub macros and hopefully few prototypes,
17360 which can conflict with char $ac_func (); below.
17361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17362 <limits.h> exists even on freestanding compilers. */
17365 # include <limits.h>
17367 # include <assert.h>
17372 /* Override any GCC internal prototype to avoid an error.
17373 Use char because int might match the return type of a GCC
17374 builtin and then its argument prototype would still apply. */
17379 /* The GNU C library defines this for functions which it implements
17380 to always fail with ENOSYS. Some functions are actually named
17381 something starting with __ and the normal name is an alias. */
17382 #if defined __stub_$ac_func || defined __stub___$ac_func
17389 return $ac_func ();
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (ac_try="$ac_link"
17396 case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_link") 2>conftest.er1
17403 grep -v '^ *+' conftest.er1 >conftest.err
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17407 (exit $ac_status); } && {
17408 test -z "$ac_c_werror_flag" ||
17409 test ! -s conftest.err
17410 } && test -s conftest$ac_exeext &&
17411 $as_test_x conftest$ac_exeext; then
17412 eval "$as_ac_var=yes"
17414 echo "$as_me: failed program was
:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 eval "$as_ac_var=no
"
17420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17421 conftest$ac_exeext conftest.$ac_ext
17423 ac_res=`eval echo '${'$as_ac_var'}'`
17424 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17425 echo "${ECHO_T}$ac_res" >&6; }
17426 if test `eval echo '${'$as_ac_var'}'` = yes; then
17427 cat >>confdefs.h <<_ACEOF
17428 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17432 case " $LIBOBJS " in
17433 *" getloadavg.
$ac_objext "* ) ;;
17434 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17439 cat >>confdefs.h <<\_ACEOF
17440 #define C_GETLOADAVG 1
17443 # Figure out what our getloadavg.c needs.
17445 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17446 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17447 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17448 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17449 echo $ECHO_N "(cached
) $ECHO_C" >&6
17451 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17452 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17454 # Is the header compilable?
17455 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17456 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 $ac_includes_default
17464 #include <sys/dg_sys_info.h>
17466 rm -f conftest.$ac_objext
17467 if { (ac_try="$ac_compile"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_compile") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest.$ac_objext; then
17483 ac_header_compiler=yes
17485 echo "$as_me: failed program was
:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_header_compiler=no
17491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17493 echo "${ECHO_T}$ac_header_compiler" >&6; }
17495 # Is the header present?
17496 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17497 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 #include <sys/dg_sys_info.h>
17506 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17518 (exit $ac_status); } >/dev/null && {
17519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17522 ac_header_preproc=yes
17524 echo "$as_me: failed program was
:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_header_preproc=no
17530 rm -f conftest.err conftest.$ac_ext
17531 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17532 echo "${ECHO_T}$ac_header_preproc" >&6; }
17534 # So? What about this header?
17535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17537 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17538 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17539 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17540 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17541 ac_header_preproc=yes
17544 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17545 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17546 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17547 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17548 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17549 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17550 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17551 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17552 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17553 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17554 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17555 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17559 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17560 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17561 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17562 echo $ECHO_N "(cached
) $ECHO_C" >&6
17564 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17566 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17567 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17570 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17573 cat >>confdefs.h <<\_ACEOF
17578 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17579 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17580 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17581 echo $ECHO_N "(cached
) $ECHO_C" >&6
17583 ac_check_lib_save_LIBS=$LIBS
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17592 /* Override any GCC internal prototype to avoid an error.
17593 Use char because int might match the return type of a GCC
17594 builtin and then its argument prototype would still apply. */
17598 char dg_sys_info ();
17602 return dg_sys_info ();
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext &&
17624 $as_test_x conftest$ac_exeext; then
17625 ac_cv_lib_dgc_dg_sys_info=yes
17627 echo "$as_me: failed program was
:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_cv_lib_dgc_dg_sys_info=no
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17637 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17638 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17639 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17640 cat >>confdefs.h <<_ACEOF
17641 #define HAVE_LIBDGC 1
17652 if test "${ac_cv_header_locale_h+set}" = set; then
17653 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17654 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17655 if test "${ac_cv_header_locale_h+set}" = set; then
17656 echo $ECHO_N "(cached
) $ECHO_C" >&6
17658 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17659 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17661 # Is the header compilable?
17662 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17663 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 $ac_includes_default
17671 #include <locale.h>
17673 rm -f conftest.$ac_objext
17674 if { (ac_try="$ac_compile"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17686 (exit $ac_status); } && {
17687 test -z "$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17689 } && test -s conftest.$ac_objext; then
17690 ac_header_compiler=yes
17692 echo "$as_me: failed program was
:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_header_compiler=no
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17700 echo "${ECHO_T}$ac_header_compiler" >&6; }
17702 # Is the header present?
17703 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17704 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 #include <locale.h>
17713 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17714 case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17719 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17725 (exit $ac_status); } >/dev/null && {
17726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17729 ac_header_preproc=yes
17731 echo "$as_me: failed program was
:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_header_preproc=no
17737 rm -f conftest.err conftest.$ac_ext
17738 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17739 echo "${ECHO_T}$ac_header_preproc" >&6; }
17741 # So? What about this header?
17742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17744 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17745 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17746 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17747 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17748 ac_header_preproc=yes
17751 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17752 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17753 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17754 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17755 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17756 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17757 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17758 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17759 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17760 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17761 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17762 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17766 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17767 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17768 if test "${ac_cv_header_locale_h+set}" = set; then
17769 echo $ECHO_N "(cached
) $ECHO_C" >&6
17771 ac_cv_header_locale_h=$ac_header_preproc
17773 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17774 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17780 for ac_func in setlocale
17782 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17783 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17784 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17785 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17786 echo $ECHO_N "(cached
) $ECHO_C" >&6
17788 cat >conftest.$ac_ext <<_ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17796 #define $ac_func innocuous_$ac_func
17798 /* System header to define __stub macros and hopefully few prototypes,
17799 which can conflict with char $ac_func (); below.
17800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17801 <limits.h> exists even on freestanding compilers. */
17804 # include <limits.h>
17806 # include <assert.h>
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17818 /* The GNU C library defines this for functions which it implements
17819 to always fail with ENOSYS. Some functions are actually named
17820 something starting with __ and the normal name is an alias. */
17821 #if defined __stub_$ac_func || defined __stub___$ac_func
17828 return $ac_func ();
17833 rm -f conftest.$ac_objext conftest$ac_exeext
17834 if { (ac_try="$ac_link"
17835 case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_link") 2>conftest.er1
17842 grep -v '^ *+' conftest.er1 >conftest.err
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17846 (exit $ac_status); } && {
17847 test -z "$ac_c_werror_flag" ||
17848 test ! -s conftest.err
17849 } && test -s conftest$ac_exeext &&
17850 $as_test_x conftest$ac_exeext; then
17851 eval "$as_ac_var=yes"
17853 echo "$as_me: failed program was
:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 eval "$as_ac_var=no
"
17859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17860 conftest$ac_exeext conftest.$ac_ext
17862 ac_res=`eval echo '${'$as_ac_var'}'`
17863 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17864 echo "${ECHO_T}$ac_res" >&6; }
17865 if test `eval echo '${'$as_ac_var'}'` = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17874 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17875 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17876 # Irix 4.0.5F has the header but not the library.
17877 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17880 cat >>confdefs.h <<\_ACEOF
17886 if test $ac_have_func = no; then
17887 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17888 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17889 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17890 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17891 echo $ECHO_N "(cached
) $ECHO_C" >&6
17893 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17894 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17896 # Is the header compilable?
17897 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17898 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 $ac_includes_default
17906 #include <inq_stats/cpustats.h>
17908 rm -f conftest.$ac_objext
17909 if { (ac_try="$ac_compile"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_compile") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest.$ac_objext; then
17925 ac_header_compiler=yes
17927 echo "$as_me: failed program was
:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_header_compiler=no
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17935 echo "${ECHO_T}$ac_header_compiler" >&6; }
17937 # Is the header present?
17938 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17939 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17940 cat >conftest.$ac_ext <<_ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17946 #include <inq_stats/cpustats.h>
17948 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17956 grep -v '^ *+' conftest.er1 >conftest.err
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17960 (exit $ac_status); } >/dev/null && {
17961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17962 test ! -s conftest.err
17964 ac_header_preproc=yes
17966 echo "$as_me: failed program was
:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17969 ac_header_preproc=no
17972 rm -f conftest.err conftest.$ac_ext
17973 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17974 echo "${ECHO_T}$ac_header_preproc" >&6; }
17976 # So? What about this header?
17977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17979 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17980 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17981 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17982 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17983 ac_header_preproc=yes
17986 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17987 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17988 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17989 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17990 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17991 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17992 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17993 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17994 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17995 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17996 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17997 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18001 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18002 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18003 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18004 echo $ECHO_N "(cached
) $ECHO_C" >&6
18006 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18008 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18009 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18012 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18015 cat >>confdefs.h <<\_ACEOF
18020 cat >>confdefs.h <<\_ACEOF
18029 if test $ac_have_func = no; then
18030 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18031 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18032 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18033 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18034 echo $ECHO_N "(cached
) $ECHO_C" >&6
18036 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18037 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18039 # Is the header compilable?
18040 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18041 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $ac_includes_default
18049 #include <sys/cpustats.h>
18051 rm -f conftest.$ac_objext
18052 if { (ac_try="$ac_compile"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18068 ac_header_compiler=yes
18070 echo "$as_me: failed program was
:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_header_compiler=no
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6; }
18080 # Is the header present?
18081 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18082 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <sys/cpustats.h>
18091 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18092 case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18103 (exit $ac_status); } >/dev/null && {
18104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18107 ac_header_preproc=yes
18109 echo "$as_me: failed program was
:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_header_preproc=no
18115 rm -f conftest.err conftest.$ac_ext
18116 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18117 echo "${ECHO_T}$ac_header_preproc" >&6; }
18119 # So? What about this header?
18120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18122 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18123 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18124 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18125 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18126 ac_header_preproc=yes
18129 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18130 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18131 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18132 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18133 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18134 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18135 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18136 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18137 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18138 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18139 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18140 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18144 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18145 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18146 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18147 echo $ECHO_N "(cached
) $ECHO_C" >&6
18149 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18151 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18152 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18155 if test $ac_cv_header_sys_cpustats_h = yes; then
18156 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18165 if test $ac_have_func = no; then
18167 for ac_header in mach/mach.h
18169 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18170 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18171 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18172 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18173 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18174 echo $ECHO_N "(cached
) $ECHO_C" >&6
18176 ac_res=`eval echo '${'$as_ac_Header'}'`
18177 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18178 echo "${ECHO_T}$ac_res" >&6; }
18180 # Is the header compilable?
18181 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18182 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 $ac_includes_default
18190 #include <$ac_header>
18192 rm -f conftest.$ac_objext
18193 if { (ac_try="$ac_compile"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_compile") 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18205 (exit $ac_status); } && {
18206 test -z "$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18208 } && test -s conftest.$ac_objext; then
18209 ac_header_compiler=yes
18211 echo "$as_me: failed program was
:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_header_compiler=no
18217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18219 echo "${ECHO_T}$ac_header_compiler" >&6; }
18221 # Is the header present?
18222 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18223 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18224 cat >conftest.$ac_ext <<_ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 #include <$ac_header>
18232 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18240 grep -v '^ *+' conftest.er1 >conftest.err
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18244 (exit $ac_status); } >/dev/null && {
18245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18248 ac_header_preproc=yes
18250 echo "$as_me: failed program was
:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_header_preproc=no
18256 rm -f conftest.err conftest.$ac_ext
18257 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18258 echo "${ECHO_T}$ac_header_preproc" >&6; }
18260 # So? What about this header?
18261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18263 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18264 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18265 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18267 ac_header_preproc=yes
18270 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18271 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18272 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18273 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18274 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18275 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18276 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18277 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18278 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18280 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18281 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18285 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18286 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18287 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18288 echo $ECHO_N "(cached
) $ECHO_C" >&6
18290 eval "$as_ac_Header=\
$ac_header_preproc"
18292 ac_res=`eval echo '${'$as_ac_Header'}'`
18293 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18294 echo "${ECHO_T}$ac_res" >&6; }
18297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18298 cat >>confdefs.h <<_ACEOF
18299 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18309 for ac_header in nlist.h
18311 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18312 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18313 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18314 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18316 echo $ECHO_N "(cached
) $ECHO_C" >&6
18318 ac_res=`eval echo '${'$as_ac_Header'}'`
18319 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18320 echo "${ECHO_T}$ac_res" >&6; }
18322 # Is the header compilable?
18323 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18324 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 $ac_includes_default
18332 #include <$ac_header>
18334 rm -f conftest.$ac_objext
18335 if { (ac_try="$ac_compile"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_compile") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest.$ac_objext; then
18351 ac_header_compiler=yes
18353 echo "$as_me: failed program was
:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_header_compiler=no
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18361 echo "${ECHO_T}$ac_header_compiler" >&6; }
18363 # Is the header present?
18364 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18365 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <$ac_header>
18374 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18386 (exit $ac_status); } >/dev/null && {
18387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18388 test ! -s conftest.err
18390 ac_header_preproc=yes
18392 echo "$as_me: failed program was
:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_header_preproc=no
18398 rm -f conftest.err conftest.$ac_ext
18399 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18400 echo "${ECHO_T}$ac_header_preproc" >&6; }
18402 # So? What about this header?
18403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18405 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18406 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18407 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18409 ac_header_preproc=yes
18412 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18413 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18414 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18415 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18416 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18417 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18418 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18419 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18420 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18422 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18423 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18427 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18428 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18429 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18430 echo $ECHO_N "(cached
) $ECHO_C" >&6
18432 eval "$as_ac_Header=\
$ac_header_preproc"
18434 ac_res=`eval echo '${'$as_ac_Header'}'`
18435 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18436 echo "${ECHO_T}$ac_res" >&6; }
18439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18440 cat >>confdefs.h <<_ACEOF
18441 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18443 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18444 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18445 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18446 echo $ECHO_N "(cached
) $ECHO_C" >&6
18448 cat >conftest.$ac_ext <<_ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h. */
18459 static struct nlist ac_aggr;
18460 if (ac_aggr.n_un.n_name)
18466 rm -f conftest.$ac_objext
18467 if { (ac_try="$ac_compile"
18468 case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_compile") 2>conftest.er1
18475 grep -v '^ *+' conftest.er1 >conftest.err
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18479 (exit $ac_status); } && {
18480 test -z "$ac_c_werror_flag" ||
18481 test ! -s conftest.err
18482 } && test -s conftest.$ac_objext; then
18483 ac_cv_member_struct_nlist_n_un_n_name=yes
18485 echo "$as_me: failed program was
:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 cat >conftest.$ac_ext <<_ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h. */
18499 static struct nlist ac_aggr;
18500 if (sizeof ac_aggr.n_un.n_name)
18506 rm -f conftest.$ac_objext
18507 if { (ac_try="$ac_compile"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_compile") 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18519 (exit $ac_status); } && {
18520 test -z "$ac_c_werror_flag" ||
18521 test ! -s conftest.err
18522 } && test -s conftest.$ac_objext; then
18523 ac_cv_member_struct_nlist_n_un_n_name=yes
18525 echo "$as_me: failed program was
:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_cv_member_struct_nlist_n_un_n_name=no
18531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18537 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18538 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18540 cat >>confdefs.h <<_ACEOF
18541 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18545 cat >>confdefs.h <<\_ACEOF
18546 #define NLIST_NAME_UNION 1
18560 # Some definitions of getloadavg require that the program be installed setgid.
18561 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18562 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18563 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18564 echo $ECHO_N "(cached
) $ECHO_C" >&6
18566 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18572 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18573 #ifdef LDAV_PRIVILEGED
18574 Yowza Am I SETGID yet
18577 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18578 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18579 ac_cv_func_getloadavg_setgid=yes
18581 ac_cv_func_getloadavg_setgid=no
18586 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18587 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18588 if test $ac_cv_func_getloadavg_setgid = yes; then
18591 cat >>confdefs.h <<\_ACEOF
18592 #define GETLOADAVG_PRIVILEGED 1
18599 if test $ac_cv_func_getloadavg_setgid = yes; then
18600 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18601 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18602 if test "${ac_cv_group_kmem+set}" = set; then
18603 echo $ECHO_N "(cached
) $ECHO_C" >&6
18605 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18606 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18607 # If we got an error (system does not support symlinks), try without -L.
18608 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18609 ac_cv_group_kmem=`echo $ac_ls_output \
18610 | sed -ne 's/[ ][ ]*/ /g;
18611 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18615 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18616 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18617 KMEM_GROUP=$ac_cv_group_kmem
18619 if test "x
$ac_save_LIBS" = x; then
18620 GETLOADAVG_LIBS=$LIBS
18622 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18628 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18629 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18630 if test "${ac_cv_sys_largefile_source+set}" = set; then
18631 echo $ECHO_N "(cached
) $ECHO_C" >&6
18634 cat >conftest.$ac_ext <<_ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 #include <sys/types.h> /* for off_t */
18645 int (*fp) (FILE *, off_t, int) = fseeko;
18646 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18651 rm -f conftest.$ac_objext conftest$ac_exeext
18652 if { (ac_try="$ac_link"
18653 case "(($ac_try" in
18654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655 *) ac_try_echo=$ac_try;;
18657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18658 (eval "$ac_link") 2>conftest.er1
18660 grep -v '^ *+' conftest.er1 >conftest.err
18662 cat conftest.err >&5
18663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18664 (exit $ac_status); } && {
18665 test -z "$ac_c_werror_flag" ||
18666 test ! -s conftest.err
18667 } && test -s conftest$ac_exeext &&
18668 $as_test_x conftest$ac_exeext; then
18669 ac_cv_sys_largefile_source=no; break
18671 echo "$as_me: failed program was
:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18678 conftest$ac_exeext conftest.$ac_ext
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 #define _LARGEFILE_SOURCE 1
18686 #include <sys/types.h> /* for off_t */
18691 int (*fp) (FILE *, off_t, int) = fseeko;
18692 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18697 rm -f conftest.$ac_objext conftest$ac_exeext
18698 if { (ac_try="$ac_link"
18699 case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_link") 2>conftest.er1
18706 grep -v '^ *+' conftest.er1 >conftest.err
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18710 (exit $ac_status); } && {
18711 test -z "$ac_c_werror_flag" ||
18712 test ! -s conftest.err
18713 } && test -s conftest$ac_exeext &&
18714 $as_test_x conftest$ac_exeext; then
18715 ac_cv_sys_largefile_source=1; break
18717 echo "$as_me: failed program was
:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18724 conftest$ac_exeext conftest.$ac_ext
18725 ac_cv_sys_largefile_source=unknown
18729 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18730 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18731 case $ac_cv_sys_largefile_source in #(
18734 cat >>confdefs.h <<_ACEOF
18735 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18741 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18742 # in glibc 2.1.3, but that breaks too many other things.
18743 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18744 if test $ac_cv_sys_largefile_source != unknown; then
18746 cat >>confdefs.h <<\_ACEOF
18747 #define HAVE_FSEEKO 1
18753 # Configure getopt.
18754 # getopt.m4 serial 10
18756 # The getopt module assume you want GNU getopt, with getopt_long etc,
18757 # rather than vanilla POSIX getopt. This means your your code should
18758 # always include <getopt.h> for the getopt prototypes.
18770 # Prerequisites of lib/getopt*.
18777 for ac_header in getopt.h
18779 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18781 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18782 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18784 echo $ECHO_N "(cached
) $ECHO_C" >&6
18786 ac_res=`eval echo '${'$as_ac_Header'}'`
18787 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18788 echo "${ECHO_T}$ac_res" >&6; }
18790 # Is the header compilable?
18791 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18792 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18800 #include <$ac_header>
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18821 echo "$as_me: failed program was
:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_header_compiler=no
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18829 echo "${ECHO_T}$ac_header_compiler" >&6; }
18831 # Is the header present?
18832 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18833 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <$ac_header>
18842 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18854 (exit $ac_status); } >/dev/null && {
18855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18858 ac_header_preproc=yes
18860 echo "$as_me: failed program was
:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_header_preproc=no
18866 rm -f conftest.err conftest.$ac_ext
18867 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18868 echo "${ECHO_T}$ac_header_preproc" >&6; }
18870 # So? What about this header?
18871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18873 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18874 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18875 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18877 ac_header_preproc=yes
18880 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18881 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18882 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18883 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18884 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18885 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18886 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18887 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18888 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18890 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18891 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18895 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18896 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18898 echo $ECHO_N "(cached
) $ECHO_C" >&6
18900 eval "$as_ac_Header=\
$ac_header_preproc"
18902 ac_res=`eval echo '${'$as_ac_Header'}'`
18903 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18904 echo "${ECHO_T}$ac_res" >&6; }
18907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18908 cat >>confdefs.h <<_ACEOF
18909 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18918 if test -z "$GETOPT_H"; then
18920 for ac_func in getopt_long_only
18922 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18923 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18924 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18925 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18926 echo $ECHO_N "(cached
) $ECHO_C" >&6
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18936 #define $ac_func innocuous_$ac_func
18938 /* System header to define __stub macros and hopefully few prototypes,
18939 which can conflict with char $ac_func (); below.
18940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18941 <limits.h> exists even on freestanding compilers. */
18944 # include <limits.h>
18946 # include <assert.h>
18951 /* Override any GCC internal prototype to avoid an error.
18952 Use char because int might match the return type of a GCC
18953 builtin and then its argument prototype would still apply. */
18958 /* The GNU C library defines this for functions which it implements
18959 to always fail with ENOSYS. Some functions are actually named
18960 something starting with __ and the normal name is an alias. */
18961 #if defined __stub_$ac_func || defined __stub___$ac_func
18968 return $ac_func ();
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (ac_try="$ac_link"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest$ac_exeext &&
18990 $as_test_x conftest$ac_exeext; then
18991 eval "$as_ac_var=yes"
18993 echo "$as_me: failed program was
:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 eval "$as_ac_var=no
"
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000 conftest$ac_exeext conftest.$ac_ext
19002 ac_res=`eval echo '${'$as_ac_var'}'`
19003 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19004 echo "${ECHO_T}$ac_res" >&6; }
19005 if test `eval echo '${'$as_ac_var'}'` = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19017 if test -z "$GETOPT_H"; then
19018 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19019 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19020 if test "${ac_cv_have_decl_optreset+set}" = set; then
19021 echo $ECHO_N "(cached
) $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #include <getopt.h>
19042 rm -f conftest.$ac_objext
19043 if { (ac_try="$ac_compile"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_compile") 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19055 (exit $ac_status); } && {
19056 test -z "$ac_c_werror_flag" ||
19057 test ! -s conftest.err
19058 } && test -s conftest.$ac_objext; then
19059 ac_cv_have_decl_optreset=yes
19061 echo "$as_me: failed program was
:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_cv_have_decl_optreset=no
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19069 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19070 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19071 if test $ac_cv_have_decl_optreset = yes; then
19077 if test -z "$GETOPT_H"; then
19078 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19079 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19080 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19081 echo $ECHO_N "(cached
) $ECHO_C" >&6
19083 if test "$cross_compiling" = yes; then
19084 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19085 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19086 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19087 echo $ECHO_N "(cached
) $ECHO_C" >&6
19089 cat >conftest.$ac_ext <<_ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 #include <getopt.h>
19100 #ifndef getopt_clip
19101 (void) getopt_clip;
19108 rm -f conftest.$ac_objext
19109 if { (ac_try="$ac_compile"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_compile") 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19121 (exit $ac_status); } && {
19122 test -z "$ac_c_werror_flag" ||
19123 test ! -s conftest.err
19124 } && test -s conftest.$ac_objext; then
19125 ac_cv_have_decl_getopt_clip=yes
19127 echo "$as_me: failed program was
:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_cv_have_decl_getopt_clip=no
19133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19136 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19137 if test $ac_cv_have_decl_getopt_clip = yes; then
19138 gl_cv_func_gnu_getopt=no
19140 gl_cv_func_gnu_getopt=yes
19144 cat >conftest.$ac_ext <<_ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150 #include <getopt.h>
19156 myargv[0] = "conftest
";
19159 return getopt (2, myargv, "+a
") != '?';
19165 rm -f conftest$ac_exeext
19166 if { (ac_try="$ac_link"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_link") 2>&5
19174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 gl_cv_func_gnu_getopt=yes
19187 echo "$as_me: program exited with status
$ac_status" >&5
19188 echo "$as_me: failed program was
:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ( exit $ac_status )
19192 gl_cv_func_gnu_getopt=no
19194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19199 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19200 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19201 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19208 if test -n "$GETOPT_H"; then
19213 cat >>confdefs.h <<\_ACEOF
19214 #define __GETOPT_PREFIX rpl_
19220 GETOPTOBJS='getopt.o getopt1.o'
19227 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19228 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19229 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19230 echo $ECHO_N "(cached
) $ECHO_C" >&6
19232 # Use it with a single arg.
19233 cat >conftest.$ac_ext <<_ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 $ac_includes_default
19248 rm -f conftest.$ac_objext
19249 if { (ac_try="$ac_compile"
19250 case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_compile") 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest.$ac_objext; then
19265 ac_cv_func_getpgrp_void=no
19267 echo "$as_me: failed program was
:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 ac_cv_func_getpgrp_void=yes
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19277 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19278 if test $ac_cv_func_getpgrp_void = yes; then
19280 cat >>confdefs.h <<\_ACEOF
19281 #define GETPGRP_VOID 1
19288 for ac_func in strftime
19290 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19291 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19292 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19293 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19294 echo $ECHO_N "(cached
) $ECHO_C" >&6
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19304 #define $ac_func innocuous_$ac_func
19306 /* System header to define __stub macros and hopefully few prototypes,
19307 which can conflict with char $ac_func (); below.
19308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 <limits.h> exists even on freestanding compilers. */
19312 # include <limits.h>
19314 # include <assert.h>
19319 /* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined __stub_$ac_func || defined __stub___$ac_func
19336 return $ac_func ();
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19354 (exit $ac_status); } && {
19355 test -z "$ac_c_werror_flag" ||
19356 test ! -s conftest.err
19357 } && test -s conftest$ac_exeext &&
19358 $as_test_x conftest$ac_exeext; then
19359 eval "$as_ac_var=yes"
19361 echo "$as_me: failed program was
:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19364 eval "$as_ac_var=no
"
19367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19368 conftest$ac_exeext conftest.$ac_ext
19370 ac_res=`eval echo '${'$as_ac_var'}'`
19371 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19372 echo "${ECHO_T}$ac_res" >&6; }
19373 if test `eval echo '${'$as_ac_var'}'` = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19379 # strftime is in -lintl on SCO UNIX.
19380 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19381 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19382 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19383 echo $ECHO_N "(cached
) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lintl $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19404 return strftime ();
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19422 (exit $ac_status); } && {
19423 test -z "$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 } && test -s conftest$ac_exeext &&
19426 $as_test_x conftest$ac_exeext; then
19427 ac_cv_lib_intl_strftime=yes
19429 echo "$as_me: failed program was
:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_lib_intl_strftime=no
19435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19436 conftest$ac_exeext conftest.$ac_ext
19437 LIBS=$ac_check_lib_save_LIBS
19439 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19440 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19441 if test $ac_cv_lib_intl_strftime = yes; then
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_STRFTIME 1
19446 LIBS="-lintl $LIBS"
19455 for ac_func in grantpt
19457 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19458 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19459 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19460 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19461 echo $ECHO_N "(cached
) $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19471 #define $ac_func innocuous_$ac_func
19473 /* System header to define __stub macros and hopefully few prototypes,
19474 which can conflict with char $ac_func (); below.
19475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19476 <limits.h> exists even on freestanding compilers. */
19479 # include <limits.h>
19481 # include <assert.h>
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19493 /* The GNU C library defines this for functions which it implements
19494 to always fail with ENOSYS. Some functions are actually named
19495 something starting with __ and the normal name is an alias. */
19496 #if defined __stub_$ac_func || defined __stub___$ac_func
19503 return $ac_func ();
19508 rm -f conftest.$ac_objext conftest$ac_exeext
19509 if { (ac_try="$ac_link"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_link") 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest$ac_exeext &&
19525 $as_test_x conftest$ac_exeext; then
19526 eval "$as_ac_var=yes"
19528 echo "$as_me: failed program was
:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 eval "$as_ac_var=no
"
19534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19535 conftest$ac_exeext conftest.$ac_ext
19537 ac_res=`eval echo '${'$as_ac_var'}'`
19538 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19539 echo "${ECHO_T}$ac_res" >&6; }
19540 if test `eval echo '${'$as_ac_var'}'` = yes; then
19541 cat >>confdefs.h <<_ACEOF
19542 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19549 # PTY-related GNU extensions.
19551 for ac_func in getpt
19553 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19554 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19555 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19556 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19557 echo $ECHO_N "(cached
) $ECHO_C" >&6
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19567 #define $ac_func innocuous_$ac_func
19569 /* System header to define __stub macros and hopefully few prototypes,
19570 which can conflict with char $ac_func (); below.
19571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19572 <limits.h> exists even on freestanding compilers. */
19575 # include <limits.h>
19577 # include <assert.h>
19582 /* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19589 /* The GNU C library defines this for functions which it implements
19590 to always fail with ENOSYS. Some functions are actually named
19591 something starting with __ and the normal name is an alias. */
19592 #if defined __stub_$ac_func || defined __stub___$ac_func
19599 return $ac_func ();
19604 rm -f conftest.$ac_objext conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_link") 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest$ac_exeext &&
19621 $as_test_x conftest$ac_exeext; then
19622 eval "$as_ac_var=yes"
19624 echo "$as_me: failed program was
:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 eval "$as_ac_var=no
"
19630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631 conftest$ac_exeext conftest.$ac_ext
19633 ac_res=`eval echo '${'$as_ac_var'}'`
19634 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19635 echo "${ECHO_T}$ac_res" >&6; }
19636 if test `eval echo '${'$as_ac_var'}'` = yes; then
19637 cat >>confdefs.h <<_ACEOF
19638 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19645 # Check this now, so that we will NOT find the above functions in ncurses.
19646 # That is because we have not set up to link ncurses in lib-src.
19647 # It's better to believe a function is not available
19648 # than to expect to find it in ncurses.
19650 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19651 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19652 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19653 echo $ECHO_N "(cached
) $ECHO_C" >&6
19655 ac_check_lib_save_LIBS=$LIBS
19656 LIBS="-lncurses $LIBS"
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19664 /* Override any GCC internal prototype to avoid an error.
19665 Use char because int might match the return type of a GCC
19666 builtin and then its argument prototype would still apply. */
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (ac_try="$ac_link"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_link") 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19692 (exit $ac_status); } && {
19693 test -z "$ac_c_werror_flag" ||
19694 test ! -s conftest.err
19695 } && test -s conftest$ac_exeext &&
19696 $as_test_x conftest$ac_exeext; then
19697 ac_cv_lib_ncurses_tparm=yes
19699 echo "$as_me: failed program was
:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 ac_cv_lib_ncurses_tparm=no
19705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19706 conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19709 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19710 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19711 if test $ac_cv_lib_ncurses_tparm = yes; then
19712 cat >>confdefs.h <<_ACEOF
19713 #define HAVE_LIBNCURSES 1
19716 LIBS="-lncurses $LIBS"
19721 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 #include <netinet/in.h>
19731 #include <arpa/nameser.h>
19732 #include <resolv.h>
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19761 echo "$as_me: failed program was
:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19769 if test "$have_res_init" = no; then
19771 LIBS="$LIBS -lresolv"
19772 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19773 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <netinet/in.h>
19781 #include <arpa/nameser.h>
19782 #include <resolv.h>
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_link") 2>conftest.er1
19800 grep -v '^ *+' conftest.er1 >conftest.err
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19804 (exit $ac_status); } && {
19805 test -z "$ac_c_werror_flag" ||
19806 test ! -s conftest.err
19807 } && test -s conftest$ac_exeext &&
19808 $as_test_x conftest$ac_exeext; then
19811 echo "$as_me: failed program was
:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818 conftest$ac_exeext conftest.$ac_ext
19819 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19820 echo "${ECHO_T}$have_res_init" >&6; }
19821 if test "$have_res_init" = yes ; then
19827 if test "$have_res_init" = yes; then
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE_RES_INIT 1
19835 # Do we need the Hesiod library to provide the support routines?
19836 if test "$with_hesiod" = yes ; then
19837 # Don't set $LIBS here -- see comments above.
19838 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19839 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19840 if test "${ac_cv_func_res_send+set}" = set; then
19841 echo $ECHO_N "(cached
) $ECHO_C" >&6
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19851 #define res_send innocuous_res_send
19853 /* System header to define __stub macros and hopefully few prototypes,
19854 which can conflict with char res_send (); below.
19855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19856 <limits.h> exists even on freestanding compilers. */
19859 # include <limits.h>
19861 # include <assert.h>
19866 /* Override any GCC internal prototype to avoid an error.
19867 Use char because int might match the return type of a GCC
19868 builtin and then its argument prototype would still apply. */
19873 /* The GNU C library defines this for functions which it implements
19874 to always fail with ENOSYS. Some functions are actually named
19875 something starting with __ and the normal name is an alias. */
19876 #if defined __stub_res_send || defined __stub___res_send
19883 return res_send ();
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_link") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19901 (exit $ac_status); } && {
19902 test -z "$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 } && test -s conftest$ac_exeext &&
19905 $as_test_x conftest$ac_exeext; then
19906 ac_cv_func_res_send=yes
19908 echo "$as_me: failed program was
:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_cv_func_res_send=no
19914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19915 conftest$ac_exeext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19918 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19919 if test $ac_cv_func_res_send = yes; then
19922 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19923 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19924 if test "${ac_cv_func___res_send+set}" = set; then
19925 echo $ECHO_N "(cached
) $ECHO_C" >&6
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19935 #define __res_send innocuous___res_send
19937 /* System header to define __stub macros and hopefully few prototypes,
19938 which can conflict with char __res_send (); below.
19939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19940 <limits.h> exists even on freestanding compilers. */
19943 # include <limits.h>
19945 # include <assert.h>
19950 /* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19956 char __res_send ();
19957 /* The GNU C library defines this for functions which it implements
19958 to always fail with ENOSYS. Some functions are actually named
19959 something starting with __ and the normal name is an alias. */
19960 #if defined __stub___res_send || defined __stub_____res_send
19967 return __res_send ();
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (ac_try="$ac_link"
19974 case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_link") 2>conftest.er1
19981 grep -v '^ *+' conftest.er1 >conftest.err
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19985 (exit $ac_status); } && {
19986 test -z "$ac_c_werror_flag" ||
19987 test ! -s conftest.err
19988 } && test -s conftest$ac_exeext &&
19989 $as_test_x conftest$ac_exeext; then
19990 ac_cv_func___res_send=yes
19992 echo "$as_me: failed program was
:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_func___res_send=no
19998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19999 conftest$ac_exeext conftest.$ac_ext
20001 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20002 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20003 if test $ac_cv_func___res_send = yes; then
20006 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20007 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20008 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20009 echo $ECHO_N "(cached
) $ECHO_C" >&6
20011 ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lresolv $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20030 return res_send ();
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20048 (exit $ac_status); } && {
20049 test -z "$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20051 } && test -s conftest$ac_exeext &&
20052 $as_test_x conftest$ac_exeext; then
20053 ac_cv_lib_resolv_res_send=yes
20055 echo "$as_me: failed program was
:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_cv_lib_resolv_res_send=no
20061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062 conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_check_lib_save_LIBS
20065 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20066 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20067 if test $ac_cv_lib_resolv_res_send = yes; then
20070 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20071 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20072 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20073 echo $ECHO_N "(cached
) $ECHO_C" >&6
20075 ac_check_lib_save_LIBS=$LIBS
20076 LIBS="-lresolv $LIBS"
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20084 /* Override any GCC internal prototype to avoid an error.
20085 Use char because int might match the return type of a GCC
20086 builtin and then its argument prototype would still apply. */
20090 char __res_send ();
20094 return __res_send ();
20099 rm -f conftest.$ac_objext conftest$ac_exeext
20100 if { (ac_try="$ac_link"
20101 case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_link") 2>conftest.er1
20108 grep -v '^ *+' conftest.er1 >conftest.err
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20112 (exit $ac_status); } && {
20113 test -z "$ac_c_werror_flag" ||
20114 test ! -s conftest.err
20115 } && test -s conftest$ac_exeext &&
20116 $as_test_x conftest$ac_exeext; then
20117 ac_cv_lib_resolv___res_send=yes
20119 echo "$as_me: failed program was
:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 ac_cv_lib_resolv___res_send=no
20125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20126 conftest$ac_exeext conftest.$ac_ext
20127 LIBS=$ac_check_lib_save_LIBS
20129 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20130 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20131 if test $ac_cv_lib_resolv___res_send = yes; then
20141 if test "$resolv" = yes ; then
20146 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20147 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20148 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20149 echo $ECHO_N "(cached
) $ECHO_C" >&6
20151 cat >conftest.$ac_ext <<_ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20159 #define hes_getmailhost innocuous_hes_getmailhost
20161 /* System header to define __stub macros and hopefully few prototypes,
20162 which can conflict with char hes_getmailhost (); below.
20163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20164 <limits.h> exists even on freestanding compilers. */
20167 # include <limits.h>
20169 # include <assert.h>
20172 #undef hes_getmailhost
20174 /* Override any GCC internal prototype to avoid an error.
20175 Use char because int might match the return type of a GCC
20176 builtin and then its argument prototype would still apply. */
20180 char hes_getmailhost ();
20181 /* The GNU C library defines this for functions which it implements
20182 to always fail with ENOSYS. Some functions are actually named
20183 something starting with __ and the normal name is an alias. */
20184 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20191 return hes_getmailhost ();
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20205 grep -v '^ *+' conftest.er1 >conftest.err
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20209 (exit $ac_status); } && {
20210 test -z "$ac_c_werror_flag" ||
20211 test ! -s conftest.err
20212 } && test -s conftest$ac_exeext &&
20213 $as_test_x conftest$ac_exeext; then
20214 ac_cv_func_hes_getmailhost=yes
20216 echo "$as_me: failed program was
:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ac_cv_func_hes_getmailhost=no
20222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20223 conftest$ac_exeext conftest.$ac_ext
20225 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20226 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20227 if test $ac_cv_func_hes_getmailhost = yes; then
20230 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20231 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20232 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20233 echo $ECHO_N "(cached
) $ECHO_C" >&6
20235 ac_check_lib_save_LIBS=$LIBS
20236 LIBS="-lhesiod $RESOLVLIB $LIBS"
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20250 char hes_getmailhost ();
20254 return hes_getmailhost ();
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>conftest.er1
20268 grep -v '^ *+' conftest.er1 >conftest.err
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20272 (exit $ac_status); } && {
20273 test -z "$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 } && test -s conftest$ac_exeext &&
20276 $as_test_x conftest$ac_exeext; then
20277 ac_cv_lib_hesiod_hes_getmailhost=yes
20279 echo "$as_me: failed program was
:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_lib_hesiod_hes_getmailhost=no
20285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20286 conftest$ac_exeext conftest.$ac_ext
20287 LIBS=$ac_check_lib_save_LIBS
20289 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20290 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20291 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_LIBHESIOD 1
20305 # Do we need libresolv (due to res_init or Hesiod)?
20306 if test "$resolv" = yes ; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_LIBRESOLV 1
20314 # These tell us which Kerberos-related libraries to use.
20315 if test "${with_kerberos+set}" = set; then
20317 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20318 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20319 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20320 echo $ECHO_N "(cached
) $ECHO_C" >&6
20322 ac_check_lib_save_LIBS=$LIBS
20323 LIBS="-lcom_err $LIBS"
20324 cat >conftest.$ac_ext <<_ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20331 /* Override any GCC internal prototype to avoid an error.
20332 Use char because int might match the return type of a GCC
20333 builtin and then its argument prototype would still apply. */
20346 rm -f conftest.$ac_objext conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20359 (exit $ac_status); } && {
20360 test -z "$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20362 } && test -s conftest$ac_exeext &&
20363 $as_test_x conftest$ac_exeext; then
20364 ac_cv_lib_com_err_com_err=yes
20366 echo "$as_me: failed program was
:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ac_cv_lib_com_err_com_err=no
20372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20373 conftest$ac_exeext conftest.$ac_ext
20374 LIBS=$ac_check_lib_save_LIBS
20376 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20377 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20378 if test $ac_cv_lib_com_err_com_err = yes; then
20379 cat >>confdefs.h <<_ACEOF
20380 #define HAVE_LIBCOM_ERR 1
20383 LIBS="-lcom_err $LIBS"
20388 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20389 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20390 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20391 echo $ECHO_N "(cached
) $ECHO_C" >&6
20393 ac_check_lib_save_LIBS=$LIBS
20394 LIBS="-lk5crypto $LIBS"
20395 cat >conftest.$ac_ext <<_ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20402 /* Override any GCC internal prototype to avoid an error.
20403 Use char because int might match the return type of a GCC
20404 builtin and then its argument prototype would still apply. */
20408 char mit_des_cbc_encrypt ();
20412 return mit_des_cbc_encrypt ();
20417 rm -f conftest.$ac_objext conftest$ac_exeext
20418 if { (ac_try="$ac_link"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_link") 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest$ac_exeext &&
20434 $as_test_x conftest$ac_exeext; then
20435 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20437 echo "$as_me: failed program was
:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20444 conftest$ac_exeext conftest.$ac_ext
20445 LIBS=$ac_check_lib_save_LIBS
20447 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20448 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20449 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20450 cat >>confdefs.h <<_ACEOF
20451 #define HAVE_LIBK5CRYPTO 1
20454 LIBS="-lk5crypto $LIBS"
20459 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20460 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20461 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20462 echo $ECHO_N "(cached
) $ECHO_C" >&6
20464 ac_check_lib_save_LIBS=$LIBS
20465 LIBS="-lcrypto $LIBS"
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20473 /* Override any GCC internal prototype to avoid an error.
20474 Use char because int might match the return type of a GCC
20475 builtin and then its argument prototype would still apply. */
20479 char mit_des_cbc_encrypt ();
20483 return mit_des_cbc_encrypt ();
20488 rm -f conftest.$ac_objext conftest$ac_exeext
20489 if { (ac_try="$ac_link"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_link") 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest$ac_exeext &&
20505 $as_test_x conftest$ac_exeext; then
20506 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20508 echo "$as_me: failed program was
:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20515 conftest$ac_exeext conftest.$ac_ext
20516 LIBS=$ac_check_lib_save_LIBS
20518 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20519 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20520 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_LIBCRYPTO 1
20525 LIBS="-lcrypto $LIBS"
20530 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20531 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20532 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20533 echo $ECHO_N "(cached
) $ECHO_C" >&6
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lkrb5 $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20550 char krb5_init_context ();
20554 return krb5_init_context ();
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
20577 ac_cv_lib_krb5_krb5_init_context=yes
20579 echo "$as_me: failed program was
:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_lib_krb5_krb5_init_context=no
20585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20586 conftest$ac_exeext conftest.$ac_ext
20587 LIBS=$ac_check_lib_save_LIBS
20589 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20590 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20591 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_LIBKRB5 1
20596 LIBS="-lkrb5 $LIBS"
20600 if test "${with_kerberos5+set}" != set; then
20602 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20603 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20604 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20605 echo $ECHO_N "(cached
) $ECHO_C" >&6
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-ldes425 $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20622 char des_cbc_encrypt ();
20626 return des_cbc_encrypt ();
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest$ac_exeext &&
20648 $as_test_x conftest$ac_exeext; then
20649 ac_cv_lib_des425_des_cbc_encrypt=yes
20651 echo "$as_me: failed program was
:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_cv_lib_des425_des_cbc_encrypt=no
20657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20661 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20662 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20663 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_LIBDES425 1
20668 LIBS="-ldes425 $LIBS"
20672 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20673 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20674 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20675 echo $ECHO_N "(cached
) $ECHO_C" >&6
20677 ac_check_lib_save_LIBS=$LIBS
20679 cat >conftest.$ac_ext <<_ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply. */
20692 char des_cbc_encrypt ();
20696 return des_cbc_encrypt ();
20701 rm -f conftest.$ac_objext conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20710 grep -v '^ *+' conftest.er1 >conftest.err
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest$ac_exeext &&
20718 $as_test_x conftest$ac_exeext; then
20719 ac_cv_lib_des_des_cbc_encrypt=yes
20721 echo "$as_me: failed program was
:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_cv_lib_des_des_cbc_encrypt=no
20727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20728 conftest$ac_exeext conftest.$ac_ext
20729 LIBS=$ac_check_lib_save_LIBS
20731 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20732 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20733 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20734 cat >>confdefs.h <<_ACEOF
20735 #define HAVE_LIBDES 1
20745 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20746 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20747 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20748 echo $ECHO_N "(cached
) $ECHO_C" >&6
20750 ac_check_lib_save_LIBS=$LIBS
20751 LIBS="-lkrb4 $LIBS"
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 /* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20765 char krb_get_cred ();
20769 return krb_get_cred ();
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext &&
20791 $as_test_x conftest$ac_exeext; then
20792 ac_cv_lib_krb4_krb_get_cred=yes
20794 echo "$as_me: failed program was
:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_cv_lib_krb4_krb_get_cred=no
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20804 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20805 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20806 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_LIBKRB4 1
20811 LIBS="-lkrb4 $LIBS"
20815 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20816 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20817 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20818 echo $ECHO_N "(cached
) $ECHO_C" >&6
20820 ac_check_lib_save_LIBS=$LIBS
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 /* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20835 char krb_get_cred ();
20839 return krb_get_cred ();
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (ac_try="$ac_link"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_link") 2>conftest.er1
20853 grep -v '^ *+' conftest.er1 >conftest.err
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest$ac_exeext &&
20861 $as_test_x conftest$ac_exeext; then
20862 ac_cv_lib_krb_krb_get_cred=yes
20864 echo "$as_me: failed program was
:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 ac_cv_lib_krb_krb_get_cred=no
20870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20871 conftest$ac_exeext conftest.$ac_ext
20872 LIBS=$ac_check_lib_save_LIBS
20874 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20875 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20876 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_LIBKRB 1
20889 if test "${with_kerberos5+set}" = set; then
20891 for ac_header in krb5.h
20893 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20894 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20895 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20896 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20898 echo $ECHO_N "(cached
) $ECHO_C" >&6
20900 ac_res=`eval echo '${'$as_ac_Header'}'`
20901 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20902 echo "${ECHO_T}$ac_res" >&6; }
20904 # Is the header compilable?
20905 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20906 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 $ac_includes_default
20914 #include <$ac_header>
20916 rm -f conftest.$ac_objext
20917 if { (ac_try="$ac_compile"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_compile") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest.$ac_objext; then
20933 ac_header_compiler=yes
20935 echo "$as_me: failed program was
:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_header_compiler=no
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20943 echo "${ECHO_T}$ac_header_compiler" >&6; }
20945 # Is the header present?
20946 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20947 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 #include <$ac_header>
20956 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20968 (exit $ac_status); } >/dev/null && {
20969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20972 ac_header_preproc=yes
20974 echo "$as_me: failed program was
:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_header_preproc=no
20980 rm -f conftest.err conftest.$ac_ext
20981 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20982 echo "${ECHO_T}$ac_header_preproc" >&6; }
20984 # So? What about this header?
20985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20987 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20988 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20989 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20991 ac_header_preproc=yes
20994 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20995 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20996 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20997 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20998 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20999 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21000 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21001 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21002 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21004 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21005 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21009 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21010 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21012 echo $ECHO_N "(cached
) $ECHO_C" >&6
21014 eval "$as_ac_Header=\
$ac_header_preproc"
21016 ac_res=`eval echo '${'$as_ac_Header'}'`
21017 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21018 echo "${ECHO_T}$ac_res" >&6; }
21021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21032 for ac_header in des.h
21034 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21036 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21037 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21039 echo $ECHO_N "(cached
) $ECHO_C" >&6
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21045 # Is the header compilable?
21046 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21047 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 $ac_includes_default
21055 #include <$ac_header>
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.$ac_objext; then
21074 ac_header_compiler=yes
21076 echo "$as_me: failed program was
:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 ac_header_compiler=no
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21084 echo "${ECHO_T}$ac_header_compiler" >&6; }
21086 # Is the header present?
21087 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21088 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <$ac_header>
21097 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21109 (exit $ac_status); } >/dev/null && {
21110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21113 ac_header_preproc=yes
21115 echo "$as_me: failed program was
:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_header_preproc=no
21121 rm -f conftest.err conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21123 echo "${ECHO_T}$ac_header_preproc" >&6; }
21125 # So? What about this header?
21126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21128 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21129 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21130 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21132 ac_header_preproc=yes
21135 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21136 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21138 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21139 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21140 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21141 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21142 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21143 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21145 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21146 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21150 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21151 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached
) $ECHO_C" >&6
21155 eval "$as_ac_Header=\
$ac_header_preproc"
21157 ac_res=`eval echo '${'$as_ac_Header'}'`
21158 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21159 echo "${ECHO_T}$ac_res" >&6; }
21162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21163 cat >>confdefs.h <<_ACEOF
21164 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21169 for ac_header in kerberosIV/des.h
21171 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21172 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21173 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21174 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached
) $ECHO_C" >&6
21178 ac_res=`eval echo '${'$as_ac_Header'}'`
21179 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21182 # Is the header compilable?
21183 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21184 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 #include <$ac_header>
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21207 (exit $ac_status); } && {
21208 test -z "$ac_c_werror_flag" ||
21209 test ! -s conftest.err
21210 } && test -s conftest.$ac_objext; then
21211 ac_header_compiler=yes
21213 echo "$as_me: failed program was
:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ac_header_compiler=no
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21221 echo "${ECHO_T}$ac_header_compiler" >&6; }
21223 # Is the header present?
21224 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21225 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <$ac_header>
21234 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21242 grep -v '^ *+' conftest.er1 >conftest.err
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21246 (exit $ac_status); } >/dev/null && {
21247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21250 ac_header_preproc=yes
21252 echo "$as_me: failed program was
:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_header_preproc=no
21258 rm -f conftest.err conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21260 echo "${ECHO_T}$ac_header_preproc" >&6; }
21262 # So? What about this header?
21263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21265 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21266 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21267 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21269 ac_header_preproc=yes
21272 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21273 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21274 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21275 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21276 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21277 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21278 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21279 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21280 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21282 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21283 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21287 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21288 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21290 echo $ECHO_N "(cached
) $ECHO_C" >&6
21292 eval "$as_ac_Header=\
$ac_header_preproc"
21294 ac_res=`eval echo '${'$as_ac_Header'}'`
21295 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21296 echo "${ECHO_T}$ac_res" >&6; }
21299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21300 cat >>confdefs.h <<_ACEOF
21301 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21306 for ac_header in kerberos/des.h
21308 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21309 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21310 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21311 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached
) $ECHO_C" >&6
21315 ac_res=`eval echo '${'$as_ac_Header'}'`
21316 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21317 echo "${ECHO_T}$ac_res" >&6; }
21319 # Is the header compilable?
21320 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21321 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21322 cat >conftest.$ac_ext <<_ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 $ac_includes_default
21329 #include <$ac_header>
21331 rm -f conftest.$ac_objext
21332 if { (ac_try="$ac_compile"
21333 case "(($ac_try" in
21334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21335 *) ac_try_echo=$ac_try;;
21337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21338 (eval "$ac_compile") 2>conftest.er1
21340 grep -v '^ *+' conftest.er1 >conftest.err
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21344 (exit $ac_status); } && {
21345 test -z "$ac_c_werror_flag" ||
21346 test ! -s conftest.err
21347 } && test -s conftest.$ac_objext; then
21348 ac_header_compiler=yes
21350 echo "$as_me: failed program was
:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_header_compiler=no
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21358 echo "${ECHO_T}$ac_header_compiler" >&6; }
21360 # Is the header present?
21361 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21362 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 #include <$ac_header>
21371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21379 grep -v '^ *+' conftest.er1 >conftest.err
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21383 (exit $ac_status); } >/dev/null && {
21384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21387 ac_header_preproc=yes
21389 echo "$as_me: failed program was
:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_header_preproc=no
21395 rm -f conftest.err conftest.$ac_ext
21396 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21397 echo "${ECHO_T}$ac_header_preproc" >&6; }
21399 # So? What about this header?
21400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21402 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21403 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21404 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21406 ac_header_preproc=yes
21409 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21410 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21411 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21412 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21413 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21414 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21415 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21416 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21417 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21419 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21420 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21424 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21425 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached
) $ECHO_C" >&6
21429 eval "$as_ac_Header=\
$ac_header_preproc"
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21437 cat >>confdefs.h <<_ACEOF
21438 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21454 for ac_header in krb.h
21456 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21457 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21458 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21459 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21460 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21461 echo $ECHO_N "(cached
) $ECHO_C" >&6
21463 ac_res=`eval echo '${'$as_ac_Header'}'`
21464 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21465 echo "${ECHO_T}$ac_res" >&6; }
21467 # Is the header compilable?
21468 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21469 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21470 cat >conftest.$ac_ext <<_ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476 $ac_includes_default
21477 #include <$ac_header>
21479 rm -f conftest.$ac_objext
21480 if { (ac_try="$ac_compile"
21481 case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_compile") 2>conftest.er1
21488 grep -v '^ *+' conftest.er1 >conftest.err
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21492 (exit $ac_status); } && {
21493 test -z "$ac_c_werror_flag" ||
21494 test ! -s conftest.err
21495 } && test -s conftest.$ac_objext; then
21496 ac_header_compiler=yes
21498 echo "$as_me: failed program was
:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21501 ac_header_compiler=no
21504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21506 echo "${ECHO_T}$ac_header_compiler" >&6; }
21508 # Is the header present?
21509 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21510 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 #include <$ac_header>
21519 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21527 grep -v '^ *+' conftest.er1 >conftest.err
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21531 (exit $ac_status); } >/dev/null && {
21532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21533 test ! -s conftest.err
21535 ac_header_preproc=yes
21537 echo "$as_me: failed program was
:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_header_preproc=no
21543 rm -f conftest.err conftest.$ac_ext
21544 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21545 echo "${ECHO_T}$ac_header_preproc" >&6; }
21547 # So? What about this header?
21548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21550 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21551 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21552 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21554 ac_header_preproc=yes
21557 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21558 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21559 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21560 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21561 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21562 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21563 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21564 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21565 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21567 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21568 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21572 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21573 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21574 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21575 echo $ECHO_N "(cached
) $ECHO_C" >&6
21577 eval "$as_ac_Header=\
$ac_header_preproc"
21579 ac_res=`eval echo '${'$as_ac_Header'}'`
21580 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21581 echo "${ECHO_T}$ac_res" >&6; }
21584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21585 cat >>confdefs.h <<_ACEOF
21586 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21591 for ac_header in kerberosIV/krb.h
21593 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21595 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21596 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21597 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21598 echo $ECHO_N "(cached
) $ECHO_C" >&6
21600 ac_res=`eval echo '${'$as_ac_Header'}'`
21601 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21602 echo "${ECHO_T}$ac_res" >&6; }
21604 # Is the header compilable?
21605 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21606 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21614 #include <$ac_header>
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_compile") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest.$ac_objext; then
21633 ac_header_compiler=yes
21635 echo "$as_me: failed program was
:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_header_compiler=no
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21643 echo "${ECHO_T}$ac_header_compiler" >&6; }
21645 # Is the header present?
21646 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21647 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21648 cat >conftest.$ac_ext <<_ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 #include <$ac_header>
21656 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21668 (exit $ac_status); } >/dev/null && {
21669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21672 ac_header_preproc=yes
21674 echo "$as_me: failed program was
:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ac_header_preproc=no
21680 rm -f conftest.err conftest.$ac_ext
21681 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21682 echo "${ECHO_T}$ac_header_preproc" >&6; }
21684 # So? What about this header?
21685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21687 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21688 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21689 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21691 ac_header_preproc=yes
21694 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21695 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21696 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21697 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21698 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21699 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21700 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21701 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21702 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21704 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21705 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21709 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21710 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21711 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21712 echo $ECHO_N "(cached
) $ECHO_C" >&6
21714 eval "$as_ac_Header=\
$ac_header_preproc"
21716 ac_res=`eval echo '${'$as_ac_Header'}'`
21717 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21718 echo "${ECHO_T}$ac_res" >&6; }
21721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21728 for ac_header in kerberos/krb.h
21730 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21731 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21732 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21733 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21734 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21735 echo $ECHO_N "(cached
) $ECHO_C" >&6
21737 ac_res=`eval echo '${'$as_ac_Header'}'`
21738 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21739 echo "${ECHO_T}$ac_res" >&6; }
21741 # Is the header compilable?
21742 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21743 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21744 cat >conftest.$ac_ext <<_ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750 $ac_includes_default
21751 #include <$ac_header>
21753 rm -f conftest.$ac_objext
21754 if { (ac_try="$ac_compile"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_compile") 2>conftest.er1
21762 grep -v '^ *+' conftest.er1 >conftest.err
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest.$ac_objext; then
21770 ac_header_compiler=yes
21772 echo "$as_me: failed program was
:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21775 ac_header_compiler=no
21778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21779 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21780 echo "${ECHO_T}$ac_header_compiler" >&6; }
21782 # Is the header present?
21783 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21784 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <$ac_header>
21793 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21805 (exit $ac_status); } >/dev/null && {
21806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21809 ac_header_preproc=yes
21811 echo "$as_me: failed program was
:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_header_preproc=no
21817 rm -f conftest.err conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21819 echo "${ECHO_T}$ac_header_preproc" >&6; }
21821 # So? What about this header?
21822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21824 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21825 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21826 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21828 ac_header_preproc=yes
21831 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21832 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21833 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21834 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21835 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21836 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21837 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21838 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21839 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21841 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21842 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21846 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21847 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21848 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21849 echo $ECHO_N "(cached
) $ECHO_C" >&6
21851 eval "$as_ac_Header=\
$ac_header_preproc"
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21859 cat >>confdefs.h <<_ACEOF
21860 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21877 for ac_header in com_err.h
21879 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21880 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21881 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21882 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21883 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21884 echo $ECHO_N "(cached
) $ECHO_C" >&6
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21890 # Is the header compilable?
21891 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21892 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21893 cat >conftest.$ac_ext <<_ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 $ac_includes_default
21900 #include <$ac_header>
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_compile") 2>conftest.er1
21911 grep -v '^ *+' conftest.er1 >conftest.err
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest.$ac_objext; then
21919 ac_header_compiler=yes
21921 echo "$as_me: failed program was
:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 ac_header_compiler=no
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21929 echo "${ECHO_T}$ac_header_compiler" >&6; }
21931 # Is the header present?
21932 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21933 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 #include <$ac_header>
21942 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21943 case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21950 grep -v '^ *+' conftest.er1 >conftest.err
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21954 (exit $ac_status); } >/dev/null && {
21955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21956 test ! -s conftest.err
21958 ac_header_preproc=yes
21960 echo "$as_me: failed program was
:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 ac_header_preproc=no
21966 rm -f conftest.err conftest.$ac_ext
21967 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21968 echo "${ECHO_T}$ac_header_preproc" >&6; }
21970 # So? What about this header?
21971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21973 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21974 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21975 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21977 ac_header_preproc=yes
21980 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21981 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21982 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21983 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21984 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21985 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21986 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21987 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21988 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21990 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21991 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21995 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21996 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21997 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21998 echo $ECHO_N "(cached
) $ECHO_C" >&6
22000 eval "$as_ac_Header=\
$ac_header_preproc"
22002 ac_res=`eval echo '${'$as_ac_Header'}'`
22003 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22004 echo "${ECHO_T}$ac_res" >&6; }
22007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22008 cat >>confdefs.h <<_ACEOF
22009 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22018 # Solaris requires -lintl if you want strerror (which calls dgettext)
22019 # to return localized messages.
22021 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22022 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22023 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22024 echo $ECHO_N "(cached
) $ECHO_C" >&6
22026 ac_check_lib_save_LIBS=$LIBS
22027 LIBS="-lintl $LIBS"
22028 cat >conftest.$ac_ext <<_ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22035 /* Override any GCC internal prototype to avoid an error.
22036 Use char because int might match the return type of a GCC
22037 builtin and then its argument prototype would still apply. */
22045 return dgettext ();
22050 rm -f conftest.$ac_objext conftest$ac_exeext
22051 if { (ac_try="$ac_link"
22052 case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_link") 2>conftest.er1
22059 grep -v '^ *+' conftest.er1 >conftest.err
22061 cat conftest.err >&5
22062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22063 (exit $ac_status); } && {
22064 test -z "$ac_c_werror_flag" ||
22065 test ! -s conftest.err
22066 } && test -s conftest$ac_exeext &&
22067 $as_test_x conftest$ac_exeext; then
22068 ac_cv_lib_intl_dgettext=yes
22070 echo "$as_me: failed program was
:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ac_cv_lib_intl_dgettext=no
22076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22077 conftest$ac_exeext conftest.$ac_ext
22078 LIBS=$ac_check_lib_save_LIBS
22080 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22081 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22082 if test $ac_cv_lib_intl_dgettext = yes; then
22083 cat >>confdefs.h <<_ACEOF
22084 #define HAVE_LIBINTL 1
22087 LIBS="-lintl $LIBS"
22092 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22093 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22094 if test "${emacs_cv_localtime_cache+set}" = set; then
22095 echo $ECHO_N "(cached
) $ECHO_C" >&6
22097 if test x$ac_cv_func_tzset = xyes; then
22098 if test "$cross_compiling" = yes; then
22099 # If we have tzset, assume the worst when cross-compiling.
22100 emacs_cv_localtime_cache=yes
22102 cat >conftest.$ac_ext <<_ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22109 extern char **environ;
22113 for (to = from = environ; (*to = *from); from++)
22114 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22117 char TZ_GMT0[] = "TZ
=GMT0
";
22118 char TZ_PST8[] = "TZ
=PST8
";
22121 time_t now = time ((time_t *) 0);
22122 int hour_GMT0, hour_unset;
22123 if (putenv (TZ_GMT0) != 0)
22125 hour_GMT0 = localtime (&now)->tm_hour;
22127 hour_unset = localtime (&now)->tm_hour;
22128 if (putenv (TZ_PST8) != 0)
22130 if (localtime (&now)->tm_hour == hour_GMT0)
22133 if (localtime (&now)->tm_hour != hour_unset)
22138 rm -f conftest$ac_exeext
22139 if { (ac_try="$ac_link"
22140 case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_link") 2>&5
22147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22149 { (case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_try") 2>&5
22156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 emacs_cv_localtime_cache=no
22160 echo "$as_me: program exited with status
$ac_status" >&5
22161 echo "$as_me: failed program was
:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22164 ( exit $ac_status )
22165 emacs_cv_localtime_cache=yes
22167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22172 # If we lack tzset, report that localtime does not cache TZ,
22173 # since we can't invalidate the cache if we don't have tzset.
22174 emacs_cv_localtime_cache=no
22177 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22178 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22179 if test $emacs_cv_localtime_cache = yes; then
22181 cat >>confdefs.h <<\_ACEOF
22182 #define LOCALTIME_CACHE 1
22187 if test "x
$HAVE_TIMEVAL" = xyes; then
22189 for ac_func in gettimeofday
22191 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22192 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22193 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22194 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22195 echo $ECHO_N "(cached
) $ECHO_C" >&6
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22205 #define $ac_func innocuous_$ac_func
22207 /* System header to define __stub macros and hopefully few prototypes,
22208 which can conflict with char $ac_func (); below.
22209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22210 <limits.h> exists even on freestanding compilers. */
22213 # include <limits.h>
22215 # include <assert.h>
22220 /* Override any GCC internal prototype to avoid an error.
22221 Use char because int might match the return type of a GCC
22222 builtin and then its argument prototype would still apply. */
22227 /* The GNU C library defines this for functions which it implements
22228 to always fail with ENOSYS. Some functions are actually named
22229 something starting with __ and the normal name is an alias. */
22230 #if defined __stub_$ac_func || defined __stub___$ac_func
22237 return $ac_func ();
22242 rm -f conftest.$ac_objext conftest$ac_exeext
22243 if { (ac_try="$ac_link"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_link") 2>conftest.er1
22251 grep -v '^ *+' conftest.er1 >conftest.err
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest$ac_exeext &&
22259 $as_test_x conftest$ac_exeext; then
22260 eval "$as_ac_var=yes"
22262 echo "$as_me: failed program was
:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 eval "$as_ac_var=no
"
22268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22269 conftest$ac_exeext conftest.$ac_ext
22271 ac_res=`eval echo '${'$as_ac_var'}'`
22272 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22273 echo "${ECHO_T}$ac_res" >&6; }
22274 if test `eval echo '${'$as_ac_var'}'` = yes; then
22275 cat >>confdefs.h <<_ACEOF
22276 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22282 if test $ac_cv_func_gettimeofday = yes; then
22283 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22284 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22285 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22286 echo $ECHO_N "(cached
) $ECHO_C" >&6
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22295 #ifdef TIME_WITH_SYS_TIME
22296 #include <sys/time.h>
22299 #ifdef HAVE_SYS_TIME_H
22300 #include <sys/time.h>
22308 struct timeval time;
22309 gettimeofday (&time, 0);
22314 rm -f conftest.$ac_objext
22315 if { (ac_try="$ac_compile"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_compile") 2>conftest.er1
22323 grep -v '^ *+' conftest.er1 >conftest.err
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest.$ac_objext; then
22331 emacs_cv_gettimeofday_two_arguments=yes
22333 echo "$as_me: failed program was
:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 emacs_cv_gettimeofday_two_arguments=no
22339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22342 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22343 if test $emacs_cv_gettimeofday_two_arguments = no; then
22345 cat >>confdefs.h <<\_ACEOF
22346 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22354 { echo "$as_me:$LINENO: checking
for socket
" >&5
22355 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22356 if test "${ac_cv_func_socket+set}" = set; then
22357 echo $ECHO_N "(cached
) $ECHO_C" >&6
22359 cat >conftest.$ac_ext <<_ACEOF
22362 cat confdefs.h >>conftest.$ac_ext
22363 cat >>conftest.$ac_ext <<_ACEOF
22364 /* end confdefs.h. */
22365 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22367 #define socket innocuous_socket
22369 /* System header to define __stub macros and hopefully few prototypes,
22370 which can conflict with char socket (); below.
22371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22372 <limits.h> exists even on freestanding compilers. */
22375 # include <limits.h>
22377 # include <assert.h>
22382 /* Override any GCC internal prototype to avoid an error.
22383 Use char because int might match the return type of a GCC
22384 builtin and then its argument prototype would still apply. */
22389 /* The GNU C library defines this for functions which it implements
22390 to always fail with ENOSYS. Some functions are actually named
22391 something starting with __ and the normal name is an alias. */
22392 #if defined __stub_socket || defined __stub___socket
22404 rm -f conftest.$ac_objext conftest$ac_exeext
22405 if { (ac_try="$ac_link"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_link") 2>conftest.er1
22413 grep -v '^ *+' conftest.er1 >conftest.err
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest$ac_exeext &&
22421 $as_test_x conftest$ac_exeext; then
22422 ac_cv_func_socket=yes
22424 echo "$as_me: failed program was
:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_cv_func_socket=no
22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22431 conftest$ac_exeext conftest.$ac_ext
22433 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22434 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22435 if test $ac_cv_func_socket = yes; then
22441 if test $ok_so_far = yes; then
22442 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22443 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22444 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22445 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22446 echo $ECHO_N "(cached
) $ECHO_C" >&6
22448 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22449 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22451 # Is the header compilable?
22452 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22453 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 $ac_includes_default
22461 #include <netinet/in.h>
22463 rm -f conftest.$ac_objext
22464 if { (ac_try="$ac_compile"
22465 case "(($ac_try" in
22466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467 *) ac_try_echo=$ac_try;;
22469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22470 (eval "$ac_compile") 2>conftest.er1
22472 grep -v '^ *+' conftest.er1 >conftest.err
22474 cat conftest.err >&5
22475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22476 (exit $ac_status); } && {
22477 test -z "$ac_c_werror_flag" ||
22478 test ! -s conftest.err
22479 } && test -s conftest.$ac_objext; then
22480 ac_header_compiler=yes
22482 echo "$as_me: failed program was
:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22485 ac_header_compiler=no
22488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22490 echo "${ECHO_T}$ac_header_compiler" >&6; }
22492 # Is the header present?
22493 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22494 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 #include <netinet/in.h>
22503 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22504 case "(($ac_try" in
22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506 *) ac_try_echo=$ac_try;;
22508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22509 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22511 grep -v '^ *+' conftest.er1 >conftest.err
22513 cat conftest.err >&5
22514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22515 (exit $ac_status); } >/dev/null && {
22516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22519 ac_header_preproc=yes
22521 echo "$as_me: failed program was
:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22524 ac_header_preproc=no
22527 rm -f conftest.err conftest.$ac_ext
22528 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22529 echo "${ECHO_T}$ac_header_preproc" >&6; }
22531 # So? What about this header?
22532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22534 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22535 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22536 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22537 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22538 ac_header_preproc=yes
22541 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22542 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22543 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22544 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22545 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22546 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22547 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22548 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22549 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22550 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22551 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22552 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22556 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22557 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22558 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22559 echo $ECHO_N "(cached
) $ECHO_C" >&6
22561 ac_cv_header_netinet_in_h=$ac_header_preproc
22563 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22564 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22567 if test $ac_cv_header_netinet_in_h = yes; then
22575 if test $ok_so_far = yes; then
22576 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22577 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22578 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22579 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22580 echo $ECHO_N "(cached
) $ECHO_C" >&6
22582 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22583 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22585 # Is the header compilable?
22586 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22587 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22588 cat >conftest.$ac_ext <<_ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 $ac_includes_default
22595 #include <arpa/inet.h>
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_header_compiler=yes
22616 echo "$as_me: failed program was
:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_header_compiler=no
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22624 echo "${ECHO_T}$ac_header_compiler" >&6; }
22626 # Is the header present?
22627 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22628 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22629 cat >conftest.$ac_ext <<_ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22635 #include <arpa/inet.h>
22637 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22638 case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22645 grep -v '^ *+' conftest.er1 >conftest.err
22647 cat conftest.err >&5
22648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22649 (exit $ac_status); } >/dev/null && {
22650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22651 test ! -s conftest.err
22653 ac_header_preproc=yes
22655 echo "$as_me: failed program was
:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22658 ac_header_preproc=no
22661 rm -f conftest.err conftest.$ac_ext
22662 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22663 echo "${ECHO_T}$ac_header_preproc" >&6; }
22665 # So? What about this header?
22666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22668 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22669 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22670 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22671 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22672 ac_header_preproc=yes
22675 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22676 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22677 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22678 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22679 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22680 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22681 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22682 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22683 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22684 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22685 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22686 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22690 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22691 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22692 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22693 echo $ECHO_N "(cached
) $ECHO_C" >&6
22695 ac_cv_header_arpa_inet_h=$ac_header_preproc
22697 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22698 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22701 if test $ac_cv_header_arpa_inet_h = yes; then
22709 if test $ok_so_far = yes; then
22711 cat >>confdefs.h <<\_ACEOF
22712 #define HAVE_INET_SOCKETS 1
22718 for ac_header in sys/ioctl.h
22720 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22722 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22723 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22724 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22725 echo $ECHO_N "(cached
) $ECHO_C" >&6
22727 ac_res=`eval echo '${'$as_ac_Header'}'`
22728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22729 echo "${ECHO_T}$ac_res" >&6; }
22731 # Is the header compilable?
22732 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22733 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 $ac_includes_default
22741 #include <$ac_header>
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22750 (eval "$ac_compile") 2>conftest.er1
22752 grep -v '^ *+' conftest.er1 >conftest.err
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22756 (exit $ac_status); } && {
22757 test -z "$ac_c_werror_flag" ||
22758 test ! -s conftest.err
22759 } && test -s conftest.$ac_objext; then
22760 ac_header_compiler=yes
22762 echo "$as_me: failed program was
:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 ac_header_compiler=no
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22770 echo "${ECHO_T}$ac_header_compiler" >&6; }
22772 # Is the header present?
22773 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22774 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22775 cat >conftest.$ac_ext <<_ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22781 #include <$ac_header>
22783 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22791 grep -v '^ *+' conftest.er1 >conftest.err
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22795 (exit $ac_status); } >/dev/null && {
22796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22797 test ! -s conftest.err
22799 ac_header_preproc=yes
22801 echo "$as_me: failed program was
:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 ac_header_preproc=no
22807 rm -f conftest.err conftest.$ac_ext
22808 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22809 echo "${ECHO_T}$ac_header_preproc" >&6; }
22811 # So? What about this header?
22812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22814 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22815 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22816 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22818 ac_header_preproc=yes
22821 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22822 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22823 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22824 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22825 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22826 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22827 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22828 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22829 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22831 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22832 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22836 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22837 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22839 echo $ECHO_N "(cached
) $ECHO_C" >&6
22841 eval "$as_ac_Header=\
$ac_header_preproc"
22843 ac_res=`eval echo '${'$as_ac_Header'}'`
22844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22845 echo "${ECHO_T}$ac_res" >&6; }
22848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22849 cat >>confdefs.h <<_ACEOF
22850 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22858 if test -f /usr/lpp/X11/bin/smt.exp; then
22860 cat >>confdefs.h <<\_ACEOF
22861 #define HAVE_AIX_SMT_EXP 1
22866 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22867 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22868 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22869 { echo "$as_me:$LINENO: result
: yes" >&5
22870 echo "${ECHO_T}yes" >&6; }
22872 cat >>confdefs.h <<\_ACEOF
22873 #define HAVE_DEV_PTMX 1
22877 { echo "$as_me:$LINENO: result
: no
" >&5
22878 echo "${ECHO_T}no
" >&6; }
22881 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22882 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22883 if test "${ac_cv_type_pid_t+set}" = set; then
22884 echo $ECHO_N "(cached
) $ECHO_C" >&6
22886 cat >conftest.$ac_ext <<_ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h. */
22892 $ac_includes_default
22893 typedef pid_t ac__type_new_;
22897 if ((ac__type_new_ *) 0)
22899 if (sizeof (ac__type_new_))
22905 rm -f conftest.$ac_objext
22906 if { (ac_try="$ac_compile"
22907 case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_compile") 2>conftest.er1
22914 grep -v '^ *+' conftest.er1 >conftest.err
22916 cat conftest.err >&5
22917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22918 (exit $ac_status); } && {
22919 test -z "$ac_c_werror_flag" ||
22920 test ! -s conftest.err
22921 } && test -s conftest.$ac_objext; then
22922 ac_cv_type_pid_t=yes
22924 echo "$as_me: failed program was
:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 ac_cv_type_pid_t=no
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22933 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22934 if test $ac_cv_type_pid_t = yes; then
22938 cat >>confdefs.h <<_ACEOF
22945 for ac_header in vfork.h
22947 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22948 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22949 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22950 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22951 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22952 echo $ECHO_N "(cached
) $ECHO_C" >&6
22954 ac_res=`eval echo '${'$as_ac_Header'}'`
22955 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22956 echo "${ECHO_T}$ac_res" >&6; }
22958 # Is the header compilable?
22959 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22960 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22961 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 $ac_includes_default
22968 #include <$ac_header>
22970 rm -f conftest.$ac_objext
22971 if { (ac_try="$ac_compile"
22972 case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22977 (eval "$ac_compile") 2>conftest.er1
22979 grep -v '^ *+' conftest.er1 >conftest.err
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22983 (exit $ac_status); } && {
22984 test -z "$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22986 } && test -s conftest.$ac_objext; then
22987 ac_header_compiler=yes
22989 echo "$as_me: failed program was
:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_header_compiler=no
22995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22996 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22997 echo "${ECHO_T}$ac_header_compiler" >&6; }
22999 # Is the header present?
23000 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23001 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23002 cat >conftest.$ac_ext <<_ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 #include <$ac_header>
23010 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23018 grep -v '^ *+' conftest.er1 >conftest.err
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23022 (exit $ac_status); } >/dev/null && {
23023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23024 test ! -s conftest.err
23026 ac_header_preproc=yes
23028 echo "$as_me: failed program was
:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23031 ac_header_preproc=no
23034 rm -f conftest.err conftest.$ac_ext
23035 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23036 echo "${ECHO_T}$ac_header_preproc" >&6; }
23038 # So? What about this header?
23039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23041 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23042 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23043 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23045 ac_header_preproc=yes
23048 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23049 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23050 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23051 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23052 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23053 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23054 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23055 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23056 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23058 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23059 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23063 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23064 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23066 echo $ECHO_N "(cached
) $ECHO_C" >&6
23068 eval "$as_ac_Header=\
$ac_header_preproc"
23070 ac_res=`eval echo '${'$as_ac_Header'}'`
23071 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23072 echo "${ECHO_T}$ac_res" >&6; }
23075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23076 cat >>confdefs.h <<_ACEOF
23077 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23086 for ac_func in fork vfork
23088 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23089 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23090 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23091 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23092 echo $ECHO_N "(cached
) $ECHO_C" >&6
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23102 #define $ac_func innocuous_$ac_func
23104 /* System header to define __stub macros and hopefully few prototypes,
23105 which can conflict with char $ac_func (); below.
23106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23107 <limits.h> exists even on freestanding compilers. */
23110 # include <limits.h>
23112 # include <assert.h>
23117 /* Override any GCC internal prototype to avoid an error.
23118 Use char because int might match the return type of a GCC
23119 builtin and then its argument prototype would still apply. */
23124 /* The GNU C library defines this for functions which it implements
23125 to always fail with ENOSYS. Some functions are actually named
23126 something starting with __ and the normal name is an alias. */
23127 #if defined __stub_$ac_func || defined __stub___$ac_func
23134 return $ac_func ();
23139 rm -f conftest.$ac_objext conftest$ac_exeext
23140 if { (ac_try="$ac_link"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_link") 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest$ac_exeext &&
23156 $as_test_x conftest$ac_exeext; then
23157 eval "$as_ac_var=yes"
23159 echo "$as_me: failed program was
:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 eval "$as_ac_var=no
"
23165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23166 conftest$ac_exeext conftest.$ac_ext
23168 ac_res=`eval echo '${'$as_ac_var'}'`
23169 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23170 echo "${ECHO_T}$ac_res" >&6; }
23171 if test `eval echo '${'$as_ac_var'}'` = yes; then
23172 cat >>confdefs.h <<_ACEOF
23173 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23179 if test "x
$ac_cv_func_fork" = xyes; then
23180 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23181 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23182 if test "${ac_cv_func_fork_works+set}" = set; then
23183 echo $ECHO_N "(cached
) $ECHO_C" >&6
23185 if test "$cross_compiling" = yes; then
23186 ac_cv_func_fork_works=cross
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23199 /* By Ruediger Kuhlmann. */
23200 return fork () < 0;
23206 rm -f conftest$ac_exeext
23207 if { (ac_try="$ac_link"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_link") 2>&5
23215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23217 { (case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_try") 2>&5
23224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23225 (exit $ac_status); }; }; then
23226 ac_cv_func_fork_works=yes
23228 echo "$as_me: program exited with status
$ac_status" >&5
23229 echo "$as_me: failed program was
:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ( exit $ac_status )
23233 ac_cv_func_fork_works=no
23235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23240 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23241 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23244 ac_cv_func_fork_works=$ac_cv_func_fork
23246 if test "x
$ac_cv_func_fork_works" = xcross; then
23248 *-*-amigaos* | *-*-msdosdjgpp*)
23249 # Override, as these systems have only a dummy fork() stub
23250 ac_cv_func_fork_works=no
23253 ac_cv_func_fork_works=yes
23256 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23257 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23259 ac_cv_func_vfork_works=$ac_cv_func_vfork
23260 if test "x
$ac_cv_func_vfork" = xyes; then
23261 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23262 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23263 if test "${ac_cv_func_vfork_works+set}" = set; then
23264 echo $ECHO_N "(cached
) $ECHO_C" >&6
23266 if test "$cross_compiling" = yes; then
23267 ac_cv_func_vfork_works=cross
23269 cat >conftest.$ac_ext <<_ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23275 /* Thanks to Paul Eggert for this test. */
23276 $ac_includes_default
23277 #include <sys/wait.h>
23278 #ifdef HAVE_VFORK_H
23279 # include <vfork.h>
23281 /* On some sparc systems, changes by the child to local and incoming
23282 argument registers are propagated back to the parent. The compiler
23283 is told about this with #include <vfork.h>, but some compilers
23284 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23285 static variable whose address is put into a register that is
23286 clobbered by the vfork. */
23289 sparc_address_test (int arg)
23291 sparc_address_test (arg) int arg;
23294 static pid_t child;
23312 pid_t parent = getpid ();
23315 sparc_address_test (0);
23320 /* Here is another test for sparc vfork register problems. This
23321 test uses lots of local variables, at least as many local
23322 variables as main has allocated so far including compiler
23323 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23324 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23325 reuse the register of parent for one of the local variables,
23326 since it will think that parent can't possibly be used any more
23327 in this routine. Assigning to the local variable will thus
23328 munge parent in the parent process. */
23330 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23331 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23332 /* Convince the compiler that p..p7 are live; otherwise, it might
23333 use the same hardware register for all 8 local variables. */
23334 if (p != p1 || p != p2 || p != p3 || p != p4
23335 || p != p5 || p != p6 || p != p7)
23338 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23339 from child file descriptors. If the child closes a descriptor
23340 before it execs or exits, this munges the parent's descriptor
23341 as well. Test for this by closing stdout in the child. */
23342 _exit(close(fileno(stdout)) != 0);
23347 while (wait(&status) != child)
23350 /* Was there some problem with vforking? */
23353 /* Did the child fail? (This shouldn't happen.) */
23356 /* Did the vfork/compiler bug occur? */
23357 || parent != getpid()
23359 /* Did the file descriptor bug occur? */
23360 || fstat(fileno(stdout), &st) != 0
23365 rm -f conftest$ac_exeext
23366 if { (ac_try="$ac_link"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_link") 2>&5
23374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23376 { (case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_try") 2>&5
23383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_func_vfork_works=yes
23387 echo "$as_me: program exited with status
$ac_status" >&5
23388 echo "$as_me: failed program was
:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ( exit $ac_status )
23392 ac_cv_func_vfork_works=no
23394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23399 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23400 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23403 if test "x
$ac_cv_func_fork_works" = xcross; then
23404 ac_cv_func_vfork_works=$ac_cv_func_vfork
23405 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23406 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23409 if test "x
$ac_cv_func_vfork_works" = xyes; then
23411 cat >>confdefs.h <<\_ACEOF
23412 #define HAVE_WORKING_VFORK 1
23417 cat >>confdefs.h <<\_ACEOF
23422 if test "x
$ac_cv_func_fork_works" = xyes; then
23424 cat >>confdefs.h <<\_ACEOF
23425 #define HAVE_WORKING_FORK 1
23431 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23432 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23433 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23434 echo $ECHO_N "(cached
) $ECHO_C" >&6
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #include <langinfo.h>
23446 char* cs = nl_langinfo(CODESET);
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>conftest.er1
23460 grep -v '^ *+' conftest.er1 >conftest.err
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest$ac_exeext &&
23468 $as_test_x conftest$ac_exeext; then
23469 emacs_cv_langinfo_codeset=yes
23471 echo "$as_me: failed program was
:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23474 emacs_cv_langinfo_codeset=no
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478 conftest$ac_exeext conftest.$ac_ext
23481 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23482 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23483 if test $emacs_cv_langinfo_codeset = yes; then
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_LANGINFO_CODESET 1
23491 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23492 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23493 if test "${ac_cv_type_size_t+set}" = set; then
23494 echo $ECHO_N "(cached
) $ECHO_C" >&6
23496 cat >conftest.$ac_ext <<_ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h. */
23502 $ac_includes_default
23503 typedef size_t ac__type_new_;
23507 if ((ac__type_new_ *) 0)
23509 if (sizeof (ac__type_new_))
23515 rm -f conftest.$ac_objext
23516 if { (ac_try="$ac_compile"
23517 case "(($ac_try" in
23518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_compile") 2>conftest.er1
23524 grep -v '^ *+' conftest.er1 >conftest.err
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23528 (exit $ac_status); } && {
23529 test -z "$ac_c_werror_flag" ||
23530 test ! -s conftest.err
23531 } && test -s conftest.$ac_objext; then
23532 ac_cv_type_size_t=yes
23534 echo "$as_me: failed program was
:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_cv_type_size_t=no
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23543 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23544 if test $ac_cv_type_size_t = yes; then
23546 cat >>confdefs.h <<_ACEOF
23547 #define HAVE_SIZE_T 1
23554 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23555 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23556 if test "${ac_cv_type_mbstate_t+set}" = set; then
23557 echo $ECHO_N "(cached
) $ECHO_C" >&6
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 $ac_includes_default
23566 # include <wchar.h>
23570 mbstate_t x; return sizeof x;
23575 rm -f conftest.$ac_objext
23576 if { (ac_try="$ac_compile"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_compile") 2>conftest.er1
23584 grep -v '^ *+' conftest.er1 >conftest.err
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23588 (exit $ac_status); } && {
23589 test -z "$ac_c_werror_flag" ||
23590 test ! -s conftest.err
23591 } && test -s conftest.$ac_objext; then
23592 ac_cv_type_mbstate_t=yes
23594 echo "$as_me: failed program was
:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597 ac_cv_type_mbstate_t=no
23600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23603 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23604 if test $ac_cv_type_mbstate_t = yes; then
23606 cat >>confdefs.h <<\_ACEOF
23607 #define HAVE_MBSTATE_T 1
23612 cat >>confdefs.h <<\_ACEOF
23613 #define mbstate_t int
23618 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23619 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23620 if test "${emacs_cv_c_restrict+set}" = set; then
23621 echo $ECHO_N "(cached
) $ECHO_C" >&6
23623 cat >conftest.$ac_ext <<_ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23629 void fred (int *restrict x);
23638 rm -f conftest.$ac_objext
23639 if { (ac_try="$ac_compile"
23640 case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_compile") 2>conftest.er1
23647 grep -v '^ *+' conftest.er1 >conftest.err
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest.$ac_objext; then
23655 emacs_cv_c_restrict=yes
23657 echo "$as_me: failed program was
:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23660 cat >conftest.$ac_ext <<_ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h. */
23666 void fred (int *__restrict x);
23675 rm -f conftest.$ac_objext
23676 if { (ac_try="$ac_compile"
23677 case "(($ac_try" in
23678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679 *) ac_try_echo=$ac_try;;
23681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23682 (eval "$ac_compile") 2>conftest.er1
23684 grep -v '^ *+' conftest.er1 >conftest.err
23686 cat conftest.err >&5
23687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23688 (exit $ac_status); } && {
23689 test -z "$ac_c_werror_flag" ||
23690 test ! -s conftest.err
23691 } && test -s conftest.$ac_objext; then
23692 emacs_cv_c_restrict=__restrict
23694 echo "$as_me: failed program was
:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23697 emacs_cv_c_restrict=no
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23705 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23706 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23707 case "$emacs_cv_c_restrict" in
23708 yes) emacs_restrict=restrict;;
23709 no) emacs_restrict="";;
23710 *) emacs_restrict="$emacs_cv_c_restrict";;
23712 if test "$emacs_restrict" != __restrict; then
23714 cat >>confdefs.h <<_ACEOF
23715 #define __restrict $emacs_restrict
23720 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23721 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23722 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23723 echo $ECHO_N "(cached
) $ECHO_C" >&6
23725 cat >conftest.$ac_ext <<_ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 void fred (int x[__restrict]);
23740 rm -f conftest.$ac_objext
23741 if { (ac_try="$ac_compile"
23742 case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_compile") 2>conftest.er1
23749 grep -v '^ *+' conftest.er1 >conftest.err
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23753 (exit $ac_status); } && {
23754 test -z "$ac_c_werror_flag" ||
23755 test ! -s conftest.err
23756 } && test -s conftest.$ac_objext; then
23757 emacs_cv_c_restrict_arr=yes
23759 echo "$as_me: failed program was
:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23762 emacs_cv_c_restrict_arr=no
23765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23768 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23769 if test "$emacs_cv_c_restrict_arr" = yes; then
23771 cat >>confdefs.h <<\_ACEOF
23772 #define __restrict_arr __restrict
23779 # Set up the CFLAGS for real compilation, so we can substitute it.
23780 CFLAGS="$REAL_CFLAGS"
23781 CPPFLAGS="$REAL_CPPFLAGS"
23783 #### Find out which version of Emacs this is.
23784 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23785 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23786 if test x"${version}" = x; then
23787 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23788 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23789 { (exit 1); exit 1; }; }
23792 ### Specify what sort of things we'll be editing into Makefile and config.h.
23793 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23829 cat >>confdefs.h <<_ACEOF
23830 #define EMACS_CONFIGURATION "${canonical}"
23834 cat >>confdefs.h <<_ACEOF
23835 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23839 cat >>confdefs.h <<_ACEOF
23840 #define config_machfile "${machfile}"
23844 cat >>confdefs.h <<_ACEOF
23845 #define config_opsysfile "${opsysfile}"
23849 cat >>confdefs.h <<_ACEOF
23850 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23854 cat >>confdefs.h <<_ACEOF
23855 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23859 cat >>confdefs.h <<_ACEOF
23860 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23864 cat >>confdefs.h <<_ACEOF
23865 #define UNEXEC_SRC ${UNEXEC_SRC}
23869 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23871 cat >>confdefs.h <<\_ACEOF
23872 #define HAVE_X_WINDOWS 1
23876 if test "${USE_X_TOOLKIT}" != "none
" ; then
23878 cat >>confdefs.h <<\_ACEOF
23879 #define USE_X_TOOLKIT 1
23883 if test "${HAVE_X11}" = "yes" ; then
23885 cat >>confdefs.h <<\_ACEOF
23890 if test "${HAVE_XFREE386}" = "yes" ; then
23892 cat >>confdefs.h <<\_ACEOF
23893 #define HAVE_XFREE386 1
23897 if test "${HAVE_MENUS}" = "yes" ; then
23899 cat >>confdefs.h <<\_ACEOF
23900 #define HAVE_MENUS 1
23904 if test "${GNU_MALLOC}" = "yes" ; then
23906 cat >>confdefs.h <<\_ACEOF
23907 #define GNU_MALLOC 1
23911 if test "${REL_ALLOC}" = "yes" ; then
23913 cat >>confdefs.h <<\_ACEOF
23914 #define REL_ALLOC 1
23924 #### Report on what we decided to do.
23925 #### Report GTK as a toolkit, even if it doesn't use Xt.
23926 #### It makes printing result more understandable as using GTK sets
23927 #### toolkit_scroll_bars to yes by default.
23928 if test "${HAVE_GTK}" = "yes"; then
23933 Configured
for \
`${canonical}'.
23935 Where should the build process find the source code? ${srcdir}
23936 What operating system and machine description files should Emacs use?
23937 \`${opsysfile}' and \`${machfile}'
23938 What compiler should emacs be built with?
${CC} ${CFLAGS}
23939 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23940 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23941 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23942 What window system should Emacs use?
${window_system}
23943 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23945 if test -n "${x_includes}"; then
23946 echo " Where
do we
find X Windows header files?
${x_includes}"
23948 echo " Where
do we
find X Windows header files? Standard
dirs"
23950 if test -n "${x_libraries}"; then
23951 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23953 echo " Where
do we
find X Windows libraries? Standard
dirs"
23956 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23957 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23958 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23959 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23960 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23961 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23962 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23963 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23964 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23965 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23967 if test "${USE_FONT_BACKEND}" = "yes"; then
23968 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23969 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23970 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23971 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23973 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23976 if test $USE_XASSERTS = yes; then
23977 echo " Compiling with asserts turned on.
"
23978 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23982 if test "$USE_X_TOOLKIT" = GTK; then
23983 case "$canonical" in
23985 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23986 will probably get a crash on startup. If this happens
, please use another
23987 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23993 if test "$HAVE_CARBON" = "yes"; then
23995 echo "Warning
: The Mac Carbon port is currently unsupported and has
23996 known problems. It is not recommended
for use by non-developers.
23997 Read the emacs-devel archives
for more information.
"
24001 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24002 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24007 # Remove any trailing slashes in these variables.
24008 test "${prefix}" != NONE &&
24009 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24010 test "${exec_prefix}" != NONE &&
24011 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24013 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24014 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24015 ## from Makefile.c can correctly provide the arg `-traditional' to the
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24026 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24027 $EGREP "yes..
yes" >/dev/null 2>&1; then
24028 CPP_NEED_TRADITIONAL=no
24030 CPP_NEED_TRADITIONAL=yes
24035 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
"
24037 ac_config_commands="$ac_config_commands default
"
24039 cat >confcache <<\_ACEOF
24040 # This file is a shell script that caches the results of configure
24041 # tests run on this system so they can be shared between configure
24042 # scripts and configure runs, see configure's option --config-cache.
24043 # It is not useful on other systems. If it contains results you don't
24044 # want to keep, you may remove or edit it.
24046 # config.status only pays attention to the cache file if you give it
24047 # the --recheck option to rerun configure.
24049 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24050 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24051 # following values.
24055 # The following way of writing the cache mishandles newlines in values,
24056 # but we know of no workaround that is simple, portable, and efficient.
24057 # So, we kill variables containing newlines.
24058 # Ultrix sh set writes to stderr and can't be redirected directly,
24059 # and sets the high bit in the cache file unless we assign to the vars.
24061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24062 eval ac_val=\$$ac_var
24066 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24067 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24070 _ | IFS | as_nl) ;; #(
24071 *) $as_unset $ac_var ;;
24077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24078 *${as_nl}ac_space=\ *)
24079 # `set' does not quote correctly, so add quotes (double-quote
24080 # substitution turns \\\\ into \\, and sed turns \\ into \).
24083 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24086 # `set' quotes correctly as required by POSIX, so do not add quotes.
24087 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24101 if test -w "$cache_file"; then
24102 test "x
$cache_file" != "x
/dev
/null
" &&
24103 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24104 echo "$as_me: updating cache
$cache_file" >&6;}
24105 cat confcache >$cache_file
24107 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24108 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24113 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24114 # Let make expand exec_prefix.
24115 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24117 DEFS=-DHAVE_CONFIG_H
24121 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24122 # 1. Remove the extension, and $U if already installed.
24123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24124 ac_i=`echo "$ac_i" | sed "$ac_script"`
24125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24126 # will be set to the directory where LIBOBJS objects are built.
24127 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24128 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24130 LIBOBJS=$ac_libobjs
24132 LTLIBOBJS=$ac_ltlibobjs
24136 : ${CONFIG_STATUS=./config.status}
24137 ac_clean_files_save=$ac_clean_files
24138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24139 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24140 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24141 cat >$CONFIG_STATUS <<_ACEOF
24143 # Generated by $as_me.
24144 # Run this file to recreate the current configuration.
24145 # Compiler output produced by configure, useful for debugging
24146 # configure, is in config.log if it exists.
24149 ac_cs_recheck=false
24151 SHELL=\${CONFIG_SHELL-$SHELL}
24154 cat >>$CONFIG_STATUS <<\_ACEOF
24155 ## --------------------- ##
24156 ## M4sh Initialization. ##
24157 ## --------------------- ##
24159 # Be more Bourne compatible
24160 DUALCASE=1; export DUALCASE # for MKS sh
24161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24164 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24165 # is contrary to our usage. Disable this feature.
24166 alias -g '${1+"$@"}'='"$@
"'
24167 setopt NO_GLOB_SUBST
24169 case `(set -o) 2>/dev/null` in
24170 *posix*) set -o posix ;;
24179 # Avoid depending upon Character Ranges.
24180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24183 as_cr_digits='0123456789'
24184 as_cr_alnum=$as_cr_Letters$as_cr_digits
24186 # The user is always right.
24187 if test "${PATH_SEPARATOR+set}" != set; then
24188 echo "#! /bin/sh" >conf$$.sh
24189 echo "exit 0" >>conf$$.sh
24191 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24199 # Support unset when possible.
24200 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24208 # We need space, tab and new line, in precisely that order. Quoting is
24209 # there to prevent editors from complaining about space-tab.
24210 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24211 # splitting by setting IFS to empty value.)
24216 # Find who we are. Look in the path if we contain no directory separator.
24218 *[\\/]* ) as_myself
=$0 ;;
24219 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24220 for as_dir
in $PATH
24223 test -z "$as_dir" && as_dir
=.
24224 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24230 # We did not find ourselves, most probably we were run as `sh COMMAND'
24231 # in which case we are not to be found in the path.
24232 if test "x$as_myself" = x
; then
24235 if test ! -f "$as_myself"; then
24236 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24237 { (exit 1); exit 1; }
24240 # Work around bugs in pre-3.0 UWIN ksh.
24241 for as_var
in ENV MAIL MAILPATH
24242 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24252 LC_TELEPHONE LC_TIME
24254 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24255 eval $as_var=C
; export $as_var
24257 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24261 # Required to use basename.
24262 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24263 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24269 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24270 as_basename
=basename
24276 # Name of the executable.
24277 as_me
=`$as_basename -- "$0" ||
24278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24279 X"$0" : 'X\(//\)$' \| \
24280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24282 sed '/^.*\/\([^/][^/]*\)\/*$/{
24301 as_lineno_1
=$LINENO
24302 as_lineno_2
=$LINENO
24303 test "x$as_lineno_1" != "x$as_lineno_2" &&
24304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24307 # uniformly replaced by the line number. The first 'sed' inserts a
24308 # line-number line after each line using $LINENO; the second 'sed'
24309 # does the real work. The second script uses 'N' to pair each
24310 # line-number line with the line containing $LINENO, and appends
24311 # trailing '-' during substitution so that $LINENO is not a special
24312 # case at line end.
24313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24314 # scripts with optimization help from Paolo Bonzini. Blame Lee
24315 # E. McMahon (1931-1989) for sed's syntax. :-)
24327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24330 ' >$as_me.lineno
&&
24331 chmod +x
"$as_me.lineno" ||
24332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24333 { (exit 1); exit 1; }; }
24335 # Don't try to exec as it changes $[0], causing all sort of problems
24336 # (the dirname of $[0] is not the place where we might find the
24337 # original and so on. Autoconf is especially sensitive to this).
24338 .
"./$as_me.lineno"
24339 # Exit status is that of the last command.
24344 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24350 ECHO_C
= ECHO_N
= ECHO_T
=
24351 case `echo -n x` in
24353 case `echo 'x\c'` in
24354 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24361 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24362 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24368 rm -f conf$$ conf$$.exe conf$$.
file
24369 if test -d conf$$.dir
; then
24370 rm -f conf$$.dir
/conf$$.
file
24376 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24378 # ... but there are two gotchas:
24379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24381 # In both cases, we have to default to `cp -p'.
24382 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24384 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24389 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24390 rmdir conf$$.dir
2>/dev
/null
24392 if mkdir
-p .
2>/dev
/null
; then
24395 test -d .
/-p && rmdir .
/-p
24399 if test -x / >/dev
/null
2>&1; then
24400 as_test_x
='test -x'
24402 if ls -dL / >/dev
/null
2>&1; then
24409 if test -d "$1"; then
24415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24416 ???[sx]*):;;*)false;;esac;fi
24420 as_executable_p
=$as_test_x
24422 # Sed expression to map a string onto a valid CPP name.
24423 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24425 # Sed expression to map a string onto a valid variable name.
24426 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24431 # Save the log message, to keep $[0] and so on meaningful, and to
24432 # report actual input values of CONFIG_FILES etc. instead of their
24433 # values after options handling.
24435 This file was extended by emacs $as_me 23.0.50, which was
24436 generated by GNU Autoconf 2.61. Invocation command line was
24438 CONFIG_FILES = $CONFIG_FILES
24439 CONFIG_HEADERS = $CONFIG_HEADERS
24440 CONFIG_LINKS = $CONFIG_LINKS
24441 CONFIG_COMMANDS = $CONFIG_COMMANDS
24444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24449 cat >>$CONFIG_STATUS <<_ACEOF
24450 # Files that config.status was made for.
24451 config_files="$ac_config_files"
24452 config_headers="$ac_config_headers"
24453 config_commands="$ac_config_commands"
24457 cat >>$CONFIG_STATUS <<\_ACEOF
24459 \`$as_me' instantiates files from templates according to the
24460 current configuration.
24462 Usage: $0 [OPTIONS] [FILE]...
24464 -h, --help print this help, then exit
24465 -V, --version print version number and configuration settings, then exit
24466 -q, --quiet do not print progress messages
24467 -d, --debug don't remove temporary files
24468 --recheck update $as_me by reconfiguring in the same conditions
24469 --file=FILE[:TEMPLATE]
24470 instantiate the configuration file FILE
24471 --header=FILE[:TEMPLATE]
24472 instantiate the configuration header FILE
24474 Configuration files:
24477 Configuration headers:
24480 Configuration commands:
24483 Report bugs to <bug-autoconf@gnu.org>."
24486 cat >>$CONFIG_STATUS <<_ACEOF
24488 emacs config.status 23.0.50
24489 configured by $0, generated by GNU Autoconf 2.61,
24490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24492 Copyright (C) 2006 Free Software Foundation, Inc.
24493 This config.status script is free software; the Free Software Foundation
24494 gives unlimited permission to copy, distribute and modify it."
24501 cat >>$CONFIG_STATUS <<\_ACEOF
24502 # If no file are specified by the user, then we need to provide default
24503 # value. By we need to know if files were specified by the user.
24509 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24510 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24521 # Handling of the options.
24522 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24524 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24525 echo "$ac_cs_version"; exit ;;
24526 --debug |
--debu |
--deb |
--de |
--d |
-d )
24528 --file |
--fil |
--fi |
--f )
24530 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24531 ac_need_defaults
=false
;;
24532 --header |
--heade |
--head |
--hea )
24534 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24535 ac_need_defaults
=false
;;
24537 # Conflict between --help and --header
24538 { echo "$as_me: error: ambiguous option: $1
24539 Try \`$0 --help' for more information." >&2
24540 { (exit 1); exit 1; }; };;
24541 --help |
--hel |
-h )
24542 echo "$ac_cs_usage"; exit ;;
24543 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24544 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24547 # This is an error.
24548 -*) { echo "$as_me: error: unrecognized option: $1
24549 Try \`$0 --help' for more information." >&2
24550 { (exit 1); exit 1; }; } ;;
24552 *) ac_config_targets
="$ac_config_targets $1"
24553 ac_need_defaults
=false
;;
24559 ac_configure_extra_args
=
24561 if $ac_cs_silent; then
24563 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24567 cat >>$CONFIG_STATUS <<_ACEOF
24568 if \$ac_cs_recheck; then
24569 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24570 CONFIG_SHELL=$SHELL
24571 export CONFIG_SHELL
24572 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24576 cat >>$CONFIG_STATUS <<\_ACEOF
24580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24581 ## Running $as_me. ##
24587 cat >>$CONFIG_STATUS <<_ACEOF
24591 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24597 # Handling of arguments.
24598 for ac_config_target
in $ac_config_targets
24600 case $ac_config_target in
24601 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24602 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24603 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24604 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24605 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24606 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24607 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24608 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24609 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24610 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24611 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24612 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24613 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24615 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24616 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24617 { (exit 1); exit 1; }; };;
24622 # If the user did not use the arguments to specify the items to instantiate,
24623 # then the envvar interface is used. Set only those that are not.
24624 # We use the long form for the default assignment because of an extremely
24625 # bizarre bug on SunOS 4.1.3.
24626 if $ac_need_defaults; then
24627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24632 # Have a temporary directory for convenience. Make it in the build tree
24633 # simply because there is no reason against having it here, and in addition,
24634 # creating and moving files from /tmp can sometimes cause problems.
24635 # Hook for its removal unless debugging.
24636 # Note that there is a small window in which the directory will not be cleaned:
24637 # after its creation but before its name has been assigned to `$tmp'.
24641 trap 'exit_status=$?
24642 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24644 trap '{ (exit 1); exit 1; }' 1 2 13 15
24646 # Create a (secure) tmp directory for tmp files.
24649 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24650 test -n "$tmp" && test -d "$tmp"
24653 tmp
=.
/conf$$
-$RANDOM
24654 (umask 077 && mkdir
"$tmp")
24657 echo "$me: cannot create a temporary directory in ." >&2
24658 { (exit 1); exit 1; }
24662 # Set up the sed scripts for CONFIG_FILES section.
24665 # No need to generate the scripts if there are no CONFIG_FILES.
24666 # This happens for instance when ./config.status config.h
24667 if test -n "$CONFIG_FILES"; then
24674 for ac_last_try
in false false false false false
:; do
24675 cat >conf$
$subs.
sed <<_ACEOF
24676 SHELL!$SHELL$ac_delim
24677 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24678 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24679 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24680 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24681 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24682 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24683 exec_prefix!$exec_prefix$ac_delim
24684 prefix!$prefix$ac_delim
24685 program_transform_name!$program_transform_name$ac_delim
24686 bindir!$bindir$ac_delim
24687 sbindir!$sbindir$ac_delim
24688 libexecdir!$libexecdir$ac_delim
24689 datarootdir!$datarootdir$ac_delim
24690 datadir!$datadir$ac_delim
24691 sysconfdir!$sysconfdir$ac_delim
24692 sharedstatedir!$sharedstatedir$ac_delim
24693 localstatedir!$localstatedir$ac_delim
24694 includedir!$includedir$ac_delim
24695 oldincludedir!$oldincludedir$ac_delim
24696 docdir!$docdir$ac_delim
24697 infodir!$infodir$ac_delim
24698 htmldir!$htmldir$ac_delim
24699 dvidir!$dvidir$ac_delim
24700 pdfdir!$pdfdir$ac_delim
24701 psdir!$psdir$ac_delim
24702 libdir!$libdir$ac_delim
24703 localedir!$localedir$ac_delim
24704 mandir!$mandir$ac_delim
24705 DEFS!$DEFS$ac_delim
24706 ECHO_C!$ECHO_C$ac_delim
24707 ECHO_N!$ECHO_N$ac_delim
24708 ECHO_T!$ECHO_T$ac_delim
24709 LIBS!$LIBS$ac_delim
24710 build_alias!$build_alias$ac_delim
24711 host_alias!$host_alias$ac_delim
24712 target_alias!$target_alias$ac_delim
24713 MAINT!$MAINT$ac_delim
24714 build!$build$ac_delim
24715 build_cpu!$build_cpu$ac_delim
24716 build_vendor!$build_vendor$ac_delim
24717 build_os!$build_os$ac_delim
24718 host!$host$ac_delim
24719 host_cpu!$host_cpu$ac_delim
24720 host_vendor!$host_vendor$ac_delim
24721 host_os!$host_os$ac_delim
24723 CFLAGS!$CFLAGS$ac_delim
24724 LDFLAGS!$LDFLAGS$ac_delim
24725 CPPFLAGS!$CPPFLAGS$ac_delim
24726 ac_ct_CC!$ac_ct_CC$ac_delim
24727 EXEEXT!$EXEEXT$ac_delim
24728 OBJEXT!$OBJEXT$ac_delim
24730 GREP!$GREP$ac_delim
24731 EGREP!$EGREP$ac_delim
24732 LN_S!$LN_S$ac_delim
24733 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24734 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24735 INSTALL_DATA!$INSTALL_DATA$ac_delim
24736 RANLIB!$RANLIB$ac_delim
24737 INSTALL_INFO!$INSTALL_INFO$ac_delim
24738 GZIP_PROG!$GZIP_PROG$ac_delim
24739 MAKEINFO!$MAKEINFO$ac_delim
24740 LIBSOUND!$LIBSOUND$ac_delim
24741 PKG_CONFIG!$PKG_CONFIG$ac_delim
24742 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24743 ALSA_LIBS!$ALSA_LIBS$ac_delim
24744 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24745 SET_MAKE!$SET_MAKE$ac_delim
24746 XMKMF!$XMKMF$ac_delim
24747 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24748 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24749 RSVG_LIBS!$RSVG_LIBS$ac_delim
24750 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24751 GTK_LIBS!$GTK_LIBS$ac_delim
24752 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24753 DBUS_LIBS!$DBUS_LIBS$ac_delim
24754 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24755 XFT_LIBS!$XFT_LIBS$ac_delim
24756 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24757 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24758 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24759 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24760 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24761 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24762 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24763 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24764 ALLOCA!$ALLOCA$ac_delim
24765 liblockfile!$liblockfile$ac_delim
24766 LIBOBJS!$LIBOBJS$ac_delim
24767 NEED_SETGID!$NEED_SETGID$ac_delim
24768 KMEM_GROUP!$KMEM_GROUP$ac_delim
24769 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24770 GETOPT_H!$GETOPT_H$ac_delim
24771 GETOPTOBJS!$GETOPTOBJS$ac_delim
24772 version!$version$ac_delim
24775 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24777 elif $ac_last_try; then
24778 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24779 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24780 { (exit 1); exit 1; }; }
24782 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24786 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24787 if test -n "$ac_eof"; then
24788 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24789 ac_eof
=`expr $ac_eof + 1`
24792 cat >>$CONFIG_STATUS <<_ACEOF
24793 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24797 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24798 s/^/s,@/; s/!/@,|#_!!_#|/
24801 s/'"$ac_delim"'$/,g/; t
24803 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24804 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24805 rm -f conf$
$subs.
sed
24806 cat >>$CONFIG_STATUS <<_ACEOF
24812 for ac_last_try
in false false false false false
:; do
24813 cat >conf$
$subs.
sed <<_ACEOF
24814 configuration!$configuration$ac_delim
24815 canonical!$canonical$ac_delim
24816 srcdir!$srcdir$ac_delim
24817 lispdir!$lispdir$ac_delim
24818 locallisppath!$locallisppath$ac_delim
24819 lisppath!$lisppath$ac_delim
24820 x_default_search_path!$x_default_search_path$ac_delim
24821 etcdir!$etcdir$ac_delim
24822 archlibdir!$archlibdir$ac_delim
24823 bitmapdir!$bitmapdir$ac_delim
24824 gamedir!$gamedir$ac_delim
24825 gameuser!$gameuser$ac_delim
24826 c_switch_system!$c_switch_system$ac_delim
24827 c_switch_machine!$c_switch_machine$ac_delim
24828 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24829 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24830 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24831 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24832 machfile!$machfile$ac_delim
24833 opsysfile!$opsysfile$ac_delim
24834 carbon_appdir!$carbon_appdir$ac_delim
24835 LTLIBOBJS!$LTLIBOBJS$ac_delim
24838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24840 elif $ac_last_try; then
24841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24843 { (exit 1); exit 1; }; }
24845 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24849 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24850 if test -n "$ac_eof"; then
24851 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24852 ac_eof
=`expr $ac_eof + 1`
24855 cat >>$CONFIG_STATUS <<_ACEOF
24856 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24861 s/^/s,@/; s/!/@,|#_!!_#|/
24864 s/'"$ac_delim"'$/,g/; t
24866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24867 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24868 rm -f conf$
$subs.
sed
24869 cat >>$CONFIG_STATUS <<_ACEOF
24876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24878 # trailing colons and then remove the whole line if VPATH becomes empty
24879 # (actually we leave an empty line to preserve line numbers).
24880 if test "x$srcdir" = x.
; then
24881 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24882 s/:*\$(srcdir):*/:/
24883 s/:*\${srcdir}:*/:/
24885 s/^\([^=]*=[ ]*\):*/\1/
24891 cat >>$CONFIG_STATUS <<\_ACEOF
24892 fi # test -n "$CONFIG_FILES"
24895 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24898 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24900 case $ac_mode$ac_tag in
24902 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24903 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24904 { (exit 1); exit 1; }; };;
24905 :[FH
]-) ac_tag
=-:-;;
24906 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24923 -) ac_f
="$tmp/stdin";;
24924 *) # Look for the file first in the build tree, then in the source tree
24925 # (if the path is not absolute). The absolute path cannot be DOS-style,
24926 # because $ac_f cannot contain `:'.
24930 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24932 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24933 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24934 { (exit 1); exit 1; }; };;
24936 ac_file_inputs
="$ac_file_inputs $ac_f"
24939 # Let's still pretend it is `configure' which instantiates (i.e., don't
24940 # use $as_me), people would be surprised to read:
24941 # /* config.h. Generated by config.status. */
24942 configure_input
="Generated from "`IFS=:
24943 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24944 if test x
"$ac_file" != x-
; then
24945 configure_input
="$ac_file. $configure_input"
24946 { echo "$as_me:$LINENO: creating $ac_file" >&5
24947 echo "$as_me: creating $ac_file" >&6;}
24951 *:-:* |
*:-) cat >"$tmp/stdin";;
24956 ac_dir
=`$as_dirname -- "$ac_file" ||
24957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24958 X"$ac_file" : 'X\(//\)[^/]' \| \
24959 X"$ac_file" : 'X\(//\)$' \| \
24960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24966 /^X\(\/\/\)[^/].*/{
24981 -*) as_dir
=.
/$as_dir;;
24983 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24987 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24988 *) as_qdir
=$as_dir;;
24990 as_dirs
="'$as_qdir' $as_dirs"
24991 as_dir
=`$as_dirname -- "$as_dir" ||
24992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24993 X"$as_dir" : 'X\(//\)[^/]' \| \
24994 X"$as_dir" : 'X\(//\)$' \| \
24995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25001 /^X\(\/\/\)[^/].*/{
25014 test -d "$as_dir" && break
25016 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25017 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25018 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25019 { (exit 1); exit 1; }; }; }
25023 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25025 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25026 # A ".." for each directory in $ac_dir_suffix.
25027 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25028 case $ac_top_builddir_sub in
25029 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25030 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25033 ac_abs_top_builddir
=$ac_pwd
25034 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25035 # for backward compatibility:
25036 ac_top_builddir
=$ac_top_build_prefix
25039 .
) # We are building in place.
25041 ac_top_srcdir
=$ac_top_builddir_sub
25042 ac_abs_top_srcdir
=$ac_pwd ;;
25043 [\\/]* | ?
:[\\/]* ) # Absolute name.
25044 ac_srcdir
=$srcdir$ac_dir_suffix;
25045 ac_top_srcdir
=$srcdir
25046 ac_abs_top_srcdir
=$srcdir ;;
25047 *) # Relative name.
25048 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25049 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25050 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25052 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25062 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25063 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25067 cat >>$CONFIG_STATUS <<\_ACEOF
25068 # If the template does not know about datarootdir, expand it.
25069 # FIXME: This hack should be removed a few years after 2.60.
25070 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25072 case `sed -n '/datarootdir/ {
25081 ' $ac_file_inputs` in
25082 *datarootdir
*) ac_datarootdir_seen
=yes;;
25083 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25084 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25085 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25087 cat >>$CONFIG_STATUS <<_ACEOF
25088 ac_datarootdir_hack='
25089 s&@datadir@&$datadir&g
25090 s&@docdir@&$docdir&g
25091 s&@infodir@&$infodir&g
25092 s&@localedir@&$localedir&g
25093 s&@mandir@&$mandir&g
25094 s&\\\${datarootdir}&$datarootdir&g' ;;
25098 # Neutralize VPATH when `$srcdir' = `.'.
25099 # Shell code in configure.ac might set extrasub.
25100 # FIXME: do we really want to maintain this feature?
25101 cat >>$CONFIG_STATUS <<_ACEOF
25105 cat >>$CONFIG_STATUS <<\_ACEOF
25107 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25108 s
&@configure_input@
&$configure_input&;t t
25109 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25110 s
&@srcdir@
&$ac_srcdir&;t t
25111 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25112 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25113 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25114 s
&@builddir@
&$ac_builddir&;t t
25115 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25116 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25117 s
&@INSTALL@
&$ac_INSTALL&;t t
25118 $ac_datarootdir_hack
25119 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25122 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25123 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25124 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25125 which seems to be undefined. Please make sure it is defined." >&5
25126 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25127 which seems to be undefined. Please make sure it is defined." >&2;}
25131 -) cat "$tmp/out"; rm -f "$tmp/out";;
25132 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25141 # Transform confdefs.h into a sed script `conftest.defines', that
25142 # substitutes the proper values into config.h.in to produce config.h.
25143 rm -f conftest.defines conftest.
tail
25144 # First, append a space to every undef/define line, to ease matching.
25145 echo 's/$/ /' >conftest.defines
25146 # Then, protect against being on the right side of a sed subst, or in
25147 # an unquoted here document, in config.status. If some macros were
25148 # called several times there might be several #defines for the same
25149 # symbol, which is useless. But do not sort them, since the last
25150 # AC_DEFINE must be honored.
25151 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25152 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25153 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25154 # PARAMS is the parameter list in the macro definition--in most cases, it's
25155 # just an empty string.
25156 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25157 ac_dB
='\\)[ (].*,\\1define\\2'
25165 s/^[ ]*#[ ]*define[ ][ ]*//
25170 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25171 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25172 ' >>conftest.defines
25174 # Remove the space that was appended to ease matching.
25175 # Then replace #undef with comments. This is necessary, for
25176 # example, in the case of _POSIX_SOURCE, which is predefined and required
25177 # on some systems where configure will not decide to define it.
25178 # (The regexp can be short, since the line contains either #define or #undef.)
25180 s,^[ #]*u.*,/* & */,' >>conftest.defines
25182 # Break up conftest.defines:
25183 ac_max_sed_lines
=50
25185 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25186 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25187 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25189 ac_in
='$ac_file_inputs'
25190 ac_out
='"$tmp/out1"'
25191 ac_nxt
='"$tmp/out2"'
25195 # Write a here document:
25196 cat >>$CONFIG_STATUS <<_ACEOF
25197 # First, check the format of the line:
25198 cat >"\$tmp/defines.sed" <<\\CEOF
25199 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25200 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25204 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25206 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25207 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25208 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25209 grep . conftest.
tail >/dev
/null ||
break
25210 rm -f conftest.defines
25211 mv conftest.
tail conftest.defines
25213 rm -f conftest.defines conftest.
tail
25215 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25216 cat >>$CONFIG_STATUS <<\_ACEOF
25217 if test x
"$ac_file" != x-
; then
25218 echo "/* $configure_input */" >"$tmp/config.h"
25219 cat "$ac_result" >>"$tmp/config.h"
25220 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25221 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25222 echo "$as_me: $ac_file is unchanged" >&6;}
25225 mv "$tmp/config.h" $ac_file
25228 echo "/* $configure_input */"
25234 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25235 echo "$as_me: executing $ac_file commands" >&6;}
25240 case $ac_file$ac_mode in
25243 ### Make the necessary directories, if they don't exist.
25244 for dir
in etc lisp
; do
25245 test -d ${dir} || mkdir
${dir}
25248 # Build src/Makefile from ${srcdir}/src/Makefile.c
25249 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25250 # This must be done after src/config.h is built, since we rely on that file.
25252 # Now get this: Some word that is part of the ${srcdir} directory name
25253 # or the ${configuration} value might, just might, happen to be an
25254 # identifier like `sun4' or `i386' or something, and be predefined by
25255 # the C preprocessor to some helpful value like 1, or maybe the empty
25256 # string. Needless to say consequent macro substitutions are less
25257 # than conducive to the makefile finding the correct directory.
25258 undefs
="`echo $top_srcdir $configuration $canonical |
25259 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25260 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25263 echo creating src
/epaths.h
25264 ${MAKE-make} epaths-force
25266 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25267 # `..' to `. .' unless invoked with -traditional
25269 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25270 CPPFLAGS
="$CPPFLAGS -traditional"
25273 echo creating lib-src
/Makefile
25275 rm -f junk.c junk1.c junk2.c
25276 sed -e '/start of cpp stuff/q' \
25277 < Makefile.c
> junk1.c
25278 sed -e '1,/start of cpp stuff/d'\
25279 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25280 < Makefile.c
> junk.c
25281 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25282 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25283 cat junk1.c junk2.c
> Makefile.new
25284 rm -f junk.c junk1.c junk2.c
25285 chmod 444 Makefile.new
25286 mv -f Makefile.new Makefile
25289 echo creating src
/Makefile
25291 rm -f junk.c junk1.c junk2.c
25292 sed -e '/start of cpp stuff/q' \
25293 < Makefile.c
> junk1.c
25294 sed -e '1,/start of cpp stuff/d'\
25295 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25296 < Makefile.c
> junk.c
25297 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25298 echo creating
${srcdir}/admin
/unidata
/Makefile
25299 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25300 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25302 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25303 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25304 cat junk1.c junk2.c
> Makefile.new
25305 rm -f junk.c junk1.c junk2.c
25306 chmod 444 Makefile.new
25307 mv -f Makefile.new Makefile
25310 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25311 echo creating src
/.gdbinit
25312 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25315 # This is how we know whether to re-run configure in certain cases.
25316 touch src
/config.stamp
25324 { (exit 0); exit 0; }
25326 chmod +x
$CONFIG_STATUS
25327 ac_clean_files
=$ac_clean_files_save
25330 # configure is writing to config.log, and then calls config.status.
25331 # config.status does its own redirection, appending to config.log.
25332 # Unfortunately, on DOS this fails, as config.log is still kept open
25333 # by configure, so config.status won't be able to write to it; its
25334 # output is simply discarded. So we exec the FD to /dev/null,
25335 # effectively closing config.log, so it can be properly (re)opened and
25336 # appended to by config.status. When coming back to configure, we
25337 # need to make the FD available again.
25338 if test "$no_create" != yes; then
25340 ac_config_status_args
=
25341 test "$silent" = yes &&
25342 ac_config_status_args
="$ac_config_status_args --quiet"
25344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25347 # would make configure fail if this is the last instruction.
25348 $ac_cs_success ||
{ (exit 1); exit 1; }