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-pop don
't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1355 --without-xpm don
't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don
't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don
't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don
't use Freetype for local font support
1362 --without-xft don't use XFT
for anti aliased fonts
1363 --without-libotf don
't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt
for text shaping
1365 --without-toolkit-scroll-bars
1366 don
't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don
't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1372 --without-dbus don
't compile with D-Bus support
1374 --with-pkg-config-prog=PATH
1375 Path to pkg-config for finding GTK and librsvg
1376 --with-x use the X Window System
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1387 XMKMF Path to xmkmf, Makefile generator for X Window System
1389 Use these variables to override the choices made by `configure' or to
help
1390 it to
find libraries and programs with nonstandard names
/locations.
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1399 test -d "$ac_dir" ||
continue
1403 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1405 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1410 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1413 ac_abs_top_builddir
=$ac_pwd
1414 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir
=$ac_top_build_prefix
1419 .
) # We are building in place.
1421 ac_top_srcdir
=$ac_top_builddir_sub
1422 ac_abs_top_srcdir
=$ac_pwd ;;
1423 [\\/]* | ?
:[\\/]* ) # Absolute name.
1424 ac_srcdir
=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir
=$srcdir
1426 ac_abs_top_srcdir
=$srcdir ;;
1428 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1432 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1452 emacs configure
23.0.50
1453 generated by GNU Autoconf
2.61
1455 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1457 This configure
script is free software
; the Free Software Foundation
1458 gives unlimited permission to copy
, distribute and modify it.
1462 cat >config.log
<<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by emacs $as_me 23.0.50, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir
=.
1503 echo "PATH: $as_dir"
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1527 ac_must_keep_next
=false
1533 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1534 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1535 |
-silent |
--silent |
--silen |
--sile |
--sil)
1538 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true
; then
1545 ac_must_keep_next
=false
# Got value, back to normal.
1548 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1549 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1550 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1551 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 -* ) ac_must_keep_next
=true
;;
1559 ac_configure_args
="$ac_configure_args '$ac_arg'"
1564 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1565 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1620 for ac_var in $ac_subst_vars
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1630 if test -n "$ac_subst_files"; then
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1637 for ac_var
in $ac_subst_files
1639 eval ac_val
=\$
$ac_var
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 echo "$ac_var='\''$ac_val'\''"
1648 if test -s confdefs.h; then
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666 for ac_signal
in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest
* confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h
<<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1681 cat >>confdefs.h
<<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686 cat >>confdefs.h
<<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1691 cat >>confdefs.h
<<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1696 cat >>confdefs.h
<<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x
"$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE
; then
1706 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1708 set x
"$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1729 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1730 *) .
"./$cache_file";;
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1739 ac_header_list
="$ac_header_list sys/time.h"
1740 ac_header_list
="$ac_header_list unistd.h"
1741 ac_func_list
="$ac_func_list alarm"
1742 # Check that the precious variables saved in the cache have kept the same
1744 ac_cache_corrupted
=false
1745 for ac_var
in $ac_precious_vars; do
1746 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1747 eval ac_new_set
=\
$ac_env_${ac_var}_set
1748 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1749 eval ac_new_val
=\
$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted
=: ;;
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted
=: ;;
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765 echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767 echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted
=:
1771 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then
1774 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg
=$ac_var=$ac_new_val ;;
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1783 if $ac_cache_corrupted; then
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1816 ac_cpp
='$CPP $CPPFLAGS'
1817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1822 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1826 test "$program_prefix" != NONE
&&
1827 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1828 # Use a double $ so make ignores it.
1829 test "$program_suffix" != NONE
&&
1830 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1831 # Double any \ or $. echo might interpret backslashes.
1832 # By default was `s,x,x', remove it if useless.
1833 cat <<\_ACEOF
>conftest.
sed
1834 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1836 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1840 lispdir
='${datadir}/emacs/${version}/lisp'
1841 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1842 '${datadir}/emacs/site-lisp'
1843 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1844 etcdir
='${datadir}/emacs/${version}/etc'
1845 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1846 docdir
='${datadir}/emacs/${version}/etc'
1847 gamedir
='${localstatedir}/games/emacs'
1854 # Check whether --with-pop was given.
1855 if test "${with_pop+set}" = set; then
1861 if test "$with_pop" = yes; then
1862 cat >>confdefs.h
<<\_ACEOF
1863 #define MAIL_USE_POP 1
1870 # Check whether --with-kerberos was given.
1871 if test "${with_kerberos+set}" = set; then
1872 withval
=$with_kerberos;
1877 if test "$with_kerberos" = yes; then
1878 cat >>confdefs.h
<<\_ACEOF
1886 # Check whether --with-kerberos5 was given.
1887 if test "${with_kerberos5+set}" = set; then
1888 withval
=$with_kerberos5;
1893 if test "${with_kerberos5}" = yes; then
1894 if test "${with_kerberos}" != yes; then
1896 cat >>confdefs.h
<<\_ACEOF
1902 cat >>confdefs.h
<<\_ACEOF
1909 # Check whether --with-hesiod was given.
1910 if test "${with_hesiod+set}" = set; then
1911 withval
=$with_hesiod;
1916 if test "$with_hesiod" = yes; then
1918 cat >>confdefs.h
<<\_ACEOF
1925 # Check whether --with-sound was given.
1926 if test "${with_sound+set}" = set; then
1927 withval
=$with_sound;
1934 # Check whether --with-x-toolkit was given.
1935 if test "${with_x_toolkit+set}" = set; then
1936 withval
=$with_x_toolkit; case "${withval}" in
1937 y | ye |
yes ) val
=gtk
;;
1939 l | lu | luc | luci | lucid
) val
=lucid
;;
1940 a |
at | ath | athe | athen | athena
) val
=athena
;;
1941 m | mo | mot | moti | motif
) val
=motif
;;
1942 g | gt | gtk
) val
=gtk
;;
1944 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1947 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1949 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1950 { (exit 1); exit 1; }; }
1959 # Check whether --with-xpm was given.
1960 if test "${with_xpm+set}" = set; then
1967 # Check whether --with-jpeg was given.
1968 if test "${with_jpeg+set}" = set; then
1975 # Check whether --with-tiff was given.
1976 if test "${with_tiff+set}" = set; then
1983 # Check whether --with-gif was given.
1984 if test "${with_gif+set}" = set; then
1991 # Check whether --with-png was given.
1992 if test "${with_png+set}" = set; then
1999 # Check whether --with-rsvg was given.
2000 if test "${with_rsvg+set}" = set; then
2008 # Check whether --with-freetype was given.
2009 if test "${with_freetype+set}" = set; then
2010 withval
=$with_freetype;
2016 # Check whether --with-xft was given.
2017 if test "${with_xft+set}" = set; then
2024 # Check whether --with-libotf was given.
2025 if test "${with_libotf+set}" = set; then
2026 withval
=$with_libotf;
2032 # Check whether --with-m17n-flt was given.
2033 if test "${with_m17n_flt+set}" = set; then
2034 withval
=$with_m17n_flt;
2041 # Check whether --with-toolkit-scroll-bars was given.
2042 if test "${with_toolkit_scroll_bars+set}" = set; then
2043 withval
=$with_toolkit_scroll_bars;
2045 with_toolkit_scroll_bars
=yes
2049 # Check whether --with-xaw3d was given.
2050 if test "${with_xaw3d+set}" = set; then
2051 withval
=$with_xaw3d;
2057 # Check whether --with-xim was given.
2058 if test "${with_xim+set}" = set; then
2065 # Check whether --with-carbon was given.
2066 if test "${with_carbon+set}" = set; then
2067 withval
=$with_carbon;
2074 # Check whether --with-gpm was given.
2075 if test "${with_gpm+set}" = set; then
2082 # Check whether --with-dbus was given.
2083 if test "${with_dbus+set}" = set; then
2091 # Check whether --with-gtk was given.
2092 if test "${with_gtk+set}" = set; then
2093 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2094 specify a toolkit." >&5
2095 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2096 specify a toolkit." >&2;}
2097 { (exit 1); exit 1; }; }
2102 # Check whether --with-gcc was given.
2103 if test "${with_gcc+set}" = set; then
2104 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2105 variable to specify a compiler." >&5
2106 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2107 variable to specify a compiler." >&2;}
2108 { (exit 1); exit 1; }; }
2113 # Check whether --with-pkg-config-prog was given.
2114 if test "${with_pkg_config_prog+set}" = set; then
2115 withval
=$with_pkg_config_prog;
2118 if test "X${with_pkg_config_prog}" != X
; then
2119 if test "${with_pkg_config_prog}" != yes; then
2120 PKG_CONFIG
="${with_pkg_config_prog}"
2124 # Check whether --enable-carbon-app was given.
2125 if test "${enable_carbon_app+set}" = set; then
2126 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2130 # Check whether --enable-font-backend was given.
2131 if test "${enable_font_backend+set}" = set; then
2132 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2138 # Check whether --enable-asserts was given.
2139 if test "${enable_asserts+set}" = set; then
2140 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2146 # Check whether --enable-maintainer-mode was given.
2147 if test "${enable_maintainer_mode+set}" = set; then
2148 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2150 USE_MAINTAINER_MODE
=no
2153 if test $USE_MAINTAINER_MODE = yes; then
2160 # Check whether --enable-locallisppath was given.
2161 if test "${enable_locallisppath+set}" = set; then
2162 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2164 elif test "${enableval}" != "yes"; then
2165 locallisppath
=${enableval}
2170 #### Make srcdir absolute, if it isn't already. It's important to
2171 #### avoid running the path through pwd unnecessarily, since pwd can
2172 #### give you automounter prefixes, which can go away. We do all this
2173 #### so Emacs can find its files when run uninstalled.
2174 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2179 ## We may be able to use the $PWD environment variable to make this
2180 ## absolute. But sometimes PWD is inaccurate.
2181 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2182 ## but that tested only for a well-formed and valid PWD,
2183 ## it did not object when PWD was well-formed and valid but just wrong.
2184 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2188 srcdir
="`(cd ${srcdir}; pwd)`"
2191 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2194 #### Check if the source directory already has a configured system in it.
2195 if test `pwd` != `(cd ${srcdir} && pwd)` \
2196 && test -f "${srcdir}/src/config.h" ; then
2197 { echo "$as_me:$LINENO: 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." >&5
2203 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2204 as a build directory right now; it has been configured in its own
2205 right. To configure in another directory as well, you MUST
2206 use GNU make. If you do not have GNU make, then you must
2207 now do \`make distclean' in ${srcdir},
2208 and then run $0 again." >&2;}
2211 #### Given the configuration name, set machfile and opsysfile to the
2212 #### names of the m/*.h and s/*.h files we should use.
2214 ### Canonicalize the configuration name.
2217 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2220 ac_install_sh
="$ac_aux_dir/install-sh -c"
2222 elif test -f "$ac_dir/install.sh"; then
2224 ac_install_sh
="$ac_aux_dir/install.sh -c"
2226 elif test -f "$ac_dir/shtool"; then
2228 ac_install_sh
="$ac_aux_dir/shtool install -c"
2232 if test -z "$ac_aux_dir"; then
2233 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2234 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2235 { (exit 1); exit 1; }; }
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247 # Make sure we can run config.sub.
2248 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2249 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2250 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2251 { (exit 1); exit 1; }; }
2253 { echo "$as_me:$LINENO: checking build system type" >&5
2254 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2255 if test "${ac_cv_build+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 ac_build_alias
=$build_alias
2259 test "x$ac_build_alias" = x
&&
2260 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x
&&
2262 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2264 { (exit 1); exit 1; }; }
2265 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2267 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2268 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2272 echo "${ECHO_T}$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2276 echo "$as_me: error: invalid value of canonical build" >&2;}
2277 { (exit 1); exit 1; }; };;
2280 ac_save_IFS
=$IFS; IFS
='-'
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2290 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2293 { echo "$as_me:$LINENO: checking host system type" >&5
2294 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2295 if test "${ac_cv_host+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test "x$host_alias" = x
; then
2299 ac_cv_host
=$ac_cv_build
2301 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2304 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2309 echo "${ECHO_T}$ac_cv_host" >&6; }
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2313 echo "$as_me: error: invalid value of canonical host" >&2;}
2314 { (exit 1); exit 1; }; };;
2317 ac_save_IFS
=$IFS; IFS
='-'
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2327 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 configuration
=${host_alias-${build_alias-$host}}
2335 ### If you add support for a new configuration, add code to this
2336 ### switch statement to recognize your configuration name and select
2337 ### the appropriate operating system and machine description files.
2339 ### You would hope that you could choose an m/*.h file pretty much
2340 ### based on the machine portion of the configuration name, and an s-
2341 ### file based on the operating system portion. However, it turns out
2342 ### that each m/*.h file is pretty manufacturer-specific - for
2343 ### example hp9000s300.h is a 68000 machine;
2344 ### mips.h, pmax.h are all MIPS
2345 ### machines. So we basically have to have a special case for each
2346 ### configuration name.
2348 ### As far as handling version numbers on operating systems is
2349 ### concerned, make sure things will fail in a fixable way. If
2350 ### /etc/MACHINES doesn't say anything about version numbers, be
2351 ### prepared to handle anything reasonably. If version numbers
2352 ### matter, be sure /etc/MACHINES says something about it.
2354 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2355 ### "System V Release 4"; he writes, "The old convention encouraged
2356 ### confusion between `system' and `release' levels'."
2358 machine
='' opsys
='' unported
=no
2359 case "${canonical}" in
2364 case "${canonical}" in
2365 alpha
*-*-freebsd*) machine
=alpha
;;
2366 arm
*-*-freebsd*) machine
=arm
;;
2367 ia64-
*-freebsd*) machine
=ia64
;;
2368 sparc64-
*-freebsd*) machine
=sparc
;;
2369 powerpc-
*-freebsd*) machine
=macppc
;;
2370 i
[3456]86-*-freebsd*) machine
=intel386
;;
2371 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2375 ## FreeBSD kernel + glibc based userland
2378 case "${canonical}" in
2379 alpha
*-*-kfreebsd*) machine
=alpha
;;
2380 ia64-
*-kfreebsd*) machine
=ia64
;;
2381 sparc64-
*-kfreebsd*) machine
=sparc
;;
2382 powerpc-
*-kfreebsd*) machine
=macppc
;;
2383 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2384 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2391 if test -f /usr
/lib
/crti.o
; then
2393 cat >>confdefs.h
<<\_ACEOF
2399 case "${canonical}" in
2400 alpha
*-*-netbsd*) machine
=alpha
;;
2401 i
[3456]86-*-netbsd*) machine
=intel386
;;
2403 # This is somewhat bogus.
2404 machine
=hp9000s300
;;
2405 mips-
*-netbsd*) machine
=pmax
;;
2406 mipsel-
*-netbsd*) machine
=pmax
;;
2407 mipseb-
*-netbsd*) machine
=pmax
;;
2408 powerpc-
*-netbsd*) machine
=macppc
;;
2409 sparc
*-*-netbsd*) machine
=sparc
;;
2410 vax-
*-netbsd*) machine
=vax
;;
2411 arm-
*-netbsd*) machine
=arm
;;
2412 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2413 hppa-
*-netbsd*) machine
=hp800
;;
2420 case "${canonical}" in
2421 alpha
*-*-openbsd*) machine
=alpha
;;
2422 arm-
*-openbsd*) machine
=arm
;;
2423 hppa-
*-openbsd*) machine
=hp9000s300
;;
2424 i386-
*-openbsd*) machine
=intel386
;;
2425 m68k-
*-openbsd*) machine
=hp9000s300
;;
2426 mips64-
*-openbsd*) machine
=mips64
;;
2427 powerpc-
*-openbsd*) machine
=macppc
;;
2428 sparc
*-*-openbsd*) machine
=sparc
;;
2429 vax-
*-openbsd*) machine
=vax
;;
2430 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2437 case "${canonical}" in
2438 i
[3456]86-*-lynxos*) machine
=intel386
;;
2439 powerpc-
*-lynxos*) machine
=powerpc
;;
2446 case "${canonical}" in
2447 i
[345]86-*-bsdi*) machine
=intel386
;;
2448 sparc-
*-bsdi*) machine
=sparc
;;
2449 powerpc-
*-bsdi*) machine
=macppc
;;
2451 case "${canonical}" in
2452 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2453 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2454 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2455 *-*-bsdi3* ) opsys
=bsdos3
;;
2456 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2460 alpha
*-*-linux-gnu* )
2461 machine
=alpha opsys
=gnu-linux
2465 machine
=arm opsys
=gnu-linux
2468 ## Apple Darwin / Mac OS X
2470 case "${canonical}" in
2471 i
[3456]86-* ) machine
=intel386
;;
2472 powerpc-
* ) machine
=powermac
;;
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP
="${CC-cc} -E -no-cpp-precomp"
2478 # Use fink packages if available.
2479 if test -d /sw
/include
&& test -d /sw
/lib
; then
2480 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2481 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2482 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2487 mips-compaq-nonstopux
* )
2488 machine
=nonstopux opsys
=nonstopux
2492 i
[3456]86-cubix-sysv* )
2493 machine
=intel386 opsys
=usg5-3
2496 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2497 machine
=pmax opsys
=bsd4-2
2499 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2500 machine
=pmax opsys
=bsd4-3
2503 machine
=pmax opsys
=ultrix4-3
2505 ## HP 9000 series 200 or 300
2507 machine
=hp9000s300 opsys
=bsd4-3
2509 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2511 case "`uname -r`" in
2512 ## Someone's system reports A.B8.05 for this.
2513 ## I wonder what other possibilities there are.
2514 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2515 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2516 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2517 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2518 *) machine
=hp9000s300 opsys
=hpux
;;
2522 ## HP 9000 series 700 and 800, running HP/UX
2524 machine
=hp800 opsys
=hpux
2527 machine
=hp800 opsys
=hpux8
2529 hppa
*-hp-hpux9shr* )
2530 machine
=hp800 opsys
=hpux9shr
2533 machine
=hp800 opsys
=hpux9
2535 hppa
*-hp-hpux10.2
* )
2536 machine
=hp800 opsys
=hpux10-20
2539 machine
=hp800 opsys
=hpux10
2541 hppa
*-hp-hpux1[1-9]* )
2542 machine
=hp800 opsys
=hpux11
2543 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2546 hppa
*-*-linux-gnu* )
2547 machine
=hp800 opsys
=gnu-linux
2550 ## HP 9000 series 700 and 800, running HP/UX
2552 ## Cross-compilation? Nah!
2553 case "`uname -r`" in
2554 ## Someone's system reports A.B8.05 for this.
2555 ## I wonder what other possibilities there are.
2556 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2557 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2558 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2559 *) machine
=hp800 opsys
=hpux10
;;
2563 machine
=hp800 opsys
=nextstep
2568 machine
=ibm370aix opsys
=usg5-3
2571 machine
=ibms390 opsys
=gnu-linux
2573 s390x-
*-linux-gnu* )
2574 machine
=ibms390x opsys
=gnu-linux
2576 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2577 machine
=ibmrs6000 opsys
=aix3-1
2579 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2580 machine
=ibmrs6000 opsys
=aix3-2-5
2582 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2583 machine
=ibmrs6000 opsys
=aix4-1
2585 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2586 machine
=ibmrs6000 opsys
=aix4-2
2588 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2589 machine
=ibmrs6000 opsys
=aix4-2
2591 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2592 machine
=ibmrs6000 opsys
=aix4-2
2594 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2595 machine
=ibmrs6000 opsys
=aix4
2597 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2598 machine
=ibmrs6000 opsys
=aix4-1
2600 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2601 machine
=ibmrs6000 opsys
=aix3-2
2605 i
[3456]86-prime-sysv* )
2606 machine
=i386 opsys
=usg5-3
2609 ## ncr machine running svr4.3.
2610 i
[3456]86-ncr-sysv4.3
)
2611 machine
=ncr386 opsys
=usg5-4-3
2614 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2615 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2616 i
[3456]86-ncr-sysv* )
2617 machine
=ncr386 opsys
=usg5-4-2
2620 ## Macintosh PowerPC
2621 powerpc
*-*-linux-gnu* )
2622 machine
=macppc opsys
=gnu-linux
2625 ## Workstations sold by MIPS
2626 ## This is not necessarily all workstations using the MIPS processor -
2627 ## Irises are produced by SGI, and DECstations by DEC.
2630 machine
=mips opsys
=bsd4-3
2633 machine
=mips opsys
=usg5-2-2
2637 m68
*-next-* | m68k-
*-nextstep* )
2638 machine
=m68k opsys
=nextstep
2643 machine
=ews4800 opsys
=ux4800
2647 mips-siemens-sysv
* | mips-sni-sysv
*)
2648 machine
=mips-siemens opsys
=usg5-4
2649 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2650 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2653 ## Silicon Graphics machines
2656 machine
=iris4d opsys
=irix6-5
2657 # Without defining _LANGUAGE_C, things get masked out in the headers
2658 # so that, for instance, grepping for `free' in stdlib.h fails and
2659 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2660 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2661 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2665 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2666 machine
=sparc opsys
=gnu-linux
2669 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2670 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2671 | rs6000-
*-solaris2*)
2672 case "${canonical}" in
2673 i
[3456]86-*-* ) machine
=intel386
;;
2674 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2675 powerpcle
* ) machine
=powerpcle
;;
2676 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2677 sparc
* ) machine
=sparc
;;
2680 case "${canonical}" in
2681 *-sunos5.3
* |
*-solaris2.3
* )
2683 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2685 *-sunos5.4
* |
*-solaris2.4
* )
2687 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2690 *-sunos5.5
* |
*-solaris2.5
* )
2692 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2695 *-sunos5.6
* |
*-solaris2.6
* )
2697 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2700 *-sunos5* |
*-solaris* )
2702 emacs_check_sunpro_c
=yes
2703 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2707 ## Watch out for a compiler that we know will not work.
2708 case "${canonical}" in
2709 *-solaris* |
*-sunos5* )
2710 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2711 ## /usr/ucb/cc doesn't work;
2712 ## we should find some other compiler that does work.
2720 machine
=sparc opsys
=nextstep
2723 ## Tandem Integrity S2
2725 machine
=tandem-s2 opsys
=usg5-3
2731 case "${canonical}" in
2732 *-bsd4.1
* ) opsys
=bsd4-1
;;
2733 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2734 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2735 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2736 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2737 *-vms* ) opsys
=vms
;;
2744 machine
=ia64 opsys
=gnu-linux
2747 ## Intel 386 machines where we don't care about the manufacturer
2750 case "${canonical}" in
2751 *-cygwin ) opsys
=cygwin
;;
2752 *-darwin* ) opsys
=darwin
2753 CPP
="${CC-cc} -E -no-cpp-precomp"
2755 *-linux-gnu* ) opsys
=gnu-linux
;;
2756 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2757 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2758 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2759 *-386bsd* ) opsys
=386bsd
;;
2760 *-nextstep* ) opsys
=nextstep
;;
2761 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2765 ## m68k Linux-based GNU system
2767 machine
=m68k opsys
=gnu-linux
2770 ## Mips Linux-based GNU system
2771 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2772 machine
=mips opsys
=gnu-linux
2776 sparc-fujitsu-sysv4
* )
2777 machine
=sparc opsys
=uxpds
2778 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2782 ## AMD x86-64 Linux-based GNU system
2783 x86_64-
*-linux-gnu* )
2784 machine
=amdx86-64 opsys
=gnu-linux
2787 ## Tensilica Xtensa Linux-based GNU system
2788 xtensa
*-*-linux-gnu* )
2789 machine
=xtensa opsys
=gnu-linux
2797 ### If the code above didn't choose an operating system, just choose
2798 ### an operating system based on the configuration name. You really
2799 ### only want to use this when you have no idea what the right
2800 ### operating system is; if you know what operating systems a machine
2801 ### runs, it's cleaner to make it explicit in the case statement
2803 if test x
"${opsys}" = x
; then
2804 case "${canonical}" in
2805 *-gnu* ) opsys
=gnu
;;
2806 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2807 *-bsd4.2
) opsys
=bsd4-2
;;
2808 *-bsd4.3
) opsys
=bsd4-3
;;
2809 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2810 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2811 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2812 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2813 *-sysv4.2uw
* ) opsys
=unixware
;;
2814 *-sysv5uw* ) opsys
=unixware
;;
2815 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2816 *-sysv4.1
* |
*-sysvr4.1
* )
2817 NON_GNU_CPP
=/usr
/lib
/cpp
2819 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2820 if [ x
$NON_GNU_CPP = x
]; then
2821 if [ -f /usr
/ccs
/lib
/cpp
]; then
2822 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2824 NON_GNU_CPP
=/lib
/cpp
2828 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2837 if test $unported = yes; then
2838 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2839 Check \`etc/MACHINES' for recognized configuration names." >&5
2840 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2841 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2842 { (exit 1); exit 1; }; }
2845 machfile
="m/${machine}.h"
2846 opsysfile
="s/${opsys}.h"
2849 #### Choose a compiler.
2850 test -n "$CC" && cc_specified
=yes
2852 # Save the value of CFLAGS that the user specified.
2853 SPECIFIED_CFLAGS
="$CFLAGS"
2856 ac_cpp
='$CPP $CPPFLAGS'
2857 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2862 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC
="$CC" # Let the user override the test.
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_exec_ext
in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test -n "$CC"; then
2890 { echo "$as_me:$LINENO: result: $CC" >&5
2891 echo "${ECHO_T}$CC" >&6; }
2893 { echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6; }
2899 if test -z "$ac_cv_prog_CC"; then
2901 # Extract the first word of "gcc", so it can be a program name with args.
2902 set dummy gcc
; ac_word
=$2
2903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir
=.
2916 for ac_exec_ext
in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_CC
="gcc"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2931 echo "${ECHO_T}$ac_ct_CC" >&6; }
2933 { echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6; }
2937 if test "x$ac_ct_CC" = x
; then
2940 case $cross_compiling:$ac_tool_warned in
2942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2943 whose name does not start with the host triplet. If you think this
2944 configuration is useful to you, please write to autoconf@gnu.org." >&5
2945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet. If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2948 ac_tool_warned
=yes ;;
2956 if test -z "$CC"; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2959 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_CC+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC
="$CC" # Let the user override the test.
2968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir
=.
2973 for ac_exec_ext
in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 if test -n "$CC"; then
2987 { echo "$as_me:$LINENO: result: $CC" >&5
2988 echo "${ECHO_T}$CC" >&6; }
2990 { echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6; }
2997 if test -z "$CC"; then
2998 # Extract the first word of "cc", so it can be a program name with args.
2999 set dummy cc
; ac_word
=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC
="$CC" # Let the user override the test.
3009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir
=.
3014 for ac_exec_ext
in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3017 ac_prog_rejected
=yes
3021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test $ac_prog_rejected = yes; then
3029 # We found a bogon in the path, so make sure we never use it.
3030 set dummy
$ac_cv_prog_CC
3032 if test $# != 0; then
3033 # We chose a different compiler from the bogus one.
3034 # However, it has the same basename, so the bogon will be chosen
3035 # first if we set CC to just the basename; use the full file name.
3037 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3043 if test -n "$CC"; then
3044 { echo "$as_me:$LINENO: result: $CC" >&5
3045 echo "${ECHO_T}$CC" >&6; }
3047 { echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6; }
3053 if test -z "$CC"; then
3054 if test -n "$ac_tool_prefix"; then
3055 for ac_prog
in cl.exe
3057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3058 set dummy
$ac_tool_prefix$ac_prog; 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.
3067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir
=.
3072 for ac_exec_ext
in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test -n "$CC"; then
3086 { echo "$as_me:$LINENO: result: $CC" >&5
3087 echo "${ECHO_T}$CC" >&6; }
3089 { echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6; }
3094 test -n "$CC" && break
3097 if test -z "$CC"; then
3099 for ac_prog
in cl.exe
3101 # Extract the first word of "$ac_prog", so it can be a program name with args.
3102 set dummy
$ac_prog; ac_word
=$2
3103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir
=.
3116 for ac_exec_ext
in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_ac_ct_CC
="$ac_prog"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3131 echo "${ECHO_T}$ac_ct_CC" >&6; }
3133 { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3138 test -n "$ac_ct_CC" && break
3141 if test "x$ac_ct_CC" = x
; then
3144 case $cross_compiling:$ac_tool_warned in
3146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3147 whose name does not start with the host triplet. If you think this
3148 configuration is useful to you, please write to autoconf@gnu.org." >&5
3149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet. If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3152 ac_tool_warned
=yes ;;
3161 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3162 See \`config.log' for more details." >&5
3163 echo "$as_me: error: no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }
3167 # Provide some information about the compiler.
3168 echo "$as_me:$LINENO: checking for C compiler version" >&5
3169 ac_compiler
=`set X $ac_compile; echo $2`
3170 { (ac_try
="$ac_compiler --version >&5"
3172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compiler --version >&5") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180 { (ac_try="$ac_compiler -v >&5"
3182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3183 *) ac_try_echo
=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compiler -v >&5") 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190 { (ac_try
="$ac_compiler -V >&5"
3192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compiler -V >&5") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3216 ac_clean_files_save=$ac_clean_files
3217 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3218 # Try to create an executable without -o first, disregard a.out.
3219 # It will help us diagnose broken compilers, and finding out an intuition
3221 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3222 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3223 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3225 # List of possible output files, starting from the most likely.
3226 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3227 # only as a last resort. b.out is created by i960 compilers.
3228 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3230 # The IRIX 6 linker writes into existing files which may not be
3231 # executable, retaining their permissions. Remove them first so a
3232 # subsequent execution test works.
3234 for ac_file in $ac_files
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3243 if { (ac_try="$ac_link_default"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_link_default") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3256 # so that the user can short-circuit this test for compilers unknown to
3258 for ac_file
in $ac_files ''
3260 test -f "$ac_file" ||
continue
3262 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3265 # We found the default executable, but exeext='' is most
3269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3271 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3283 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3289 { echo "$as_me:$LINENO: result: $ac_file" >&5
3290 echo "${ECHO_T}$ac_file" >&6; }
3291 if test -z "$ac_file"; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.
$ac_ext >&5
3295 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3296 See \`config.log' for more details." >&5
3297 echo "$as_me: error: C compiler cannot create executables
3298 See \`config.log' for more details." >&2;}
3299 { (exit 77); exit 77; }; }
3302 ac_exeext
=$ac_cv_exeext
3304 # Check that the compiler produces executables we can run. If not, either
3305 # the compiler is broken, or we cross compile.
3306 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3307 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3308 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3309 # If not cross compiling, check that we can run a simple program.
3310 if test "$cross_compiling" != yes; then
3311 if { ac_try
='./$ac_file'
3312 { (case "(($ac_try" in
3313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3323 if test "$cross_compiling" = maybe; then
3326 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3327 If you meant to cross compile, use \`--host'.
3328 See \`config.log' for more details.
" >&5
3329 echo "$as_me: error
: cannot run C compiled programs.
3330 If you meant to cross compile
, use \
`--host'.
3331 See \`config.log
' for more details." >&2;}
3332 { (exit 1); exit 1; }; }
3336 { echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6; }
3339 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3340 ac_clean_files=$ac_clean_files_save
3341 # Check that the compiler produces executables we can run. If not, either
3342 # the compiler is broken, or we cross compile.
3343 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3344 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3345 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3346 echo "${ECHO_T}$cross_compiling" >&6; }
3348 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3349 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3350 if { (ac_try="$ac_link"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_link") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; then
3360 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3361 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3362 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3364 for ac_file
in conftest.exe conftest conftest.
*; do
3365 test -f "$ac_file" ||
continue
3367 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3368 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details." >&5
3376 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3377 See \`config.log' for more details." >&2;}
3378 { (exit 1); exit 1; }; }
3381 rm -f conftest
$ac_cv_exeext
3382 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3383 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3385 rm -f conftest.
$ac_ext
3386 EXEEXT
=$ac_cv_exeext
3388 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3389 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3390 if test "${ac_cv_objext+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 cat >conftest.
$ac_ext <<_ACEOF
3396 cat confdefs.h
>>conftest.
$ac_ext
3397 cat >>conftest.
$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3408 rm -f conftest.o conftest.obj
3409 if { (ac_try
="$ac_compile"
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_compile") 2>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; then
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3432 See \`config.log
' for more details." >&5
3433 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details.
" >&2;}
3435 { (exit 1); exit 1; }; }
3438 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3440 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3441 echo "${ECHO_T}$ac_cv_objext" >&6; }
3442 OBJEXT=$ac_cv_objext
3444 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3445 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3446 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3447 echo $ECHO_N "(cached
) $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3467 rm -f conftest.$ac_objext
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>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3480 (exit $ac_status); } && {
3481 test -z "$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 } && test -s conftest.$ac_objext; then
3486 echo "$as_me: failed program was
:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3496 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3497 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3498 GCC=`test $ac_compiler_gnu = yes && echo yes`
3499 ac_test_CFLAGS=${CFLAGS+set}
3500 ac_save_CFLAGS=$CFLAGS
3501 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3502 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_g+set}" = set; then
3504 echo $ECHO_N "(cached
) $ECHO_C" >&6
3506 ac_save_c_werror_flag=$ac_c_werror_flag
3507 ac_c_werror_flag=yes
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3544 echo "$as_me: failed program was
:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3582 echo "$as_me: failed program was
:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3621 echo "$as_me: failed program was
:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_c_werror_flag=$ac_save_c_werror_flag
3636 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3637 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3638 if test "$ac_test_CFLAGS" = set; then
3639 CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3647 if test "$GCC" = yes; then
3653 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3654 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3655 if test "${ac_cv_prog_cc_c89+set}" = set; then
3656 echo $ECHO_N "(cached
) $ECHO_C" >&6
3658 ac_cv_prog_cc_c89=no
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3668 #include <sys/types.h>
3669 #include <sys/stat.h>
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3684 s = g (p, va_arg (v,int));
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC="$ac_save_CC $ac_arg"
3721 rm -f conftest.$ac_objext
3722 if { (ac_try="$ac_compile"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_compile") 2>conftest.er1
3730 grep -v '^ *+' conftest.er1 >conftest.err
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3734 (exit $ac_status); } && {
3735 test -z "$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 } && test -s conftest.$ac_objext; then
3738 ac_cv_prog_cc_c89=$ac_arg
3740 echo "$as_me: failed program was
:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3746 rm -f core conftest.err conftest.$ac_objext
3747 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3749 rm -f conftest.$ac_ext
3754 case "x
$ac_cv_prog_cc_c89" in
3756 { echo "$as_me:$LINENO: result
: none needed
" >&5
3757 echo "${ECHO_T}none needed
" >&6; } ;;
3759 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3760 echo "${ECHO_T}unsupported
" >&6; } ;;
3762 CC="$CC $ac_cv_prog_cc_c89"
3763 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 # On Suns, sometimes $CPP names a directory.
3776 if test -n "$CPP" && test -d "$CPP"; then
3780 ## If not using gcc, and on Solaris, and no CPP specified, see if
3781 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3782 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3783 test x"$CPP" = x; then
3784 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3785 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3787 if test "${emacs_cv_sunpro_c+set}" = set; then
3788 echo $ECHO_N "(cached
) $ECHO_C" >&6
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3808 rm -f conftest.$ac_objext conftest$ac_exeext
3809 if { (ac_try="$ac_link"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_link") 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3821 (exit $ac_status); } && {
3822 test -z "$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3824 } && test -s conftest$ac_exeext &&
3825 $as_test_x conftest$ac_exeext; then
3826 emacs_cv_sunpro_c=yes
3828 echo "$as_me: failed program was
:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 emacs_cv_sunpro_c=no
3834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3835 conftest$ac_exeext conftest.$ac_ext
3838 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3839 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3841 if test x"$emacs_cv_sunpro_c" = xyes; then
3842 NON_GNU_CPP="$CC -E -Xs"
3846 #### Some systems specify a CPP to use unless we are using GCC.
3847 #### Now that we know whether we are using GCC, we can decide whether
3848 #### to use that one.
3849 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3854 #### Some systems specify a CC to use unless we are using GCC.
3855 #### Now that we know whether we are using GCC, we can decide whether
3856 #### to use that one.
3857 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3858 test x$cc_specified != xyes
3863 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3865 CC="$CC $GCC_TEST_OPTIONS"
3868 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3870 CC="$CC $NON_GCC_TEST_OPTIONS"
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3879 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3884 if test -z "$CPP"; then
3885 if test "${ac_cv_prog_CPP+set}" = set; then
3886 echo $ECHO_N "(cached
) $ECHO_C" >&6
3888 # Double quotes because CPP needs to be expanded
3889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3892 for ac_c_preproc_warn_flag in '' yes
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error
" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3907 # include <limits.h>
3909 # include <assert.h>
3913 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3931 echo "$as_me: failed program was
:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 # Broken: fails on valid input.
3938 rm -f conftest.err conftest.$ac_ext
3940 # OK, works on sane cases. Now check whether nonexistent headers
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 #include <ac_nonexistent.h>
3950 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3958 grep -v '^ *+' conftest.er1 >conftest.err
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3962 (exit $ac_status); } >/dev/null && {
3963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3966 # Broken: success on invalid input.
3969 echo "$as_me: failed program was
:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 # Passes both tests.
3977 rm -f conftest.err conftest.$ac_ext
3980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981 rm -f conftest.err conftest.$ac_ext
3982 if $ac_preproc_ok; then
3994 { echo "$as_me:$LINENO: result
: $CPP" >&5
3995 echo "${ECHO_T}$CPP" >&6; }
3997 for ac_c_preproc_warn_flag in '' yes
3999 # Use a header file that comes with gcc, so configuring glibc
4000 # with a fresh cross-compiler works.
4001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002 # <limits.h> exists even on freestanding compilers.
4003 # On the NeXT, cc -E runs the code through the compiler's parser,
4004 # not just through cpp. "Syntax error
" is here to catch this case.
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4012 # include <limits.h>
4014 # include <assert.h>
4018 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4030 (exit $ac_status); } >/dev/null && {
4031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4036 echo "$as_me: failed program was
:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 # Broken: fails on valid input.
4043 rm -f conftest.err conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <ac_nonexistent.h>
4055 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4067 (exit $ac_status); } >/dev/null && {
4068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4071 # Broken: success on invalid input.
4074 echo "$as_me: failed program was
:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 # Passes both tests.
4082 rm -f conftest.err conftest.$ac_ext
4085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086 rm -f conftest.err conftest.$ac_ext
4087 if $ac_preproc_ok; then
4090 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4091 See \
`config.log' for more details." >&5
4092 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4093 See \`config.log
' for more details." >&2;}
4094 { (exit 1); exit 1; }; }
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4100 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4105 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4106 if test "${ac_cv_path_GREP+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 # Extract the first word of "grep ggrep" to use in msg output
4110 if test -z "$GREP"; then
4111 set dummy grep ggrep; ac_prog_name=$2
4112 if test "${ac_cv_path_GREP+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 ac_path_GREP_found=false
4116 # Loop through the user's path and
test for each of PROGNAME-LIST
4117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4118 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4121 test -z "$as_dir" && as_dir
=.
4122 for ac_prog
in grep ggrep
; do
4123 for ac_exec_ext
in '' $ac_executable_extensions; do
4124 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4126 # Check for GNU ac_path_GREP and select it if it is found.
4127 # Check for GNU $ac_path_GREP
4128 case `"$ac_path_GREP" --version 2>&1` in
4130 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4133 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 echo 'GREP' >> "conftest.nl"
4140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4141 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4142 ac_count
=`expr $ac_count + 1`
4143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_GREP
="$ac_path_GREP"
4146 ac_path_GREP_max
=$ac_count
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4151 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4155 $ac_path_GREP_found && break 3
4165 GREP
="$ac_cv_path_GREP"
4166 if test -z "$GREP"; then
4167 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4168 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4169 { (exit 1); exit 1; }; }
4173 ac_cv_path_GREP
=$GREP
4178 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4179 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4180 GREP
="$ac_cv_path_GREP"
4183 { echo "$as_me:$LINENO: checking for egrep" >&5
4184 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4185 if test "${ac_cv_path_EGREP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4189 then ac_cv_path_EGREP
="$GREP -E"
4191 # Extract the first word of "egrep" to use in msg output
4192 if test -z "$EGREP"; then
4193 set dummy
egrep; ac_prog_name
=$2
4194 if test "${ac_cv_path_EGREP+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 ac_path_EGREP_found
=false
4198 # Loop through the user's path and test for each of PROGNAME-LIST
4199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4200 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4203 test -z "$as_dir" && as_dir
=.
4204 for ac_prog
in egrep; do
4205 for ac_exec_ext
in '' $ac_executable_extensions; do
4206 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4207 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4208 # Check for GNU ac_path_EGREP and select it if it is found.
4209 # Check for GNU $ac_path_EGREP
4210 case `"$ac_path_EGREP" --version 2>&1` in
4212 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4215 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
4221 echo 'EGREP' >> "conftest.nl"
4222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4223 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4224 ac_count
=`expr $ac_count + 1`
4225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_EGREP
="$ac_path_EGREP"
4228 ac_path_EGREP_max
=$ac_count
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4233 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4237 $ac_path_EGREP_found && break 3
4247 EGREP
="$ac_cv_path_EGREP"
4248 if test -z "$EGREP"; then
4249 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4250 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4251 { (exit 1); exit 1; }; }
4255 ac_cv_path_EGREP
=$EGREP
4261 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4262 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4263 EGREP
="$ac_cv_path_EGREP"
4267 { echo "$as_me:$LINENO: checking for AIX" >&5
4268 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4269 cat >conftest.
$ac_ext <<_ACEOF
4272 cat confdefs.h
>>conftest.
$ac_ext
4273 cat >>conftest.
$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 $EGREP "yes" >/dev
/null
2>&1; then
4282 { echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6; }
4284 cat >>confdefs.h
<<\_ACEOF
4285 #define _ALL_SOURCE 1
4289 { echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6; }
4296 cat >>confdefs.h
<<\_ACEOF
4297 #define _GNU_SOURCE 1
4302 ### Use -Wno-pointer-sign if the compiler supports it
4303 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4304 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4305 SAVE_CFLAGS
="$CFLAGS"
4306 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4307 cat >conftest.
$ac_ext <<_ACEOF
4310 cat confdefs.h
>>conftest.
$ac_ext
4311 cat >>conftest.
$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4322 rm -f conftest.
$ac_objext
4323 if { (ac_try
="$ac_compile"
4325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 if test $has_option = yes; then
4349 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4351 { echo "$as_me:$LINENO: result: $has_option" >&5
4352 echo "${ECHO_T}$has_option" >&6; }
4353 CFLAGS="$SAVE_CFLAGS"
4357 #### Some other nice autoconf tests.
4359 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4360 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4362 if test "$LN_S" = "ln -s"; then
4363 { echo "$as_me:$LINENO: result: yes" >&5
4364 echo "${ECHO_T}yes" >&6; }
4366 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4367 echo "${ECHO_T}no, using $LN_S" >&6; }
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4377 # On Suns, sometimes $CPP names a directory.
4378 if test -n "$CPP" && test -d "$CPP"; then
4381 if test -z "$CPP"; then
4382 if test "${ac_cv_prog_CPP+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 # Double quotes because CPP needs to be expanded
4386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4389 for ac_c_preproc_warn_flag in '' yes
4391 # Use a header file that comes with gcc, so configuring glibc
4392 # with a fresh cross-compiler works.
4393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4394 # <limits.h> exists even on freestanding compilers.
4395 # On the NeXT, cc -E runs the code through the compiler's parser,
4396 # not just through cpp. "Syntax error" is here to catch this case.
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4404 # include <limits.h>
4406 # include <assert.h>
4410 if { (ac_try="$ac_cpp conftest.$ac_ext"
4412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4413 *) ac_try_echo
=$ac_try;;
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4418 grep -v '^ *+' conftest.er1
>conftest.err
4420 cat conftest.err
>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev
/null
&& {
4423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4424 test ! -s conftest.err
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.
$ac_ext >&5
4431 # Broken: fails on valid input.
4435 rm -f conftest.err conftest.
$ac_ext
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat >conftest.
$ac_ext <<_ACEOF
4442 cat confdefs.h
>>conftest.
$ac_ext
4443 cat >>conftest.
$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4447 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } >/dev/null && {
4460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4463 # Broken: success on invalid input.
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 # Passes both tests.
4474 rm -f conftest.err conftest.$ac_ext
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.err conftest.
$ac_ext
4479 if $ac_preproc_ok; then
4491 { echo "$as_me:$LINENO: result: $CPP" >&5
4492 echo "${ECHO_T}$CPP" >&6; }
4494 for ac_c_preproc_warn_flag
in '' yes
4496 # Use a header file that comes with gcc, so configuring glibc
4497 # with a fresh cross-compiler works.
4498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4499 # <limits.h> exists even on freestanding compilers.
4500 # On the NeXT, cc -E runs the code through the compiler's parser,
4501 # not just through cpp. "Syntax error" is here to catch this case.
4502 cat >conftest.
$ac_ext <<_ACEOF
4505 cat confdefs.h
>>conftest.
$ac_ext
4506 cat >>conftest.
$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4509 # include <limits.h>
4511 # include <assert.h>
4515 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } >/dev/null && {
4528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4529 test ! -s conftest.err
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4536 # Broken: fails on valid input.
4540 rm -f conftest.err conftest.$ac_ext
4542 # OK, works on sane cases. Now check whether nonexistent headers
4543 # can be detected and how.
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <ac_nonexistent.h>
4552 if { (ac_try="$ac_cpp conftest.$ac_ext"
4554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4555 *) ac_try_echo
=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4560 grep -v '^ *+' conftest.er1
>conftest.err
4562 cat conftest.err
>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } >/dev
/null
&& {
4565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4566 test ! -s conftest.err
4568 # Broken: success on invalid input.
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.
$ac_ext >&5
4574 # Passes both tests.
4579 rm -f conftest.err conftest.
$ac_ext
4582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4583 rm -f conftest.err conftest.
$ac_ext
4584 if $ac_preproc_ok; then
4587 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4588 See \`config.log' for more details." >&5
4589 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4590 See \`config.log' for more details." >&2;}
4591 { (exit 1); exit 1; }; }
4595 ac_cpp
='$CPP $CPPFLAGS'
4596 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4600 # Find a good install program. We prefer a C program (faster),
4601 # so one script is as good as another. But avoid the broken or
4602 # incompatible versions:
4603 # SysV /etc/install, /usr/sbin/install
4604 # SunOS /usr/etc/install
4605 # IRIX /sbin/install
4607 # AmigaOS /C/install, which installs bootblocks on floppy discs
4608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4611 # OS/2's system install, which has a completely different semantic
4612 # ./install, which can be erroneously created by make from ./install.sh.
4613 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4614 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4615 if test -z "$INSTALL"; then
4616 if test "${ac_cv_path_install+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir
=.
4624 # Account for people who put trailing slashes in PATH elements.
4626 .
/ | .
// |
/cC
/* | \
4627 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4628 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4631 # OSF1 and SCO ODT 3.0 have their own names for install.
4632 # Don't use installbsd from OSF since it installs stuff as root
4634 for ac_prog
in ginstall scoinst
install; do
4635 for ac_exec_ext
in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4637 if test $ac_prog = install &&
4638 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4639 # AIX install. It has an incompatible calling convention.
4641 elif test $ac_prog = install &&
4642 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4643 # program-specific install script used by HP pwplus--don't use.
4646 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4659 if test "${ac_cv_path_install+set}" = set; then
4660 INSTALL
=$ac_cv_path_install
4662 # As a last resort, use the slow shell script. Don't cache a
4663 # value for INSTALL within a source directory, because that will
4664 # break other packages using the cache if that directory is
4665 # removed, or if the value is a relative name.
4666 INSTALL
=$ac_install_sh
4669 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4670 echo "${ECHO_T}$INSTALL" >&6; }
4672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4673 # It thinks the first close brace ends the variable substitution.
4674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4678 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4680 if test "x$RANLIB" = x
; then
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4683 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_RANLIB+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 if test -n "$RANLIB"; then
4690 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir
=.
4697 for ac_exec_ext
in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 RANLIB
=$ac_cv_prog_RANLIB
4710 if test -n "$RANLIB"; then
4711 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4712 echo "${ECHO_T}$RANLIB" >&6; }
4714 { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4720 if test -z "$ac_cv_prog_RANLIB"; then
4721 ac_ct_RANLIB
=$RANLIB
4722 # Extract the first word of "ranlib", so it can be a program name with args.
4723 set dummy ranlib
; ac_word
=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$ac_ct_RANLIB"; then
4730 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir
=.
4737 for ac_exec_ext
in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4750 if test -n "$ac_ct_RANLIB"; then
4751 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4752 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4754 { echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6; }
4758 if test "x$ac_ct_RANLIB" = x
; then
4761 case $cross_compiling:$ac_tool_warned in
4763 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4764 whose name does not start with the host triplet. If you think this
4765 configuration is useful to you, please write to autoconf@gnu.org." >&5
4766 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4767 whose name does not start with the host triplet. If you think this
4768 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4769 ac_tool_warned
=yes ;;
4771 RANLIB
=$ac_ct_RANLIB
4774 RANLIB
="$ac_cv_prog_RANLIB"
4778 # Extract the first word of "install-info", so it can be a program name with args.
4779 set dummy install-info
; ac_word
=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 case $INSTALL_INFO in
4787 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir
=.
4795 for ac_exec_ext
in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4809 if test -n "$INSTALL_INFO"; then
4810 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4811 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4813 { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4818 # Extract the first word of "install-info", so it can be a program name with args.
4819 set dummy install-info
; ac_word
=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 case $INSTALL_INFO in
4827 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4831 for as_dir
in /usr
/sbin
4834 test -z "$as_dir" && as_dir
=.
4835 for ac_exec_ext
in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4849 if test -n "$INSTALL_INFO"; then
4850 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4851 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4853 { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4858 # Extract the first word of "install-info", so it can be a program name with args.
4859 set dummy install-info
; ac_word
=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 case $INSTALL_INFO in
4867 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir
=.
4875 for ac_exec_ext
in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4889 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4890 if test -n "$INSTALL_INFO"; then
4891 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4892 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 # Extract the first word of "gzip", so it can be a program name with args.
4900 set dummy
gzip; ac_word
=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir
=.
4916 for ac_exec_ext
in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4930 if test -n "$GZIP_PROG"; then
4931 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4932 echo "${ECHO_T}$GZIP_PROG" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4941 ## Need makeinfo >= 4.6 (?) to build the manuals.
4942 # Extract the first word of "makeinfo", so it can be a program name with args.
4943 set dummy makeinfo
; ac_word
=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir
=.
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
4973 MAKEINFO
=$ac_cv_path_MAKEINFO
4974 if test -n "$MAKEINFO"; then
4975 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4976 echo "${ECHO_T}$MAKEINFO" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 if test "$MAKEINFO" != "no" && \
4984 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
4988 if test "$MAKEINFO" = "no"; then
4989 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4990 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4991 { (exit 1); exit 1; }; }
4996 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4998 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5001 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5003 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5007 late_LDFLAGS
=$LDFLAGS
5008 if test "$GCC" = yes; then
5009 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5011 LDFLAGS
="$LDFLAGS -znocombreloc"
5014 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5015 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5016 cat >conftest.
$ac_ext <<_ACEOF
5019 rm -f conftest.
$ac_objext conftest
$ac_exeext
5020 if { (ac_try
="$ac_link"
5022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_link") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest$ac_exeext &&
5036 $as_test_x conftest$ac_exeext; then
5037 { echo "$as_me:$LINENO: result: yes" >&5
5038 echo "${ECHO_T}yes" >&6; }
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 LDFLAGS=$late_LDFLAGS
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5049 conftest$ac_exeext conftest.$ac_ext
5051 #### Extract some information from the operating system and machine files.
5053 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5054 - which libraries the lib-src programs will want, and
5055 - whether the GNU malloc routines are usable..." >&5
5056 echo "$as_me: checking the machine- and system-dependent files to find out
5057 - which libraries the lib-src programs will want, and
5058 - whether the GNU malloc routines are usable..." >&6;}
5060 ### First figure out CFLAGS (which we use for running the compiler here)
5061 ### and REAL_CFLAGS (which we use for real compilation).
5062 ### The two are the same except on a few systems, where they are made
5063 ### different to work around various lossages. For example,
5064 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5065 ### as implying static linking.
5067 ### If the CFLAGS env var is specified, we use that value
5068 ### instead of the default.
5070 ### It's not important that this name contain the PID; you can't run
5071 ### two configures in the same directory and have anything work
5073 tempcname="conftest.c"
5076 #include "'${srcdir}'/src/'${opsysfile}'"
5077 #include "'${srcdir}'/src/'${machfile}'"
5078 #ifndef LIBS_MACHINE
5079 #define LIBS_MACHINE
5084 #ifndef C_SWITCH_SYSTEM
5085 #define C_SWITCH_SYSTEM
5087 #ifndef C_SWITCH_MACHINE
5088 #define C_SWITCH_MACHINE
5090 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5091 configure___ c_switch_system=C_SWITCH_SYSTEM
5092 configure___ c_switch_machine=C_SWITCH_MACHINE
5095 #define LIB_X11_LIB -lX11
5098 #ifndef LIBX11_SYSTEM
5099 #define LIBX11_SYSTEM
5101 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5104 configure___ unexec=UNEXEC
5106 configure___ unexec=unexec.o
5109 #ifdef SYSTEM_MALLOC
5110 configure___ system_malloc=yes
5112 configure___ system_malloc=no
5115 #ifdef USE_MMAP_FOR_BUFFERS
5116 configure___ use_mmap_for_buffers=yes
5118 configure___ use_mmap_for_buffers=no
5121 #ifndef C_DEBUG_SWITCH
5122 #define C_DEBUG_SWITCH -g
5125 #ifndef C_OPTIMIZE_SWITCH
5127 #define C_OPTIMIZE_SWITCH -O2
5129 #define C_OPTIMIZE_SWITCH -O
5133 #ifndef C_WARNINGS_SWITCH
5134 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5137 #ifndef LD_SWITCH_MACHINE
5138 #define LD_SWITCH_MACHINE
5141 #ifndef LD_SWITCH_SYSTEM
5142 #define LD_SWITCH_SYSTEM
5145 #ifndef LD_SWITCH_X_SITE_AUX
5146 #define LD_SWITCH_X_SITE_AUX
5149 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5150 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5152 #ifdef THIS_IS_CONFIGURE
5154 /* Get the CFLAGS for tests in configure. */
5156 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5158 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5161 #else /* not THIS_IS_CONFIGURE */
5163 /* Get the CFLAGS for real compilation. */
5165 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5167 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5170 #endif /* not THIS_IS_CONFIGURE */
5173 # The value of CPP is a quoted variable reference, so we need to do this
5174 # to get its actual value...
5175 CPP=`eval "echo $CPP"`
5176 eval `${CPP} -Isrc ${tempcname} \
5177 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5178 if test "x$SPECIFIED_CFLAGS" = x; then
5179 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5180 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5182 REAL_CFLAGS="$CFLAGS"
5186 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5188 ### Make sure subsequent tests use flags consistent with the build flags.
5190 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5191 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5193 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5198 # Check whether --enable-largefile was given.
5199 if test "${enable_largefile+set}" = set; then
5200 enableval=$enable_largefile;
5203 if test "$enable_largefile" != no; then
5205 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5206 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5207 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 ac_cv_sys_largefile_CC=no
5211 if test "$GCC" != yes; then
5214 # IRIX 6.2 and later do not support large files by default,
5215 # so use the C compiler's -n32 option if that helps.
5216 cat >conftest.$ac_ext <<_ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 #include <sys/types.h>
5223 /* Check that off_t can represent 2**63 - 1 correctly.
5224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5225 since some C++ compilers masquerading as C compilers
5226 incorrectly reject 9223372036854775807. */
5227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5229 && LARGE_OFF_T % 2147483647 == 1)
5239 rm -f conftest.$ac_objext
5240 if { (ac_try="$ac_compile"
5242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5243 *) ac_try_echo
=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_compile") 2>conftest.er1
5248 grep -v '^ *+' conftest.er1
>conftest.err
5250 cat conftest.err
>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest.
$ac_objext; then
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.
$ac_ext >&5
5264 rm -f core conftest.err conftest.
$ac_objext
5266 rm -f conftest.
$ac_objext
5267 if { (ac_try
="$ac_compile"
5269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_compile") 2>conftest.er1
5275 grep -v '^ *+' conftest.er1 >conftest.err
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest.$ac_objext; then
5283 ac_cv_sys_largefile_CC=' -n32'; break
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5291 rm -f core conftest.err conftest.$ac_objext
5295 rm -f conftest.$ac_ext
5298 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5299 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5300 if test "$ac_cv_sys_largefile_CC" != no; then
5301 CC=$CC$ac_cv_sys_largefile_CC
5304 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5305 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5306 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <sys/types.h>
5317 /* Check that off_t can represent 2**63 - 1 correctly.
5318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5319 since some C++ compilers masquerading as C compilers
5320 incorrectly reject 9223372036854775807. */
5321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5323 && LARGE_OFF_T % 2147483647 == 1)
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5337 *) ac_try_echo
=$ac_try;;
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_compile") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1
>conftest.err
5344 cat conftest.err
>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && {
5347 test -z "$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5349 } && test -s conftest.
$ac_objext; then
5350 ac_cv_sys_file_offset_bits
=no
; break
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.
$ac_ext >&5
5358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5359 cat >conftest.
$ac_ext <<_ACEOF
5362 cat confdefs.h
>>conftest.
$ac_ext
5363 cat >>conftest.
$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #define _FILE_OFFSET_BITS 64
5366 #include <sys/types.h>
5367 /* Check that off_t can represent 2**63 - 1 correctly.
5368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5369 since some C++ compilers masquerading as C compilers
5370 incorrectly reject 9223372036854775807. */
5371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5373 && LARGE_OFF_T % 2147483647 == 1)
5383 rm -f conftest.
$ac_objext
5384 if { (ac_try
="$ac_compile"
5386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_compile") 2>conftest.er1
5392 grep -v '^ *+' conftest.er1 >conftest.err
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && {
5397 test -z "$ac_c_werror_flag" ||
5398 test ! -s conftest.err
5399 } && test -s conftest.$ac_objext; then
5400 ac_cv_sys_file_offset_bits=64; break
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_cv_sys_file_offset_bits=unknown
5413 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5414 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5415 case $ac_cv_sys_file_offset_bits in #(
5418 cat >>confdefs.h <<_ACEOF
5419 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5424 if test $ac_cv_sys_file_offset_bits = unknown; then
5425 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5426 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5427 if test "${ac_cv_sys_large_files+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 #include <sys/types.h>
5438 /* Check that off_t can represent 2**63 - 1 correctly.
5439 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5440 since some C++ compilers masquerading as C compilers
5441 incorrectly reject 9223372036854775807. */
5442 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5443 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5444 && LARGE_OFF_T % 2147483647 == 1)
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5458 *) ac_try_echo
=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1
>conftest.err
5465 cat conftest.err
>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.
$ac_objext; then
5471 ac_cv_sys_large_files
=no
; break
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.
$ac_ext >&5
5479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 cat >conftest.
$ac_ext <<_ACEOF
5483 cat confdefs.h
>>conftest.
$ac_ext
5484 cat >>conftest.
$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #define _LARGE_FILES 1
5487 #include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly.
5489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5490 since some C++ compilers masquerading as C compilers
5491 incorrectly reject 9223372036854775807. */
5492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5494 && LARGE_OFF_T % 2147483647 == 1)
5504 rm -f conftest.
$ac_objext
5505 if { (ac_try
="$ac_compile"
5507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5513 grep -v '^ *+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
5521 ac_cv_sys_large_files=1; break
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cv_sys_large_files=unknown
5534 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5535 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5536 case $ac_cv_sys_large_files in #(
5539 cat >>confdefs.h <<_ACEOF
5540 #define _LARGE_FILES $ac_cv_sys_large_files
5550 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5551 ### be located in either /usr/lib64 or /usr/lib.
5552 case "${canonical}" in
5553 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5554 if test -d /usr/lib64; then
5556 cat >>confdefs.h <<\_ACEOF
5557 #define HAVE_LIB64_DIR 1
5566 if test "${with_sound}" != "no"; then
5567 # Sound support for GNU/Linux and the free BSDs.
5568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5570 if test "${ac_cv_header_stdc+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5596 *) ac_try_echo
=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1
>conftest.err
5603 cat conftest.err
>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.
$ac_objext; then
5609 ac_cv_header_stdc
=yes
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.
$ac_ext >&5
5614 ac_cv_header_stdc
=no
5617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5619 if test $ac_cv_header_stdc = yes; then
5620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5621 cat >conftest.
$ac_ext <<_ACEOF
5624 cat confdefs.h
>>conftest.
$ac_ext
5625 cat >>conftest.
$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5631 $EGREP "memchr" >/dev
/null
2>&1; then
5634 ac_cv_header_stdc
=no
5640 if test $ac_cv_header_stdc = yes; then
5641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5642 cat >conftest.
$ac_ext <<_ACEOF
5645 cat confdefs.h
>>conftest.
$ac_ext
5646 cat >>conftest.
$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "free" >/dev
/null
2>&1; then
5655 ac_cv_header_stdc
=no
5661 if test $ac_cv_header_stdc = yes; then
5662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5663 if test "$cross_compiling" = yes; then
5666 cat >conftest.
$ac_ext <<_ACEOF
5669 cat confdefs.h
>>conftest.
$ac_ext
5670 cat >>conftest.
$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5674 #if ((' ' & 0x0FF) == 0x020)
5675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5678 # define ISLOWER(c) \
5679 (('a' <= (c) && (c) <= 'i') \
5680 || ('j' <= (c) && (c) <= 'r') \
5681 || ('s' <= (c) && (c) <= 'z'))
5682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5690 for (i = 0; i < 256; i++)
5691 if (XOR (islower (i), ISLOWER (i))
5692 || toupper (i) != TOUPPER (i))
5697 rm -f conftest
$ac_exeext
5698 if { (ac_try
="$ac_link"
5700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_link") 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5710 *) ac_try_echo
=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5719 echo "$as_me: program exited with status $ac_status" >&5
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.
$ac_ext >&5
5724 ac_cv_header_stdc
=no
5726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5734 if test $ac_cv_header_stdc = yes; then
5736 cat >>confdefs.h
<<\_ACEOF
5737 #define STDC_HEADERS 1
5742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5752 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5753 inttypes.h stdint.h unistd.h
5755 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5758 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5764 cat confdefs.h
>>conftest.
$ac_ext
5765 cat >>conftest.
$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5769 #include <$ac_header>
5771 rm -f conftest.
$ac_objext
5772 if { (ac_try
="$ac_compile"
5774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5780 grep -v '^ *+' conftest.er1 >conftest.err
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 eval "$as_ac_Header=yes"
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 eval "$as_ac_Header=no"
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_res=`eval echo '${'$as_ac_Header'}'`
5799 { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5814 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5816 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 ac_res=`eval echo '${'$as_ac_Header'}'`
5824 { echo "$as_me:$LINENO: result: $ac_res" >&5
5825 echo "${ECHO_T}$ac_res" >&6; }
5827 # Is the header compilable?
5828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5830 cat >conftest.$ac_ext <<_ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 $ac_includes_default
5837 #include <$ac_header>
5839 rm -f conftest.$ac_objext
5840 if { (ac_try="$ac_compile"
5842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5843 *) ac_try_echo
=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5848 grep -v '^ *+' conftest.er1
>conftest.err
5850 cat conftest.err
>&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.
$ac_objext; then
5856 ac_header_compiler
=yes
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.
$ac_ext >&5
5861 ac_header_compiler
=no
5864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5866 echo "${ECHO_T}$ac_header_compiler" >&6; }
5868 # Is the header present?
5869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5871 cat >conftest.
$ac_ext <<_ACEOF
5874 cat confdefs.h
>>conftest.
$ac_ext
5875 cat >>conftest.
$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <$ac_header>
5879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev/null && {
5892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5895 ac_header_preproc=yes
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 ac_header_preproc=no
5903 rm -f conftest.err conftest.$ac_ext
5904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5905 echo "${ECHO_T}$ac_header_preproc" >&6; }
5907 # So? What about this header?
5908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5914 ac_header_preproc=yes
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 eval "$as_ac_Header=\$ac_header_preproc"
5939 ac_res=`eval echo '${'$as_ac_Header'}'`
5940 { echo "$as_me:$LINENO: result: $ac_res" >&5
5941 echo "${ECHO_T}$ac_res" >&6; }
5944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5945 cat >>confdefs.h <<_ACEOF
5946 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5953 # Emulation library used on NetBSD.
5954 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5955 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5956 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_check_lib_save_LIBS=$LIBS
5960 LIBS="-lossaudio $LIBS"
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5968 /* Override any GCC internal prototype to avoid an error.
5969 Use char because int might match the return type of a GCC
5970 builtin and then its argument prototype would still apply. */
5978 return _oss_ioctl ();
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (ac_try="$ac_link"
5986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5987 *) ac_try_echo
=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_link") 2>conftest.er1
5992 grep -v '^ *+' conftest.er1
>conftest.err
5994 cat conftest.err
>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } && {
5997 test -z "$ac_c_werror_flag" ||
5998 test ! -s conftest.err
5999 } && test -s conftest
$ac_exeext &&
6000 $as_test_x conftest
$ac_exeext; then
6001 ac_cv_lib_ossaudio__oss_ioctl
=yes
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.
$ac_ext >&5
6006 ac_cv_lib_ossaudio__oss_ioctl
=no
6009 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6010 conftest
$ac_exeext conftest.
$ac_ext
6011 LIBS
=$ac_check_lib_save_LIBS
6013 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6014 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6015 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6024 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6028 # Extract the first word of "pkg-config", so it can be a program name with args.
6029 set dummy pkg-config
; ac_word
=$2
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir
=.
6045 for ac_exec_ext
in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6059 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6060 if test -n "$PKG_CONFIG"; then
6061 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6062 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6064 { echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6; }
6070 if test "$PKG_CONFIG" = "no" ; then
6073 PKG_CONFIG_MIN_VERSION
=0.9.0
6074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6075 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6076 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6078 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6079 { echo "$as_me:$LINENO: result: yes" >&5
6080 echo "${ECHO_T}yes" >&6; }
6083 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6084 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6085 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6086 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6087 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6089 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6090 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6091 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6092 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6093 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6095 { echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6; }
6099 ## If we have a custom action on failure, don't print errors, but
6100 ## do set a variable so people can do so.
6101 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6113 if test $succeeded = yes; then
6119 if test $HAVE_ALSA = yes; then
6120 SAVE_CFLAGS
="$CFLAGS"
6121 SAVE_LDFLAGS
="$LDFLAGS"
6122 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6123 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #include <asoundlib.h>
6134 snd_lib_error_set_handler (0);
6139 rm -f conftest.
$ac_objext
6140 if { (ac_try
="$ac_compile"
6142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_compile") 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && {
6153 test -z "$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 } && test -s conftest.$ac_objext; then
6156 emacs_alsa_normal=yes
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 emacs_alsa_normal=no
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 if test "$emacs_alsa_normal" != yes; then
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <alsa/asoundlib.h>
6176 snd_lib_error_set_handler (0);
6181 rm -f conftest.$ac_objext
6182 if { (ac_try="$ac_compile"
6184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6185 *) ac_try_echo
=$ac_try;;
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_compile") 2>conftest.er1
6190 grep -v '^ *+' conftest.er1
>conftest.err
6192 cat conftest.err
>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.
$ac_objext; then
6198 emacs_alsa_subdir
=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.
$ac_ext >&5
6203 emacs_alsa_subdir
=no
6206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6207 if test "$emacs_alsa_subdir" != yes; then
6208 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6209 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6210 { (exit 1); exit 1; }; }
6212 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6215 CFLAGS
="$SAVE_CFLAGS"
6216 LDFLAGS
="$SAVE_LDFLAGS"
6217 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6218 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6220 cat >>confdefs.h
<<\_ACEOF
6253 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6254 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6255 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6256 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6259 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6263 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_res
=`eval echo '${'$as_ac_Header'}'`
6267 { echo "$as_me:$LINENO: result: $ac_res" >&5
6268 echo "${ECHO_T}$ac_res" >&6; }
6270 # Is the header compilable?
6271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6273 cat >conftest.
$ac_ext <<_ACEOF
6276 cat confdefs.h
>>conftest.
$ac_ext
6277 cat >>conftest.
$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 $ac_includes_default
6280 #include <$ac_header>
6282 rm -f conftest.
$ac_objext
6283 if { (ac_try
="$ac_compile"
6285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 ac_header_compiler=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_header_compiler=no
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6309 echo "${ECHO_T}$ac_header_compiler" >&6; }
6311 # Is the header present?
6312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6314 cat >conftest.$ac_ext <<_ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 #include <$ac_header>
6322 if { (ac_try="$ac_cpp conftest.$ac_ext"
6324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6325 *) ac_try_echo
=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6330 grep -v '^ *+' conftest.er1
>conftest.err
6332 cat conftest.err
>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } >/dev
/null
&& {
6335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6338 ac_header_preproc
=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.
$ac_ext >&5
6343 ac_header_preproc
=no
6346 rm -f conftest.err conftest.
$ac_ext
6347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6348 echo "${ECHO_T}$ac_header_preproc" >&6; }
6350 # So? What about this header?
6351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6357 ac_header_preproc
=yes
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6377 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 ac_res
=`eval echo '${'$as_ac_Header'}'`
6383 { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h
<<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6397 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6398 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6399 cat >conftest.
$ac_ext <<_ACEOF
6402 cat confdefs.h
>>conftest.
$ac_ext
6403 cat >>conftest.
$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 #include <sys/personality.h>
6409 personality (PER_LINUX32)
6414 rm -f conftest.
$ac_objext
6415 if { (ac_try
="$ac_compile"
6417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_compile") 2>conftest.er1
6423 grep -v '^ *+' conftest.er1 >conftest.err
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } && {
6428 test -z "$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6430 } && test -s conftest.$ac_objext; then
6431 emacs_cv_personality_linux32=yes
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 emacs_cv_personality_linux32=no
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6441 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6443 if test $emacs_cv_personality_linux32 = yes; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_PERSONALITY_LINUX32 1
6452 for ac_header in term.h
6454 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <$ac_header>
6468 if { (ac_try="$ac_cpp conftest.$ac_ext"
6470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6471 *) ac_try_echo
=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6476 grep -v '^ *+' conftest.er1
>conftest.err
6478 cat conftest.err
>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } >/dev
/null
&& {
6481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6484 eval "$as_ac_Header=yes"
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6489 eval "$as_ac_Header=no"
6492 rm -f conftest.err conftest.
$ac_ext
6494 ac_res
=`eval echo '${'$as_ac_Header'}'`
6495 { echo "$as_me:$LINENO: result: $ac_res" >&5
6496 echo "${ECHO_T}$ac_res" >&6; }
6497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6498 cat >>confdefs.h
<<_ACEOF
6499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6507 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6508 if test "${ac_cv_header_stdc+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 cat >conftest.
$ac_ext <<_ACEOF
6514 cat confdefs.h
>>conftest.
$ac_ext
6515 cat >>conftest.
$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6530 rm -f conftest.
$ac_objext
6531 if { (ac_try
="$ac_compile"
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_compile") 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); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_stdc=yes
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_cv_header_stdc=no
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "memchr" >/dev/null 2>&1; then
6572 ac_cv_header_stdc=no
6578 if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "free" >/dev/null 2>&1; then
6593 ac_cv_header_stdc=no
6599 if test $ac_cv_header_stdc = yes; then
6600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601 if test "$cross_compiling" = yes; then
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6612 #if ((' ' & 0x0FF) == 0x020)
6613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6616 # define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6635 rm -f conftest$ac_exeext
6636 if { (ac_try="$ac_link"
6638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6639 *) ac_try_echo
=$ac_try;;
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_link") 2>&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6646 { (case "(($ac_try" in
6647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_try") 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6657 echo "$as_me: program exited with status $ac_status" >&5
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_cv_header_stdc=no
6664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6670 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6671 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6672 if test $ac_cv_header_stdc = yes; then
6674 cat >>confdefs.h <<\_ACEOF
6675 #define STDC_HEADERS 1
6680 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6681 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6682 if test "${ac_cv_header_time+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <sys/types.h>
6692 #include <sys/time.h>
6698 if ((struct tm *) 0)
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6708 *) ac_try_echo
=$ac_try;;
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6713 grep -v '^ *+' conftest.er1
>conftest.err
6715 cat conftest.err
>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.
$ac_objext; then
6721 ac_cv_header_time
=yes
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.
$ac_ext >&5
6726 ac_cv_header_time
=no
6729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6731 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6732 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6733 if test $ac_cv_header_time = yes; then
6735 cat >>confdefs.h
<<\_ACEOF
6736 #define TIME_WITH_SYS_TIME 1
6741 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6742 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6743 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 cat >conftest.
$ac_ext <<_ACEOF
6749 cat confdefs.h
>>conftest.
$ac_ext
6750 cat >>conftest.
$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6764 rm -f conftest.
$ac_objext
6765 if { (ac_try
="$ac_compile"
6767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_compile") 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } && {
6778 test -z "$ac_c_werror_flag" ||
6779 test ! -s conftest.err
6780 } && test -s conftest.$ac_objext; then
6781 ac_cv_have_decl_sys_siglist=yes
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 ac_cv_have_decl_sys_siglist=no
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6792 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6793 if test $ac_cv_have_decl_sys_siglist = yes; then
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_DECL_SYS_SIGLIST 1
6801 cat >>confdefs.h <<_ACEOF
6802 #define HAVE_DECL_SYS_SIGLIST 0
6809 if test $ac_cv_have_decl_sys_siglist != yes; then
6810 # For Tru64, at least:
6811 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6812 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6813 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 $ac_includes_default
6826 #ifndef __sys_siglist
6827 (void) __sys_siglist;
6834 rm -f conftest.$ac_objext
6835 if { (ac_try="$ac_compile"
6837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6838 *) ac_try_echo
=$ac_try;;
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1
>conftest.err
6845 cat conftest.err
>&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.
$ac_objext; then
6851 ac_cv_have_decl___sys_siglist
=yes
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.
$ac_ext >&5
6856 ac_cv_have_decl___sys_siglist
=no
6859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6862 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6863 if test $ac_cv_have_decl___sys_siglist = yes; then
6865 cat >>confdefs.h
<<_ACEOF
6866 #define HAVE_DECL___SYS_SIGLIST 1
6871 cat >>confdefs.h
<<_ACEOF
6872 #define HAVE_DECL___SYS_SIGLIST 0
6879 if test $ac_cv_have_decl___sys_siglist = yes; then
6881 cat >>confdefs.h
<<\_ACEOF
6882 #define sys_siglist __sys_siglist
6887 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6888 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6889 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 cat >conftest.
$ac_ext <<_ACEOF
6895 cat confdefs.h
>>conftest.
$ac_ext
6896 cat >>conftest.
$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 #include <sys/types.h>
6899 #include <sys/wait.h>
6901 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6912 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6917 rm -f conftest.
$ac_objext
6918 if { (ac_try
="$ac_compile"
6920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_compile") 2>conftest.er1
6926 grep -v '^ *+' conftest.er1 >conftest.err
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest.$ac_objext; then
6934 ac_cv_header_sys_wait_h=yes
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_cv_header_sys_wait_h=no
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6945 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6946 if test $ac_cv_header_sys_wait_h = yes; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_SYS_WAIT_H 1
6955 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6956 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6957 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.$ac_ext <<_ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #ifdef TIME_WITH_SYS_TIME
6967 #include <sys/time.h>
6970 #ifdef HAVE_SYS_TIME_H
6971 #include <sys/time.h>
6982 static struct utimbuf x; x.actime = x.modtime;
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6991 *) ac_try_echo
=$ac_try;;
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1
>conftest.err
6998 cat conftest.err
>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.
$ac_objext; then
7004 emacs_cv_struct_utimbuf
=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7009 emacs_cv_struct_utimbuf
=no
7012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7015 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7016 if test $emacs_cv_struct_utimbuf = yes; then
7018 cat >>confdefs.h
<<\_ACEOF
7019 #define HAVE_STRUCT_UTIMBUF 1
7024 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7025 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7026 if test "${ac_cv_type_signal+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 cat >conftest.
$ac_ext <<_ACEOF
7032 cat confdefs.h
>>conftest.
$ac_ext
7033 cat >>conftest.
$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #include <sys/types.h>
7041 return *(signal (0, 0)) (0) == 1;
7046 rm -f conftest.
$ac_objext
7047 if { (ac_try
="$ac_compile"
7049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.$ac_objext; then
7063 ac_cv_type_signal=int
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_type_signal=void
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7074 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7076 cat >>confdefs.h <<_ACEOF
7077 #define RETSIGTYPE $ac_cv_type_signal
7082 { echo "$as_me:$LINENO: checking for speed_t" >&5
7083 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7084 if test "${emacs_cv_speed_t+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <termios.h>
7102 rm -f conftest.$ac_objext
7103 if { (ac_try="$ac_compile"
7105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7106 *) ac_try_echo
=$ac_try;;
7108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109 (eval "$ac_compile") 2>conftest.er1
7111 grep -v '^ *+' conftest.er1
>conftest.err
7113 cat conftest.err
>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && {
7116 test -z "$ac_c_werror_flag" ||
7117 test ! -s conftest.err
7118 } && test -s conftest.
$ac_objext; then
7119 emacs_cv_speed_t
=yes
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.
$ac_ext >&5
7127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7129 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7130 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7131 if test $emacs_cv_speed_t = yes; then
7133 cat >>confdefs.h
<<\_ACEOF
7134 #define HAVE_SPEED_T 1
7139 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7140 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7141 if test "${emacs_cv_struct_timeval+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 cat >conftest.
$ac_ext <<_ACEOF
7147 cat confdefs.h
>>conftest.
$ac_ext
7148 cat >>conftest.
$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #ifdef TIME_WITH_SYS_TIME
7151 #include <sys/time.h>
7154 #ifdef HAVE_SYS_TIME_H
7155 #include <sys/time.h>
7163 static struct timeval x; x.tv_sec = x.tv_usec;
7168 rm -f conftest.
$ac_objext
7169 if { (ac_try
="$ac_compile"
7171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_compile") 2>conftest.er1
7177 grep -v '^ *+' conftest.er1 >conftest.err
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && {
7182 test -z "$ac_c_werror_flag" ||
7183 test ! -s conftest.err
7184 } && test -s conftest.$ac_objext; then
7185 emacs_cv_struct_timeval=yes
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 emacs_cv_struct_timeval=no
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7196 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7197 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7198 if test $emacs_cv_struct_timeval = yes; then
7200 cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_TIMEVAL 1
7206 { echo "$as_me:$LINENO: checking for struct exception" >&5
7207 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7208 if test "${emacs_cv_struct_exception+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7221 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7230 *) ac_try_echo
=$ac_try;;
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1
>conftest.err
7237 cat conftest.err
>&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.
$ac_objext; then
7243 emacs_cv_struct_exception
=yes
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.
$ac_ext >&5
7248 emacs_cv_struct_exception
=no
7251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7253 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7254 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7255 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7256 if test $emacs_cv_struct_exception != yes; then
7258 cat >>confdefs.h
<<\_ACEOF
7259 #define NO_MATHERR 1
7265 for ac_header
in sys
/socket.h
7267 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7268 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_res
=`eval echo '${'$as_ac_Header'}'`
7275 { echo "$as_me:$LINENO: result: $ac_res" >&5
7276 echo "${ECHO_T}$ac_res" >&6; }
7278 # Is the header compilable?
7279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7281 cat >conftest.
$ac_ext <<_ACEOF
7284 cat confdefs.h
>>conftest.
$ac_ext
7285 cat >>conftest.
$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7288 #include <$ac_header>
7290 rm -f conftest.
$ac_objext
7291 if { (ac_try
="$ac_compile"
7293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compile") 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest.$ac_objext; then
7307 ac_header_compiler=yes
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 ac_header_compiler=no
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7317 echo "${ECHO_T}$ac_header_compiler" >&6; }
7319 # Is the header present?
7320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <$ac_header>
7330 if { (ac_try="$ac_cpp conftest.$ac_ext"
7332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7333 *) ac_try_echo
=$ac_try;;
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7338 grep -v '^ *+' conftest.er1
>conftest.err
7340 cat conftest.err
>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } >/dev
/null
&& {
7343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7346 ac_header_preproc
=yes
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.
$ac_ext >&5
7351 ac_header_preproc
=no
7354 rm -f conftest.err conftest.
$ac_ext
7355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7356 echo "${ECHO_T}$ac_header_preproc" >&6; }
7358 # So? What about this header?
7359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7365 ac_header_preproc
=yes
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7385 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 eval "$as_ac_Header=\$ac_header_preproc"
7390 ac_res
=`eval echo '${'$as_ac_Header'}'`
7391 { echo "$as_me:$LINENO: result: $ac_res" >&5
7392 echo "${ECHO_T}$ac_res" >&6; }
7395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7396 cat >>confdefs.h
<<_ACEOF
7397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 for ac_header
in net
/if.h
7407 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7410 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 cat >conftest.
$ac_ext <<_ACEOF
7416 cat confdefs.h
>>conftest.
$ac_ext
7417 cat >>conftest.
$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 #if HAVE_SYS_SOCKET_H
7421 #include <sys/socket.h>
7424 #include <$ac_header>
7426 rm -f conftest.
$ac_objext
7427 if { (ac_try
="$ac_compile"
7429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7443 eval "$as_ac_Header=yes"
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 eval "$as_ac_Header=no"
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 ac_res=`eval echo '${'$as_ac_Header'}'`
7454 { echo "$as_me:$LINENO: result: $ac_res" >&5
7455 echo "${ECHO_T}$ac_res" >&6; }
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457 cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7466 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7467 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7468 if test "${ac_cv_struct_tm+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 cat >conftest.$ac_ext <<_ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 #include <sys/types.h>
7484 int *p = &tm.tm_sec;
7490 rm -f conftest.$ac_objext
7491 if { (ac_try="$ac_compile"
7493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7494 *) ac_try_echo
=$ac_try;;
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7499 grep -v '^ *+' conftest.er1
>conftest.err
7501 cat conftest.err
>&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.
$ac_objext; then
7507 ac_cv_struct_tm
=time.h
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.
$ac_ext >&5
7512 ac_cv_struct_tm
=sys
/time.h
7515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7517 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7518 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7519 if test $ac_cv_struct_tm = sys
/time.h
; then
7521 cat >>confdefs.h
<<\_ACEOF
7522 #define TM_IN_SYS_TIME 1
7527 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7528 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7529 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 cat >conftest.
$ac_ext <<_ACEOF
7535 cat confdefs.h
>>conftest.
$ac_ext
7536 cat >>conftest.
$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <sys/types.h>
7539 #include <$ac_cv_struct_tm>
7545 static struct tm ac_aggr;
7546 if (ac_aggr.tm_zone)
7552 rm -f conftest.
$ac_objext
7553 if { (ac_try
="$ac_compile"
7555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_member_struct_tm_tm_zone=yes
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 #include <sys/types.h>
7581 #include <$ac_cv_struct_tm>
7587 static struct tm ac_aggr;
7588 if (sizeof ac_aggr.tm_zone)
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7598 *) ac_try_echo
=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1
>conftest.err
7605 cat conftest.err
>&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.
$ac_objext; then
7611 ac_cv_member_struct_tm_tm_zone
=yes
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.
$ac_ext >&5
7616 ac_cv_member_struct_tm_tm_zone
=no
7619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7624 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7625 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7626 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7628 cat >>confdefs.h
<<_ACEOF
7629 #define HAVE_STRUCT_TM_TM_ZONE 1
7635 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7637 cat >>confdefs.h
<<\_ACEOF
7638 #define HAVE_TM_ZONE 1
7642 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7643 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7644 if test "${ac_cv_have_decl_tzname+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 cat >conftest.
$ac_ext <<_ACEOF
7650 cat confdefs.h
>>conftest.
$ac_ext
7651 cat >>conftest.
$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7666 rm -f conftest.
$ac_objext
7667 if { (ac_try
="$ac_compile"
7669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7675 grep -v '^ *+' conftest.er1 >conftest.err
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 ac_cv_have_decl_tzname=yes
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_cv_have_decl_tzname=no
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7694 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7695 if test $ac_cv_have_decl_tzname = yes; then
7697 cat >>confdefs.h <<_ACEOF
7698 #define HAVE_DECL_TZNAME 1
7703 cat >>confdefs.h <<_ACEOF
7704 #define HAVE_DECL_TZNAME 0
7711 { echo "$as_me:$LINENO: checking for tzname" >&5
7712 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7713 if test "${ac_cv_var_tzname+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 cat >conftest.$ac_ext <<_ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7723 #if !HAVE_DECL_TZNAME
7724 extern char *tzname[];
7730 return tzname[0][0];
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (ac_try="$ac_link"
7738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7739 *) ac_try_echo
=$ac_try;;
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_link") 2>conftest.er1
7744 grep -v '^ *+' conftest.er1
>conftest.err
7746 cat conftest.err
>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest
$ac_exeext &&
7752 $as_test_x conftest
$ac_exeext; then
7753 ac_cv_var_tzname
=yes
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.
$ac_ext >&5
7761 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7762 conftest
$ac_exeext conftest.
$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7765 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7766 if test $ac_cv_var_tzname = yes; then
7768 cat >>confdefs.h
<<\_ACEOF
7769 #define HAVE_TZNAME 1
7775 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7776 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7777 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 cat >conftest.
$ac_ext <<_ACEOF
7783 cat confdefs.h
>>conftest.
$ac_ext
7784 cat >>conftest.
$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7791 static struct tm ac_aggr;
7792 if (ac_aggr.tm_gmtoff)
7798 rm -f conftest.
$ac_objext
7799 if { (ac_try
="$ac_compile"
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_compile") 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_objext; then
7815 ac_cv_member_struct_tm_tm_gmtoff=yes
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 cat >conftest.$ac_ext <<_ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7831 static struct tm ac_aggr;
7832 if (sizeof ac_aggr.tm_gmtoff)
7838 rm -f conftest.$ac_objext
7839 if { (ac_try="$ac_compile"
7841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7842 *) ac_try_echo
=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_compile") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1
>conftest.err
7849 cat conftest.err
>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest.
$ac_objext; then
7855 ac_cv_member_struct_tm_tm_gmtoff
=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.
$ac_ext >&5
7860 ac_cv_member_struct_tm_tm_gmtoff
=no
7863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7869 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7870 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7872 cat >>confdefs.h
<<\_ACEOF
7873 #define HAVE_TM_GMTOFF 1
7878 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7879 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7880 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.
$ac_ext <<_ACEOF
7886 cat confdefs.h
>>conftest.
$ac_ext
7887 cat >>conftest.
$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 $ac_includes_default
7890 #if HAVE_SYS_SOCKET_H
7891 #include <sys/socket.h>
7900 static struct ifreq ac_aggr;
7901 if (ac_aggr.ifr_flags)
7907 rm -f conftest.
$ac_objext
7908 if { (ac_try
="$ac_compile"
7910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_cv_member_struct_ifreq_ifr_flags=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #if HAVE_SYS_SOCKET_H
7937 #include <sys/socket.h>
7946 static struct ifreq ac_aggr;
7947 if (sizeof ac_aggr.ifr_flags)
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7957 *) ac_try_echo
=$ac_try;;
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7962 grep -v '^ *+' conftest.er1
>conftest.err
7964 cat conftest.err
>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.
$ac_objext; then
7970 ac_cv_member_struct_ifreq_ifr_flags
=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.
$ac_ext >&5
7975 ac_cv_member_struct_ifreq_ifr_flags
=no
7978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7983 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7984 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7985 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7987 cat >>confdefs.h
<<_ACEOF
7988 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7993 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7994 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
7995 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 cat >conftest.
$ac_ext <<_ACEOF
8001 cat confdefs.h
>>conftest.
$ac_ext
8002 cat >>conftest.
$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8005 #if HAVE_SYS_SOCKET_H
8006 #include <sys/socket.h>
8015 static struct ifreq ac_aggr;
8016 if (ac_aggr.ifr_hwaddr)
8022 rm -f conftest.
$ac_objext
8023 if { (ac_try
="$ac_compile"
8025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 $ac_includes_default
8051 #if HAVE_SYS_SOCKET_H
8052 #include <sys/socket.h>
8061 static struct ifreq ac_aggr;
8062 if (sizeof ac_aggr.ifr_hwaddr)
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8072 *) ac_try_echo
=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1
>conftest.err
8079 cat conftest.err
>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.
$ac_objext; then
8085 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.
$ac_ext >&5
8090 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8098 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8099 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8100 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8102 cat >>confdefs.h
<<_ACEOF
8103 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8108 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8109 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8110 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 cat >conftest.
$ac_ext <<_ACEOF
8116 cat confdefs.h
>>conftest.
$ac_ext
8117 cat >>conftest.
$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8120 #if HAVE_SYS_SOCKET_H
8121 #include <sys/socket.h>
8130 static struct ifreq ac_aggr;
8131 if (ac_aggr.ifr_netmask)
8137 rm -f conftest.
$ac_objext
8138 if { (ac_try
="$ac_compile"
8140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_compile") 2>conftest.er1
8146 grep -v '^ *+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 } && test -s conftest.$ac_objext; then
8154 ac_cv_member_struct_ifreq_ifr_netmask=yes
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 $ac_includes_default
8166 #if HAVE_SYS_SOCKET_H
8167 #include <sys/socket.h>
8176 static struct ifreq ac_aggr;
8177 if (sizeof ac_aggr.ifr_netmask)
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8187 *) ac_try_echo
=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1
>conftest.err
8194 cat conftest.err
>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.
$ac_objext; then
8200 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.
$ac_ext >&5
8205 ac_cv_member_struct_ifreq_ifr_netmask
=no
8208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8213 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8214 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8215 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8217 cat >>confdefs.h
<<_ACEOF
8218 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8223 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8224 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8225 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.
$ac_ext <<_ACEOF
8231 cat confdefs.h
>>conftest.
$ac_ext
8232 cat >>conftest.
$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 #if HAVE_SYS_SOCKET_H
8236 #include <sys/socket.h>
8245 static struct ifreq ac_aggr;
8246 if (ac_aggr.ifr_broadaddr)
8252 rm -f conftest.
$ac_objext
8253 if { (ac_try
="$ac_compile"
8255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 $ac_includes_default
8281 #if HAVE_SYS_SOCKET_H
8282 #include <sys/socket.h>
8291 static struct ifreq ac_aggr;
8292 if (sizeof ac_aggr.ifr_broadaddr)
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8302 *) ac_try_echo
=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_compile") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1
>conftest.err
8309 cat conftest.err
>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest.
$ac_objext; then
8315 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.
$ac_ext >&5
8320 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8329 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8330 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8332 cat >>confdefs.h
<<_ACEOF
8333 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8338 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8339 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8340 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 cat >conftest.
$ac_ext <<_ACEOF
8346 cat confdefs.h
>>conftest.
$ac_ext
8347 cat >>conftest.
$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8350 #if HAVE_SYS_SOCKET_H
8351 #include <sys/socket.h>
8360 static struct ifreq ac_aggr;
8361 if (ac_aggr.ifr_addr)
8367 rm -f conftest.
$ac_objext
8368 if { (ac_try
="$ac_compile"
8370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest.$ac_objext; then
8384 ac_cv_member_struct_ifreq_ifr_addr=yes
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 #if HAVE_SYS_SOCKET_H
8397 #include <sys/socket.h>
8406 static struct ifreq ac_aggr;
8407 if (sizeof ac_aggr.ifr_addr)
8413 rm -f conftest.$ac_objext
8414 if { (ac_try="$ac_compile"
8416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8417 *) ac_try_echo
=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1
>conftest.err
8424 cat conftest.err
>&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.
$ac_objext; then
8430 ac_cv_member_struct_ifreq_ifr_addr
=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.
$ac_ext >&5
8435 ac_cv_member_struct_ifreq_ifr_addr
=no
8438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8443 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8444 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8445 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8447 cat >>confdefs.h
<<_ACEOF
8448 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8456 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8457 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8458 if test "$ac_cv_prog_cc_c89" != no
; then
8459 { echo "$as_me:$LINENO: result: yes" >&5
8460 echo "${ECHO_T}yes" >&6; }
8462 cat >>confdefs.h
<<\_ACEOF
8463 #define PROTOTYPES 1
8467 cat >>confdefs.h
<<\_ACEOF
8468 #define __PROTOTYPES 1
8472 { echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6; }
8476 { echo "$as_me:$LINENO: checking for working volatile" >&5
8477 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8478 if test "${ac_cv_c_volatile+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 cat >conftest.
$ac_ext <<_ACEOF
8484 cat confdefs.h
>>conftest.
$ac_ext
8485 cat >>conftest.
$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8493 int * volatile y = (int *) 0;
8499 rm -f conftest.
$ac_objext
8500 if { (ac_try
="$ac_compile"
8502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8508 grep -v '^ *+' conftest.er1 >conftest.err
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.$ac_objext; then
8516 ac_cv_c_volatile=yes
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8527 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8528 if test $ac_cv_c_volatile = no; then
8530 cat >>confdefs.h <<\_ACEOF
8536 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8537 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8538 if test "${ac_cv_c_const+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8551 /* FIXME: Include the comments suggested by Paul. */
8553 /* Ultrix mips cc rejects this. */
8554 typedef int charset[2];
8556 /* SunOS 4.1.1 cc rejects this. */
8557 char const *const *pcpcc;
8559 /* NEC SVR4.0.2 mips cc rejects this. */
8560 struct point {int x, y;};
8561 static struct point const zero = {0,0};
8562 /* AIX XL C 1.02.0.0 rejects this.
8563 It does not let you subtract one const X* pointer from another in
8564 an arm of an if-expression whose if-part is not a constant
8566 const char *g = "string";
8567 pcpcc = &g + (g ? g-g : 0);
8568 /* HPUX 7.0 cc rejects these. */
8570 ppc = (char**) pcpcc;
8571 pcpcc = (char const *const *) ppc;
8572 { /* SCO 3.2v4 cc rejects this. */
8574 char const *s = 0 ? (char *) 0 : (char const *) 0;
8579 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8581 const int *foo = &x[0];
8584 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8585 typedef const int *iptr;
8589 { /* AIX XL C 1.02.0.0 rejects this saying
8590 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8591 struct s { int j; const int *ap[3]; };
8592 struct s *b; b->j = 5;
8594 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8598 return !cs[0] && !zero.x;
8605 rm -f conftest.$ac_objext
8606 if { (ac_try="$ac_compile"
8608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8609 *) ac_try_echo
=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.
$ac_objext; then
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.
$ac_ext >&5
8630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8632 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8633 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8634 if test $ac_cv_c_const = no
; then
8636 cat >>confdefs.h
<<\_ACEOF
8642 { echo "$as_me:$LINENO: checking for void * support" >&5
8643 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8644 if test "${emacs_cv_void_star+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 cat >conftest.
$ac_ext <<_ACEOF
8650 cat confdefs.h
>>conftest.
$ac_ext
8651 cat >>conftest.
$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8662 rm -f conftest.
$ac_objext
8663 if { (ac_try
="$ac_compile"
8665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669 (eval "$ac_compile") 2>conftest.er1
8671 grep -v '^ *+' conftest.er1 >conftest.err
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && {
8676 test -z "$ac_c_werror_flag" ||
8677 test ! -s conftest.err
8678 } && test -s conftest.$ac_objext; then
8679 emacs_cv_void_star=yes
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 emacs_cv_void_star=no
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8690 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8691 if test $emacs_cv_void_star = yes; then
8692 cat >>confdefs.h <<\_ACEOF
8693 #define POINTER_TYPE void
8697 cat >>confdefs.h <<\_ACEOF
8698 #define POINTER_TYPE char
8707 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8708 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8709 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8710 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 cat >conftest.make <<\_ACEOF
8716 @echo '@@@%%%=$(MAKE)=@@@%%%'
8718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8719 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8721 eval ac_cv_prog_make_${ac_make}_set=yes;;
8723 eval ac_cv_prog_make_${ac_make}_set=no;;
8727 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8728 { echo "$as_me:$LINENO: result: yes" >&5
8729 echo "${ECHO_T}yes" >&6; }
8732 { echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6; }
8734 SET_MAKE="MAKE=${MAKE-make}"
8738 { echo "$as_me:$LINENO: checking for long file names" >&5
8739 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8740 if test "${ac_cv_sys_long_file_names+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 ac_cv_sys_long_file_names=yes
8744 # Test for long file names in all the places we know might matter:
8745 # . the current directory, where building will happen
8746 # $prefix/lib where we will be installing things
8747 # $exec_prefix/lib likewise
8748 # $TMPDIR if set, where it might want to write temporary files
8749 # /tmp where it might want to write temporary files
8752 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8753 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8754 # in the usual case where exec_prefix is '${prefix}'.
8756 . | /* | ?:[\\/]*) ;; #(
8759 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8760 ac_xdir=$ac_dir/cf$$
8761 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8762 ac_tf1=$ac_xdir/conftest9012345
8763 ac_tf2=$ac_xdir/conftest9012346
8764 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8765 ac_cv_sys_long_file_names=no
8766 rm -f -r "$ac_xdir" 2>/dev/null
8767 test $ac_cv_sys_long_file_names = no && break
8770 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8771 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8772 if test $ac_cv_sys_long_file_names = yes; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_LONG_FILE_NAMES 1
8781 #### Choose a window system.
8783 { echo "$as_me:$LINENO: checking for X" >&5
8784 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8787 # Check whether --with-x was given.
8788 if test "${with_x+set}" = set; then
8792 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8793 if test "x$with_x" = xno; then
8794 # The user explicitly disabled X.
8797 case $x_includes,$x_libraries in #(
8798 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8799 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8800 { (exit 1); exit 1; }; };; #(
8801 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 # One or both of the vars are not set, and there is no cached value.
8805 ac_x_includes=no ac_x_libraries=no
8806 rm -f -r conftest.dir
8807 if mkdir conftest.dir; then
8809 cat >Imakefile <<'_ACEOF'
8811 @echo incroot='${INCROOT}'
8813 @echo usrlibdir='${USRLIBDIR}'
8815 @echo libdir='${LIBDIR}'
8817 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8819 for ac_var in incroot usrlibdir libdir; do
8820 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8822 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8823 for ac_extension in a so sl; do
8824 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8825 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8826 ac_im_usrlibdir=$ac_im_libdir; break
8829 # Screen out bogus values from the imake configuration. They are
8830 # bogus both because they are the default anyway, and because
8831 # using them would break gcc on systems where it needs fixed includes.
8832 case $ac_im_incroot in
8833 /usr/include) ac_x_includes= ;;
8834 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8836 case $ac_im_usrlibdir in
8838 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8842 rm -f -r conftest.dir
8845 # Standard set of common directories for X headers.
8846 # Check X11 before X11Rn because it is often a symlink to the current release.
8858 /usr/local/X11/include
8859 /usr/local/X11R6/include
8860 /usr/local/X11R5/include
8861 /usr/local/X11R4/include
8863 /usr/local/include/X11
8864 /usr/local/include/X11R6
8865 /usr/local/include/X11R5
8866 /usr/local/include/X11R4
8870 /usr/XFree86/include/X11
8874 /usr/unsupported/include
8876 /usr/local/x11r5/include
8877 /usr/lpp/Xamples/include
8879 /usr/openwin/include
8880 /usr/openwin/share/include'
8882 if test "$ac_x_includes" = no; then
8883 # Guess where to find include files, by looking for Xlib.h.
8884 # First, try using that file with no special directory specified.
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <X11/Xlib.h>
8893 if { (ac_try="$ac_cpp conftest.$ac_ext"
8895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8896 *) ac_try_echo
=$ac_try;;
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1
>conftest.err
8903 cat conftest.err
>&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } >/dev
/null
&& {
8906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8909 # We can compile using X headers with no special include directory.
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.
$ac_ext >&5
8915 for ac_dir
in $ac_x_header_dirs; do
8916 if test -r "$ac_dir/X11/Xlib.h"; then
8917 ac_x_includes
=$ac_dir
8923 rm -f conftest.err conftest.
$ac_ext
8924 fi # $ac_x_includes = no
8926 if test "$ac_x_libraries" = no
; then
8927 # Check for the libraries.
8928 # See if we find them without any special options.
8929 # Don't add to $LIBS permanently.
8932 cat >conftest.
$ac_ext <<_ACEOF
8935 cat confdefs.h
>>conftest.
$ac_ext
8936 cat >>conftest.
$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 #include <X11/Xlib.h>
8947 rm -f conftest.
$ac_objext conftest
$ac_exeext
8948 if { (ac_try
="$ac_link"
8950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_link") 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest$ac_exeext &&
8964 $as_test_x conftest$ac_exeext; then
8966 # We can link X programs with no special library path.
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8973 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
8975 # Don't even attempt the hair of trying to link an X program!
8976 for ac_extension in a so sl; do
8977 if test -r "$ac_dir/libX11.$ac_extension"; then
8978 ac_x_libraries=$ac_dir
8985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8986 conftest$ac_exeext conftest.$ac_ext
8987 fi # $ac_x_libraries = no
8989 case $ac_x_includes,$ac_x_libraries in #(
8991 # Didn't find X, or a directory has "'" in its name.
8992 ac_cv_have_x="have_x=no";; #(
8994 # Record where we found X for the cache.
8995 ac_cv_have_x="have_x=yes\
8996 ac_x_includes='$ac_x_includes'\
8997 ac_x_libraries='$ac_x_libraries'"
9003 eval "$ac_cv_have_x"
9006 if test "$have_x" != yes; then
9007 { echo "$as_me:$LINENO: result: $have_x" >&5
9008 echo "${ECHO_T}$have_x" >&6; }
9011 # If each of the values was on the command line, it overrides each guess.
9012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9014 # Update the cache value to reflect the command line values.
9015 ac_cv_have_x="have_x=yes\
9016 ac_x_includes='$x_includes'\
9017 ac_x_libraries='$x_libraries'"
9018 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9019 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9022 if test "$no_x" = yes; then
9028 if test "${x_libraries}" != NONE; then
9029 if test -n "${x_libraries}"; then
9030 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9031 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9033 x_default_search_path=""
9034 x_search_path=${x_libraries}
9035 if test -z "${x_search_path}"; then
9036 x_search_path=/usr/lib
9038 for x_library in `echo ${x_search_path}: | \
9039 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9041 ${x_library}/X11/%L/%T/%N%C%S:\
9042 ${x_library}/X11/%l/%T/%N%C%S:\
9043 ${x_library}/X11/%T/%N%C%S:\
9044 ${x_library}/X11/%L/%T/%N%S:\
9045 ${x_library}/X11/%l/%T/%N%S:\
9046 ${x_library}/X11/%T/%N%S"
9047 if test x"${x_default_search_path}" = x; then
9048 x_default_search_path=${x_search_path}
9050 x_default_search_path="${x_search_path}:${x_default_search_path}"
9054 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9055 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9058 if test x"${x_includes}" = x; then
9059 bitmapdir=/usr/include/X11/bitmaps
9061 # accumulate include directories that have X11 bitmap subdirectories
9063 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9064 if test -d "${bmd}/X11/bitmaps"; then
9065 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9067 if test -d "${bmd}/bitmaps"; then
9068 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9071 if test ${bmd_acc} != "dummyval"; then
9072 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9077 if test "${with_carbon}" != no; then
9078 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9079 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9080 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9081 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9085 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9087 # Is the header compilable?
9088 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9089 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9090 cat >conftest.$ac_ext <<_ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 $ac_includes_default
9097 #include <Carbon/Carbon.h>
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9103 *) ac_try_echo
=$ac_try;;
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9108 grep -v '^ *+' conftest.er1
>conftest.err
9110 cat conftest.err
>&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && {
9113 test -z "$ac_c_werror_flag" ||
9114 test ! -s conftest.err
9115 } && test -s conftest.
$ac_objext; then
9116 ac_header_compiler
=yes
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9121 ac_header_compiler
=no
9124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9126 echo "${ECHO_T}$ac_header_compiler" >&6; }
9128 # Is the header present?
9129 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9130 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9131 cat >conftest.
$ac_ext <<_ACEOF
9134 cat confdefs.h
>>conftest.
$ac_ext
9135 cat >>conftest.
$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #include <Carbon/Carbon.h>
9139 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } >/dev/null && {
9152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9155 ac_header_preproc=yes
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_header_preproc=no
9163 rm -f conftest.err conftest.$ac_ext
9164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9165 echo "${ECHO_T}$ac_header_preproc" >&6; }
9167 # So? What about this header?
9168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9170 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9171 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9172 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9173 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9174 ac_header_preproc=yes
9177 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9178 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9182 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9184 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9186 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9188 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9192 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9193 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9194 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9199 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9200 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9203 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9209 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9210 if test "${with_carbon+set}" != set \
9211 && test "${carbon_appdir_x+set}" != set; then
9212 for var in with_x with_x_toolkit with_xim \
9213 with_xpm with_jpeg with_tiff with_gif with_png; do
9214 if eval test \"\${$var+set}\" = set; then
9221 if test "${HAVE_CARBON}" = yes; then
9225 case "${window_system}" in
9229 case "${with_x_toolkit}" in
9230 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9231 motif ) USE_X_TOOLKIT=MOTIF ;;
9233 USE_X_TOOLKIT=none ;;
9234 no ) USE_X_TOOLKIT=none ;;
9235 * ) USE_X_TOOLKIT=maybe ;;
9245 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9246 # Extract the first word of "X", so it can be a program name with args.
9247 set dummy X; ac_word=$2
9248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9250 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 if test -n "$HAVE_XSERVER"; then
9254 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9263 ac_cv_prog_HAVE_XSERVER="true"
9264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9274 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9275 if test -n "$HAVE_XSERVER"; then
9276 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9277 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9279 { echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6; }
9284 if test "$HAVE_XSERVER" = true ||
9285 test -n "$DISPLAY" ||
9286 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9287 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9288 were found. You should install the relevant development files for X
9289 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9290 sure you have development files for image handling, i.e.
9291 tiff, gif, jpeg, png and xpm.
9292 If you are sure you want Emacs compiled without X window support, pass
9295 echo "$as_me: error: You seem to be running X, but no X development libraries
9296 were found. You should install the relevant development files for X
9297 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9298 sure you have development files for image handling, i.e.
9299 tiff, gif, jpeg, png and xpm.
9300 If you are sure you want Emacs compiled without X window support, pass
9302 to configure." >&2;}
9303 { (exit 1); exit 1; }; }
9307 ### If we're using X11, we should use the X menu package.
9310 yes ) HAVE_MENUS=yes ;;
9313 ### Compute the unexec source name from the object name.
9314 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9316 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9317 # Assume not, until told otherwise.
9320 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9321 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9322 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9333 #define malloc_get_state innocuous_malloc_get_state
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char malloc_get_state (); below.
9337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338 <limits.h> exists even on freestanding compilers. */
9341 # include <limits.h>
9343 # include <assert.h>
9346 #undef malloc_get_state
9348 /* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9354 char malloc_get_state ();
9355 /* The GNU C library defines this for functions which it implements
9356 to always fail with ENOSYS. Some functions are actually named
9357 something starting with __ and the normal name is an alias. */
9358 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9365 return malloc_get_state ();
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (ac_try="$ac_link"
9373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9374 *) ac_try_echo
=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_link") 2>conftest.er1
9379 grep -v '^ *+' conftest.er1
>conftest.err
9381 cat conftest.err
>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest
$ac_exeext &&
9387 $as_test_x conftest
$ac_exeext; then
9388 ac_cv_func_malloc_get_state
=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.
$ac_ext >&5
9393 ac_cv_func_malloc_get_state
=no
9396 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9397 conftest
$ac_exeext conftest.
$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9400 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9401 if test $ac_cv_func_malloc_get_state = yes; then
9407 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9408 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9409 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 cat >conftest.
$ac_ext <<_ACEOF
9415 cat confdefs.h
>>conftest.
$ac_ext
9416 cat >>conftest.
$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9420 #define malloc_set_state innocuous_malloc_set_state
9422 /* System header to define __stub macros and hopefully few prototypes,
9423 which can conflict with char malloc_set_state (); below.
9424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9425 <limits.h> exists even on freestanding compilers. */
9428 # include <limits.h>
9430 # include <assert.h>
9433 #undef malloc_set_state
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9441 char malloc_set_state ();
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9452 return malloc_set_state ();
9457 rm -f conftest.
$ac_objext conftest
$ac_exeext
9458 if { (ac_try
="$ac_link"
9460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_link") 2>conftest.er1
9466 grep -v '^ *+' conftest.er1 >conftest.err
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && {
9471 test -z "$ac_c_werror_flag" ||
9472 test ! -s conftest.err
9473 } && test -s conftest$ac_exeext &&
9474 $as_test_x conftest$ac_exeext; then
9475 ac_cv_func_malloc_set_state=yes
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9480 ac_cv_func_malloc_set_state=no
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484 conftest$ac_exeext conftest.$ac_ext
9486 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9487 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9488 if test $ac_cv_func_malloc_set_state = yes; then
9494 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9495 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9496 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 cat >conftest.$ac_ext <<_ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 extern void (* __after_morecore_hook)();
9509 __after_morecore_hook = 0
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9518 *) ac_try_echo
=$ac_try;;
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>conftest.er1
9523 grep -v '^ *+' conftest.er1
>conftest.err
9525 cat conftest.err
>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && {
9528 test -z "$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 } && test -s conftest
$ac_exeext &&
9531 $as_test_x conftest
$ac_exeext; then
9532 emacs_cv_var___after_morecore_hook
=yes
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.
$ac_ext >&5
9537 emacs_cv_var___after_morecore_hook
=no
9540 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9541 conftest
$ac_exeext conftest.
$ac_ext
9543 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9544 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9545 if test $emacs_cv_var___after_morecore_hook = no
; then
9548 if test "${system_malloc}" = "yes"; then
9551 (The GNU allocators don't work with this system configuration.)"
9553 if test "$doug_lea_malloc" = "yes" ; then
9554 if test "$GNU_MALLOC" = yes ; then
9556 (Using Doug Lea's new malloc from the GNU C Library.)"
9559 cat >>confdefs.h
<<\_ACEOF
9560 #define DOUG_LEA_MALLOC 1
9565 if test x
"${REL_ALLOC}" = x
; then
9566 REL_ALLOC
=${GNU_MALLOC}
9572 for ac_header
in stdlib.h unistd.h
9574 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9575 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9578 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 ac_res
=`eval echo '${'$as_ac_Header'}'`
9582 { echo "$as_me:$LINENO: result: $ac_res" >&5
9583 echo "${ECHO_T}$ac_res" >&6; }
9585 # Is the header compilable?
9586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9588 cat >conftest.
$ac_ext <<_ACEOF
9591 cat confdefs.h
>>conftest.
$ac_ext
9592 cat >>conftest.
$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 $ac_includes_default
9595 #include <$ac_header>
9597 rm -f conftest.
$ac_objext
9598 if { (ac_try
="$ac_compile"
9600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_compile") 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest.$ac_objext; then
9614 ac_header_compiler=yes
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_header_compiler=no
9622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624 echo "${ECHO_T}$ac_header_compiler" >&6; }
9626 # Is the header present?
9627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9629 cat >conftest.$ac_ext <<_ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <$ac_header>
9637 if { (ac_try="$ac_cpp conftest.$ac_ext"
9639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9640 *) ac_try_echo
=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1
>conftest.err
9647 cat conftest.err
>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev
/null
&& {
9650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9653 ac_header_preproc
=yes
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.
$ac_ext >&5
9658 ac_header_preproc
=no
9661 rm -f conftest.err conftest.
$ac_ext
9662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9663 echo "${ECHO_T}$ac_header_preproc" >&6; }
9665 # So? What about this header?
9666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9672 ac_header_preproc
=yes
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9692 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 eval "$as_ac_Header=\$ac_header_preproc"
9697 ac_res
=`eval echo '${'$as_ac_Header'}'`
9698 { echo "$as_me:$LINENO: result: $ac_res" >&5
9699 echo "${ECHO_T}$ac_res" >&6; }
9702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9703 cat >>confdefs.h
<<_ACEOF
9704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712 for ac_func
in getpagesize
9714 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9717 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 cat >conftest.
$ac_ext <<_ACEOF
9723 cat confdefs.h
>>conftest.
$ac_ext
9724 cat >>conftest.
$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9728 #define $ac_func innocuous_$ac_func
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func (); below.
9732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9733 <limits.h> exists even on freestanding compilers. */
9736 # include <limits.h>
9738 # include <assert.h>
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9750 /* The GNU C library defines this for functions which it implements
9751 to always fail with ENOSYS. Some functions are actually named
9752 something starting with __ and the normal name is an alias. */
9753 #if defined __stub_$ac_func || defined __stub___$ac_func
9765 rm -f conftest.
$ac_objext conftest
$ac_exeext
9766 if { (ac_try
="$ac_link"
9768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1 >conftest.err
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest$ac_exeext &&
9782 $as_test_x conftest$ac_exeext; then
9783 eval "$as_ac_var=yes"
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 eval "$as_ac_var=no"
9791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792 conftest$ac_exeext conftest.$ac_ext
9794 ac_res=`eval echo '${'$as_ac_var'}'`
9795 { echo "$as_me:$LINENO: result: $ac_res" >&5
9796 echo "${ECHO_T}$ac_res" >&6; }
9797 if test `eval echo '${'$as_ac_var'}'` = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9805 { echo "$as_me:$LINENO: checking for working mmap" >&5
9806 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9807 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 if test "$cross_compiling" = yes; then
9811 ac_cv_func_mmap_fixed_mapped=no
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819 $ac_includes_default
9820 /* malloc might have been renamed as rpl_malloc. */
9823 /* Thanks to Mike Haertel and Jim Avera for this test.
9824 Here is a matrix of mmap possibilities:
9825 mmap private not fixed
9826 mmap private fixed at somewhere currently unmapped
9827 mmap private fixed at somewhere already mapped
9828 mmap shared not fixed
9829 mmap shared fixed at somewhere currently unmapped
9830 mmap shared fixed at somewhere already mapped
9831 For private mappings, we should verify that changes cannot be read()
9832 back from the file, nor mmap's back from the file at a different
9833 address. (There have been systems where private was not correctly
9834 implemented like the infamous i386 svr4.0, and systems where the
9835 VM page cache was not coherent with the file system buffer cache
9836 like early versions of FreeBSD and possibly contemporary NetBSD.)
9837 For shared mappings, we should conversely verify that changes get
9838 propagated back to all the places they're supposed to be.
9840 Grep wants private fixed already mapped.
9841 The main things grep needs to know about mmap are:
9842 * does it exist and is it safe to write into the mmap'd area
9843 * how to use it (BSD variants) */
9846 #include <sys/mman.h>
9848 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9852 /* This mess was copied from the GNU getpagesize.h. */
9853 #ifndef HAVE_GETPAGESIZE
9854 /* Assume that all systems that can run configure have sys/param.h. */
9855 # ifndef HAVE_SYS_PARAM_H
9856 # define HAVE_SYS_PARAM_H 1
9859 # ifdef _SC_PAGESIZE
9860 # define getpagesize() sysconf(_SC_PAGESIZE)
9861 # else /* no _SC_PAGESIZE */
9862 # ifdef HAVE_SYS_PARAM_H
9863 # include <sys/param.h>
9864 # ifdef EXEC_PAGESIZE
9865 # define getpagesize() EXEC_PAGESIZE
9866 # else /* no EXEC_PAGESIZE */
9868 # define getpagesize() NBPG * CLSIZE
9871 # endif /* no CLSIZE */
9872 # else /* no NBPG */
9874 # define getpagesize() NBPC
9875 # else /* no NBPC */
9877 # define getpagesize() PAGESIZE
9878 # endif /* PAGESIZE */
9879 # endif /* no NBPC */
9880 # endif /* no NBPG */
9881 # endif /* no EXEC_PAGESIZE */
9882 # else /* no HAVE_SYS_PARAM_H */
9883 # define getpagesize() 8192 /* punt totally */
9884 # endif /* no HAVE_SYS_PARAM_H */
9885 # endif /* no _SC_PAGESIZE */
9887 #endif /* no HAVE_GETPAGESIZE */
9892 char *data, *data2, *data3;
9896 pagesize = getpagesize ();
9898 /* First, make a file with some known garbage in it. */
9899 data = (char *) malloc (pagesize);
9902 for (i = 0; i < pagesize; ++i)
9903 *(data + i) = rand ();
9905 fd = creat ("conftest.mmap", 0600);
9908 if (write (fd, data, pagesize) != pagesize)
9912 /* Next, try to mmap the file at a fixed address which already has
9913 something else allocated at it. If we can, also make sure that
9914 we see the same garbage. */
9915 fd = open ("conftest.mmap", O_RDWR);
9918 data2 = (char *) malloc (2 * pagesize);
9921 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9923 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9925 for (i = 0; i < pagesize; ++i)
9926 if (*(data + i) != *(data2 + i))
9929 /* Finally, make sure that changes to the mapped area do not
9930 percolate back to the file as seen by read(). (This is a bug on
9931 some variants of i386 svr4.0.) */
9932 for (i = 0; i < pagesize; ++i)
9933 *(data2 + i) = *(data2 + i) + 1;
9934 data3 = (char *) malloc (pagesize);
9937 if (read (fd, data3, pagesize) != pagesize)
9939 for (i = 0; i < pagesize; ++i)
9940 if (*(data + i) != *(data3 + i))
9946 rm -f conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9950 *) ac_try_echo
=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_func_mmap_fixed_mapped=yes
9968 echo "$as_me: program exited with status $ac_status" >&5
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_func_mmap_fixed_mapped=no
9975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9981 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9982 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9984 cat >>confdefs.h <<\_ACEOF
9991 if test $use_mmap_for_buffers = yes; then
9995 LIBS="$libsrc_libs $LIBS"
9998 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9999 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10000 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 ac_check_lib_save_LIBS=$LIBS
10004 LIBS="-ldnet $LIBS"
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10022 return dnet_ntoa ();
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10031 *) ac_try_echo
=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10036 grep -v '^ *+' conftest.er1
>conftest.err
10038 cat conftest.err
>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest
$ac_exeext &&
10044 $as_test_x conftest
$ac_exeext; then
10045 ac_cv_lib_dnet_dnet_ntoa
=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.
$ac_ext >&5
10050 ac_cv_lib_dnet_dnet_ntoa
=no
10053 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10054 conftest
$ac_exeext conftest.
$ac_ext
10055 LIBS
=$ac_check_lib_save_LIBS
10057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10060 cat >>confdefs.h
<<_ACEOF
10061 #define HAVE_LIBDNET 1
10064 LIBS
="-ldnet $LIBS"
10069 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10070 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10071 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 ac_check_lib_save_LIBS
=$LIBS
10075 LIBS
="-lXbsd $LIBS"
10076 cat >conftest.
$ac_ext <<_ACEOF
10079 cat confdefs.h
>>conftest.
$ac_ext
10080 cat >>conftest.
$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10092 rm -f conftest.
$ac_objext conftest
$ac_exeext
10093 if { (ac_try
="$ac_link"
10094 case "(($ac_try" in
10095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>conftest.er1
10101 grep -v '^ *+' conftest.er1 >conftest.err
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest$ac_exeext &&
10109 $as_test_x conftest$ac_exeext; then
10110 ac_cv_lib_Xbsd_main=yes
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 ac_cv_lib_Xbsd_main=no
10118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10123 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10124 if test $ac_cv_lib_Xbsd_main = yes; then
10125 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10130 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10131 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10132 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 ac_check_lib_save_LIBS=$LIBS
10136 LIBS="-lpthreads $LIBS"
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10154 return cma_open ();
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10163 *) ac_try_echo
=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_link") 2>conftest.er1
10168 grep -v '^ *+' conftest.er1
>conftest.err
10170 cat conftest.err
>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest
$ac_exeext &&
10176 $as_test_x conftest
$ac_exeext; then
10177 ac_cv_lib_pthreads_cma_open
=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.
$ac_ext >&5
10182 ac_cv_lib_pthreads_cma_open
=no
10185 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10186 conftest
$ac_exeext conftest.
$ac_ext
10187 LIBS
=$ac_check_lib_save_LIBS
10189 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10190 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10191 if test $ac_cv_lib_pthreads_cma_open = yes; then
10192 cat >>confdefs.h
<<_ACEOF
10193 #define HAVE_LIBPTHREADS 1
10196 LIBS
="-lpthreads $LIBS"
10204 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10205 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10206 if test "${gdb_cv_bigtoc+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10212 *) gdb_cv_bigtoc
=-bbigtoc ;;
10215 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10216 cat >conftest.
$ac_ext <<_ACEOF
10219 cat confdefs.h
>>conftest.
$ac_ext
10220 cat >>conftest.
$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10231 rm -f conftest.
$ac_objext conftest
$ac_exeext
10232 if { (ac_try
="$ac_link"
10233 case "(($ac_try" in
10234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest$ac_exeext &&
10248 $as_test_x conftest$ac_exeext; then
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258 conftest$ac_exeext conftest.$ac_ext
10261 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10262 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10266 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10267 # used for the tests that follow. We set them back to REAL_CFLAGS and
10268 # REAL_CPPFLAGS later on.
10270 REAL_CPPFLAGS="$CPPFLAGS"
10272 if test "${HAVE_X11}" = "yes"; then
10273 DEFS="$C_SWITCH_X_SITE $DEFS"
10274 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10276 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10277 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10279 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10280 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10281 # but it's more convenient here to set LD_RUN_PATH
10282 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10283 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10284 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10288 if test "${opsys}" = "gnu-linux"; then
10289 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10290 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10301 XOpenDisplay ("foo");
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10310 *) ac_try_echo
=$ac_try;;
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_link") 2>conftest.er1
10315 grep -v '^ *+' conftest.er1
>conftest.err
10317 cat conftest.err
>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest
$ac_exeext &&
10323 $as_test_x conftest
$ac_exeext; then
10324 xlinux_first_failure
=no
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.
$ac_ext >&5
10329 xlinux_first_failure
=yes
10332 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10333 conftest
$ac_exeext conftest.
$ac_ext
10334 if test "${xlinux_first_failure}" = "yes"; then
10335 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10336 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10337 OLD_CPPFLAGS
="$CPPFLAGS"
10339 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10340 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10341 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10342 LIBS
="$LIBS -b i486-linuxaout"
10343 cat >conftest.
$ac_ext <<_ACEOF
10346 cat confdefs.h
>>conftest.
$ac_ext
10347 cat >>conftest.
$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10353 XOpenDisplay ("foo");
10358 rm -f conftest.
$ac_objext conftest
$ac_exeext
10359 if { (ac_try
="$ac_link"
10360 case "(($ac_try" in
10361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_link") 2>conftest.er1
10367 grep -v '^ *+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest$ac_exeext &&
10375 $as_test_x conftest$ac_exeext; then
10376 xlinux_second_failure=no
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 xlinux_second_failure=yes
10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385 conftest$ac_exeext conftest.$ac_ext
10386 if test "${xlinux_second_failure}" = "yes"; then
10387 # If we get the same failure with -b, there is no use adding -b.
10388 # So take it out. This plays safe.
10389 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10390 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10391 CPPFLAGS="$OLD_CPPFLAGS"
10393 { echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6; }
10396 { echo "$as_me:$LINENO: result: yes" >&5
10397 echo "${ECHO_T}yes" >&6; }
10400 { echo "$as_me:$LINENO: result: no" >&5
10401 echo "${ECHO_T}no" >&6; }
10405 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10406 # header files included from there.
10407 { echo "$as_me:$LINENO: checking for Xkb" >&5
10408 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <X11/Xlib.h>
10416 #include <X11/XKBlib.h>
10420 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10425 rm -f conftest.$ac_objext conftest$ac_exeext
10426 if { (ac_try="$ac_link"
10427 case "(($ac_try" in
10428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10429 *) ac_try_echo
=$ac_try;;
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_link") 2>conftest.er1
10434 grep -v '^ *+' conftest.er1
>conftest.err
10436 cat conftest.err
>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } && {
10439 test -z "$ac_c_werror_flag" ||
10440 test ! -s conftest.err
10441 } && test -s conftest
$ac_exeext &&
10442 $as_test_x conftest
$ac_exeext; then
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.
$ac_ext >&5
10451 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10452 conftest
$ac_exeext conftest.
$ac_ext
10453 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10454 echo "${ECHO_T}$emacs_xkb" >&6; }
10455 if test $emacs_xkb = yes; then
10457 cat >>confdefs.h
<<\_ACEOF
10458 #define HAVE_XKBGETKEYBOARD 1
10467 for ac_func
in XrmSetDatabase XScreenResourceString \
10468 XScreenNumberOfScreen XSetWMProtocols
10470 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10473 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 cat >conftest.
$ac_ext <<_ACEOF
10479 cat confdefs.h
>>conftest.
$ac_ext
10480 cat >>conftest.
$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484 #define $ac_func innocuous_$ac_func
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10492 # include <limits.h>
10494 # include <assert.h>
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined __stub_$ac_func || defined __stub___$ac_func
10516 return $ac_func ();
10521 rm -f conftest.
$ac_objext conftest
$ac_exeext
10522 if { (ac_try
="$ac_link"
10523 case "(($ac_try" in
10524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest$ac_exeext &&
10538 $as_test_x conftest$ac_exeext; then
10539 eval "$as_ac_var=yes"
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 eval "$as_ac_var=no"
10547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10548 conftest$ac_exeext conftest.$ac_ext
10550 ac_res=`eval echo '${'$as_ac_var'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10553 if test `eval echo '${'$as_ac_var'}'` = yes; then
10554 cat >>confdefs.h <<_ACEOF
10555 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10563 if test "${window_system}" = "x11"; then
10564 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10565 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10566 if test "${emacs_cv_x11_version_6+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 cat >conftest.$ac_ext <<_ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #include <X11/Xlib.h>
10579 #if XlibSpecificationRelease < 6
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10591 *) ac_try_echo
=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
10596 grep -v '^ *+' conftest.er1
>conftest.err
10598 cat conftest.err
>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest
$ac_exeext &&
10604 $as_test_x conftest
$ac_exeext; then
10605 emacs_cv_x11_version_6
=yes
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.
$ac_ext >&5
10610 emacs_cv_x11_version_6
=no
10613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10614 conftest
$ac_exeext conftest.
$ac_ext
10617 if test $emacs_cv_x11_version_6 = yes; then
10618 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10619 echo "${ECHO_T}6 or newer" >&6; }
10621 cat >>confdefs.h
<<\_ACEOF
10622 #define HAVE_X11R6 1
10626 { echo "$as_me:$LINENO: result: before 6" >&5
10627 echo "${ECHO_T}before 6" >&6; }
10632 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10634 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10635 if test "${with_rsvg}" != "no"; then
10636 RSVG_REQUIRED
=2.0.0
10637 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10642 # Extract the first word of "pkg-config", so it can be a program name with args.
10643 set dummy pkg-config
; ac_word
=$2
10644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10646 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 case $PKG_CONFIG in
10651 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10655 for as_dir
in $PATH
10658 test -z "$as_dir" && as_dir
=.
10659 for ac_exec_ext
in '' $ac_executable_extensions; do
10660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10661 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10673 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10674 if test -n "$PKG_CONFIG"; then
10675 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10676 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10678 { echo "$as_me:$LINENO: result: no" >&5
10679 echo "${ECHO_T}no" >&6; }
10684 if test "$PKG_CONFIG" = "no" ; then
10687 PKG_CONFIG_MIN_VERSION
=0.9.0
10688 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10689 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10690 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10692 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10693 { echo "$as_me:$LINENO: result: yes" >&5
10694 echo "${ECHO_T}yes" >&6; }
10697 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10698 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10699 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10700 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10701 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10703 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10704 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10705 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10706 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10707 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10709 { echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6; }
10713 ## If we have a custom action on failure, don't print errors, but
10714 ## do set a variable so people can do so.
10715 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10722 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10723 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10727 if test $succeeded = yes; then
10736 if test ".${RSVG_CFLAGS}" != "."; then
10739 cat >>confdefs.h
<<\_ACEOF
10740 #define HAVE_RSVG 1
10743 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10744 LIBS
="$RSVG_LIBS $LIBS"
10751 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10754 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10759 # Extract the first word of "pkg-config", so it can be a program name with args.
10760 set dummy pkg-config
; ac_word
=$2
10761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 case $PKG_CONFIG in
10768 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10772 for as_dir
in $PATH
10775 test -z "$as_dir" && as_dir
=.
10776 for ac_exec_ext
in '' $ac_executable_extensions; do
10777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10778 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10790 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10791 if test -n "$PKG_CONFIG"; then
10792 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10793 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10795 { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10801 if test "$PKG_CONFIG" = "no" ; then
10804 PKG_CONFIG_MIN_VERSION
=0.9.0
10805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10806 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10807 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10809 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10810 { echo "$as_me:$LINENO: result: yes" >&5
10811 echo "${ECHO_T}yes" >&6; }
10814 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10815 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10816 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10817 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10818 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10820 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10821 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10822 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10823 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10824 echo "${ECHO_T}$GTK_LIBS" >&6; }
10826 { echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6; }
10830 ## If we have a custom action on failure, don't print errors, but
10831 ## do set a variable so people can do so.
10832 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10844 if test $succeeded = yes; then
10850 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10851 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10852 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10853 { (exit 1); exit 1; }; }
10858 if test x
"$pkg_check_gtk" = xyes
; then
10862 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10863 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10864 LIBS
="$GTK_LIBS $LIBS"
10867 for ac_func
in gtk_main
10869 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10872 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 cat >conftest.
$ac_ext <<_ACEOF
10878 cat confdefs.h
>>conftest.
$ac_ext
10879 cat >>conftest.
$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10883 #define $ac_func innocuous_$ac_func
10885 /* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char $ac_func (); below.
10887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888 <limits.h> exists even on freestanding compilers. */
10891 # include <limits.h>
10893 # include <assert.h>
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10905 /* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908 #if defined __stub_$ac_func || defined __stub___$ac_func
10915 return $ac_func ();
10920 rm -f conftest.
$ac_objext conftest
$ac_exeext
10921 if { (ac_try
="$ac_link"
10922 case "(($ac_try" in
10923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest$ac_exeext &&
10937 $as_test_x conftest$ac_exeext; then
10938 eval "$as_ac_var=yes"
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 eval "$as_ac_var=no"
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10949 ac_res=`eval echo '${'$as_ac_var'}'`
10950 { echo "$as_me:$LINENO: result: $ac_res" >&5
10951 echo "${ECHO_T}$ac_res" >&6; }
10952 if test `eval echo '${'$as_ac_var'}'` = yes; then
10953 cat >>confdefs.h <<_ACEOF
10954 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10960 if test "${GTK_COMPILES}" != "yes"; then
10961 if test "$USE_X_TOOLKIT" != "maybe"; then
10962 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10963 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10964 { (exit 1); exit 1; }; };
10969 cat >>confdefs.h <<\_ACEOF
10979 if test "${HAVE_GTK}" = "yes"; then
10981 if test "$with_toolkit_scroll_bars" != no; then
10982 with_toolkit_scroll_bars=yes
10985 HAVE_GTK_MULTIDISPLAY=no
10987 for ac_func in gdk_display_open
10989 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11003 #define $ac_func innocuous_$ac_func
11005 /* System header to define __stub macros and hopefully few prototypes,
11006 which can conflict with char $ac_func (); below.
11007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11008 <limits.h> exists even on freestanding compilers. */
11011 # include <limits.h>
11013 # include <assert.h>
11018 /* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined __stub_$ac_func || defined __stub___$ac_func
11035 return $ac_func ();
11040 rm -f conftest.$ac_objext conftest$ac_exeext
11041 if { (ac_try="$ac_link"
11042 case "(($ac_try" in
11043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11044 *) ac_try_echo
=$ac_try;;
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_link") 2>conftest.er1
11049 grep -v '^ *+' conftest.er1
>conftest.err
11051 cat conftest.err
>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && {
11054 test -z "$ac_c_werror_flag" ||
11055 test ! -s conftest.err
11056 } && test -s conftest
$ac_exeext &&
11057 $as_test_x conftest
$ac_exeext; then
11058 eval "$as_ac_var=yes"
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.
$ac_ext >&5
11063 eval "$as_ac_var=no"
11066 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11067 conftest
$ac_exeext conftest.
$ac_ext
11069 ac_res
=`eval echo '${'$as_ac_var'}'`
11070 { echo "$as_me:$LINENO: result: $ac_res" >&5
11071 echo "${ECHO_T}$ac_res" >&6; }
11072 if test `eval echo '${'$as_ac_var'}'` = yes; then
11073 cat >>confdefs.h
<<_ACEOF
11074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11076 HAVE_GTK_MULTIDISPLAY
=yes
11080 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11082 cat >>confdefs.h
<<\_ACEOF
11083 #define HAVE_GTK_MULTIDISPLAY 1
11088 HAVE_GTK_FILE_SELECTION
=no
11090 for ac_func
in gtk_file_selection_new
11092 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.
$ac_ext <<_ACEOF
11101 cat confdefs.h
>>conftest.
$ac_ext
11102 cat >>conftest.
$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11114 # include <limits.h>
11116 # include <assert.h>
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11138 return $ac_func ();
11143 rm -f conftest.
$ac_objext conftest
$ac_exeext
11144 if { (ac_try
="$ac_link"
11145 case "(($ac_try" in
11146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
11152 grep -v '^ *+' conftest.er1 >conftest.err
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && {
11157 test -z "$ac_c_werror_flag" ||
11158 test ! -s conftest.err
11159 } && test -s conftest$ac_exeext &&
11160 $as_test_x conftest$ac_exeext; then
11161 eval "$as_ac_var=yes"
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 eval "$as_ac_var=no"
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11172 ac_res=`eval echo '${'$as_ac_var'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11175 if test `eval echo '${'$as_ac_var'}'` = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11179 HAVE_GTK_FILE_SELECTION=yes
11184 HAVE_GTK_FILE_CHOOSER=no
11186 for ac_func in gtk_file_chooser_dialog_new
11188 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202 #define $ac_func innocuous_$ac_func
11204 /* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char $ac_func (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11210 # include <limits.h>
11212 # include <assert.h>
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined __stub_$ac_func || defined __stub___$ac_func
11234 return $ac_func ();
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11243 *) ac_try_echo
=$ac_try;;
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>conftest.er1
11248 grep -v '^ *+' conftest.er1
>conftest.err
11250 cat conftest.err
>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest
$ac_exeext &&
11256 $as_test_x conftest
$ac_exeext; then
11257 eval "$as_ac_var=yes"
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.
$ac_ext >&5
11262 eval "$as_ac_var=no"
11265 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11266 conftest
$ac_exeext conftest.
$ac_ext
11268 ac_res
=`eval echo '${'$as_ac_var'}'`
11269 { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272 cat >>confdefs.h
<<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11275 HAVE_GTK_FILE_CHOOSER
=yes
11280 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11281 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11283 cat >>confdefs.h
<<\_ACEOF
11284 #define HAVE_GTK_FILE_BOTH 1
11289 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11290 HAVE_GTK_AND_PTHREAD
=no
11292 for ac_header
in pthread.h
11294 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res
=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11305 # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.
$ac_ext <<_ACEOF
11311 cat confdefs.h
>>conftest.
$ac_ext
11312 cat >>conftest.
$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 #include <$ac_header>
11317 rm -f conftest.
$ac_objext
11318 if { (ac_try
="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest.$ac_objext; then
11334 ac_header_compiler=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_compiler=no
11342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11344 echo "${ECHO_T}$ac_header_compiler" >&6; }
11346 # Is the header present?
11347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <$ac_header>
11357 if { (ac_try="$ac_cpp conftest.$ac_ext"
11358 case "(($ac_try" in
11359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11360 *) ac_try_echo
=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev
/null
&& {
11370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11373 ac_header_preproc
=yes
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.
$ac_ext >&5
11378 ac_header_preproc
=no
11381 rm -f conftest.err conftest.
$ac_ext
11382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11383 echo "${ECHO_T}$ac_header_preproc" >&6; }
11385 # So? What about this header?
11386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11392 ac_header_preproc
=yes
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res
=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h
<<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431 if test "$ac_cv_header_pthread_h"; then
11432 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11433 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11434 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 ac_check_lib_save_LIBS
=$LIBS
11438 LIBS
="-lpthread $LIBS"
11439 cat >conftest.
$ac_ext <<_ACEOF
11442 cat confdefs.h
>>conftest.
$ac_ext
11443 cat >>conftest.
$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11452 char pthread_self ();
11456 return pthread_self ();
11461 rm -f conftest.
$ac_objext conftest
$ac_exeext
11462 if { (ac_try
="$ac_link"
11463 case "(($ac_try" in
11464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_link") 2>conftest.er1
11470 grep -v '^ *+' conftest.er1 >conftest.err
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } && {
11475 test -z "$ac_c_werror_flag" ||
11476 test ! -s conftest.err
11477 } && test -s conftest$ac_exeext &&
11478 $as_test_x conftest$ac_exeext; then
11479 ac_cv_lib_pthread_pthread_self=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_lib_pthread_pthread_self=no
11487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11491 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11492 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11493 if test $ac_cv_lib_pthread_pthread_self = yes; then
11494 HAVE_GTK_AND_PTHREAD=yes
11498 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11499 case "${canonical}" in
11501 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_GTK_AND_PTHREAD 1
11513 if test "${with_dbus}" = "yes"; then
11517 # Extract the first word of "pkg-config", so it can be a program name with args.
11518 set dummy pkg-config; ac_word=$2
11519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 case $PKG_CONFIG in
11526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11549 if test -n "$PKG_CONFIG"; then
11550 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11551 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11553 { echo "$as_me:$LINENO: result: no" >&5
11554 echo "${ECHO_T}no" >&6; }
11559 if test "$PKG_CONFIG" = "no" ; then
11562 PKG_CONFIG_MIN_VERSION=0.9.0
11563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11564 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11565 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11567 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11568 { echo "$as_me:$LINENO: result: yes" >&5
11569 echo "${ECHO_T}yes" >&6; }
11572 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11573 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11574 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11575 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11576 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11578 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11579 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11580 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11581 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11582 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11584 { echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6; }
11588 ## If we have a custom action on failure, don't print errors, but
11589 ## do set a variable so people can do so.
11590 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11597 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11598 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11602 if test $succeeded = yes; then
11608 if test "$HAVE_DBUS" = yes; then
11610 cat >>confdefs.h <<\_ACEOF
11611 #define HAVE_DBUS 1
11618 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11619 if test "$with_xaw3d" != no; then
11620 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11621 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11622 if test "${emacs_cv_xaw3d+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11632 #include <X11/Intrinsic.h>
11633 #include <X11/Xaw3d/Simple.h>
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11646 *) ac_try_echo
=$ac_try;;
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_link") 2>conftest.er1
11651 grep -v '^ *+' conftest.er1
>conftest.err
11653 cat conftest.err
>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } && {
11656 test -z "$ac_c_werror_flag" ||
11657 test ! -s conftest.err
11658 } && test -s conftest
$ac_exeext &&
11659 $as_test_x conftest
$ac_exeext; then
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.
$ac_ext >&5
11668 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11669 conftest
$ac_exeext conftest.
$ac_ext
11675 if test $emacs_cv_xaw3d = yes; then
11676 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11677 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11678 USE_X_TOOLKIT
=LUCID
11681 cat >>confdefs.h
<<\_ACEOF
11682 #define HAVE_XAW3D 1
11686 { echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6; }
11688 { echo "$as_me:$LINENO: checking for libXaw" >&5
11689 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11690 if test "${emacs_cv_xaw+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 cat >conftest.
$ac_ext <<_ACEOF
11696 cat confdefs.h
>>conftest.
$ac_ext
11697 cat >>conftest.
$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11700 #include <X11/Intrinsic.h>
11701 #include <X11/Xaw/Simple.h>
11710 rm -f conftest.
$ac_objext conftest
$ac_exeext
11711 if { (ac_try
="$ac_link"
11712 case "(($ac_try" in
11713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_link") 2>conftest.er1
11719 grep -v '^ *+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest$ac_exeext &&
11727 $as_test_x conftest$ac_exeext; then
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737 conftest$ac_exeext conftest.$ac_ext
11740 if test $emacs_cv_xaw = yes; then
11741 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11742 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11743 USE_X_TOOLKIT=LUCID
11744 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11745 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11746 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11747 { (exit 1); exit 1; }; }
11749 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11750 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11756 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11758 if test "${USE_X_TOOLKIT}" != "none"; then
11759 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11760 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11761 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <X11/Intrinsic.h>
11774 #if XtSpecificationRelease < 6
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11786 *) ac_try_echo
=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_link") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1
>conftest.err
11793 cat conftest.err
>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && {
11796 test -z "$ac_c_werror_flag" ||
11797 test ! -s conftest.err
11798 } && test -s conftest
$ac_exeext &&
11799 $as_test_x conftest
$ac_exeext; then
11800 emacs_cv_x11_toolkit_version_6
=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.
$ac_ext >&5
11805 emacs_cv_x11_toolkit_version_6
=no
11808 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11809 conftest
$ac_exeext conftest.
$ac_ext
11812 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11813 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11814 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11815 echo "${ECHO_T}6 or newer" >&6; }
11817 cat >>confdefs.h
<<\_ACEOF
11818 #define HAVE_X11XTR6 1
11822 { echo "$as_me:$LINENO: result: before 6" >&5
11823 echo "${ECHO_T}before 6" >&6; }
11827 if test x
$HAVE_X11XTR6 = xyes
; then
11828 LIBS
="-lXt -lSM -lICE $LIBS"
11833 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11834 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11835 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 ac_check_lib_save_LIBS
=$LIBS
11840 cat >conftest.
$ac_ext <<_ACEOF
11843 cat confdefs.h
>>conftest.
$ac_ext
11844 cat >>conftest.
$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11853 char XmuConvertStandardSelection ();
11857 return XmuConvertStandardSelection ();
11862 rm -f conftest.
$ac_objext conftest
$ac_exeext
11863 if { (ac_try
="$ac_link"
11864 case "(($ac_try" in
11865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_link") 2>conftest.er1
11871 grep -v '^ *+' conftest.er1 >conftest.err
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && {
11876 test -z "$ac_c_werror_flag" ||
11877 test ! -s conftest.err
11878 } && test -s conftest$ac_exeext &&
11879 $as_test_x conftest$ac_exeext; then
11880 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11893 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11894 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define HAVE_LIBXMU 1
11903 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11906 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11907 if test "${HAVE_X11}" = "yes"; then
11908 if test "${USE_X_TOOLKIT}" != "none"; then
11910 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11911 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11912 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lXext $LIBS"
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11930 char XShapeQueryExtension ();
11934 return XShapeQueryExtension ();
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (ac_try="$ac_link"
11941 case "(($ac_try" in
11942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11943 *) ac_try_echo
=$ac_try;;
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_link") 2>conftest.er1
11948 grep -v '^ *+' conftest.er1
>conftest.err
11950 cat conftest.err
>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } && {
11953 test -z "$ac_c_werror_flag" ||
11954 test ! -s conftest.err
11955 } && test -s conftest
$ac_exeext &&
11956 $as_test_x conftest
$ac_exeext; then
11957 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.
$ac_ext >&5
11962 ac_cv_lib_Xext_XShapeQueryExtension
=no
11965 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11966 conftest
$ac_exeext conftest.
$ac_ext
11967 LIBS
=$ac_check_lib_save_LIBS
11969 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11970 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11971 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11972 cat >>confdefs.h
<<_ACEOF
11973 #define HAVE_LIBXEXT 1
11976 LIBS
="-lXext $LIBS"
11983 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11984 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11985 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11986 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 cat >conftest.
$ac_ext <<_ACEOF
11992 cat confdefs.h
>>conftest.
$ac_ext
11993 cat >>conftest.
$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11999 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12002 Motif version prior to 2.1.
12008 rm -f conftest.
$ac_objext
12009 if { (ac_try
="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest.$ac_objext; then
12025 emacs_cv_motif_version_2_1=yes
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 emacs_cv_motif_version_2_1=no
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12036 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12037 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12038 if test $emacs_cv_motif_version_2_1 = yes; then
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_MOTIF_2_1 1
12045 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12046 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 ac_check_lib_save_LIBS=$LIBS
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12065 char XpCreateContext ();
12069 return XpCreateContext ();
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12078 *) ac_try_echo
=$ac_try;;
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12083 grep -v '^ *+' conftest.er1
>conftest.err
12085 cat conftest.err
>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest
$ac_exeext &&
12091 $as_test_x conftest
$ac_exeext; then
12092 ac_cv_lib_Xp_XpCreateContext
=yes
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.
$ac_ext >&5
12097 ac_cv_lib_Xp_XpCreateContext
=no
12100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12101 conftest
$ac_exeext conftest.
$ac_ext
12102 LIBS
=$ac_check_lib_save_LIBS
12104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12106 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12110 if test ${HAVE_LIBXP} = yes; then
12112 cat >>confdefs.h
<<\_ACEOF
12113 #define HAVE_LIBXP 1
12118 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12119 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12120 if test "${emacs_cv_lesstif+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 # We put this in CFLAGS temporarily to precede other -I options
12124 # that might be in CFLAGS temporarily.
12125 # We put this in CPPFLAGS where it precedes the other -I options.
12126 OLD_CPPFLAGS
=$CPPFLAGS
12128 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12129 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12130 cat >conftest.
$ac_ext <<_ACEOF
12133 cat confdefs.h
>>conftest.
$ac_ext
12134 cat >>conftest.
$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12145 rm -f conftest.
$ac_objext
12146 if { (ac_try
="$ac_compile"
12147 case "(($ac_try" in
12148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_compile") 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest.$ac_objext; then
12162 emacs_cv_lesstif=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 emacs_cv_lesstif=no
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12172 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12173 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12174 if test $emacs_cv_lesstif = yes; then
12175 # Make sure this -I option remains in CPPFLAGS after it is set
12176 # back to REAL_CPPFLAGS.
12177 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12178 # have those other -I options anyway. Ultimately, having this
12179 # directory ultimately in CPPFLAGS will be enough.
12180 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12181 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12184 CPPFLAGS=$OLD_CPPFLAGS
12191 USE_TOOLKIT_SCROLL_BARS=no
12192 if test "${with_toolkit_scroll_bars}" != "no"; then
12193 if test "${USE_X_TOOLKIT}" != "none"; then
12194 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12195 cat >>confdefs.h <<\_ACEOF
12196 #define USE_TOOLKIT_SCROLL_BARS 1
12200 USE_TOOLKIT_SCROLL_BARS=yes
12201 elif test "${HAVE_XAW3D}" = "yes"; then
12202 cat >>confdefs.h <<\_ACEOF
12203 #define USE_TOOLKIT_SCROLL_BARS 1
12206 USE_TOOLKIT_SCROLL_BARS=yes
12208 elif test "${HAVE_GTK}" = "yes"; then
12209 cat >>confdefs.h <<\_ACEOF
12210 #define USE_TOOLKIT_SCROLL_BARS 1
12213 USE_TOOLKIT_SCROLL_BARS=yes
12214 elif test "${HAVE_CARBON}" = "yes"; then
12215 cat >>confdefs.h <<\_ACEOF
12216 #define USE_TOOLKIT_SCROLL_BARS 1
12219 USE_TOOLKIT_SCROLL_BARS=yes
12223 cat >conftest.$ac_ext <<_ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12230 #include <X11/Xlib.h>
12231 #include <X11/Xresource.h>
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12244 *) ac_try_echo
=$ac_try;;
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12249 grep -v '^ *+' conftest.er1
>conftest.err
12251 cat conftest.err
>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.
$ac_objext; then
12259 cat >>confdefs.h
<<\_ACEOF
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.
$ac_ext >&5
12270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12273 if test "${with_xim}" != "no"; then
12275 cat >>confdefs.h
<<\_ACEOF
12282 if test "${HAVE_XIM}" != "no"; then
12283 late_CFLAGS
=$CFLAGS
12284 if test "$GCC" = yes; then
12285 CFLAGS
="$CFLAGS --pedantic-errors"
12287 cat >conftest.
$ac_ext <<_ACEOF
12290 cat confdefs.h
>>conftest.
$ac_ext
12291 cat >>conftest.
$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12294 #include <X11/Xlib.h>
12295 #include <X11/Xresource.h>
12304 XPointer *client_data;
12306 /* If we're not using GCC, it's probably not XFree86, and this is
12307 probably right, but we can't use something like --pedantic-errors. */
12308 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12309 char*, XIMProc, XPointer*);
12311 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12317 rm -f conftest.
$ac_objext
12318 if { (ac_try
="$ac_compile"
12319 case "(($ac_try" in
12320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_compile") 2>conftest.er1
12326 grep -v '^ *+' conftest.er1 >conftest.err
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest.$ac_objext; then
12334 emacs_cv_arg6_star=yes
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 if test "$emacs_cv_arg6_star" = yes; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12350 cat >>confdefs.h <<\_ACEOF
12351 #define XRegisterIMInstantiateCallback_arg6 XPointer
12355 CFLAGS=$late_CFLAGS
12358 #### For font-backend
12359 if test "${USE_FONT_BACKEND}" = "yes"; then
12362 cat >>confdefs.h <<\_ACEOF
12363 #define USE_FONT_BACKEND 1
12367 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12369 if test "${HAVE_X11}" = "yes"; then
12370 if test "x${with_freetype}" = "xno"; then
12373 if test "x${with_xft}" != "xno"; then
12375 if test "X${with_pkg_config_prog}" != X
; then
12376 PKG_CONFIG
="${with_pkg_config_prog}"
12382 # Extract the first word of "pkg-config", so it can be a program name with args.
12383 set dummy pkg-config
; ac_word
=$2
12384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 case $PKG_CONFIG in
12391 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12395 for as_dir
in $PATH
12398 test -z "$as_dir" && as_dir
=.
12399 for ac_exec_ext
in '' $ac_executable_extensions; do
12400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12401 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12413 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12414 if test -n "$PKG_CONFIG"; then
12415 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12416 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12418 { echo "$as_me:$LINENO: result: no" >&5
12419 echo "${ECHO_T}no" >&6; }
12424 if test "$PKG_CONFIG" = "no" ; then
12427 PKG_CONFIG_MIN_VERSION
=0.9.0
12428 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12429 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12430 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12432 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12433 { echo "$as_me:$LINENO: result: yes" >&5
12434 echo "${ECHO_T}yes" >&6; }
12437 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12438 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12439 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12440 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12441 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12443 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12444 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12445 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12446 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12447 echo "${ECHO_T}$XFT_LIBS" >&6; }
12449 { echo "$as_me:$LINENO: result: no" >&5
12450 echo "${ECHO_T}no" >&6; }
12453 ## If we have a custom action on failure, don't print errors, but
12454 ## do set a variable so people can do so.
12455 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12462 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12463 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12467 if test $succeeded = yes; then
12473 if test "$HAVE_XFT" != no
; then
12474 OLD_CPPFLAGS
="$CPPFLAGS"
12475 OLD_CFLAGS
="$CFLAGS"
12477 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12478 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12479 LIBS
="$XFT_LIBS $LIBS"
12480 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12481 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12482 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12483 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12487 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12489 # Is the header compilable?
12490 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12491 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12492 cat >conftest.
$ac_ext <<_ACEOF
12495 cat confdefs.h
>>conftest.
$ac_ext
12496 cat >>conftest.
$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 $ac_includes_default
12499 #include <X11/Xft/Xft.h>
12501 rm -f conftest.
$ac_objext
12502 if { (ac_try
="$ac_compile"
12503 case "(($ac_try" in
12504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 ac_header_compiler=yes
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_header_compiler=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12528 echo "${ECHO_T}$ac_header_compiler" >&6; }
12530 # Is the header present?
12531 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12532 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12533 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <X11/Xft/Xft.h>
12541 if { (ac_try="$ac_cpp conftest.$ac_ext"
12542 case "(($ac_try" in
12543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12544 *) ac_try_echo
=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1
>conftest.err
12551 cat conftest.err
>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } >/dev
/null
&& {
12554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12557 ac_header_preproc
=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.
$ac_ext >&5
12562 ac_header_preproc
=no
12565 rm -f conftest.err conftest.
$ac_ext
12566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12567 echo "${ECHO_T}$ac_header_preproc" >&6; }
12569 # So? What about this header?
12570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12572 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12573 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12575 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12576 ac_header_preproc
=yes
12579 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12580 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12582 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12584 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12586 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12588 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12590 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12594 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12595 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12596 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12601 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12602 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12605 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12606 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12607 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12608 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 ac_check_lib_save_LIBS
=$LIBS
12612 LIBS
="-lXft $XFT_LIBS $LIBS"
12613 cat >conftest.
$ac_ext <<_ACEOF
12616 cat confdefs.h
>>conftest.
$ac_ext
12617 cat >>conftest.
$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12626 char XftFontOpen ();
12630 return XftFontOpen ();
12635 rm -f conftest.
$ac_objext conftest
$ac_exeext
12636 if { (ac_try
="$ac_link"
12637 case "(($ac_try" in
12638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest$ac_exeext &&
12652 $as_test_x conftest$ac_exeext; then
12653 ac_cv_lib_Xft_XftFontOpen=yes
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_cv_lib_Xft_XftFontOpen=no
12661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12665 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12666 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12667 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12675 if test "${HAVE_XFT}" = "yes"; then
12677 cat >>confdefs.h <<\_ACEOF
12682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12684 CPPFLAGS="$OLD_CPPFLAGS"
12685 CFLAGS="$OLD_CFLAGS"
12691 if test "$HAVE_XFT" != "yes"; then
12697 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12698 if test "${HAVE_XFT}" = "yes"; then
12700 elif test "x${with_freetype}" != "xno"; then
12701 if test "X${with_pkg_config_prog}" != X; then
12702 PKG_CONFIG="${with_pkg_config_prog}"
12708 # Extract the first word of "pkg-config", so it can be a program name with args.
12709 set dummy pkg-config; ac_word=$2
12710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12712 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 case $PKG_CONFIG in
12717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721 for as_dir in $PATH
12724 test -z "$as_dir" && as_dir=.
12725 for ac_exec_ext in '' $ac_executable_extensions; do
12726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12739 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12740 if test -n "$PKG_CONFIG"; then
12741 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12742 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12744 { echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6; }
12750 if test "$PKG_CONFIG" = "no" ; then
12753 PKG_CONFIG_MIN_VERSION=0.9.0
12754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12755 { echo "$as_me:$LINENO: checking for freetype2" >&5
12756 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12758 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12759 { echo "$as_me:$LINENO: result: yes" >&5
12760 echo "${ECHO_T}yes" >&6; }
12763 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12764 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12765 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12766 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12767 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12769 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12770 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12771 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12772 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12773 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12775 { echo "$as_me:$LINENO: result: no" >&5
12776 echo "${ECHO_T}no" >&6; }
12779 ## If we have a custom action on failure, don't print errors
, but
12780 ## do set a variable so people can do so.
12781 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12793 if test $succeeded = yes; then
12799 if test "${HAVE_FREETYPE}" = "yes"; then
12803 # Extract the first word of "pkg-config", so it can be a program name with args.
12804 set dummy pkg-config
; ac_word
=$2
12805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12807 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 case $PKG_CONFIG in
12812 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12816 for as_dir
in $PATH
12819 test -z "$as_dir" && as_dir
=.
12820 for ac_exec_ext
in '' $ac_executable_extensions; do
12821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12822 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12834 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12835 if test -n "$PKG_CONFIG"; then
12836 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12837 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12839 { echo "$as_me:$LINENO: result: no" >&5
12840 echo "${ECHO_T}no" >&6; }
12845 if test "$PKG_CONFIG" = "no" ; then
12848 PKG_CONFIG_MIN_VERSION
=0.9.0
12849 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12850 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12851 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12853 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12854 { echo "$as_me:$LINENO: result: yes" >&5
12855 echo "${ECHO_T}yes" >&6; }
12858 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12859 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12860 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12861 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12862 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12864 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12865 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12866 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12867 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12868 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12870 { echo "$as_me:$LINENO: result: no" >&5
12871 echo "${ECHO_T}no" >&6; }
12872 FONTCONFIG_CFLAGS
=""
12874 ## If we have a custom action on failure, don't print errors, but
12875 ## do set a variable so people can do so.
12876 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12888 if test $succeeded = yes; then
12894 if test "${HAVE_FC}" = "no"; then
12901 if test "${HAVE_FREETYPE}" = "yes"; then
12903 cat >>confdefs.h
<<\_ACEOF
12904 #define HAVE_FREETYPE 1
12907 if test "${with_libotf}" != "no"; then
12908 if test "X${with_pkg_config_prog}" != X
; then
12909 PKG_CONFIG
="${with_pkg_config_prog}"
12914 # Extract the first word of "pkg-config", so it can be a program name with args.
12915 set dummy pkg-config
; ac_word
=$2
12916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12918 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 case $PKG_CONFIG in
12923 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12927 for as_dir
in $PATH
12930 test -z "$as_dir" && as_dir
=.
12931 for ac_exec_ext
in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12941 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12945 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12946 if test -n "$PKG_CONFIG"; then
12947 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12948 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12950 { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12956 if test "$PKG_CONFIG" = "no" ; then
12959 PKG_CONFIG_MIN_VERSION
=0.9.0
12960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12961 { echo "$as_me:$LINENO: checking for libotf" >&5
12962 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12964 if $PKG_CONFIG --exists "libotf" 2>&5; then
12965 { echo "$as_me:$LINENO: result: yes" >&5
12966 echo "${ECHO_T}yes" >&6; }
12969 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
12970 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
12971 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12972 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
12973 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
12975 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
12976 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
12977 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12978 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
12979 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
12981 { echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6; }
12985 ## If we have a custom action on failure, don't print errors, but
12986 ## do set a variable so people can do so.
12987 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12999 if test $succeeded = yes; then
13005 if test "$HAVE_LIBOTF" = "yes"; then
13007 cat >>confdefs.h
<<\_ACEOF
13008 #define HAVE_LIBOTF 1
13016 if test "${with_m17n_flt}" != "no"; then
13017 if test "X${with_pkg_config_prog}" != X
; then
13018 PKG_CONFIG
="${with_pkg_config_prog}"
13023 # Extract the first word of "pkg-config", so it can be a program name with args.
13024 set dummy pkg-config
; ac_word
=$2
13025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 case $PKG_CONFIG in
13032 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13036 for as_dir
in $PATH
13039 test -z "$as_dir" && as_dir
=.
13040 for ac_exec_ext
in '' $ac_executable_extensions; do
13041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13042 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13054 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13055 if test -n "$PKG_CONFIG"; then
13056 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13057 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13059 { echo "$as_me:$LINENO: result: no" >&5
13060 echo "${ECHO_T}no" >&6; }
13065 if test "$PKG_CONFIG" = "no" ; then
13068 PKG_CONFIG_MIN_VERSION
=0.9.0
13069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13070 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13071 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13073 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13074 { echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6; }
13078 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13079 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13080 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13081 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13082 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13084 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13085 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13086 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13087 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13088 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13090 { echo "$as_me:$LINENO: result: no" >&5
13091 echo "${ECHO_T}no" >&6; }
13094 ## If we have a custom action on failure, don't print errors, but
13095 ## do set a variable so people can do so.
13096 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13108 if test $succeeded = yes; then
13114 if test "$HAVE_M17N_FLT" = "yes"; then
13116 cat >>confdefs.h
<<\_ACEOF
13117 #define HAVE_M17N_FLT 1
13133 #### End for font-backend
13135 ### Use -lXpm if available, unless `--with-xpm=no'.
13137 if test "${HAVE_X11}" = "yes"; then
13138 if test "${with_xpm}" != "no"; then
13139 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13140 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13141 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13142 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13146 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13148 # Is the header compilable?
13149 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13150 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13151 cat >conftest.
$ac_ext <<_ACEOF
13154 cat confdefs.h
>>conftest.
$ac_ext
13155 cat >>conftest.
$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 #include <X11/xpm.h>
13160 rm -f conftest.
$ac_objext
13161 if { (ac_try
="$ac_compile"
13162 case "(($ac_try" in
13163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest.$ac_objext; then
13177 ac_header_compiler=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_header_compiler=no
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13187 echo "${ECHO_T}$ac_header_compiler" >&6; }
13189 # Is the header present?
13190 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13191 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 #include <X11/xpm.h>
13200 if { (ac_try="$ac_cpp conftest.$ac_ext"
13201 case "(($ac_try" in
13202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13203 *) ac_try_echo
=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1
>conftest.err
13210 cat conftest.err
>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } >/dev
/null
&& {
13213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13214 test ! -s conftest.err
13216 ac_header_preproc
=yes
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.
$ac_ext >&5
13221 ac_header_preproc
=no
13224 rm -f conftest.err conftest.
$ac_ext
13225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13226 echo "${ECHO_T}$ac_header_preproc" >&6; }
13228 # So? What about this header?
13229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13232 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13234 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13235 ac_header_preproc
=yes
13238 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13239 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13241 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13242 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13243 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13244 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13245 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13246 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13247 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13248 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13249 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13253 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13254 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13255 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13260 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13261 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13264 if test $ac_cv_header_X11_xpm_h = yes; then
13265 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13266 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13267 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 ac_check_lib_save_LIBS
=$LIBS
13271 LIBS
="-lXpm -lX11 $LIBS"
13272 cat >conftest.
$ac_ext <<_ACEOF
13275 cat confdefs.h
>>conftest.
$ac_ext
13276 cat >>conftest.
$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13285 char XpmReadFileToPixmap ();
13289 return XpmReadFileToPixmap ();
13294 rm -f conftest.
$ac_objext conftest
$ac_exeext
13295 if { (ac_try
="$ac_link"
13296 case "(($ac_try" in
13297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } && {
13308 test -z "$ac_c_werror_flag" ||
13309 test ! -s conftest.err
13310 } && test -s conftest$ac_exeext &&
13311 $as_test_x conftest$ac_exeext; then
13312 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13325 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13326 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13333 if test "${HAVE_XPM}" = "yes"; then
13334 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13335 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13336 cat >conftest.$ac_ext <<_ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 #include "X11/xpm.h"
13343 #ifndef XpmReturnAllocPixels
13344 no_return_alloc_pixels
13348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13349 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13357 if test "${HAVE_XPM}" = "yes"; then
13358 { echo "$as_me:$LINENO: result: yes" >&5
13359 echo "${ECHO_T}yes" >&6; }
13361 { echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6; }
13367 if test "${HAVE_XPM}" = "yes"; then
13369 cat >>confdefs.h <<\_ACEOF
13376 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13378 if test "${HAVE_X11}" = "yes"; then
13379 if test "${with_jpeg}" != "no"; then
13380 if test "${ac_cv_header_jerror_h+set}" = set; then
13381 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13382 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13383 if test "${ac_cv_header_jerror_h+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13387 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13389 # Is the header compilable?
13390 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13391 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398 $ac_includes_default
13399 #include <jerror.h>
13401 rm -f conftest.$ac_objext
13402 if { (ac_try="$ac_compile"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_compile") 2>conftest.er1
13410 grep -v '^
*+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && {
13415 test -z "$ac_c_werror_flag" ||
13416 test ! -s conftest.err
13417 } && test -s conftest.$ac_objext; then
13418 ac_header_compiler=yes
13420 echo "$as_me: failed program was:" >&5
13421 sed 's
/^
/|
/' conftest.$ac_ext >&5
13423 ac_header_compiler=no
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13428 echo "${ECHO_T}$ac_header_compiler" >&6; }
13430 # Is the header present?
13431 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13432 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 #include <jerror.h>
13441 if { (ac_try="$ac_cpp conftest.$ac_ext"
13442 case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13449 grep -v '^
*+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } >/dev/null && {
13454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13457 ac_header_preproc=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's
/^
/|
/' conftest.$ac_ext >&5
13462 ac_header_preproc=no
13465 rm -f conftest.err conftest.$ac_ext
13466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13467 echo "${ECHO_T}$ac_header_preproc" >&6; }
13469 # So? What about this header?
13470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13472 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13473 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13475 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13476 ac_header_preproc=yes
13479 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13480 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13482 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13484 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13486 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13487 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13488 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13490 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13494 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13495 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13496 if test "${ac_cv_header_jerror_h+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 ac_cv_header_jerror_h=$ac_header_preproc
13501 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13502 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13505 if test $ac_cv_header_jerror_h = yes; then
13506 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13507 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13508 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-ljpeg $LIBS"
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13520 /* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply. */
13526 char jpeg_destroy_compress ();
13530 return jpeg_destroy_compress ();
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (ac_try="$ac_link"
13537 case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_link") 2>conftest.er1
13544 grep -v '^
*+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest$ac_exeext &&
13552 $as_test_x conftest$ac_exeext; then
13553 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13555 echo "$as_me: failed program was:" >&5
13556 sed 's
/^
/|
/' conftest.$ac_ext >&5
13558 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13565 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13566 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13567 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13577 if test "${HAVE_JPEG}" = "yes"; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define HAVE_JPEG 1
13582 cat >conftest.$ac_ext <<_ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 #include <jpeglib.h>
13589 version=JPEG_LIB_VERSION
13592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13593 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13594 cat >>confdefs.h <<\_ACEOF
13595 #define HAVE_JPEG 1
13599 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13600 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13608 ### Use -lpng if available, unless `--with-png=no'.
13610 if test "${HAVE_X11}" = "yes"; then
13611 if test "${with_png}" != "no"; then
13612 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13613 # in /usr/include/libpng.
13616 for ac_header
in png.h libpng
/png.h
13618 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 ac_res
=`eval echo '${'$as_ac_Header'}'`
13626 { echo "$as_me:$LINENO: result: $ac_res" >&5
13627 echo "${ECHO_T}$ac_res" >&6; }
13629 # Is the header compilable?
13630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13632 cat >conftest.
$ac_ext <<_ACEOF
13635 cat confdefs.h
>>conftest.
$ac_ext
13636 cat >>conftest.
$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 $ac_includes_default
13639 #include <$ac_header>
13641 rm -f conftest.
$ac_objext
13642 if { (ac_try
="$ac_compile"
13643 case "(($ac_try" in
13644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_compile") 2>conftest.er1
13650 grep -v '^ *+' conftest.er1 >conftest.err
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && {
13655 test -z "$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 } && test -s conftest.$ac_objext; then
13658 ac_header_compiler=yes
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 ac_header_compiler=no
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13668 echo "${ECHO_T}$ac_header_compiler" >&6; }
13670 # Is the header present?
13671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 #include <$ac_header>
13681 if { (ac_try="$ac_cpp conftest.$ac_ext"
13682 case "(($ac_try" in
13683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13684 *) ac_try_echo
=$ac_try;;
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13689 grep -v '^ *+' conftest.er1
>conftest.err
13691 cat conftest.err
>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } >/dev
/null
&& {
13694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13695 test ! -s conftest.err
13697 ac_header_preproc
=yes
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.
$ac_ext >&5
13702 ac_header_preproc
=no
13705 rm -f conftest.err conftest.
$ac_ext
13706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13707 echo "${ECHO_T}$ac_header_preproc" >&6; }
13709 # So? What about this header?
13710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13716 ac_header_preproc
=yes
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13736 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 eval "$as_ac_Header=\$ac_header_preproc"
13741 ac_res
=`eval echo '${'$as_ac_Header'}'`
13742 { echo "$as_me:$LINENO: result: $ac_res" >&5
13743 echo "${ECHO_T}$ac_res" >&6; }
13746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13747 cat >>confdefs.h
<<_ACEOF
13748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13755 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13756 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13757 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13758 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 ac_check_lib_save_LIBS
=$LIBS
13762 LIBS
="-lpng -lz -lm $LIBS"
13763 cat >conftest.
$ac_ext <<_ACEOF
13766 cat confdefs.h
>>conftest.
$ac_ext
13767 cat >>conftest.
$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13770 /* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13776 char png_get_channels ();
13780 return png_get_channels ();
13785 rm -f conftest.
$ac_objext conftest
$ac_exeext
13786 if { (ac_try
="$ac_link"
13787 case "(($ac_try" in
13788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest$ac_exeext &&
13802 $as_test_x conftest$ac_exeext; then
13803 ac_cv_lib_png_png_get_channels=yes
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_cv_lib_png_png_get_channels=no
13811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13815 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13816 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13817 if test $ac_cv_lib_png_png_get_channels = yes; then
13824 if test "${HAVE_PNG}" = "yes"; then
13826 cat >>confdefs.h <<\_ACEOF
13833 ### Use -ltiff if available, unless `--with-tiff=no
'.
13835 if test "${HAVE_X11}" = "yes"; then
13836 if test "${with_tiff}" != "no"; then
13837 if test "${ac_cv_header_tiffio_h+set}" = set; then
13838 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13839 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13840 if test "${ac_cv_header_tiffio_h+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13844 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13846 # Is the header compilable?
13847 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13848 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 $ac_includes_default
13856 #include <tiffio.h>
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13867 grep -v '^
*+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13875 ac_header_compiler=yes
13877 echo "$as_me: failed program was:" >&5
13878 sed 's
/^
/|
/' conftest.$ac_ext >&5
13880 ac_header_compiler=no
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13885 echo "${ECHO_T}$ac_header_compiler" >&6; }
13887 # Is the header present?
13888 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13889 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13890 cat >conftest.$ac_ext <<_ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896 #include <tiffio.h>
13898 if { (ac_try="$ac_cpp conftest.$ac_ext"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13906 grep -v '^
*+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } >/dev/null && {
13911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13914 ac_header_preproc=yes
13916 echo "$as_me: failed program was:" >&5
13917 sed 's
/^
/|
/' conftest.$ac_ext >&5
13919 ac_header_preproc=no
13922 rm -f conftest.err conftest.$ac_ext
13923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13924 echo "${ECHO_T}$ac_header_preproc" >&6; }
13926 # So? What about this header?
13927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13929 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13930 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13932 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13933 ac_header_preproc=yes
13936 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13937 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13939 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13940 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13941 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13942 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13943 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13944 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13945 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13947 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13951 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13952 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_tiffio_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 ac_cv_header_tiffio_h=$ac_header_preproc
13958 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13959 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13962 if test $ac_cv_header_tiffio_h = yes; then
13964 # At least one tiff package requires the jpeg library.
13965 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13966 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13967 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13968 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 ac_check_lib_save_LIBS=$LIBS
13972 LIBS="-ltiff $tifflibs $LIBS"
13973 cat >conftest.$ac_ext <<_ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13980 /* Override any GCC internal prototype to avoid an error.
13981 Use char because int might match the return type of a GCC
13982 builtin and then its argument prototype would still apply. */
13986 char TIFFGetVersion ();
13990 return TIFFGetVersion ();
13995 rm -f conftest.$ac_objext conftest$ac_exeext
13996 if { (ac_try="$ac_link"
13997 case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_link") 2>conftest.er1
14004 grep -v '^
*+' conftest.er1 >conftest.err
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } && {
14009 test -z "$ac_c_werror_flag" ||
14010 test ! -s conftest.err
14011 } && test -s conftest$ac_exeext &&
14012 $as_test_x conftest$ac_exeext; then
14013 ac_cv_lib_tiff_TIFFGetVersion=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's
/^
/|
/' conftest.$ac_ext >&5
14018 ac_cv_lib_tiff_TIFFGetVersion=no
14021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14022 conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14025 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14026 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14027 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14036 if test "${HAVE_TIFF}" = "yes"; then
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_TIFF 1
14045 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14047 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14048 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14049 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14050 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14055 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14057 # Is the header compilable?
14058 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14059 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14060 cat >conftest.
$ac_ext <<_ACEOF
14063 cat confdefs.h
>>conftest.
$ac_ext
14064 cat >>conftest.
$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 #include <gif_lib.h>
14069 rm -f conftest.
$ac_objext
14070 if { (ac_try
="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest.$ac_objext; then
14086 ac_header_compiler=yes
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_header_compiler=no
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14096 echo "${ECHO_T}$ac_header_compiler" >&6; }
14098 # Is the header present?
14099 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14100 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <gif_lib.h>
14109 if { (ac_try="$ac_cpp conftest.$ac_ext"
14110 case "(($ac_try" in
14111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14112 *) ac_try_echo
=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14117 grep -v '^ *+' conftest.er1
>conftest.err
14119 cat conftest.err
>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } >/dev
/null
&& {
14122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14125 ac_header_preproc
=yes
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.
$ac_ext >&5
14130 ac_header_preproc
=no
14133 rm -f conftest.err conftest.
$ac_ext
14134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14135 echo "${ECHO_T}$ac_header_preproc" >&6; }
14137 # So? What about this header?
14138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14140 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14141 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14143 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14144 ac_header_preproc
=yes
14147 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14148 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14150 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14152 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14153 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14154 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14155 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14156 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14158 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14162 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14163 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 ac_cv_header_gif_lib_h
=$ac_header_preproc
14169 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14170 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14173 if test $ac_cv_header_gif_lib_h = yes; then
14174 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14175 # Earlier versions can crash Emacs.
14176 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14177 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_check_lib_save_LIBS
=$LIBS
14183 cat >conftest.
$ac_ext <<_ACEOF
14186 cat confdefs.h
>>conftest.
$ac_ext
14187 cat >>conftest.
$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14196 char EGifPutExtensionLast ();
14200 return EGifPutExtensionLast ();
14205 rm -f conftest.
$ac_objext conftest
$ac_exeext
14206 if { (ac_try
="$ac_link"
14207 case "(($ac_try" in
14208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 ac_cv_lib_gif_EGifPutExtensionLast=yes
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_cv_lib_gif_EGifPutExtensionLast=no
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14236 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14237 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14247 if test "$HAVE_GIF" = yes; then
14248 ac_gif_lib_name="-lgif"
14251 # If gif_lib.h but no libgif, try libungif.
14252 if test x"$try_libungif" = xyes; then
14253 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14254 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14255 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lungif $LIBS"
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14273 char EGifPutExtensionLast ();
14277 return EGifPutExtensionLast ();
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14286 *) ac_try_echo
=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14291 grep -v '^ *+' conftest.er1
>conftest.err
14293 cat conftest.err
>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } && {
14296 test -z "$ac_c_werror_flag" ||
14297 test ! -s conftest.err
14298 } && test -s conftest
$ac_exeext &&
14299 $as_test_x conftest
$ac_exeext; then
14300 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.
$ac_ext >&5
14305 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14308 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14309 conftest
$ac_exeext conftest.
$ac_ext
14310 LIBS
=$ac_check_lib_save_LIBS
14312 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14313 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14314 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14319 if test "$HAVE_GIF" = yes; then
14321 cat >>confdefs.h
<<\_ACEOF
14322 #define LIBGIF -lungif
14325 ac_gif_lib_name
="-lungif"
14329 if test "${HAVE_GIF}" = "yes"; then
14331 cat >>confdefs.h
<<\_ACEOF
14338 if test "${HAVE_X11}" = "yes"; then
14341 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14342 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14343 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14344 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14345 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14346 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14347 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14348 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14349 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14350 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14352 if test "X${MISSING}" != X
; then
14353 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14355 Maybe some development libraries/packages are missing?
14356 If you don't want to link with them give
14358 as options to configure" >&5
14359 echo "$as_me: error: The following required libraries were not found:
14361 Maybe some development libraries/packages are missing?
14362 If you don't want to link with them give
14364 as options to configure" >&2;}
14365 { (exit 1); exit 1; }; }
14369 ### Use -lgpm if available, unless `--with-gpm=no'.
14371 if test "${with_gpm}" != "no"; then
14372 if test "${ac_cv_header_gpm_h+set}" = set; then
14373 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14374 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14375 if test "${ac_cv_header_gpm_h+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14379 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14381 # Is the header compilable?
14382 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14383 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14384 cat >conftest.
$ac_ext <<_ACEOF
14387 cat confdefs.h
>>conftest.
$ac_ext
14388 cat >>conftest.
$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 $ac_includes_default
14393 rm -f conftest.
$ac_objext
14394 if { (ac_try
="$ac_compile"
14395 case "(($ac_try" in
14396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_compile") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.$ac_objext; then
14410 ac_header_compiler=yes
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_header_compiler=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14420 echo "${ECHO_T}$ac_header_compiler" >&6; }
14422 # Is the header present?
14423 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14424 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14433 if { (ac_try="$ac_cpp conftest.$ac_ext"
14434 case "(($ac_try" in
14435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14436 *) ac_try_echo
=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14441 grep -v '^ *+' conftest.er1
>conftest.err
14443 cat conftest.err
>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } >/dev
/null
&& {
14446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14447 test ! -s conftest.err
14449 ac_header_preproc
=yes
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.
$ac_ext >&5
14454 ac_header_preproc
=no
14457 rm -f conftest.err conftest.
$ac_ext
14458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14459 echo "${ECHO_T}$ac_header_preproc" >&6; }
14461 # So? What about this header?
14462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14464 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14465 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14467 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14468 ac_header_preproc
=yes
14471 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14472 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14474 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14476 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14478 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14480 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14482 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14486 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14487 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_gpm_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 ac_cv_header_gpm_h
=$ac_header_preproc
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14497 if test $ac_cv_header_gpm_h = yes; then
14498 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14499 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14500 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 ac_check_lib_save_LIBS
=$LIBS
14505 cat >conftest.
$ac_ext <<_ACEOF
14508 cat confdefs.h
>>conftest.
$ac_ext
14509 cat >>conftest.
$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14522 return Gpm_Open ();
14527 rm -f conftest.
$ac_objext conftest
$ac_exeext
14528 if { (ac_try
="$ac_link"
14529 case "(($ac_try" in
14530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_link") 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && {
14541 test -z "$ac_c_werror_flag" ||
14542 test ! -s conftest.err
14543 } && test -s conftest$ac_exeext &&
14544 $as_test_x conftest$ac_exeext; then
14545 ac_cv_lib_gpm_Gpm_Open=yes
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 ac_cv_lib_gpm_Gpm_Open=no
14553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14554 conftest$ac_exeext conftest.$ac_ext
14555 LIBS=$ac_check_lib_save_LIBS
14557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14558 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14559 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14568 if test "${HAVE_GPM}" = "yes"; then
14570 cat >>confdefs.h <<\_ACEOF
14576 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14577 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14578 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14579 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14583 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14585 # Is the header compilable?
14586 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14587 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 $ac_includes_default
14595 #include <malloc/malloc.h>
14597 rm -f conftest.$ac_objext
14598 if { (ac_try="$ac_compile"
14599 case "(($ac_try" in
14600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14601 *) ac_try_echo
=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_compile") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1
>conftest.err
14608 cat conftest.err
>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest.
$ac_objext; then
14614 ac_header_compiler
=yes
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.
$ac_ext >&5
14619 ac_header_compiler
=no
14622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14624 echo "${ECHO_T}$ac_header_compiler" >&6; }
14626 # Is the header present?
14627 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14628 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14629 cat >conftest.
$ac_ext <<_ACEOF
14632 cat confdefs.h
>>conftest.
$ac_ext
14633 cat >>conftest.
$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 #include <malloc/malloc.h>
14637 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14638 case "(($ac_try" in
14639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14645 grep -v '^ *+' conftest.er1 >conftest.err
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } >/dev/null && {
14650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14653 ac_header_preproc=yes
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_header_preproc=no
14661 rm -f conftest.err conftest.$ac_ext
14662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663 echo "${ECHO_T}$ac_header_preproc" >&6; }
14665 # So? What about this header?
14666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14668 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14669 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14671 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14672 ac_header_preproc=yes
14675 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14676 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14678 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14680 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14682 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14684 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14686 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14690 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14691 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14692 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14697 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14698 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14701 if test $ac_cv_header_malloc_malloc_h = yes; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_MALLOC_MALLOC_H 1
14711 ### Use Mac OS X Carbon API to implement GUI.
14712 if test "${HAVE_CARBON}" = "yes"; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_CARBON 1
14718 ## Specify the install directory
14720 if test "${carbon_appdir_x}" != ""; then
14721 case ${carbon_appdir_x} in
14722 y | ye | yes) carbon_appdir=/Applications ;;
14723 * ) carbon_appdir=${carbon_appdir_x} ;;
14726 # We also have mouse menus.
14730 ### Use session management (-lSM -lICE) if available
14732 if test "${HAVE_X11}" = "yes"; then
14733 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14734 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14735 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14736 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14740 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14742 # Is the header compilable?
14743 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14744 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 $ac_includes_default
14752 #include <X11/SM/SMlib.h>
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14758 *) ac_try_echo
=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1
>conftest.err
14765 cat conftest.err
>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest.
$ac_objext; then
14771 ac_header_compiler
=yes
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.
$ac_ext >&5
14776 ac_header_compiler
=no
14779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14781 echo "${ECHO_T}$ac_header_compiler" >&6; }
14783 # Is the header present?
14784 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14785 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14786 cat >conftest.
$ac_ext <<_ACEOF
14789 cat confdefs.h
>>conftest.
$ac_ext
14790 cat >>conftest.
$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <X11/SM/SMlib.h>
14794 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14795 case "(($ac_try" in
14796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14802 grep -v '^ *+' conftest.er1 >conftest.err
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } >/dev/null && {
14807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14810 ac_header_preproc=yes
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_header_preproc=no
14818 rm -f conftest.err conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6; }
14822 # So? What about this header?
14823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14825 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14828 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14832 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14833 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14835 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14837 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14839 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14843 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14847 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14848 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14849 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14854 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14855 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14858 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14859 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14860 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14861 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 ac_check_lib_save_LIBS=$LIBS
14865 LIBS="-lSM -lICE $LIBS"
14866 cat >conftest.$ac_ext <<_ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14879 char SmcOpenConnection ();
14883 return SmcOpenConnection ();
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14892 *) ac_try_echo
=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1
>conftest.err
14899 cat conftest.err
>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest
$ac_exeext &&
14905 $as_test_x conftest
$ac_exeext; then
14906 ac_cv_lib_SM_SmcOpenConnection
=yes
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.
$ac_ext >&5
14911 ac_cv_lib_SM_SmcOpenConnection
=no
14914 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14915 conftest
$ac_exeext conftest.
$ac_ext
14916 LIBS
=$ac_check_lib_save_LIBS
14918 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14919 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14920 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14928 if test "${HAVE_X_SM}" = "yes"; then
14930 cat >>confdefs.h
<<\_ACEOF
14931 #define HAVE_X_SM 1
14936 *) LIBS
="-lSM -lICE $LIBS" ;;
14941 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14942 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14943 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14944 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 cat >conftest.
$ac_ext <<_ACEOF
14950 cat confdefs.h
>>conftest.
$ac_ext
14951 cat >>conftest.
$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14962 rm -f conftest.
$ac_objext conftest
$ac_exeext
14963 if { (ac_try
="$ac_link"
14964 case "(($ac_try" in
14965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_link") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest$ac_exeext &&
14979 $as_test_x conftest$ac_exeext; then
14980 emacs_cv_netdb_declares_h_errno=yes
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14985 emacs_cv_netdb_declares_h_errno=no
14988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14989 conftest$ac_exeext conftest.$ac_ext
14991 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14992 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14993 if test $emacs_cv_netdb_declares_h_errno = yes; then
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_H_ERRNO 1
15001 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15002 # for constant arguments. Useless!
15003 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15004 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15005 if test "${ac_cv_working_alloca_h+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <alloca.h>
15018 char *p = (char *) alloca (2 * sizeof (int));
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15028 *) ac_try_echo
=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_link") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1
>conftest.err
15035 cat conftest.err
>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest
$ac_exeext &&
15041 $as_test_x conftest
$ac_exeext; then
15042 ac_cv_working_alloca_h
=yes
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.
$ac_ext >&5
15047 ac_cv_working_alloca_h
=no
15050 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15051 conftest
$ac_exeext conftest.
$ac_ext
15053 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15054 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15055 if test $ac_cv_working_alloca_h = yes; then
15057 cat >>confdefs.h
<<\_ACEOF
15058 #define HAVE_ALLOCA_H 1
15063 { echo "$as_me:$LINENO: checking for alloca" >&5
15064 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15065 if test "${ac_cv_func_alloca_works+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 cat >conftest.
$ac_ext <<_ACEOF
15071 cat confdefs.h
>>conftest.
$ac_ext
15072 cat >>conftest.
$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15075 # define alloca __builtin_alloca
15078 # include <malloc.h>
15079 # define alloca _alloca
15081 # ifdef HAVE_ALLOCA_H
15082 # include <alloca.h>
15087 # ifndef alloca /* predefined by HP cc +Olibcalls */
15098 char *p = (char *) alloca (1);
15104 rm -f conftest.
$ac_objext conftest
$ac_exeext
15105 if { (ac_try
="$ac_link"
15106 case "(($ac_try" in
15107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_link") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest$ac_exeext &&
15121 $as_test_x conftest$ac_exeext; then
15122 ac_cv_func_alloca_works=yes
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_cv_func_alloca_works=no
15130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15131 conftest$ac_exeext conftest.$ac_ext
15133 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15134 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15136 if test $ac_cv_func_alloca_works = yes; then
15138 cat >>confdefs.h <<\_ACEOF
15139 #define HAVE_ALLOCA 1
15143 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15144 # that cause trouble. Some versions do not even contain alloca or
15145 # contain a buggy version. If you still want to use their alloca,
15146 # use ar to extract alloca.o from them instead of compiling alloca.c.
15148 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15150 cat >>confdefs.h <<\_ACEOF
15155 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15156 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15157 if test "${ac_cv_os_cray+set}" = set; then
15158 echo $ECHO_N "(cached
) $ECHO_C" >&6
15160 cat >conftest.$ac_ext <<_ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 #if defined CRAY && ! defined CRAY2
15173 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15174 $EGREP "webecray
" >/dev/null 2>&1; then
15182 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15183 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15184 if test $ac_cv_os_cray = yes; then
15185 for ac_func in _getb67 GETB67 getb67; do
15186 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15187 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15188 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15189 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15190 echo $ECHO_N "(cached
) $ECHO_C" >&6
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15200 #define $ac_func innocuous_$ac_func
15202 /* System header to define __stub macros and hopefully few prototypes,
15203 which can conflict with char $ac_func (); below.
15204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15205 <limits.h> exists even on freestanding compilers. */
15208 # include <limits.h>
15210 # include <assert.h>
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15222 /* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
15225 #if defined __stub_$ac_func || defined __stub___$ac_func
15232 return $ac_func ();
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (ac_try="$ac_link"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest$ac_exeext &&
15254 $as_test_x conftest$ac_exeext; then
15255 eval "$as_ac_var=yes"
15257 echo "$as_me: failed program was
:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 eval "$as_ac_var=no
"
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 conftest$ac_exeext conftest.$ac_ext
15266 ac_res=`eval echo '${'$as_ac_var'}'`
15267 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15268 echo "${ECHO_T}$ac_res" >&6; }
15269 if test `eval echo '${'$as_ac_var'}'` = yes; then
15271 cat >>confdefs.h <<_ACEOF
15272 #define CRAY_STACKSEG_END $ac_func
15281 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15282 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15283 if test "${ac_cv_c_stack_direction+set}" = set; then
15284 echo $ECHO_N "(cached
) $ECHO_C" >&6
15286 if test "$cross_compiling" = yes; then
15287 ac_cv_c_stack_direction=0
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 $ac_includes_default
15297 find_stack_direction ()
15299 static char *addr = 0;
15304 return find_stack_direction ();
15307 return (&dummy > addr) ? 1 : -1;
15313 return find_stack_direction () < 0;
15316 rm -f conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>&5
15325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_c_stack_direction=1
15338 echo "$as_me: program exited with status
$ac_status" >&5
15339 echo "$as_me: failed program was
:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ( exit $ac_status )
15343 ac_cv_c_stack_direction=-1
15345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15350 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15351 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15353 cat >>confdefs.h <<_ACEOF
15354 #define STACK_DIRECTION $ac_cv_c_stack_direction
15361 if test x"$ac_cv_func_alloca_works" != xyes; then
15362 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15363 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15364 { (exit 1); exit 1; }; }
15367 # fmod, logb, and frexp are found in -lm on most systems.
15368 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15370 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15371 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15372 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15373 echo $ECHO_N "(cached
) $ECHO_C" >&6
15375 ac_check_lib_save_LIBS=$LIBS
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_link") 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15412 (exit $ac_status); } && {
15413 test -z "$ac_c_werror_flag" ||
15414 test ! -s conftest.err
15415 } && test -s conftest$ac_exeext &&
15416 $as_test_x conftest$ac_exeext; then
15417 ac_cv_lib_m_sqrt=yes
15419 echo "$as_me: failed program was
:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15422 ac_cv_lib_m_sqrt=no
15425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15426 conftest$ac_exeext conftest.$ac_ext
15427 LIBS=$ac_check_lib_save_LIBS
15429 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15430 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15431 if test $ac_cv_lib_m_sqrt = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define HAVE_LIBM 1
15441 # Check for mail-locking functions in a "mail" library. Probably this should
15442 # have the same check as for liblockfile below.
15444 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15445 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15446 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15447 echo $ECHO_N "(cached
) $ECHO_C" >&6
15449 ac_check_lib_save_LIBS=$LIBS
15450 LIBS="-lmail $LIBS"
15451 cat >conftest.$ac_ext <<_ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15458 /* Override any GCC internal prototype to avoid an error.
15459 Use char because int might match the return type of a GCC
15460 builtin and then its argument prototype would still apply. */
15468 return maillock ();
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (ac_try="$ac_link"
15475 case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_link") 2>conftest.er1
15482 grep -v '^ *+' conftest.er1 >conftest.err
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15486 (exit $ac_status); } && {
15487 test -z "$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 } && test -s conftest$ac_exeext &&
15490 $as_test_x conftest$ac_exeext; then
15491 ac_cv_lib_mail_maillock=yes
15493 echo "$as_me: failed program was
:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_lib_mail_maillock=no
15499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15500 conftest$ac_exeext conftest.$ac_ext
15501 LIBS=$ac_check_lib_save_LIBS
15503 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15504 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15505 if test $ac_cv_lib_mail_maillock = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507 #define HAVE_LIBMAIL 1
15510 LIBS="-lmail $LIBS"
15515 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15516 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15517 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15518 echo $ECHO_N "(cached
) $ECHO_C" >&6
15520 ac_check_lib_save_LIBS=$LIBS
15521 LIBS="-llockfile $LIBS"
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15529 /* Override any GCC internal prototype to avoid an error.
15530 Use char because int might match the return type of a GCC
15531 builtin and then its argument prototype would still apply. */
15539 return maillock ();
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (ac_try="$ac_link"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_link") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest$ac_exeext &&
15561 $as_test_x conftest$ac_exeext; then
15562 ac_cv_lib_lockfile_maillock=yes
15564 echo "$as_me: failed program was
:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_cv_lib_lockfile_maillock=no
15570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15571 conftest$ac_exeext conftest.$ac_ext
15572 LIBS=$ac_check_lib_save_LIBS
15574 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15575 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15576 if test $ac_cv_lib_lockfile_maillock = yes; then
15577 cat >>confdefs.h <<_ACEOF
15578 #define HAVE_LIBLOCKFILE 1
15581 LIBS="-llockfile $LIBS"
15585 # If we have the shared liblockfile, assume we must use it for mail
15586 # locking (e.g. Debian). If we couldn't link against liblockfile
15587 # (no liblockfile.a installed), ensure that we don't need to.
15588 if test "$ac_cv_lib_lockfile_maillock" = no; then
15589 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15590 set dummy liblockfile.so; ac_word=$2
15591 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15592 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15593 if test "${ac_cv_prog_liblockfile+set}" = set; then
15594 echo $ECHO_N "(cached
) $ECHO_C" >&6
15596 if test -n "$liblockfile"; then
15597 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15600 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15601 for as_dir in $as_dummy
15604 test -z "$as_dir" && as_dir=.
15605 for ac_exec_ext in '' $ac_executable_extensions; do
15606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15607 ac_cv_prog_liblockfile="yes"
15608 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15615 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15618 liblockfile=$ac_cv_prog_liblockfile
15619 if test -n "$liblockfile"; then
15620 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15621 echo "${ECHO_T}$liblockfile" >&6; }
15623 { echo "$as_me:$LINENO: result
: no
" >&5
15624 echo "${ECHO_T}no
" >&6; }
15628 if test $ac_cv_prog_liblockfile = yes; then
15629 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15630 This probably means that movemail could lose mail.
15631 There may be a \`development' package to
install containing liblockfile.
" >&5
15632 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15633 This probably means that movemail could lose mail.
15634 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15635 { (exit 1); exit 1; }; }
15640 for ac_func in touchlock
15642 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15643 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15644 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15645 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached
) $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15656 #define $ac_func innocuous_$ac_func
15658 /* System header to define __stub macros and hopefully few prototypes,
15659 which can conflict with char $ac_func (); below.
15660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15661 <limits.h> exists even on freestanding compilers. */
15664 # include <limits.h>
15666 # include <assert.h>
15671 /* Override any GCC internal prototype to avoid an error.
15672 Use char because int might match the return type of a GCC
15673 builtin and then its argument prototype would still apply. */
15678 /* The GNU C library defines this for functions which it implements
15679 to always fail with ENOSYS. Some functions are actually named
15680 something starting with __ and the normal name is an alias. */
15681 #if defined __stub_$ac_func || defined __stub___$ac_func
15688 return $ac_func ();
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (ac_try="$ac_link"
15695 case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_link") 2>conftest.er1
15702 grep -v '^ *+' conftest.er1 >conftest.err
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15706 (exit $ac_status); } && {
15707 test -z "$ac_c_werror_flag" ||
15708 test ! -s conftest.err
15709 } && test -s conftest$ac_exeext &&
15710 $as_test_x conftest$ac_exeext; then
15711 eval "$as_ac_var=yes"
15713 echo "$as_me: failed program was
:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 eval "$as_ac_var=no
"
15719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15720 conftest$ac_exeext conftest.$ac_ext
15722 ac_res=`eval echo '${'$as_ac_var'}'`
15723 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15724 echo "${ECHO_T}$ac_res" >&6; }
15725 if test `eval echo '${'$as_ac_var'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15734 for ac_header in maillock.h
15736 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15737 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15738 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15739 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15740 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15741 echo $ECHO_N "(cached
) $ECHO_C" >&6
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15747 # Is the header compilable?
15748 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15749 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 $ac_includes_default
15757 #include <$ac_header>
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_compile") 2>conftest.er1
15768 grep -v '^ *+' conftest.er1 >conftest.err
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15772 (exit $ac_status); } && {
15773 test -z "$ac_c_werror_flag" ||
15774 test ! -s conftest.err
15775 } && test -s conftest.$ac_objext; then
15776 ac_header_compiler=yes
15778 echo "$as_me: failed program was
:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_compiler=no
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6; }
15788 # Is the header present?
15789 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15790 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <$ac_header>
15799 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15811 (exit $ac_status); } >/dev/null && {
15812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15815 ac_header_preproc=yes
15817 echo "$as_me: failed program was
:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_preproc=no
15823 rm -f conftest.err conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6; }
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15831 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15834 ac_header_preproc=yes
15837 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15838 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15839 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15840 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15841 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15842 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15843 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15844 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15847 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15848 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15852 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15853 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15854 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15855 echo $ECHO_N "(cached
) $ECHO_C" >&6
15857 eval "$as_ac_Header=\
$ac_header_preproc"
15859 ac_res=`eval echo '${'$as_ac_Header'}'`
15860 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15861 echo "${ECHO_T}$ac_res" >&6; }
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15942 for ac_func in gethostname getdomainname dup2 \
15943 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15944 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15945 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15946 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15947 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15948 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15949 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15950 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15952 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15953 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15954 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15955 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached
) $ECHO_C" >&6
15958 cat >conftest.$ac_ext <<_ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15966 #define $ac_func innocuous_$ac_func
15968 /* System header to define __stub macros and hopefully few prototypes,
15969 which can conflict with char $ac_func (); below.
15970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15971 <limits.h> exists even on freestanding compilers. */
15974 # include <limits.h>
15976 # include <assert.h>
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15988 /* The GNU C library defines this for functions which it implements
15989 to always fail with ENOSYS. Some functions are actually named
15990 something starting with __ and the normal name is an alias. */
15991 #if defined __stub_$ac_func || defined __stub___$ac_func
15998 return $ac_func ();
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (ac_try="$ac_link"
16005 case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_link") 2>conftest.er1
16012 grep -v '^ *+' conftest.er1 >conftest.err
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16016 (exit $ac_status); } && {
16017 test -z "$ac_c_werror_flag" ||
16018 test ! -s conftest.err
16019 } && test -s conftest$ac_exeext &&
16020 $as_test_x conftest$ac_exeext; then
16021 eval "$as_ac_var=yes"
16023 echo "$as_me: failed program was
:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 eval "$as_ac_var=no
"
16029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16030 conftest$ac_exeext conftest.$ac_ext
16032 ac_res=`eval echo '${'$as_ac_var'}'`
16033 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16035 if test `eval echo '${'$as_ac_var'}'` = yes; then
16036 cat >>confdefs.h <<_ACEOF
16037 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16045 for ac_header in sys/un.h
16047 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16049 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16050 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16051 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16052 echo $ECHO_N "(cached
) $ECHO_C" >&6
16054 ac_res=`eval echo '${'$as_ac_Header'}'`
16055 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16056 echo "${ECHO_T}$ac_res" >&6; }
16058 # Is the header compilable?
16059 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16060 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 $ac_includes_default
16068 #include <$ac_header>
16070 rm -f conftest.$ac_objext
16071 if { (ac_try="$ac_compile"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_compile") 2>conftest.er1
16079 grep -v '^ *+' conftest.er1 >conftest.err
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16083 (exit $ac_status); } && {
16084 test -z "$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16086 } && test -s conftest.$ac_objext; then
16087 ac_header_compiler=yes
16089 echo "$as_me: failed program was
:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_header_compiler=no
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16097 echo "${ECHO_T}$ac_header_compiler" >&6; }
16099 # Is the header present?
16100 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16101 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16102 cat >conftest.$ac_ext <<_ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 #include <$ac_header>
16110 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16118 grep -v '^ *+' conftest.er1 >conftest.err
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16122 (exit $ac_status); } >/dev/null && {
16123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16126 ac_header_preproc=yes
16128 echo "$as_me: failed program was
:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_header_preproc=no
16134 rm -f conftest.err conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16136 echo "${ECHO_T}$ac_header_preproc" >&6; }
16138 # So? What about this header?
16139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16141 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16142 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16143 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16145 ac_header_preproc=yes
16148 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16149 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16150 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16151 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16152 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16153 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16154 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16155 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16156 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16158 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16159 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16163 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16164 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16165 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16166 echo $ECHO_N "(cached
) $ECHO_C" >&6
16168 eval "$as_ac_Header=\
$ac_header_preproc"
16170 ac_res=`eval echo '${'$as_ac_Header'}'`
16171 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16172 echo "${ECHO_T}$ac_res" >&6; }
16175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16176 cat >>confdefs.h <<_ACEOF
16177 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16189 for ac_header in $ac_header_list
16191 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16192 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16193 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16194 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16195 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16196 echo $ECHO_N "(cached
) $ECHO_C" >&6
16198 ac_res=`eval echo '${'$as_ac_Header'}'`
16199 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16200 echo "${ECHO_T}$ac_res" >&6; }
16202 # Is the header compilable?
16203 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16204 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16205 cat >conftest.$ac_ext <<_ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 $ac_includes_default
16212 #include <$ac_header>
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_compile") 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16227 (exit $ac_status); } && {
16228 test -z "$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 } && test -s conftest.$ac_objext; then
16231 ac_header_compiler=yes
16233 echo "$as_me: failed program was
:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_header_compiler=no
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16241 echo "${ECHO_T}$ac_header_compiler" >&6; }
16243 # Is the header present?
16244 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16245 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 #include <$ac_header>
16254 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16266 (exit $ac_status); } >/dev/null && {
16267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16270 ac_header_preproc=yes
16272 echo "$as_me: failed program was
:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_header_preproc=no
16278 rm -f conftest.err conftest.$ac_ext
16279 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16280 echo "${ECHO_T}$ac_header_preproc" >&6; }
16282 # So? What about this header?
16283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16285 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16286 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16287 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16289 ac_header_preproc=yes
16292 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16293 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16294 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16295 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16296 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16297 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16298 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16299 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16300 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16302 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16303 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16307 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16308 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached
) $ECHO_C" >&6
16312 eval "$as_ac_Header=\
$ac_header_preproc"
16314 ac_res=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320 cat >>confdefs.h <<_ACEOF
16321 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16336 for ac_func in $ac_func_list
16338 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16339 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16340 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16341 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached
) $ECHO_C" >&6
16344 cat >conftest.$ac_ext <<_ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352 #define $ac_func innocuous_$ac_func
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16360 # include <limits.h>
16362 # include <assert.h>
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16374 /* The GNU C library defines this for functions which it implements
16375 to always fail with ENOSYS. Some functions are actually named
16376 something starting with __ and the normal name is an alias. */
16377 #if defined __stub_$ac_func || defined __stub___$ac_func
16384 return $ac_func ();
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (ac_try="$ac_link"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_link") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext &&
16406 $as_test_x conftest$ac_exeext; then
16407 eval "$as_ac_var=yes"
16409 echo "$as_me: failed program was
:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 eval "$as_ac_var=no
"
16415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16416 conftest$ac_exeext conftest.$ac_ext
16418 ac_res=`eval echo '${'$as_ac_var'}'`
16419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16420 echo "${ECHO_T}$ac_res" >&6; }
16421 if test `eval echo '${'$as_ac_var'}'` = yes; then
16422 cat >>confdefs.h <<_ACEOF
16423 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16445 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16446 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16447 if test "${ac_cv_func_working_mktime+set}" = set; then
16448 echo $ECHO_N "(cached
) $ECHO_C" >&6
16450 if test "$cross_compiling" = yes; then
16451 ac_cv_func_working_mktime=no
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 /* Test program from Paul Eggert and Tony Leneis. */
16460 #ifdef TIME_WITH_SYS_TIME
16461 # include <sys/time.h>
16464 # ifdef HAVE_SYS_TIME_H
16465 # include <sys/time.h>
16471 #include <stdlib.h>
16473 #ifdef HAVE_UNISTD_H
16474 # include <unistd.h>
16478 # define alarm(X) /* empty */
16481 /* Work around redefinition to rpl_putenv by other config tests. */
16484 static time_t time_t_max;
16485 static time_t time_t_min;
16487 /* Values we'll use to set the TZ environment variable. */
16488 static char *tz_strings[] = {
16489 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16490 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16492 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16494 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16495 Based on a problem report from Andreas Jaeger. */
16497 spring_forward_gap ()
16499 /* glibc (up to about 1998-10-07) failed this test. */
16502 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16503 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16504 on systems that don't support the Olson extension, or don't have the
16505 full zoneinfo tables installed. */
16506 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16515 return mktime (&tm) != (time_t) -1;
16523 return ! (lt = localtime (&now)) || mktime (lt) == now;
16530 return (mktime_test1 (now)
16531 && mktime_test1 ((time_t) (time_t_max - now))
16532 && mktime_test1 ((time_t) (time_t_min + now)));
16538 /* Based on code from Ariel Faigon. */
16548 return tm.tm_mon == 2 && tm.tm_mday == 31;
16557 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16558 now = mktime (&tm);
16559 if (now != (time_t) -1)
16561 struct tm *lt = localtime (&now);
16563 && lt->tm_year == tm.tm_year
16564 && lt->tm_mon == tm.tm_mon
16565 && lt->tm_mday == tm.tm_mday
16566 && lt->tm_hour == tm.tm_hour
16567 && lt->tm_min == tm.tm_min
16568 && lt->tm_sec == tm.tm_sec
16569 && lt->tm_yday == tm.tm_yday
16570 && lt->tm_wday == tm.tm_wday
16571 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16572 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16581 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16582 ignoring leap seconds. */
16583 unsigned long int answer = 2527315200UL;
16587 tm.tm_year = 2050 - 1900;
16590 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16593 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16594 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16595 on systems that don't support the Olson extension, or don't have the
16596 full zoneinfo tables installed. */
16597 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16601 /* Check that the result is either a failure, or close enough
16602 to the correct answer that we can assume the discrepancy is
16603 due to leap seconds. */
16604 return (t == (time_t) -1
16605 || (0 < t && answer - 120 <= t && t <= answer + 120));
16614 /* This test makes some buggy mktime implementations loop.
16615 Give up after 60 seconds; a mktime slower than that
16616 isn't worth using anyway. */
16619 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16622 if ((time_t) -1 < 0)
16623 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16625 delta = time_t_max / 997; /* a suitable prime number */
16626 for (i = 0; i < N_STRINGS; i++)
16629 putenv (tz_strings[i]);
16631 for (t = 0; t <= time_t_max - delta; t += delta)
16632 if (! mktime_test (t))
16634 if (! (mktime_test ((time_t) 1)
16635 && mktime_test ((time_t) (60 * 60))
16636 && mktime_test ((time_t) (60 * 60 * 24))))
16639 for (j = 1; 0 < j; j *= 2)
16640 if (! bigtime_test (j))
16642 if (! bigtime_test (j - 1))
16645 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16648 rm -f conftest$ac_exeext
16649 if { (ac_try="$ac_link"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_link") 2>&5
16657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_cv_func_working_mktime=yes
16670 echo "$as_me: program exited with status
$ac_status" >&5
16671 echo "$as_me: failed program was
:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ( exit $ac_status )
16675 ac_cv_func_working_mktime=no
16677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16682 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16683 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16684 if test $ac_cv_func_working_mktime = no; then
16685 case " $LIBOBJS " in
16686 *" mktime.
$ac_objext "* ) ;;
16687 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16693 if test "$ac_cv_func_working_mktime" = no; then
16695 cat >>confdefs.h <<\_ACEOF
16696 #define BROKEN_MKTIME 1
16701 ac_have_func=no # yes means we've found a way to get the load average.
16703 # Make sure getloadavg.c is where it belongs, at configure-time.
16704 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16705 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16706 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16707 { (exit 1); exit 1; }; }
16711 # Check for getloadavg, but be sure not to touch the cache variable.
16712 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16713 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16714 if test "${ac_cv_func_getloadavg+set}" = set; then
16715 echo $ECHO_N "(cached
) $ECHO_C" >&6
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16725 #define getloadavg innocuous_getloadavg
16727 /* System header to define __stub macros and hopefully few prototypes,
16728 which can conflict with char getloadavg (); below.
16729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16730 <limits.h> exists even on freestanding compilers. */
16733 # include <limits.h>
16735 # include <assert.h>
16740 /* Override any GCC internal prototype to avoid an error.
16741 Use char because int might match the return type of a GCC
16742 builtin and then its argument prototype would still apply. */
16746 char getloadavg ();
16747 /* The GNU C library defines this for functions which it implements
16748 to always fail with ENOSYS. Some functions are actually named
16749 something starting with __ and the normal name is an alias. */
16750 #if defined __stub_getloadavg || defined __stub___getloadavg
16757 return getloadavg ();
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (ac_try="$ac_link"
16764 case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_link") 2>conftest.er1
16771 grep -v '^ *+' conftest.er1 >conftest.err
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16775 (exit $ac_status); } && {
16776 test -z "$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16778 } && test -s conftest$ac_exeext &&
16779 $as_test_x conftest$ac_exeext; then
16780 ac_cv_func_getloadavg=yes
16782 echo "$as_me: failed program was
:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_func_getloadavg=no
16788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16789 conftest$ac_exeext conftest.$ac_ext
16791 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16792 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16793 if test $ac_cv_func_getloadavg = yes; then
16798 ) && ac_have_func=yes
16800 # On HPUX9, an unprivileged user can get load averages through this function.
16802 for ac_func in pstat_getdynamic
16804 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16805 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16806 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16807 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached
) $ECHO_C" >&6
16810 cat >conftest.$ac_ext <<_ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16818 #define $ac_func innocuous_$ac_func
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func (); below.
16822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16823 <limits.h> exists even on freestanding compilers. */
16826 # include <limits.h>
16828 # include <assert.h>
16833 /* Override any GCC internal prototype to avoid an error.
16834 Use char because int might match the return type of a GCC
16835 builtin and then its argument prototype would still apply. */
16840 /* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843 #if defined __stub_$ac_func || defined __stub___$ac_func
16850 return $ac_func ();
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_link") 2>conftest.er1
16864 grep -v '^ *+' conftest.er1 >conftest.err
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest$ac_exeext &&
16872 $as_test_x conftest$ac_exeext; then
16873 eval "$as_ac_var=yes"
16875 echo "$as_me: failed program was
:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 eval "$as_ac_var=no
"
16881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16882 conftest$ac_exeext conftest.$ac_ext
16884 ac_res=`eval echo '${'$as_ac_var'}'`
16885 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16887 if test `eval echo '${'$as_ac_var'}'` = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16896 # Solaris has libkstat which does not require root.
16898 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16899 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16900 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16901 echo $ECHO_N "(cached
) $ECHO_C" >&6
16903 ac_check_lib_save_LIBS=$LIBS
16904 LIBS="-lkstat $LIBS"
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 /* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
16918 char kstat_open ();
16922 return kstat_open ();
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_link") 2>conftest.er1
16936 grep -v '^ *+' conftest.er1 >conftest.err
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext &&
16944 $as_test_x conftest$ac_exeext; then
16945 ac_cv_lib_kstat_kstat_open=yes
16947 echo "$as_me: failed program was
:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 ac_cv_lib_kstat_kstat_open=no
16953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16955 LIBS=$ac_check_lib_save_LIBS
16957 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16958 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16959 if test $ac_cv_lib_kstat_kstat_open = yes; then
16960 cat >>confdefs.h <<_ACEOF
16961 #define HAVE_LIBKSTAT 1
16964 LIBS="-lkstat $LIBS"
16968 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16970 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16971 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16972 # to get the right answer into the cache.
16973 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16974 if test $ac_have_func = no; then
16975 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16976 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16977 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16978 echo $ECHO_N "(cached
) $ECHO_C" >&6
16980 ac_check_lib_save_LIBS=$LIBS
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16989 /* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16999 return elf_begin ();
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1 >conftest.err
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest$ac_exeext &&
17021 $as_test_x conftest$ac_exeext; then
17022 ac_cv_lib_elf_elf_begin=yes
17024 echo "$as_me: failed program was
:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ac_cv_lib_elf_elf_begin=no
17030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17031 conftest$ac_exeext conftest.$ac_ext
17032 LIBS=$ac_check_lib_save_LIBS
17034 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17035 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17036 if test $ac_cv_lib_elf_elf_begin = yes; then
17041 if test $ac_have_func = no; then
17042 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17043 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17044 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17045 echo $ECHO_N "(cached
) $ECHO_C" >&6
17047 ac_check_lib_save_LIBS=$LIBS
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17056 /* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
17066 return kvm_open ();
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17084 (exit $ac_status); } && {
17085 test -z "$ac_c_werror_flag" ||
17086 test ! -s conftest.err
17087 } && test -s conftest$ac_exeext &&
17088 $as_test_x conftest$ac_exeext; then
17089 ac_cv_lib_kvm_kvm_open=yes
17091 echo "$as_me: failed program was
:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_lib_kvm_kvm_open=no
17097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17102 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17103 if test $ac_cv_lib_kvm_kvm_open = yes; then
17107 # Check for the 4.4BSD definition of getloadavg.
17108 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17109 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17110 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17111 echo $ECHO_N "(cached
) $ECHO_C" >&6
17113 ac_check_lib_save_LIBS=$LIBS
17114 LIBS="-lutil $LIBS"
17115 cat >conftest.$ac_ext <<_ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17122 /* Override any GCC internal prototype to avoid an error.
17123 Use char because int might match the return type of a GCC
17124 builtin and then its argument prototype would still apply. */
17128 char getloadavg ();
17132 return getloadavg ();
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (ac_try="$ac_link"
17139 case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_link") 2>conftest.er1
17146 grep -v '^ *+' conftest.er1 >conftest.err
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest$ac_exeext &&
17154 $as_test_x conftest$ac_exeext; then
17155 ac_cv_lib_util_getloadavg=yes
17157 echo "$as_me: failed program was
:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17160 ac_cv_lib_util_getloadavg=no
17163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17164 conftest$ac_exeext conftest.$ac_ext
17165 LIBS=$ac_check_lib_save_LIBS
17167 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17168 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17169 if test $ac_cv_lib_util_getloadavg = yes; then
17170 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17175 if test $ac_have_func = no; then
17176 # There is a commonly available library for RS/6000 AIX.
17177 # Since it is not a standard part of AIX, it might be installed locally.
17178 ac_getloadavg_LIBS=$LIBS
17179 LIBS="-L/usr
/local
/lib
$LIBS"
17180 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17181 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17182 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17183 echo $ECHO_N "(cached
) $ECHO_C" >&6
17185 ac_check_lib_save_LIBS=$LIBS
17186 LIBS="-lgetloadavg $LIBS"
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17194 /* Override any GCC internal prototype to avoid an error.
17195 Use char because int might match the return type of a GCC
17196 builtin and then its argument prototype would still apply. */
17200 char getloadavg ();
17204 return getloadavg ();
17209 rm -f conftest.$ac_objext conftest$ac_exeext
17210 if { (ac_try="$ac_link"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_link") 2>conftest.er1
17218 grep -v '^ *+' conftest.er1 >conftest.err
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17222 (exit $ac_status); } && {
17223 test -z "$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 } && test -s conftest$ac_exeext &&
17226 $as_test_x conftest$ac_exeext; then
17227 ac_cv_lib_getloadavg_getloadavg=yes
17229 echo "$as_me: failed program was
:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 ac_cv_lib_getloadavg_getloadavg=no
17235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17239 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17240 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17241 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17242 LIBS="-lgetloadavg $LIBS"
17244 LIBS=$ac_getloadavg_LIBS
17249 # Make sure it is really in the library, if we think we found it,
17250 # otherwise set up the replacement function.
17252 for ac_func in getloadavg
17254 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17255 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17256 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17257 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17258 echo $ECHO_N "(cached
) $ECHO_C" >&6
17260 cat >conftest.$ac_ext <<_ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268 #define $ac_func innocuous_$ac_func
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17276 # include <limits.h>
17278 # include <assert.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. */
17290 /* The GNU C library defines this for functions which it implements
17291 to always fail with ENOSYS. Some functions are actually named
17292 something starting with __ and the normal name is an alias. */
17293 #if defined __stub_$ac_func || defined __stub___$ac_func
17300 return $ac_func ();
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (ac_try="$ac_link"
17307 case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17314 grep -v '^ *+' conftest.er1 >conftest.err
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest$ac_exeext &&
17322 $as_test_x conftest$ac_exeext; then
17323 eval "$as_ac_var=yes"
17325 echo "$as_me: failed program was
:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17328 eval "$as_ac_var=no
"
17331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17332 conftest$ac_exeext conftest.$ac_ext
17334 ac_res=`eval echo '${'$as_ac_var'}'`
17335 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17336 echo "${ECHO_T}$ac_res" >&6; }
17337 if test `eval echo '${'$as_ac_var'}'` = yes; then
17338 cat >>confdefs.h <<_ACEOF
17339 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17343 case " $LIBOBJS " in
17344 *" getloadavg.
$ac_objext "* ) ;;
17345 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17350 cat >>confdefs.h <<\_ACEOF
17351 #define C_GETLOADAVG 1
17354 # Figure out what our getloadavg.c needs.
17356 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17357 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17358 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17359 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17360 echo $ECHO_N "(cached
) $ECHO_C" >&6
17362 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17363 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17365 # Is the header compilable?
17366 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17367 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 $ac_includes_default
17375 #include <sys/dg_sys_info.h>
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_compile") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest.$ac_objext; then
17394 ac_header_compiler=yes
17396 echo "$as_me: failed program was
:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_header_compiler=no
17402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17404 echo "${ECHO_T}$ac_header_compiler" >&6; }
17406 # Is the header present?
17407 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17408 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17409 cat >conftest.$ac_ext <<_ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 #include <sys/dg_sys_info.h>
17417 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17429 (exit $ac_status); } >/dev/null && {
17430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17433 ac_header_preproc=yes
17435 echo "$as_me: failed program was
:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_header_preproc=no
17441 rm -f conftest.err conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17443 echo "${ECHO_T}$ac_header_preproc" >&6; }
17445 # So? What about this header?
17446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17448 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17449 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17450 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17451 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17452 ac_header_preproc=yes
17455 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17456 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17457 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17458 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17459 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17460 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17461 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17462 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17463 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17464 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17465 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17466 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17470 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17471 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17473 echo $ECHO_N "(cached
) $ECHO_C" >&6
17475 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17477 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17478 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17481 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17484 cat >>confdefs.h <<\_ACEOF
17489 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17490 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17492 echo $ECHO_N "(cached
) $ECHO_C" >&6
17494 ac_check_lib_save_LIBS=$LIBS
17496 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17503 /* Override any GCC internal prototype to avoid an error.
17504 Use char because int might match the return type of a GCC
17505 builtin and then its argument prototype would still apply. */
17509 char dg_sys_info ();
17513 return dg_sys_info ();
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17531 (exit $ac_status); } && {
17532 test -z "$ac_c_werror_flag" ||
17533 test ! -s conftest.err
17534 } && test -s conftest$ac_exeext &&
17535 $as_test_x conftest$ac_exeext; then
17536 ac_cv_lib_dgc_dg_sys_info=yes
17538 echo "$as_me: failed program was
:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 ac_cv_lib_dgc_dg_sys_info=no
17544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545 conftest$ac_exeext conftest.$ac_ext
17546 LIBS=$ac_check_lib_save_LIBS
17548 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17549 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17550 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_LIBDGC 1
17563 if test "${ac_cv_header_locale_h+set}" = set; then
17564 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17565 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17566 if test "${ac_cv_header_locale_h+set}" = set; then
17567 echo $ECHO_N "(cached
) $ECHO_C" >&6
17569 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17570 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17572 # Is the header compilable?
17573 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17574 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17575 cat >conftest.$ac_ext <<_ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 $ac_includes_default
17582 #include <locale.h>
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17603 echo "$as_me: failed program was
:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_compiler=no
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17611 echo "${ECHO_T}$ac_header_compiler" >&6; }
17613 # Is the header present?
17614 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17615 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <locale.h>
17624 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17632 grep -v '^ *+' conftest.er1 >conftest.err
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17636 (exit $ac_status); } >/dev/null && {
17637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17640 ac_header_preproc=yes
17642 echo "$as_me: failed program was
:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_header_preproc=no
17648 rm -f conftest.err conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17650 echo "${ECHO_T}$ac_header_preproc" >&6; }
17652 # So? What about this header?
17653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17655 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17656 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17657 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17658 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17659 ac_header_preproc=yes
17662 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17663 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17664 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17665 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17666 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17667 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17668 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17669 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17670 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17671 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17672 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17673 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17677 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17678 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17679 if test "${ac_cv_header_locale_h+set}" = set; then
17680 echo $ECHO_N "(cached
) $ECHO_C" >&6
17682 ac_cv_header_locale_h=$ac_header_preproc
17684 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17685 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17691 for ac_func in setlocale
17693 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17694 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17695 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17696 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17697 echo $ECHO_N "(cached
) $ECHO_C" >&6
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707 #define $ac_func innocuous_$ac_func
17709 /* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char $ac_func (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17715 # include <limits.h>
17717 # include <assert.h>
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17729 /* The GNU C library defines this for functions which it implements
17730 to always fail with ENOSYS. Some functions are actually named
17731 something starting with __ and the normal name is an alias. */
17732 #if defined __stub_$ac_func || defined __stub___$ac_func
17739 return $ac_func ();
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17757 (exit $ac_status); } && {
17758 test -z "$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 } && test -s conftest$ac_exeext &&
17761 $as_test_x conftest$ac_exeext; then
17762 eval "$as_ac_var=yes"
17764 echo "$as_me: failed program was
:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 eval "$as_ac_var=no
"
17770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771 conftest$ac_exeext conftest.$ac_ext
17773 ac_res=`eval echo '${'$as_ac_var'}'`
17774 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17775 echo "${ECHO_T}$ac_res" >&6; }
17776 if test `eval echo '${'$as_ac_var'}'` = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17785 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17786 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17787 # Irix 4.0.5F has the header but not the library.
17788 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17791 cat >>confdefs.h <<\_ACEOF
17797 if test $ac_have_func = no; then
17798 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17799 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17800 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17801 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17802 echo $ECHO_N "(cached
) $ECHO_C" >&6
17804 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17805 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17807 # Is the header compilable?
17808 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17809 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17810 cat >conftest.$ac_ext <<_ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17817 #include <inq_stats/cpustats.h>
17819 rm -f conftest.$ac_objext
17820 if { (ac_try="$ac_compile"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_compile") 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17832 (exit $ac_status); } && {
17833 test -z "$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 } && test -s conftest.$ac_objext; then
17836 ac_header_compiler=yes
17838 echo "$as_me: failed program was
:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_header_compiler=no
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17846 echo "${ECHO_T}$ac_header_compiler" >&6; }
17848 # Is the header present?
17849 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17850 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 #include <inq_stats/cpustats.h>
17859 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17867 grep -v '^ *+' conftest.er1 >conftest.err
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17871 (exit $ac_status); } >/dev/null && {
17872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17873 test ! -s conftest.err
17875 ac_header_preproc=yes
17877 echo "$as_me: failed program was
:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ac_header_preproc=no
17883 rm -f conftest.err conftest.$ac_ext
17884 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17885 echo "${ECHO_T}$ac_header_preproc" >&6; }
17887 # So? What about this header?
17888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17890 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17891 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17892 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17893 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17894 ac_header_preproc=yes
17897 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17898 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17899 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17900 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17901 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17902 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17903 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17904 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17905 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17906 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17907 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17908 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17912 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17913 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17914 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17915 echo $ECHO_N "(cached
) $ECHO_C" >&6
17917 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17919 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17920 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17923 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17926 cat >>confdefs.h <<\_ACEOF
17931 cat >>confdefs.h <<\_ACEOF
17940 if test $ac_have_func = no; then
17941 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17942 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17943 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17944 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17945 echo $ECHO_N "(cached
) $ECHO_C" >&6
17947 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17948 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17950 # Is the header compilable?
17951 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17952 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17953 cat >conftest.$ac_ext <<_ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959 $ac_includes_default
17960 #include <sys/cpustats.h>
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_compile") 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17975 (exit $ac_status); } && {
17976 test -z "$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 } && test -s conftest.$ac_objext; then
17979 ac_header_compiler=yes
17981 echo "$as_me: failed program was
:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ac_header_compiler=no
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17989 echo "${ECHO_T}$ac_header_compiler" >&6; }
17991 # Is the header present?
17992 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17993 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 #include <sys/cpustats.h>
18002 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18014 (exit $ac_status); } >/dev/null && {
18015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18018 ac_header_preproc=yes
18020 echo "$as_me: failed program was
:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_preproc=no
18026 rm -f conftest.err conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18028 echo "${ECHO_T}$ac_header_preproc" >&6; }
18030 # So? What about this header?
18031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18033 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18034 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18035 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18036 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18037 ac_header_preproc=yes
18040 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18041 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18042 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18043 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18044 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18045 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18046 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18047 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18048 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18049 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18050 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18051 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18055 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18056 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18057 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18058 echo $ECHO_N "(cached
) $ECHO_C" >&6
18060 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18062 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18063 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18066 if test $ac_cv_header_sys_cpustats_h = yes; then
18067 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18076 if test $ac_have_func = no; then
18078 for ac_header in mach/mach.h
18080 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18082 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18083 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18085 echo $ECHO_N "(cached
) $ECHO_C" >&6
18087 ac_res=`eval echo '${'$as_ac_Header'}'`
18088 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18091 # Is the header compilable?
18092 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18093 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 $ac_includes_default
18101 #include <$ac_header>
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_compile") 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18116 (exit $ac_status); } && {
18117 test -z "$ac_c_werror_flag" ||
18118 test ! -s conftest.err
18119 } && test -s conftest.$ac_objext; then
18120 ac_header_compiler=yes
18122 echo "$as_me: failed program was
:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_header_compiler=no
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18130 echo "${ECHO_T}$ac_header_compiler" >&6; }
18132 # Is the header present?
18133 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18134 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18135 cat >conftest.$ac_ext <<_ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18141 #include <$ac_header>
18143 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18155 (exit $ac_status); } >/dev/null && {
18156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18159 ac_header_preproc=yes
18161 echo "$as_me: failed program was
:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_header_preproc=no
18167 rm -f conftest.err conftest.$ac_ext
18168 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18169 echo "${ECHO_T}$ac_header_preproc" >&6; }
18171 # So? What about this header?
18172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18174 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18175 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18176 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18178 ac_header_preproc=yes
18181 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18182 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18183 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18184 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18185 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18186 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18187 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18188 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18189 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18191 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18192 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18196 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18197 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18199 echo $ECHO_N "(cached
) $ECHO_C" >&6
18201 eval "$as_ac_Header=\
$ac_header_preproc"
18203 ac_res=`eval echo '${'$as_ac_Header'}'`
18204 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18205 echo "${ECHO_T}$ac_res" >&6; }
18208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18220 for ac_header in nlist.h
18222 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18223 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18224 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18225 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18226 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18227 echo $ECHO_N "(cached
) $ECHO_C" >&6
18229 ac_res=`eval echo '${'$as_ac_Header'}'`
18230 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18231 echo "${ECHO_T}$ac_res" >&6; }
18233 # Is the header compilable?
18234 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18235 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18236 cat >conftest.$ac_ext <<_ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 $ac_includes_default
18243 #include <$ac_header>
18245 rm -f conftest.$ac_objext
18246 if { (ac_try="$ac_compile"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest.$ac_objext; then
18262 ac_header_compiler=yes
18264 echo "$as_me: failed program was
:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_header_compiler=no
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18272 echo "${ECHO_T}$ac_header_compiler" >&6; }
18274 # Is the header present?
18275 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18276 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 #include <$ac_header>
18285 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18297 (exit $ac_status); } >/dev/null && {
18298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18301 ac_header_preproc=yes
18303 echo "$as_me: failed program was
:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_preproc=no
18309 rm -f conftest.err conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18311 echo "${ECHO_T}$ac_header_preproc" >&6; }
18313 # So? What about this header?
18314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18316 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18317 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18318 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18320 ac_header_preproc=yes
18323 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18324 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18325 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18326 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18327 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18328 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18329 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18330 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18331 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18333 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18334 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18338 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18339 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18340 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18341 echo $ECHO_N "(cached
) $ECHO_C" >&6
18343 eval "$as_ac_Header=\
$ac_header_preproc"
18345 ac_res=`eval echo '${'$as_ac_Header'}'`
18346 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18347 echo "${ECHO_T}$ac_res" >&6; }
18350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18351 cat >>confdefs.h <<_ACEOF
18352 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18354 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18355 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18356 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18357 echo $ECHO_N "(cached
) $ECHO_C" >&6
18359 cat >conftest.$ac_ext <<_ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h. */
18370 static struct nlist ac_aggr;
18371 if (ac_aggr.n_un.n_name)
18377 rm -f conftest.$ac_objext
18378 if { (ac_try="$ac_compile"
18379 case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_compile") 2>conftest.er1
18386 grep -v '^ *+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18390 (exit $ac_status); } && {
18391 test -z "$ac_c_werror_flag" ||
18392 test ! -s conftest.err
18393 } && test -s conftest.$ac_objext; then
18394 ac_cv_member_struct_nlist_n_un_n_name=yes
18396 echo "$as_me: failed program was
:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18410 static struct nlist ac_aggr;
18411 if (sizeof ac_aggr.n_un.n_name)
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest.$ac_objext; then
18434 ac_cv_member_struct_nlist_n_un_n_name=yes
18436 echo "$as_me: failed program was
:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 ac_cv_member_struct_nlist_n_un_n_name=no
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18447 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18448 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18449 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18451 cat >>confdefs.h <<_ACEOF
18452 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18456 cat >>confdefs.h <<\_ACEOF
18457 #define NLIST_NAME_UNION 1
18471 # Some definitions of getloadavg require that the program be installed setgid.
18472 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18473 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18474 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18475 echo $ECHO_N "(cached
) $ECHO_C" >&6
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18484 #ifdef LDAV_PRIVILEGED
18485 Yowza Am I SETGID yet
18488 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18489 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18490 ac_cv_func_getloadavg_setgid=yes
18492 ac_cv_func_getloadavg_setgid=no
18497 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18498 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18499 if test $ac_cv_func_getloadavg_setgid = yes; then
18502 cat >>confdefs.h <<\_ACEOF
18503 #define GETLOADAVG_PRIVILEGED 1
18510 if test $ac_cv_func_getloadavg_setgid = yes; then
18511 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18512 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18513 if test "${ac_cv_group_kmem+set}" = set; then
18514 echo $ECHO_N "(cached
) $ECHO_C" >&6
18516 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18517 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18518 # If we got an error (system does not support symlinks), try without -L.
18519 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18520 ac_cv_group_kmem=`echo $ac_ls_output \
18521 | sed -ne 's/[ ][ ]*/ /g;
18522 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18526 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18527 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18528 KMEM_GROUP=$ac_cv_group_kmem
18530 if test "x
$ac_save_LIBS" = x; then
18531 GETLOADAVG_LIBS=$LIBS
18533 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18539 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18540 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18541 if test "${ac_cv_sys_largefile_source+set}" = set; then
18542 echo $ECHO_N "(cached
) $ECHO_C" >&6
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18555 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_link") 2>conftest.er1
18569 grep -v '^ *+' conftest.er1 >conftest.err
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18573 (exit $ac_status); } && {
18574 test -z "$ac_c_werror_flag" ||
18575 test ! -s conftest.err
18576 } && test -s conftest$ac_exeext &&
18577 $as_test_x conftest$ac_exeext; then
18578 ac_cv_sys_largefile_source=no; break
18580 echo "$as_me: failed program was
:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18587 conftest$ac_exeext conftest.$ac_ext
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 #define _LARGEFILE_SOURCE 1
18599 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18604 rm -f conftest.$ac_objext conftest$ac_exeext
18605 if { (ac_try="$ac_link"
18606 case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_link") 2>conftest.er1
18613 grep -v '^ *+' conftest.er1 >conftest.err
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18617 (exit $ac_status); } && {
18618 test -z "$ac_c_werror_flag" ||
18619 test ! -s conftest.err
18620 } && test -s conftest$ac_exeext &&
18621 $as_test_x conftest$ac_exeext; then
18622 ac_cv_sys_largefile_source=1; break
18624 echo "$as_me: failed program was
:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18631 conftest$ac_exeext conftest.$ac_ext
18632 ac_cv_sys_largefile_source=unknown
18636 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18637 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18638 case $ac_cv_sys_largefile_source in #(
18641 cat >>confdefs.h <<_ACEOF
18642 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18648 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18649 # in glibc 2.1.3, but that breaks too many other things.
18650 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18651 if test $ac_cv_sys_largefile_source != unknown; then
18653 cat >>confdefs.h <<\_ACEOF
18654 #define HAVE_FSEEKO 1
18660 # Configure getopt.
18661 # getopt.m4 serial 10
18663 # The getopt module assume you want GNU getopt, with getopt_long etc,
18664 # rather than vanilla POSIX getopt. This means your your code should
18665 # always include <getopt.h> for the getopt prototypes.
18677 # Prerequisites of lib/getopt*.
18684 for ac_header in getopt.h
18686 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18687 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18688 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18689 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18690 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18691 echo $ECHO_N "(cached
) $ECHO_C" >&6
18693 ac_res=`eval echo '${'$as_ac_Header'}'`
18694 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18695 echo "${ECHO_T}$ac_res" >&6; }
18697 # Is the header compilable?
18698 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18699 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18700 cat >conftest.$ac_ext <<_ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18706 $ac_includes_default
18707 #include <$ac_header>
18709 rm -f conftest.$ac_objext
18710 if { (ac_try="$ac_compile"
18711 case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_compile") 2>conftest.er1
18718 grep -v '^ *+' conftest.er1 >conftest.err
18720 cat conftest.err >&5
18721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18722 (exit $ac_status); } && {
18723 test -z "$ac_c_werror_flag" ||
18724 test ! -s conftest.err
18725 } && test -s conftest.$ac_objext; then
18726 ac_header_compiler=yes
18728 echo "$as_me: failed program was
:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ac_header_compiler=no
18734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18735 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18736 echo "${ECHO_T}$ac_header_compiler" >&6; }
18738 # Is the header present?
18739 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18740 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18741 cat >conftest.$ac_ext <<_ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 #include <$ac_header>
18749 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18757 grep -v '^ *+' conftest.er1 >conftest.err
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18761 (exit $ac_status); } >/dev/null && {
18762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18765 ac_header_preproc=yes
18767 echo "$as_me: failed program was
:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18770 ac_header_preproc=no
18773 rm -f conftest.err conftest.$ac_ext
18774 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18775 echo "${ECHO_T}$ac_header_preproc" >&6; }
18777 # So? What about this header?
18778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18780 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18781 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18782 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18784 ac_header_preproc=yes
18787 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18788 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18789 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18790 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18791 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18792 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18793 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18794 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18795 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18797 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18798 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18802 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18803 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18804 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18805 echo $ECHO_N "(cached
) $ECHO_C" >&6
18807 eval "$as_ac_Header=\
$ac_header_preproc"
18809 ac_res=`eval echo '${'$as_ac_Header'}'`
18810 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18815 cat >>confdefs.h <<_ACEOF
18816 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18825 if test -z "$GETOPT_H"; then
18827 for ac_func in getopt_long_only
18829 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18830 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18831 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18832 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18833 echo $ECHO_N "(cached
) $ECHO_C" >&6
18835 cat >conftest.$ac_ext <<_ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18843 #define $ac_func innocuous_$ac_func
18845 /* System header to define __stub macros and hopefully few prototypes,
18846 which can conflict with char $ac_func (); below.
18847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18848 <limits.h> exists even on freestanding compilers. */
18851 # include <limits.h>
18853 # include <assert.h>
18858 /* Override any GCC internal prototype to avoid an error.
18859 Use char because int might match the return type of a GCC
18860 builtin and then its argument prototype would still apply. */
18865 /* The GNU C library defines this for functions which it implements
18866 to always fail with ENOSYS. Some functions are actually named
18867 something starting with __ and the normal name is an alias. */
18868 #if defined __stub_$ac_func || defined __stub___$ac_func
18875 return $ac_func ();
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_link") 2>conftest.er1
18889 grep -v '^ *+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest$ac_exeext &&
18897 $as_test_x conftest$ac_exeext; then
18898 eval "$as_ac_var=yes"
18900 echo "$as_me: failed program was
:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 eval "$as_ac_var=no
"
18906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18907 conftest$ac_exeext conftest.$ac_ext
18909 ac_res=`eval echo '${'$as_ac_var'}'`
18910 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18911 echo "${ECHO_T}$ac_res" >&6; }
18912 if test `eval echo '${'$as_ac_var'}'` = yes; then
18913 cat >>confdefs.h <<_ACEOF
18914 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18924 if test -z "$GETOPT_H"; then
18925 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18926 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18927 if test "${ac_cv_have_decl_optreset+set}" = set; then
18928 echo $ECHO_N "(cached
) $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 #include <getopt.h>
18949 rm -f conftest.$ac_objext
18950 if { (ac_try="$ac_compile"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_compile") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest.$ac_objext; then
18966 ac_cv_have_decl_optreset=yes
18968 echo "$as_me: failed program was
:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_cv_have_decl_optreset=no
18974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18977 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18978 if test $ac_cv_have_decl_optreset = yes; then
18984 if test -z "$GETOPT_H"; then
18985 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18986 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18987 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18988 echo $ECHO_N "(cached
) $ECHO_C" >&6
18990 if test "$cross_compiling" = yes; then
18991 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18992 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18993 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18994 echo $ECHO_N "(cached
) $ECHO_C" >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 #include <getopt.h>
19007 #ifndef getopt_clip
19008 (void) getopt_clip;
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 ac_cv_have_decl_getopt_clip=yes
19034 echo "$as_me: failed program was
:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 ac_cv_have_decl_getopt_clip=no
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19042 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19043 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19044 if test $ac_cv_have_decl_getopt_clip = yes; then
19045 gl_cv_func_gnu_getopt=no
19047 gl_cv_func_gnu_getopt=yes
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <getopt.h>
19063 myargv[0] = "conftest
";
19066 return getopt (2, myargv, "+a
") != '?';
19072 rm -f conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>&5
19081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 gl_cv_func_gnu_getopt=yes
19094 echo "$as_me: program exited with status
$ac_status" >&5
19095 echo "$as_me: failed program was
:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 ( exit $ac_status )
19099 gl_cv_func_gnu_getopt=no
19101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19106 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19107 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19108 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19115 if test -n "$GETOPT_H"; then
19120 cat >>confdefs.h <<\_ACEOF
19121 #define __GETOPT_PREFIX rpl_
19127 GETOPTOBJS='getopt.o getopt1.o'
19134 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19135 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19136 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19137 echo $ECHO_N "(cached
) $ECHO_C" >&6
19139 # Use it with a single arg.
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 $ac_includes_default
19155 rm -f conftest.$ac_objext
19156 if { (ac_try="$ac_compile"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_compile") 2>conftest.er1
19164 grep -v '^ *+' conftest.er1 >conftest.err
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest.$ac_objext; then
19172 ac_cv_func_getpgrp_void=no
19174 echo "$as_me: failed program was
:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_cv_func_getpgrp_void=yes
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19184 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19185 if test $ac_cv_func_getpgrp_void = yes; then
19187 cat >>confdefs.h <<\_ACEOF
19188 #define GETPGRP_VOID 1
19195 for ac_func in strftime
19197 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19198 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19199 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19200 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19201 echo $ECHO_N "(cached
) $ECHO_C" >&6
19203 cat >conftest.$ac_ext <<_ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19211 #define $ac_func innocuous_$ac_func
19213 /* System header to define __stub macros and hopefully few prototypes,
19214 which can conflict with char $ac_func (); below.
19215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19216 <limits.h> exists even on freestanding compilers. */
19219 # include <limits.h>
19221 # include <assert.h>
19226 /* Override any GCC internal prototype to avoid an error.
19227 Use char because int might match the return type of a GCC
19228 builtin and then its argument prototype would still apply. */
19233 /* The GNU C library defines this for functions which it implements
19234 to always fail with ENOSYS. Some functions are actually named
19235 something starting with __ and the normal name is an alias. */
19236 #if defined __stub_$ac_func || defined __stub___$ac_func
19243 return $ac_func ();
19248 rm -f conftest.$ac_objext conftest$ac_exeext
19249 if { (ac_try="$ac_link"
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_link") 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_exeext &&
19265 $as_test_x conftest$ac_exeext; then
19266 eval "$as_ac_var=yes"
19268 echo "$as_me: failed program was
:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 eval "$as_ac_var=no
"
19274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19275 conftest$ac_exeext conftest.$ac_ext
19277 ac_res=`eval echo '${'$as_ac_var'}'`
19278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19279 echo "${ECHO_T}$ac_res" >&6; }
19280 if test `eval echo '${'$as_ac_var'}'` = yes; then
19281 cat >>confdefs.h <<_ACEOF
19282 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19286 # strftime is in -lintl on SCO UNIX.
19287 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19288 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19289 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19290 echo $ECHO_N "(cached
) $ECHO_C" >&6
19292 ac_check_lib_save_LIBS=$LIBS
19293 LIBS="-lintl $LIBS"
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19301 /* Override any GCC internal prototype to avoid an error.
19302 Use char because int might match the return type of a GCC
19303 builtin and then its argument prototype would still apply. */
19311 return strftime ();
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_link") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest$ac_exeext &&
19333 $as_test_x conftest$ac_exeext; then
19334 ac_cv_lib_intl_strftime=yes
19336 echo "$as_me: failed program was
:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_cv_lib_intl_strftime=no
19342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19343 conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_check_lib_save_LIBS
19346 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19348 if test $ac_cv_lib_intl_strftime = yes; then
19349 cat >>confdefs.h <<\_ACEOF
19350 #define HAVE_STRFTIME 1
19353 LIBS="-lintl $LIBS"
19362 for ac_func in grantpt
19364 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19365 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19366 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19367 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19368 echo $ECHO_N "(cached
) $ECHO_C" >&6
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19378 #define $ac_func innocuous_$ac_func
19380 /* System header to define __stub macros and hopefully few prototypes,
19381 which can conflict with char $ac_func (); below.
19382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19383 <limits.h> exists even on freestanding compilers. */
19386 # include <limits.h>
19388 # include <assert.h>
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 builtin and then its argument prototype would still apply. */
19400 /* The GNU C library defines this for functions which it implements
19401 to always fail with ENOSYS. Some functions are actually named
19402 something starting with __ and the normal name is an alias. */
19403 #if defined __stub_$ac_func || defined __stub___$ac_func
19410 return $ac_func ();
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (ac_try="$ac_link"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_link") 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19428 (exit $ac_status); } && {
19429 test -z "$ac_c_werror_flag" ||
19430 test ! -s conftest.err
19431 } && test -s conftest$ac_exeext &&
19432 $as_test_x conftest$ac_exeext; then
19433 eval "$as_ac_var=yes"
19435 echo "$as_me: failed program was
:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 eval "$as_ac_var=no
"
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19444 ac_res=`eval echo '${'$as_ac_var'}'`
19445 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19446 echo "${ECHO_T}$ac_res" >&6; }
19447 if test `eval echo '${'$as_ac_var'}'` = yes; then
19448 cat >>confdefs.h <<_ACEOF
19449 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19456 # PTY-related GNU extensions.
19458 for ac_func in getpt
19460 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19461 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19462 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19463 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19464 echo $ECHO_N "(cached
) $ECHO_C" >&6
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19474 #define $ac_func innocuous_$ac_func
19476 /* System header to define __stub macros and hopefully few prototypes,
19477 which can conflict with char $ac_func (); below.
19478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19479 <limits.h> exists even on freestanding compilers. */
19482 # include <limits.h>
19484 # include <assert.h>
19489 /* Override any GCC internal prototype to avoid an error.
19490 Use char because int might match the return type of a GCC
19491 builtin and then its argument prototype would still apply. */
19496 /* The GNU C library defines this for functions which it implements
19497 to always fail with ENOSYS. Some functions are actually named
19498 something starting with __ and the normal name is an alias. */
19499 #if defined __stub_$ac_func || defined __stub___$ac_func
19506 return $ac_func ();
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (ac_try="$ac_link"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_link") 2>conftest.er1
19520 grep -v '^ *+' conftest.er1 >conftest.err
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19524 (exit $ac_status); } && {
19525 test -z "$ac_c_werror_flag" ||
19526 test ! -s conftest.err
19527 } && test -s conftest$ac_exeext &&
19528 $as_test_x conftest$ac_exeext; then
19529 eval "$as_ac_var=yes"
19531 echo "$as_me: failed program was
:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 eval "$as_ac_var=no
"
19537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19538 conftest$ac_exeext conftest.$ac_ext
19540 ac_res=`eval echo '${'$as_ac_var'}'`
19541 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19542 echo "${ECHO_T}$ac_res" >&6; }
19543 if test `eval echo '${'$as_ac_var'}'` = yes; then
19544 cat >>confdefs.h <<_ACEOF
19545 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19552 # Check this now, so that we will NOT find the above functions in ncurses.
19553 # That is because we have not set up to link ncurses in lib-src.
19554 # It's better to believe a function is not available
19555 # than to expect to find it in ncurses.
19557 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19558 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19559 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19560 echo $ECHO_N "(cached
) $ECHO_C" >&6
19562 ac_check_lib_save_LIBS=$LIBS
19563 LIBS="-lncurses $LIBS"
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19571 /* Override any GCC internal prototype to avoid an error.
19572 Use char because int might match the return type of a GCC
19573 builtin and then its argument prototype would still apply. */
19586 rm -f conftest.$ac_objext conftest$ac_exeext
19587 if { (ac_try="$ac_link"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_link") 2>conftest.er1
19595 grep -v '^ *+' conftest.er1 >conftest.err
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19599 (exit $ac_status); } && {
19600 test -z "$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19602 } && test -s conftest$ac_exeext &&
19603 $as_test_x conftest$ac_exeext; then
19604 ac_cv_lib_ncurses_tparm=yes
19606 echo "$as_me: failed program was
:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_cv_lib_ncurses_tparm=no
19612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19613 conftest$ac_exeext conftest.$ac_ext
19614 LIBS=$ac_check_lib_save_LIBS
19616 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19617 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19618 if test $ac_cv_lib_ncurses_tparm = yes; then
19619 cat >>confdefs.h <<_ACEOF
19620 #define HAVE_LIBNCURSES 1
19623 LIBS="-lncurses $LIBS"
19628 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 #include <netinet/in.h>
19638 #include <arpa/nameser.h>
19639 #include <resolv.h>
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_link") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest$ac_exeext &&
19665 $as_test_x conftest$ac_exeext; then
19668 echo "$as_me: failed program was
:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19675 conftest$ac_exeext conftest.$ac_ext
19676 if test "$have_res_init" = no; then
19678 LIBS="$LIBS -lresolv"
19679 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19680 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <netinet/in.h>
19688 #include <arpa/nameser.h>
19689 #include <resolv.h>
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19718 echo "$as_me: failed program was
:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19727 echo "${ECHO_T}$have_res_init" >&6; }
19728 if test "$have_res_init" = yes ; then
19734 if test "$have_res_init" = yes; then
19736 cat >>confdefs.h <<\_ACEOF
19737 #define HAVE_RES_INIT 1
19742 # Do we need the Hesiod library to provide the support routines?
19743 if test "$with_hesiod" = yes ; then
19744 # Don't set $LIBS here -- see comments above.
19745 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19746 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19747 if test "${ac_cv_func_res_send+set}" = set; then
19748 echo $ECHO_N "(cached
) $ECHO_C" >&6
19750 cat >conftest.$ac_ext <<_ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19758 #define res_send innocuous_res_send
19760 /* System header to define __stub macros and hopefully few prototypes,
19761 which can conflict with char res_send (); below.
19762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19763 <limits.h> exists even on freestanding compilers. */
19766 # include <limits.h>
19768 # include <assert.h>
19773 /* Override any GCC internal prototype to avoid an error.
19774 Use char because int might match the return type of a GCC
19775 builtin and then its argument prototype would still apply. */
19780 /* The GNU C library defines this for functions which it implements
19781 to always fail with ENOSYS. Some functions are actually named
19782 something starting with __ and the normal name is an alias. */
19783 #if defined __stub_res_send || defined __stub___res_send
19790 return res_send ();
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_func_res_send=yes
19815 echo "$as_me: failed program was
:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_func_res_send=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19824 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19825 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19826 if test $ac_cv_func_res_send = yes; then
19829 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19830 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19831 if test "${ac_cv_func___res_send+set}" = set; then
19832 echo $ECHO_N "(cached
) $ECHO_C" >&6
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19842 #define __res_send innocuous___res_send
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char __res_send (); below.
19846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19847 <limits.h> exists even on freestanding compilers. */
19850 # include <limits.h>
19852 # include <assert.h>
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19863 char __res_send ();
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined __stub___res_send || defined __stub_____res_send
19874 return __res_send ();
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext &&
19896 $as_test_x conftest$ac_exeext; then
19897 ac_cv_func___res_send=yes
19899 echo "$as_me: failed program was
:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_func___res_send=no
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906 conftest$ac_exeext conftest.$ac_ext
19908 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19909 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19910 if test $ac_cv_func___res_send = yes; then
19913 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19914 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19915 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19916 echo $ECHO_N "(cached
) $ECHO_C" >&6
19918 ac_check_lib_save_LIBS=$LIBS
19919 LIBS="-lresolv $LIBS"
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19927 /* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
19937 return res_send ();
19942 rm -f conftest.$ac_objext conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_link") 2>conftest.er1
19951 grep -v '^ *+' conftest.er1 >conftest.err
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19955 (exit $ac_status); } && {
19956 test -z "$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 } && test -s conftest$ac_exeext &&
19959 $as_test_x conftest$ac_exeext; then
19960 ac_cv_lib_resolv_res_send=yes
19962 echo "$as_me: failed program was
:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_cv_lib_resolv_res_send=no
19968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19969 conftest$ac_exeext conftest.$ac_ext
19970 LIBS=$ac_check_lib_save_LIBS
19972 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19973 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19974 if test $ac_cv_lib_resolv_res_send = yes; then
19977 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19978 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19979 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19980 echo $ECHO_N "(cached
) $ECHO_C" >&6
19982 ac_check_lib_save_LIBS=$LIBS
19983 LIBS="-lresolv $LIBS"
19984 cat >conftest.$ac_ext <<_ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19991 /* Override any GCC internal prototype to avoid an error.
19992 Use char because int might match the return type of a GCC
19993 builtin and then its argument prototype would still apply. */
19997 char __res_send ();
20001 return __res_send ();
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (ac_try="$ac_link"
20008 case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_link") 2>conftest.er1
20015 grep -v '^ *+' conftest.er1 >conftest.err
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20019 (exit $ac_status); } && {
20020 test -z "$ac_c_werror_flag" ||
20021 test ! -s conftest.err
20022 } && test -s conftest$ac_exeext &&
20023 $as_test_x conftest$ac_exeext; then
20024 ac_cv_lib_resolv___res_send=yes
20026 echo "$as_me: failed program was
:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20029 ac_cv_lib_resolv___res_send=no
20032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20033 conftest$ac_exeext conftest.$ac_ext
20034 LIBS=$ac_check_lib_save_LIBS
20036 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20037 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20038 if test $ac_cv_lib_resolv___res_send = yes; then
20048 if test "$resolv" = yes ; then
20053 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20054 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20055 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20056 echo $ECHO_N "(cached
) $ECHO_C" >&6
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20066 #define hes_getmailhost innocuous_hes_getmailhost
20068 /* System header to define __stub macros and hopefully few prototypes,
20069 which can conflict with char hes_getmailhost (); below.
20070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20071 <limits.h> exists even on freestanding compilers. */
20074 # include <limits.h>
20076 # include <assert.h>
20079 #undef hes_getmailhost
20081 /* Override any GCC internal prototype to avoid an error.
20082 Use char because int might match the return type of a GCC
20083 builtin and then its argument prototype would still apply. */
20087 char hes_getmailhost ();
20088 /* The GNU C library defines this for functions which it implements
20089 to always fail with ENOSYS. Some functions are actually named
20090 something starting with __ and the normal name is an alias. */
20091 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20098 return hes_getmailhost ();
20103 rm -f conftest.$ac_objext conftest$ac_exeext
20104 if { (ac_try="$ac_link"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_link") 2>conftest.er1
20112 grep -v '^ *+' conftest.er1 >conftest.err
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest$ac_exeext &&
20120 $as_test_x conftest$ac_exeext; then
20121 ac_cv_func_hes_getmailhost=yes
20123 echo "$as_me: failed program was
:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_cv_func_hes_getmailhost=no
20129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20130 conftest$ac_exeext conftest.$ac_ext
20132 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20133 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20134 if test $ac_cv_func_hes_getmailhost = yes; then
20137 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20138 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20139 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20140 echo $ECHO_N "(cached
) $ECHO_C" >&6
20142 ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-lhesiod $RESOLVLIB $LIBS"
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20157 char hes_getmailhost ();
20161 return hes_getmailhost ();
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (ac_try="$ac_link"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_link") 2>conftest.er1
20175 grep -v '^ *+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest$ac_exeext &&
20183 $as_test_x conftest$ac_exeext; then
20184 ac_cv_lib_hesiod_hes_getmailhost=yes
20186 echo "$as_me: failed program was
:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 ac_cv_lib_hesiod_hes_getmailhost=no
20192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20193 conftest$ac_exeext conftest.$ac_ext
20194 LIBS=$ac_check_lib_save_LIBS
20196 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20197 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20198 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20200 cat >>confdefs.h <<\_ACEOF
20201 #define HAVE_LIBHESIOD 1
20212 # Do we need libresolv (due to res_init or Hesiod)?
20213 if test "$resolv" = yes ; then
20215 cat >>confdefs.h <<\_ACEOF
20216 #define HAVE_LIBRESOLV 1
20221 # These tell us which Kerberos-related libraries to use.
20222 if test "${with_kerberos+set}" = set; then
20224 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20225 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20226 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20227 echo $ECHO_N "(cached
) $ECHO_C" >&6
20229 ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lcom_err $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest$ac_exeext &&
20270 $as_test_x conftest$ac_exeext; then
20271 ac_cv_lib_com_err_com_err=yes
20273 echo "$as_me: failed program was
:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_lib_com_err_com_err=no
20279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20284 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20285 if test $ac_cv_lib_com_err_com_err = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_LIBCOM_ERR 1
20290 LIBS="-lcom_err $LIBS"
20295 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20296 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20297 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20298 echo $ECHO_N "(cached
) $ECHO_C" >&6
20300 ac_check_lib_save_LIBS=$LIBS
20301 LIBS="-lk5crypto $LIBS"
20302 cat >conftest.$ac_ext <<_ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20309 /* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
20315 char mit_des_cbc_encrypt ();
20319 return mit_des_cbc_encrypt ();
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest$ac_exeext &&
20341 $as_test_x conftest$ac_exeext; then
20342 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20344 echo "$as_me: failed program was
:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20354 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20355 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20356 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_LIBK5CRYPTO 1
20361 LIBS="-lk5crypto $LIBS"
20366 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20367 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20368 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20369 echo $ECHO_N "(cached
) $ECHO_C" >&6
20371 ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lcrypto $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20380 /* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20386 char mit_des_cbc_encrypt ();
20390 return mit_des_cbc_encrypt ();
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_link") 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20408 (exit $ac_status); } && {
20409 test -z "$ac_c_werror_flag" ||
20410 test ! -s conftest.err
20411 } && test -s conftest$ac_exeext &&
20412 $as_test_x conftest$ac_exeext; then
20413 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20415 echo "$as_me: failed program was
:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20422 conftest$ac_exeext conftest.$ac_ext
20423 LIBS=$ac_check_lib_save_LIBS
20425 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20426 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20427 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20428 cat >>confdefs.h <<_ACEOF
20429 #define HAVE_LIBCRYPTO 1
20432 LIBS="-lcrypto $LIBS"
20437 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20438 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20439 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20440 echo $ECHO_N "(cached
) $ECHO_C" >&6
20442 ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-lkrb5 $LIBS"
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20457 char krb5_init_context ();
20461 return krb5_init_context ();
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_link") 2>conftest.er1
20475 grep -v '^ *+' conftest.er1 >conftest.err
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest$ac_exeext &&
20483 $as_test_x conftest$ac_exeext; then
20484 ac_cv_lib_krb5_krb5_init_context=yes
20486 echo "$as_me: failed program was
:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_lib_krb5_krb5_init_context=no
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20494 LIBS=$ac_check_lib_save_LIBS
20496 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20497 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20498 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_LIBKRB5 1
20503 LIBS="-lkrb5 $LIBS"
20507 if test "${with_kerberos5+set}" != set; then
20509 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20510 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20511 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20512 echo $ECHO_N "(cached
) $ECHO_C" >&6
20514 ac_check_lib_save_LIBS=$LIBS
20515 LIBS="-ldes425 $LIBS"
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20523 /* Override any GCC internal prototype to avoid an error.
20524 Use char because int might match the return type of a GCC
20525 builtin and then its argument prototype would still apply. */
20529 char des_cbc_encrypt ();
20533 return des_cbc_encrypt ();
20538 rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_link") 2>conftest.er1
20547 grep -v '^ *+' conftest.er1 >conftest.err
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20551 (exit $ac_status); } && {
20552 test -z "$ac_c_werror_flag" ||
20553 test ! -s conftest.err
20554 } && test -s conftest$ac_exeext &&
20555 $as_test_x conftest$ac_exeext; then
20556 ac_cv_lib_des425_des_cbc_encrypt=yes
20558 echo "$as_me: failed program was
:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ac_cv_lib_des425_des_cbc_encrypt=no
20564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20565 conftest$ac_exeext conftest.$ac_ext
20566 LIBS=$ac_check_lib_save_LIBS
20568 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20569 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20570 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20571 cat >>confdefs.h <<_ACEOF
20572 #define HAVE_LIBDES425 1
20575 LIBS="-ldes425 $LIBS"
20579 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20580 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20581 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20582 echo $ECHO_N "(cached
) $ECHO_C" >&6
20584 ac_check_lib_save_LIBS=$LIBS
20586 cat >conftest.$ac_ext <<_ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20593 /* Override any GCC internal prototype to avoid an error.
20594 Use char because int might match the return type of a GCC
20595 builtin and then its argument prototype would still apply. */
20599 char des_cbc_encrypt ();
20603 return des_cbc_encrypt ();
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_link") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest$ac_exeext &&
20625 $as_test_x conftest$ac_exeext; then
20626 ac_cv_lib_des_des_cbc_encrypt=yes
20628 echo "$as_me: failed program was
:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_lib_des_des_cbc_encrypt=no
20634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20635 conftest$ac_exeext conftest.$ac_ext
20636 LIBS=$ac_check_lib_save_LIBS
20638 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20639 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20640 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20641 cat >>confdefs.h <<_ACEOF
20642 #define HAVE_LIBDES 1
20652 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20653 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20654 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20655 echo $ECHO_N "(cached
) $ECHO_C" >&6
20657 ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lkrb4 $LIBS"
20659 cat >conftest.$ac_ext <<_ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20666 /* Override any GCC internal prototype to avoid an error.
20667 Use char because int might match the return type of a GCC
20668 builtin and then its argument prototype would still apply. */
20672 char krb_get_cred ();
20676 return krb_get_cred ();
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_link") 2>conftest.er1
20690 grep -v '^ *+' conftest.er1 >conftest.err
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest$ac_exeext &&
20698 $as_test_x conftest$ac_exeext; then
20699 ac_cv_lib_krb4_krb_get_cred=yes
20701 echo "$as_me: failed program was
:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_cv_lib_krb4_krb_get_cred=no
20707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708 conftest$ac_exeext conftest.$ac_ext
20709 LIBS=$ac_check_lib_save_LIBS
20711 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20712 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20713 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define HAVE_LIBKRB4 1
20718 LIBS="-lkrb4 $LIBS"
20722 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20723 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20724 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20725 echo $ECHO_N "(cached
) $ECHO_C" >&6
20727 ac_check_lib_save_LIBS=$LIBS
20729 cat >conftest.$ac_ext <<_ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20736 /* Override any GCC internal prototype to avoid an error.
20737 Use char because int might match the return type of a GCC
20738 builtin and then its argument prototype would still apply. */
20742 char krb_get_cred ();
20746 return krb_get_cred ();
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (ac_try="$ac_link"
20753 case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_link") 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20764 (exit $ac_status); } && {
20765 test -z "$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20767 } && test -s conftest$ac_exeext &&
20768 $as_test_x conftest$ac_exeext; then
20769 ac_cv_lib_krb_krb_get_cred=yes
20771 echo "$as_me: failed program was
:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_cv_lib_krb_krb_get_cred=no
20777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778 conftest$ac_exeext conftest.$ac_ext
20779 LIBS=$ac_check_lib_save_LIBS
20781 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20782 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20783 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define HAVE_LIBKRB 1
20796 if test "${with_kerberos5+set}" = set; then
20798 for ac_header in krb5.h
20800 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20801 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20802 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20803 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20805 echo $ECHO_N "(cached
) $ECHO_C" >&6
20807 ac_res=`eval echo '${'$as_ac_Header'}'`
20808 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20809 echo "${ECHO_T}$ac_res" >&6; }
20811 # Is the header compilable?
20812 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20813 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20814 cat >conftest.$ac_ext <<_ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 $ac_includes_default
20821 #include <$ac_header>
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_compile") 2>conftest.er1
20832 grep -v '^ *+' conftest.er1 >conftest.err
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest.$ac_objext; then
20840 ac_header_compiler=yes
20842 echo "$as_me: failed program was
:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_header_compiler=no
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20850 echo "${ECHO_T}$ac_header_compiler" >&6; }
20852 # Is the header present?
20853 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20854 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20855 cat >conftest.$ac_ext <<_ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20861 #include <$ac_header>
20863 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20871 grep -v '^ *+' conftest.er1 >conftest.err
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20875 (exit $ac_status); } >/dev/null && {
20876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20879 ac_header_preproc=yes
20881 echo "$as_me: failed program was
:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_header_preproc=no
20887 rm -f conftest.err conftest.$ac_ext
20888 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20889 echo "${ECHO_T}$ac_header_preproc" >&6; }
20891 # So? What about this header?
20892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20894 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20895 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20896 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20898 ac_header_preproc=yes
20901 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20902 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20903 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20904 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20905 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20906 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20907 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20908 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20909 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20911 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20912 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20916 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20917 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20918 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20919 echo $ECHO_N "(cached
) $ECHO_C" >&6
20921 eval "$as_ac_Header=\
$ac_header_preproc"
20923 ac_res=`eval echo '${'$as_ac_Header'}'`
20924 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20925 echo "${ECHO_T}$ac_res" >&6; }
20928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20929 cat >>confdefs.h <<_ACEOF
20930 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20939 for ac_header in des.h
20941 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20943 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20944 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20945 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20946 echo $ECHO_N "(cached
) $ECHO_C" >&6
20948 ac_res=`eval echo '${'$as_ac_Header'}'`
20949 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20950 echo "${ECHO_T}$ac_res" >&6; }
20952 # Is the header compilable?
20953 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20954 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 #include <$ac_header>
20964 rm -f conftest.$ac_objext
20965 if { (ac_try="$ac_compile"
20966 case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_compile") 2>conftest.er1
20973 grep -v '^ *+' conftest.er1 >conftest.err
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20977 (exit $ac_status); } && {
20978 test -z "$ac_c_werror_flag" ||
20979 test ! -s conftest.err
20980 } && test -s conftest.$ac_objext; then
20981 ac_header_compiler=yes
20983 echo "$as_me: failed program was
:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ac_header_compiler=no
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20991 echo "${ECHO_T}$ac_header_compiler" >&6; }
20993 # Is the header present?
20994 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20995 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include <$ac_header>
21004 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21016 (exit $ac_status); } >/dev/null && {
21017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21020 ac_header_preproc=yes
21022 echo "$as_me: failed program was
:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_header_preproc=no
21028 rm -f conftest.err conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21030 echo "${ECHO_T}$ac_header_preproc" >&6; }
21032 # So? What about this header?
21033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21035 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21036 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21037 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21039 ac_header_preproc=yes
21042 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21043 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21044 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21045 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21046 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21047 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21048 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21049 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21050 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21052 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21053 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21057 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21058 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21059 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21060 echo $ECHO_N "(cached
) $ECHO_C" >&6
21062 eval "$as_ac_Header=\
$ac_header_preproc"
21064 ac_res=`eval echo '${'$as_ac_Header'}'`
21065 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21066 echo "${ECHO_T}$ac_res" >&6; }
21069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21070 cat >>confdefs.h <<_ACEOF
21071 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21076 for ac_header in kerberosIV/des.h
21078 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21080 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21081 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21083 echo $ECHO_N "(cached
) $ECHO_C" >&6
21085 ac_res=`eval echo '${'$as_ac_Header'}'`
21086 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21087 echo "${ECHO_T}$ac_res" >&6; }
21089 # Is the header compilable?
21090 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21091 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 $ac_includes_default
21099 #include <$ac_header>
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest.$ac_objext; then
21118 ac_header_compiler=yes
21120 echo "$as_me: failed program was
:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_header_compiler=no
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21128 echo "${ECHO_T}$ac_header_compiler" >&6; }
21130 # Is the header present?
21131 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21132 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 #include <$ac_header>
21141 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21153 (exit $ac_status); } >/dev/null && {
21154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21155 test ! -s conftest.err
21157 ac_header_preproc=yes
21159 echo "$as_me: failed program was
:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_header_preproc=no
21165 rm -f conftest.err conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21167 echo "${ECHO_T}$ac_header_preproc" >&6; }
21169 # So? What about this header?
21170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21172 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21173 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21174 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21176 ac_header_preproc=yes
21179 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21180 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21181 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21182 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21183 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21184 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21185 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21186 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21187 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21189 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21190 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21194 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21195 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21196 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21197 echo $ECHO_N "(cached
) $ECHO_C" >&6
21199 eval "$as_ac_Header=\
$ac_header_preproc"
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21213 for ac_header in kerberos/des.h
21215 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21217 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21218 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21219 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21220 echo $ECHO_N "(cached
) $ECHO_C" >&6
21222 ac_res=`eval echo '${'$as_ac_Header'}'`
21223 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21224 echo "${ECHO_T}$ac_res" >&6; }
21226 # Is the header compilable?
21227 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21228 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 $ac_includes_default
21236 #include <$ac_header>
21238 rm -f conftest.$ac_objext
21239 if { (ac_try="$ac_compile"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_compile") 2>conftest.er1
21247 grep -v '^ *+' conftest.er1 >conftest.err
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21251 (exit $ac_status); } && {
21252 test -z "$ac_c_werror_flag" ||
21253 test ! -s conftest.err
21254 } && test -s conftest.$ac_objext; then
21255 ac_header_compiler=yes
21257 echo "$as_me: failed program was
:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_header_compiler=no
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21265 echo "${ECHO_T}$ac_header_compiler" >&6; }
21267 # Is the header present?
21268 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21269 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 #include <$ac_header>
21278 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21286 grep -v '^ *+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21290 (exit $ac_status); } >/dev/null && {
21291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21294 ac_header_preproc=yes
21296 echo "$as_me: failed program was
:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_header_preproc=no
21302 rm -f conftest.err conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21304 echo "${ECHO_T}$ac_header_preproc" >&6; }
21306 # So? What about this header?
21307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21309 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21310 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21311 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21313 ac_header_preproc=yes
21316 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21317 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21318 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21319 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21320 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21321 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21322 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21323 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21324 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21326 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21327 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21331 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21332 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21333 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21334 echo $ECHO_N "(cached
) $ECHO_C" >&6
21336 eval "$as_ac_Header=\
$ac_header_preproc"
21338 ac_res=`eval echo '${'$as_ac_Header'}'`
21339 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21340 echo "${ECHO_T}$ac_res" >&6; }
21343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21361 for ac_header in krb.h
21363 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21365 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21366 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21368 echo $ECHO_N "(cached
) $ECHO_C" >&6
21370 ac_res=`eval echo '${'$as_ac_Header'}'`
21371 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21372 echo "${ECHO_T}$ac_res" >&6; }
21374 # Is the header compilable?
21375 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21376 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21377 cat >conftest.$ac_ext <<_ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21383 $ac_includes_default
21384 #include <$ac_header>
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_compile") 2>conftest.er1
21395 grep -v '^ *+' conftest.er1 >conftest.err
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest.$ac_objext; then
21403 ac_header_compiler=yes
21405 echo "$as_me: failed program was
:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_header_compiler=no
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21413 echo "${ECHO_T}$ac_header_compiler" >&6; }
21415 # Is the header present?
21416 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21417 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 #include <$ac_header>
21426 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21434 grep -v '^ *+' conftest.er1 >conftest.err
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21438 (exit $ac_status); } >/dev/null && {
21439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21442 ac_header_preproc=yes
21444 echo "$as_me: failed program was
:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_header_preproc=no
21450 rm -f conftest.err conftest.$ac_ext
21451 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21452 echo "${ECHO_T}$ac_header_preproc" >&6; }
21454 # So? What about this header?
21455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21457 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21458 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21459 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21461 ac_header_preproc=yes
21464 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21465 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21466 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21467 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21468 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21469 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21470 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21471 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21472 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21474 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21475 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21479 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21480 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21481 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21482 echo $ECHO_N "(cached
) $ECHO_C" >&6
21484 eval "$as_ac_Header=\
$ac_header_preproc"
21486 ac_res=`eval echo '${'$as_ac_Header'}'`
21487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21488 echo "${ECHO_T}$ac_res" >&6; }
21491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21492 cat >>confdefs.h <<_ACEOF
21493 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21498 for ac_header in kerberosIV/krb.h
21500 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21501 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21502 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21503 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21505 echo $ECHO_N "(cached
) $ECHO_C" >&6
21507 ac_res=`eval echo '${'$as_ac_Header'}'`
21508 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21509 echo "${ECHO_T}$ac_res" >&6; }
21511 # Is the header compilable?
21512 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21513 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21514 cat >conftest.$ac_ext <<_ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 $ac_includes_default
21521 #include <$ac_header>
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1 >conftest.err
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
21540 ac_header_compiler=yes
21542 echo "$as_me: failed program was
:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21545 ac_header_compiler=no
21548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21549 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21550 echo "${ECHO_T}$ac_header_compiler" >&6; }
21552 # Is the header present?
21553 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21554 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 #include <$ac_header>
21563 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21571 grep -v '^ *+' conftest.er1 >conftest.err
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21575 (exit $ac_status); } >/dev/null && {
21576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21579 ac_header_preproc=yes
21581 echo "$as_me: failed program was
:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_header_preproc=no
21587 rm -f conftest.err conftest.$ac_ext
21588 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21589 echo "${ECHO_T}$ac_header_preproc" >&6; }
21591 # So? What about this header?
21592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21594 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21595 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21596 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21598 ac_header_preproc=yes
21601 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21602 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21603 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21604 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21605 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21606 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21607 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21608 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21609 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21611 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21612 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21616 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21617 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21618 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21619 echo $ECHO_N "(cached
) $ECHO_C" >&6
21621 eval "$as_ac_Header=\
$ac_header_preproc"
21623 ac_res=`eval echo '${'$as_ac_Header'}'`
21624 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21625 echo "${ECHO_T}$ac_res" >&6; }
21628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21629 cat >>confdefs.h <<_ACEOF
21630 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21635 for ac_header in kerberos/krb.h
21637 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21639 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21640 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21641 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21642 echo $ECHO_N "(cached
) $ECHO_C" >&6
21644 ac_res=`eval echo '${'$as_ac_Header'}'`
21645 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21646 echo "${ECHO_T}$ac_res" >&6; }
21648 # Is the header compilable?
21649 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21650 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 $ac_includes_default
21658 #include <$ac_header>
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21669 grep -v '^ *+' conftest.er1 >conftest.err
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.$ac_objext; then
21677 ac_header_compiler=yes
21679 echo "$as_me: failed program was
:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ac_header_compiler=no
21685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21687 echo "${ECHO_T}$ac_header_compiler" >&6; }
21689 # Is the header present?
21690 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21691 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21692 cat >conftest.$ac_ext <<_ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <$ac_header>
21700 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21712 (exit $ac_status); } >/dev/null && {
21713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21716 ac_header_preproc=yes
21718 echo "$as_me: failed program was
:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_header_preproc=no
21724 rm -f conftest.err conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21726 echo "${ECHO_T}$ac_header_preproc" >&6; }
21728 # So? What about this header?
21729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21731 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21732 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21733 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21735 ac_header_preproc=yes
21738 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21739 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21740 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21741 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21742 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21743 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21744 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21745 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21746 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21748 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21749 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21753 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21754 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21755 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21756 echo $ECHO_N "(cached
) $ECHO_C" >&6
21758 eval "$as_ac_Header=\
$ac_header_preproc"
21760 ac_res=`eval echo '${'$as_ac_Header'}'`
21761 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21762 echo "${ECHO_T}$ac_res" >&6; }
21765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21766 cat >>confdefs.h <<_ACEOF
21767 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21784 for ac_header in com_err.h
21786 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21788 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21789 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21790 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21791 echo $ECHO_N "(cached
) $ECHO_C" >&6
21793 ac_res=`eval echo '${'$as_ac_Header'}'`
21794 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21795 echo "${ECHO_T}$ac_res" >&6; }
21797 # Is the header compilable?
21798 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21799 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21800 cat >conftest.$ac_ext <<_ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21806 $ac_includes_default
21807 #include <$ac_header>
21809 rm -f conftest.$ac_objext
21810 if { (ac_try="$ac_compile"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_compile") 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_c_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest.$ac_objext; then
21826 ac_header_compiler=yes
21828 echo "$as_me: failed program was
:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ac_header_compiler=no
21834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21836 echo "${ECHO_T}$ac_header_compiler" >&6; }
21838 # Is the header present?
21839 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21840 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 #include <$ac_header>
21849 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21857 grep -v '^ *+' conftest.er1 >conftest.err
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21861 (exit $ac_status); } >/dev/null && {
21862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21865 ac_header_preproc=yes
21867 echo "$as_me: failed program was
:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_header_preproc=no
21873 rm -f conftest.err conftest.$ac_ext
21874 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21875 echo "${ECHO_T}$ac_header_preproc" >&6; }
21877 # So? What about this header?
21878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21880 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21881 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21882 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21884 ac_header_preproc=yes
21887 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21888 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21889 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21890 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21891 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21892 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21893 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21894 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21895 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21897 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21898 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21902 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21903 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21904 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21905 echo $ECHO_N "(cached
) $ECHO_C" >&6
21907 eval "$as_ac_Header=\
$ac_header_preproc"
21909 ac_res=`eval echo '${'$as_ac_Header'}'`
21910 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21911 echo "${ECHO_T}$ac_res" >&6; }
21914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21915 cat >>confdefs.h <<_ACEOF
21916 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21925 # Solaris requires -lintl if you want strerror (which calls dgettext)
21926 # to return localized messages.
21928 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21929 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21930 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21931 echo $ECHO_N "(cached
) $ECHO_C" >&6
21933 ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-lintl $LIBS"
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21942 /* Override any GCC internal prototype to avoid an error.
21943 Use char because int might match the return type of a GCC
21944 builtin and then its argument prototype would still apply. */
21952 return dgettext ();
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_link") 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21970 (exit $ac_status); } && {
21971 test -z "$ac_c_werror_flag" ||
21972 test ! -s conftest.err
21973 } && test -s conftest$ac_exeext &&
21974 $as_test_x conftest$ac_exeext; then
21975 ac_cv_lib_intl_dgettext=yes
21977 echo "$as_me: failed program was
:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_cv_lib_intl_dgettext=no
21983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21984 conftest$ac_exeext conftest.$ac_ext
21985 LIBS=$ac_check_lib_save_LIBS
21987 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21988 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21989 if test $ac_cv_lib_intl_dgettext = yes; then
21990 cat >>confdefs.h <<_ACEOF
21991 #define HAVE_LIBINTL 1
21994 LIBS="-lintl $LIBS"
21999 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22000 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22001 if test "${emacs_cv_localtime_cache+set}" = set; then
22002 echo $ECHO_N "(cached
) $ECHO_C" >&6
22004 if test x$ac_cv_func_tzset = xyes; then
22005 if test "$cross_compiling" = yes; then
22006 # If we have tzset, assume the worst when cross-compiling.
22007 emacs_cv_localtime_cache=yes
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 extern char **environ;
22020 for (to = from = environ; (*to = *from); from++)
22021 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22024 char TZ_GMT0[] = "TZ
=GMT0
";
22025 char TZ_PST8[] = "TZ
=PST8
";
22028 time_t now = time ((time_t *) 0);
22029 int hour_GMT0, hour_unset;
22030 if (putenv (TZ_GMT0) != 0)
22032 hour_GMT0 = localtime (&now)->tm_hour;
22034 hour_unset = localtime (&now)->tm_hour;
22035 if (putenv (TZ_PST8) != 0)
22037 if (localtime (&now)->tm_hour == hour_GMT0)
22040 if (localtime (&now)->tm_hour != hour_unset)
22045 rm -f conftest$ac_exeext
22046 if { (ac_try="$ac_link"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_link") 2>&5
22054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22064 (exit $ac_status); }; }; then
22065 emacs_cv_localtime_cache=no
22067 echo "$as_me: program exited with status
$ac_status" >&5
22068 echo "$as_me: failed program was
:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ( exit $ac_status )
22072 emacs_cv_localtime_cache=yes
22074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22079 # If we lack tzset, report that localtime does not cache TZ,
22080 # since we can't invalidate the cache if we don't have tzset.
22081 emacs_cv_localtime_cache=no
22084 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22085 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22086 if test $emacs_cv_localtime_cache = yes; then
22088 cat >>confdefs.h <<\_ACEOF
22089 #define LOCALTIME_CACHE 1
22094 if test "x
$HAVE_TIMEVAL" = xyes; then
22096 for ac_func in gettimeofday
22098 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22099 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22100 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22101 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22102 echo $ECHO_N "(cached
) $ECHO_C" >&6
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22112 #define $ac_func innocuous_$ac_func
22114 /* System header to define __stub macros and hopefully few prototypes,
22115 which can conflict with char $ac_func (); below.
22116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22117 <limits.h> exists even on freestanding compilers. */
22120 # include <limits.h>
22122 # include <assert.h>
22127 /* Override any GCC internal prototype to avoid an error.
22128 Use char because int might match the return type of a GCC
22129 builtin and then its argument prototype would still apply. */
22134 /* The GNU C library defines this for functions which it implements
22135 to always fail with ENOSYS. Some functions are actually named
22136 something starting with __ and the normal name is an alias. */
22137 #if defined __stub_$ac_func || defined __stub___$ac_func
22144 return $ac_func ();
22149 rm -f conftest.$ac_objext conftest$ac_exeext
22150 if { (ac_try="$ac_link"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_link") 2>conftest.er1
22158 grep -v '^ *+' conftest.er1 >conftest.err
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest$ac_exeext &&
22166 $as_test_x conftest$ac_exeext; then
22167 eval "$as_ac_var=yes"
22169 echo "$as_me: failed program was
:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 eval "$as_ac_var=no
"
22175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22176 conftest$ac_exeext conftest.$ac_ext
22178 ac_res=`eval echo '${'$as_ac_var'}'`
22179 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22180 echo "${ECHO_T}$ac_res" >&6; }
22181 if test `eval echo '${'$as_ac_var'}'` = yes; then
22182 cat >>confdefs.h <<_ACEOF
22183 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22189 if test $ac_cv_func_gettimeofday = yes; then
22190 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22191 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22192 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22193 echo $ECHO_N "(cached
) $ECHO_C" >&6
22195 cat >conftest.$ac_ext <<_ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22202 #ifdef TIME_WITH_SYS_TIME
22203 #include <sys/time.h>
22206 #ifdef HAVE_SYS_TIME_H
22207 #include <sys/time.h>
22215 struct timeval time;
22216 gettimeofday (&time, 0);
22221 rm -f conftest.$ac_objext
22222 if { (ac_try="$ac_compile"
22223 case "(($ac_try" in
22224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225 *) ac_try_echo=$ac_try;;
22227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22228 (eval "$ac_compile") 2>conftest.er1
22230 grep -v '^ *+' conftest.er1 >conftest.err
22232 cat conftest.err >&5
22233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest.$ac_objext; then
22238 emacs_cv_gettimeofday_two_arguments=yes
22240 echo "$as_me: failed program was
:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 emacs_cv_gettimeofday_two_arguments=no
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22249 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22250 if test $emacs_cv_gettimeofday_two_arguments = no; then
22252 cat >>confdefs.h <<\_ACEOF
22253 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22261 { echo "$as_me:$LINENO: checking
for socket
" >&5
22262 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22263 if test "${ac_cv_func_socket+set}" = set; then
22264 echo $ECHO_N "(cached
) $ECHO_C" >&6
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22274 #define socket innocuous_socket
22276 /* System header to define __stub macros and hopefully few prototypes,
22277 which can conflict with char socket (); below.
22278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22279 <limits.h> exists even on freestanding compilers. */
22282 # include <limits.h>
22284 # include <assert.h>
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22296 /* The GNU C library defines this for functions which it implements
22297 to always fail with ENOSYS. Some functions are actually named
22298 something starting with __ and the normal name is an alias. */
22299 #if defined __stub_socket || defined __stub___socket
22311 rm -f conftest.$ac_objext conftest$ac_exeext
22312 if { (ac_try="$ac_link"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_link") 2>conftest.er1
22320 grep -v '^ *+' conftest.er1 >conftest.err
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest$ac_exeext &&
22328 $as_test_x conftest$ac_exeext; then
22329 ac_cv_func_socket=yes
22331 echo "$as_me: failed program was
:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22334 ac_cv_func_socket=no
22337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22338 conftest$ac_exeext conftest.$ac_ext
22340 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22341 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22342 if test $ac_cv_func_socket = yes; then
22348 if test $ok_so_far = yes; then
22349 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22350 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22351 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22352 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22353 echo $ECHO_N "(cached
) $ECHO_C" >&6
22355 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22356 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22358 # Is the header compilable?
22359 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22360 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22361 cat >conftest.$ac_ext <<_ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22367 $ac_includes_default
22368 #include <netinet/in.h>
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_compile") 2>conftest.er1
22379 grep -v '^ *+' conftest.er1 >conftest.err
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22383 (exit $ac_status); } && {
22384 test -z "$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 } && test -s conftest.$ac_objext; then
22387 ac_header_compiler=yes
22389 echo "$as_me: failed program was
:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 ac_header_compiler=no
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22397 echo "${ECHO_T}$ac_header_compiler" >&6; }
22399 # Is the header present?
22400 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22401 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22402 cat >conftest.$ac_ext <<_ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h. */
22408 #include <netinet/in.h>
22410 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22418 grep -v '^ *+' conftest.er1 >conftest.err
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22422 (exit $ac_status); } >/dev/null && {
22423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22426 ac_header_preproc=yes
22428 echo "$as_me: failed program was
:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 ac_header_preproc=no
22434 rm -f conftest.err conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22436 echo "${ECHO_T}$ac_header_preproc" >&6; }
22438 # So? What about this header?
22439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22441 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22442 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22443 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22444 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22445 ac_header_preproc=yes
22448 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22449 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22450 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22451 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22452 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22453 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22454 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22455 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22456 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22457 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22458 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22459 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22463 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22464 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22465 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22466 echo $ECHO_N "(cached
) $ECHO_C" >&6
22468 ac_cv_header_netinet_in_h=$ac_header_preproc
22470 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22471 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22474 if test $ac_cv_header_netinet_in_h = yes; then
22482 if test $ok_so_far = yes; then
22483 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22484 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22485 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22486 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22487 echo $ECHO_N "(cached
) $ECHO_C" >&6
22489 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22490 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22492 # Is the header compilable?
22493 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22494 echo $ECHO_N "checking arpa
/inet.h usability...
$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 $ac_includes_default
22502 #include <arpa/inet.h>
22504 rm -f conftest.$ac_objext
22505 if { (ac_try="$ac_compile"
22506 case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_compile") 2>conftest.er1
22513 grep -v '^ *+' conftest.er1 >conftest.err
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22517 (exit $ac_status); } && {
22518 test -z "$ac_c_werror_flag" ||
22519 test ! -s conftest.err
22520 } && test -s conftest.$ac_objext; then
22521 ac_header_compiler=yes
22523 echo "$as_me: failed program was
:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22526 ac_header_compiler=no
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22531 echo "${ECHO_T}$ac_header_compiler" >&6; }
22533 # Is the header present?
22534 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22535 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include <arpa/inet.h>
22544 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22552 grep -v '^ *+' conftest.er1 >conftest.err
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22556 (exit $ac_status); } >/dev/null && {
22557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22560 ac_header_preproc=yes
22562 echo "$as_me: failed program was
:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_header_preproc=no
22568 rm -f conftest.err conftest.$ac_ext
22569 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22570 echo "${ECHO_T}$ac_header_preproc" >&6; }
22572 # So? What about this header?
22573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22575 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22576 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22577 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22578 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22579 ac_header_preproc=yes
22582 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22583 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22584 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22585 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22586 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22587 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22588 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22589 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22590 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22591 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22592 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22593 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22597 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22598 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22599 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22600 echo $ECHO_N "(cached
) $ECHO_C" >&6
22602 ac_cv_header_arpa_inet_h=$ac_header_preproc
22604 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22605 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22608 if test $ac_cv_header_arpa_inet_h = yes; then
22616 if test $ok_so_far = yes; then
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_INET_SOCKETS 1
22625 for ac_header in sys/ioctl.h
22627 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22628 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22629 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22630 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22631 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22632 echo $ECHO_N "(cached
) $ECHO_C" >&6
22634 ac_res=`eval echo '${'$as_ac_Header'}'`
22635 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22636 echo "${ECHO_T}$ac_res" >&6; }
22638 # Is the header compilable?
22639 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22640 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22641 cat >conftest.$ac_ext <<_ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 $ac_includes_default
22648 #include <$ac_header>
22650 rm -f conftest.$ac_objext
22651 if { (ac_try="$ac_compile"
22652 case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_compile") 2>conftest.er1
22659 grep -v '^ *+' conftest.er1 >conftest.err
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22663 (exit $ac_status); } && {
22664 test -z "$ac_c_werror_flag" ||
22665 test ! -s conftest.err
22666 } && test -s conftest.$ac_objext; then
22667 ac_header_compiler=yes
22669 echo "$as_me: failed program was
:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ac_header_compiler=no
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22677 echo "${ECHO_T}$ac_header_compiler" >&6; }
22679 # Is the header present?
22680 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22681 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 #include <$ac_header>
22690 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22702 (exit $ac_status); } >/dev/null && {
22703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22706 ac_header_preproc=yes
22708 echo "$as_me: failed program was
:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 ac_header_preproc=no
22714 rm -f conftest.err conftest.$ac_ext
22715 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22716 echo "${ECHO_T}$ac_header_preproc" >&6; }
22718 # So? What about this header?
22719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22721 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22722 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22723 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22725 ac_header_preproc=yes
22728 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22729 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22730 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22731 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22732 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22733 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22734 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22735 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22736 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22738 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22739 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22743 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22744 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22745 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22746 echo $ECHO_N "(cached
) $ECHO_C" >&6
22748 eval "$as_ac_Header=\
$ac_header_preproc"
22750 ac_res=`eval echo '${'$as_ac_Header'}'`
22751 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22752 echo "${ECHO_T}$ac_res" >&6; }
22755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22756 cat >>confdefs.h <<_ACEOF
22757 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22765 if test -f /usr/lpp/X11/bin/smt.exp; then
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_AIX_SMT_EXP 1
22773 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22774 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22775 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22776 { echo "$as_me:$LINENO: result
: yes" >&5
22777 echo "${ECHO_T}yes" >&6; }
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_DEV_PTMX 1
22784 { echo "$as_me:$LINENO: result
: no
" >&5
22785 echo "${ECHO_T}no
" >&6; }
22788 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22789 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22790 if test "${ac_cv_type_pid_t+set}" = set; then
22791 echo $ECHO_N "(cached
) $ECHO_C" >&6
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 $ac_includes_default
22800 typedef pid_t ac__type_new_;
22804 if ((ac__type_new_ *) 0)
22806 if (sizeof (ac__type_new_))
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 ac_cv_type_pid_t=yes
22831 echo "$as_me: failed program was
:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_cv_type_pid_t=no
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22840 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22841 if test $ac_cv_type_pid_t = yes; then
22845 cat >>confdefs.h <<_ACEOF
22852 for ac_header in vfork.h
22854 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22855 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22856 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22857 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22859 echo $ECHO_N "(cached
) $ECHO_C" >&6
22861 ac_res=`eval echo '${'$as_ac_Header'}'`
22862 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22863 echo "${ECHO_T}$ac_res" >&6; }
22865 # Is the header compilable?
22866 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22867 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22868 cat >conftest.$ac_ext <<_ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h. */
22874 $ac_includes_default
22875 #include <$ac_header>
22877 rm -f conftest.$ac_objext
22878 if { (ac_try="$ac_compile"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22886 grep -v '^ *+' conftest.er1 >conftest.err
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.$ac_objext; then
22894 ac_header_compiler=yes
22896 echo "$as_me: failed program was
:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_header_compiler=no
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22904 echo "${ECHO_T}$ac_header_compiler" >&6; }
22906 # Is the header present?
22907 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22908 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22909 cat >conftest.$ac_ext <<_ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 #include <$ac_header>
22917 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22929 (exit $ac_status); } >/dev/null && {
22930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22933 ac_header_preproc=yes
22935 echo "$as_me: failed program was
:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_header_preproc=no
22941 rm -f conftest.err conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22943 echo "${ECHO_T}$ac_header_preproc" >&6; }
22945 # So? What about this header?
22946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22948 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22949 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22950 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22952 ac_header_preproc=yes
22955 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22956 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22957 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22958 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22959 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22960 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22961 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22962 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22963 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22965 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22966 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22970 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22971 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22973 echo $ECHO_N "(cached
) $ECHO_C" >&6
22975 eval "$as_ac_Header=\
$ac_header_preproc"
22977 ac_res=`eval echo '${'$as_ac_Header'}'`
22978 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22979 echo "${ECHO_T}$ac_res" >&6; }
22982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22983 cat >>confdefs.h <<_ACEOF
22984 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22993 for ac_func in fork vfork
22995 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22996 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22997 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22998 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22999 echo $ECHO_N "(cached
) $ECHO_C" >&6
23001 cat >conftest.$ac_ext <<_ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23009 #define $ac_func innocuous_$ac_func
23011 /* System header to define __stub macros and hopefully few prototypes,
23012 which can conflict with char $ac_func (); below.
23013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23014 <limits.h> exists even on freestanding compilers. */
23017 # include <limits.h>
23019 # include <assert.h>
23024 /* Override any GCC internal prototype to avoid an error.
23025 Use char because int might match the return type of a GCC
23026 builtin and then its argument prototype would still apply. */
23031 /* The GNU C library defines this for functions which it implements
23032 to always fail with ENOSYS. Some functions are actually named
23033 something starting with __ and the normal name is an alias. */
23034 #if defined __stub_$ac_func || defined __stub___$ac_func
23041 return $ac_func ();
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_link") 2>conftest.er1
23055 grep -v '^ *+' conftest.er1 >conftest.err
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest$ac_exeext &&
23063 $as_test_x conftest$ac_exeext; then
23064 eval "$as_ac_var=yes"
23066 echo "$as_me: failed program was
:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 eval "$as_ac_var=no
"
23072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23073 conftest$ac_exeext conftest.$ac_ext
23075 ac_res=`eval echo '${'$as_ac_var'}'`
23076 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23077 echo "${ECHO_T}$ac_res" >&6; }
23078 if test `eval echo '${'$as_ac_var'}'` = yes; then
23079 cat >>confdefs.h <<_ACEOF
23080 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23086 if test "x
$ac_cv_func_fork" = xyes; then
23087 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23088 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23089 if test "${ac_cv_func_fork_works+set}" = set; then
23090 echo $ECHO_N "(cached
) $ECHO_C" >&6
23092 if test "$cross_compiling" = yes; then
23093 ac_cv_func_fork_works=cross
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23106 /* By Ruediger Kuhlmann. */
23107 return fork () < 0;
23113 rm -f conftest$ac_exeext
23114 if { (ac_try="$ac_link"
23115 case "(($ac_try" in
23116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117 *) ac_try_echo=$ac_try;;
23119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23120 (eval "$ac_link") 2>&5
23122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23124 { (case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_try") 2>&5
23131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 ac_cv_func_fork_works=yes
23135 echo "$as_me: program exited with status
$ac_status" >&5
23136 echo "$as_me: failed program was
:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ( exit $ac_status )
23140 ac_cv_func_fork_works=no
23142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23148 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23151 ac_cv_func_fork_works=$ac_cv_func_fork
23153 if test "x
$ac_cv_func_fork_works" = xcross; then
23155 *-*-amigaos* | *-*-msdosdjgpp*)
23156 # Override, as these systems have only a dummy fork() stub
23157 ac_cv_func_fork_works=no
23160 ac_cv_func_fork_works=yes
23163 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23164 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23166 ac_cv_func_vfork_works=$ac_cv_func_vfork
23167 if test "x
$ac_cv_func_vfork" = xyes; then
23168 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23169 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23170 if test "${ac_cv_func_vfork_works+set}" = set; then
23171 echo $ECHO_N "(cached
) $ECHO_C" >&6
23173 if test "$cross_compiling" = yes; then
23174 ac_cv_func_vfork_works=cross
23176 cat >conftest.$ac_ext <<_ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h. */
23182 /* Thanks to Paul Eggert for this test. */
23183 $ac_includes_default
23184 #include <sys/wait.h>
23185 #ifdef HAVE_VFORK_H
23186 # include <vfork.h>
23188 /* On some sparc systems, changes by the child to local and incoming
23189 argument registers are propagated back to the parent. The compiler
23190 is told about this with #include <vfork.h>, but some compilers
23191 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23192 static variable whose address is put into a register that is
23193 clobbered by the vfork. */
23196 sparc_address_test (int arg)
23198 sparc_address_test (arg) int arg;
23201 static pid_t child;
23219 pid_t parent = getpid ();
23222 sparc_address_test (0);
23227 /* Here is another test for sparc vfork register problems. This
23228 test uses lots of local variables, at least as many local
23229 variables as main has allocated so far including compiler
23230 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23231 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23232 reuse the register of parent for one of the local variables,
23233 since it will think that parent can't possibly be used any more
23234 in this routine. Assigning to the local variable will thus
23235 munge parent in the parent process. */
23237 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23238 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23239 /* Convince the compiler that p..p7 are live; otherwise, it might
23240 use the same hardware register for all 8 local variables. */
23241 if (p != p1 || p != p2 || p != p3 || p != p4
23242 || p != p5 || p != p6 || p != p7)
23245 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23246 from child file descriptors. If the child closes a descriptor
23247 before it execs or exits, this munges the parent's descriptor
23248 as well. Test for this by closing stdout in the child. */
23249 _exit(close(fileno(stdout)) != 0);
23254 while (wait(&status) != child)
23257 /* Was there some problem with vforking? */
23260 /* Did the child fail? (This shouldn't happen.) */
23263 /* Did the vfork/compiler bug occur? */
23264 || parent != getpid()
23266 /* Did the file descriptor bug occur? */
23267 || fstat(fileno(stdout), &st) != 0
23272 rm -f conftest$ac_exeext
23273 if { (ac_try="$ac_link"
23274 case "(($ac_try" in
23275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276 *) ac_try_echo=$ac_try;;
23278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23279 (eval "$ac_link") 2>&5
23281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23283 { (case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23288 (eval "$ac_try") 2>&5
23290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23291 (exit $ac_status); }; }; then
23292 ac_cv_func_vfork_works=yes
23294 echo "$as_me: program exited with status
$ac_status" >&5
23295 echo "$as_me: failed program was
:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ( exit $ac_status )
23299 ac_cv_func_vfork_works=no
23301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23306 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23307 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23310 if test "x
$ac_cv_func_fork_works" = xcross; then
23311 ac_cv_func_vfork_works=$ac_cv_func_vfork
23312 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23313 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23316 if test "x
$ac_cv_func_vfork_works" = xyes; then
23318 cat >>confdefs.h <<\_ACEOF
23319 #define HAVE_WORKING_VFORK 1
23324 cat >>confdefs.h <<\_ACEOF
23329 if test "x
$ac_cv_func_fork_works" = xyes; then
23331 cat >>confdefs.h <<\_ACEOF
23332 #define HAVE_WORKING_FORK 1
23338 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23339 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23340 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23341 echo $ECHO_N "(cached
) $ECHO_C" >&6
23343 cat >conftest.$ac_ext <<_ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 #include <langinfo.h>
23353 char* cs = nl_langinfo(CODESET);
23358 rm -f conftest.$ac_objext conftest$ac_exeext
23359 if { (ac_try="$ac_link"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_link") 2>conftest.er1
23367 grep -v '^ *+' conftest.er1 >conftest.err
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23371 (exit $ac_status); } && {
23372 test -z "$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 } && test -s conftest$ac_exeext &&
23375 $as_test_x conftest$ac_exeext; then
23376 emacs_cv_langinfo_codeset=yes
23378 echo "$as_me: failed program was
:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23381 emacs_cv_langinfo_codeset=no
23384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23385 conftest$ac_exeext conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23389 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23390 if test $emacs_cv_langinfo_codeset = yes; then
23392 cat >>confdefs.h <<\_ACEOF
23393 #define HAVE_LANGINFO_CODESET 1
23398 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23399 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23400 if test "${ac_cv_type_size_t+set}" = set; then
23401 echo $ECHO_N "(cached
) $ECHO_C" >&6
23403 cat >conftest.$ac_ext <<_ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 $ac_includes_default
23410 typedef size_t ac__type_new_;
23414 if ((ac__type_new_ *) 0)
23416 if (sizeof (ac__type_new_))
23422 rm -f conftest.$ac_objext
23423 if { (ac_try="$ac_compile"
23424 case "(($ac_try" in
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426 *) ac_try_echo=$ac_try;;
23428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23429 (eval "$ac_compile") 2>conftest.er1
23431 grep -v '^ *+' conftest.er1 >conftest.err
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23435 (exit $ac_status); } && {
23436 test -z "$ac_c_werror_flag" ||
23437 test ! -s conftest.err
23438 } && test -s conftest.$ac_objext; then
23439 ac_cv_type_size_t=yes
23441 echo "$as_me: failed program was
:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 ac_cv_type_size_t=no
23447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23449 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23450 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23451 if test $ac_cv_type_size_t = yes; then
23453 cat >>confdefs.h <<_ACEOF
23454 #define HAVE_SIZE_T 1
23461 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23462 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23463 if test "${ac_cv_type_mbstate_t+set}" = set; then
23464 echo $ECHO_N "(cached
) $ECHO_C" >&6
23466 cat >conftest.$ac_ext <<_ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 $ac_includes_default
23473 # include <wchar.h>
23477 mbstate_t x; return sizeof x;
23482 rm -f conftest.$ac_objext
23483 if { (ac_try="$ac_compile"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23489 (eval "$ac_compile") 2>conftest.er1
23491 grep -v '^ *+' conftest.er1 >conftest.err
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23495 (exit $ac_status); } && {
23496 test -z "$ac_c_werror_flag" ||
23497 test ! -s conftest.err
23498 } && test -s conftest.$ac_objext; then
23499 ac_cv_type_mbstate_t=yes
23501 echo "$as_me: failed program was
:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23504 ac_cv_type_mbstate_t=no
23507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23510 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23511 if test $ac_cv_type_mbstate_t = yes; then
23513 cat >>confdefs.h <<\_ACEOF
23514 #define HAVE_MBSTATE_T 1
23519 cat >>confdefs.h <<\_ACEOF
23520 #define mbstate_t int
23525 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23526 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23527 if test "${emacs_cv_c_restrict+set}" = set; then
23528 echo $ECHO_N "(cached
) $ECHO_C" >&6
23530 cat >conftest.$ac_ext <<_ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23536 void fred (int *restrict x);
23545 rm -f conftest.$ac_objext
23546 if { (ac_try="$ac_compile"
23547 case "(($ac_try" in
23548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549 *) ac_try_echo=$ac_try;;
23551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23552 (eval "$ac_compile") 2>conftest.er1
23554 grep -v '^ *+' conftest.er1 >conftest.err
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest.$ac_objext; then
23562 emacs_cv_c_restrict=yes
23564 echo "$as_me: failed program was
:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 cat >conftest.$ac_ext <<_ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h. */
23573 void fred (int *__restrict x);
23582 rm -f conftest.$ac_objext
23583 if { (ac_try="$ac_compile"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23589 (eval "$ac_compile") 2>conftest.er1
23591 grep -v '^ *+' conftest.er1 >conftest.err
23593 cat conftest.err >&5
23594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23595 (exit $ac_status); } && {
23596 test -z "$ac_c_werror_flag" ||
23597 test ! -s conftest.err
23598 } && test -s conftest.$ac_objext; then
23599 emacs_cv_c_restrict=__restrict
23601 echo "$as_me: failed program was
:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 emacs_cv_c_restrict=no
23607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23613 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23614 case "$emacs_cv_c_restrict" in
23615 yes) emacs_restrict=restrict;;
23616 no) emacs_restrict="";;
23617 *) emacs_restrict="$emacs_cv_c_restrict";;
23619 if test "$emacs_restrict" != __restrict; then
23621 cat >>confdefs.h <<_ACEOF
23622 #define __restrict $emacs_restrict
23627 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23628 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23629 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23630 echo $ECHO_N "(cached
) $ECHO_C" >&6
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 void fred (int x[__restrict]);
23647 rm -f conftest.$ac_objext
23648 if { (ac_try="$ac_compile"
23649 case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23654 (eval "$ac_compile") 2>conftest.er1
23656 grep -v '^ *+' conftest.er1 >conftest.err
23658 cat conftest.err >&5
23659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23660 (exit $ac_status); } && {
23661 test -z "$ac_c_werror_flag" ||
23662 test ! -s conftest.err
23663 } && test -s conftest.$ac_objext; then
23664 emacs_cv_c_restrict_arr=yes
23666 echo "$as_me: failed program was
:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 emacs_cv_c_restrict_arr=no
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23674 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23675 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23676 if test "$emacs_cv_c_restrict_arr" = yes; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define __restrict_arr __restrict
23686 # Set up the CFLAGS for real compilation, so we can substitute it.
23687 CFLAGS="$REAL_CFLAGS"
23688 CPPFLAGS="$REAL_CPPFLAGS"
23690 #### Find out which version of Emacs this is.
23691 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23692 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23693 if test x"${version}" = x; then
23694 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23695 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23696 { (exit 1); exit 1; }; }
23699 ### Specify what sort of things we'll be editing into Makefile and config.h.
23700 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23736 cat >>confdefs.h <<_ACEOF
23737 #define EMACS_CONFIGURATION "${canonical}"
23741 cat >>confdefs.h <<_ACEOF
23742 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23746 cat >>confdefs.h <<_ACEOF
23747 #define config_machfile "${machfile}"
23751 cat >>confdefs.h <<_ACEOF
23752 #define config_opsysfile "${opsysfile}"
23756 cat >>confdefs.h <<_ACEOF
23757 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23761 cat >>confdefs.h <<_ACEOF
23762 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23766 cat >>confdefs.h <<_ACEOF
23767 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23771 cat >>confdefs.h <<_ACEOF
23772 #define UNEXEC_SRC ${UNEXEC_SRC}
23776 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23778 cat >>confdefs.h <<\_ACEOF
23779 #define HAVE_X_WINDOWS 1
23783 if test "${USE_X_TOOLKIT}" != "none
" ; then
23785 cat >>confdefs.h <<\_ACEOF
23786 #define USE_X_TOOLKIT 1
23790 if test "${HAVE_X11}" = "yes" ; then
23792 cat >>confdefs.h <<\_ACEOF
23797 if test "${HAVE_MENUS}" = "yes" ; then
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_MENUS 1
23804 if test "${GNU_MALLOC}" = "yes" ; then
23806 cat >>confdefs.h <<\_ACEOF
23807 #define GNU_MALLOC 1
23811 if test "${REL_ALLOC}" = "yes" ; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define REL_ALLOC 1
23824 #### Report on what we decided to do.
23825 #### Report GTK as a toolkit, even if it doesn't use Xt.
23826 #### It makes printing result more understandable as using GTK sets
23827 #### toolkit_scroll_bars to yes by default.
23828 if test "${HAVE_GTK}" = "yes"; then
23833 Configured
for \
`${canonical}'.
23835 Where should the build process find the source code? ${srcdir}
23836 What operating system and machine description files should Emacs use?
23837 \`${opsysfile}' and \`${machfile}'
23838 What compiler should emacs be built with?
${CC} ${CFLAGS}
23839 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23840 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23841 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23842 What window system should Emacs use?
${window_system}
23843 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23845 if test -n "${x_includes}"; then
23846 echo " Where
do we
find X Windows header files?
${x_includes}"
23848 echo " Where
do we
find X Windows header files? Standard
dirs"
23850 if test -n "${x_libraries}"; then
23851 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23853 echo " Where
do we
find X Windows libraries? Standard
dirs"
23856 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23857 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23858 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23859 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23860 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23861 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23862 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23863 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23864 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23865 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23867 if test "${USE_FONT_BACKEND}" = "yes"; then
23868 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23869 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23870 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23871 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23873 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23876 if test $USE_XASSERTS = yes; then
23877 echo " Compiling with asserts turned on.
"
23878 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23882 if test "$USE_X_TOOLKIT" = GTK; then
23883 case "$canonical" in
23885 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23886 will probably get a crash on startup. If this happens
, please use another
23887 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23893 if test "$HAVE_CARBON" = "yes"; then
23895 echo "Warning
: The Mac Carbon port is currently unsupported and has
23896 known problems. It is not recommended
for use by non-developers.
23897 Read the emacs-devel archives
for more information.
"
23901 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23902 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23907 # Remove any trailing slashes in these variables.
23908 test "${prefix}" != NONE &&
23909 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23910 test "${exec_prefix}" != NONE &&
23911 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23913 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23914 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23915 ## from Makefile.c can correctly provide the arg `-traditional' to the
23918 cat >conftest.$ac_ext <<_ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23926 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23927 $EGREP "yes..
yes" >/dev/null 2>&1; then
23928 CPP_NEED_TRADITIONAL=no
23930 CPP_NEED_TRADITIONAL=yes
23935 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
"
23937 ac_config_commands="$ac_config_commands default
"
23939 cat >confcache <<\_ACEOF
23940 # This file is a shell script that caches the results of configure
23941 # tests run on this system so they can be shared between configure
23942 # scripts and configure runs, see configure's option --config-cache.
23943 # It is not useful on other systems. If it contains results you don't
23944 # want to keep, you may remove or edit it.
23946 # config.status only pays attention to the cache file if you give it
23947 # the --recheck option to rerun configure.
23949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23951 # following values.
23955 # The following way of writing the cache mishandles newlines in values,
23956 # but we know of no workaround that is simple, portable, and efficient.
23957 # So, we kill variables containing newlines.
23958 # Ultrix sh set writes to stderr and can't be redirected directly,
23959 # and sets the high bit in the cache file unless we assign to the vars.
23961 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23962 eval ac_val=\$$ac_var
23966 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23967 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23970 _ | IFS | as_nl) ;; #(
23971 *) $as_unset $ac_var ;;
23977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23978 *${as_nl}ac_space=\ *)
23979 # `set' does not quote correctly, so add quotes (double-quote
23980 # substitution turns \\\\ into \\, and sed turns \\ into \).
23983 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23986 # `set' quotes correctly as required by POSIX, so do not add quotes.
23987 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24001 if test -w "$cache_file"; then
24002 test "x
$cache_file" != "x
/dev
/null
" &&
24003 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24004 echo "$as_me: updating cache
$cache_file" >&6;}
24005 cat confcache >$cache_file
24007 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24008 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24013 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24014 # Let make expand exec_prefix.
24015 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24017 DEFS=-DHAVE_CONFIG_H
24021 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24022 # 1. Remove the extension, and $U if already installed.
24023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24024 ac_i=`echo "$ac_i" | sed "$ac_script"`
24025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24026 # will be set to the directory where LIBOBJS objects are built.
24027 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24028 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24030 LIBOBJS=$ac_libobjs
24032 LTLIBOBJS=$ac_ltlibobjs
24036 : ${CONFIG_STATUS=./config.status}
24037 ac_clean_files_save=$ac_clean_files
24038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24039 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24040 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24041 cat >$CONFIG_STATUS <<_ACEOF
24043 # Generated by $as_me.
24044 # Run this file to recreate the current configuration.
24045 # Compiler output produced by configure, useful for debugging
24046 # configure, is in config.log if it exists.
24049 ac_cs_recheck=false
24051 SHELL=\${CONFIG_SHELL-$SHELL}
24054 cat >>$CONFIG_STATUS <<\_ACEOF
24055 ## --------------------- ##
24056 ## M4sh Initialization. ##
24057 ## --------------------- ##
24059 # Be more Bourne compatible
24060 DUALCASE=1; export DUALCASE # for MKS sh
24061 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24064 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24065 # is contrary to our usage. Disable this feature.
24066 alias -g '${1+"$@"}'='"$@
"'
24067 setopt NO_GLOB_SUBST
24069 case `(set -o) 2>/dev/null` in
24070 *posix*) set -o posix ;;
24079 # Avoid depending upon Character Ranges.
24080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24083 as_cr_digits='0123456789'
24084 as_cr_alnum=$as_cr_Letters$as_cr_digits
24086 # The user is always right.
24087 if test "${PATH_SEPARATOR+set}" != set; then
24088 echo "#! /bin/sh" >conf$$.sh
24089 echo "exit 0" >>conf$$.sh
24091 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24099 # Support unset when possible.
24100 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24108 # We need space, tab and new line, in precisely that order. Quoting is
24109 # there to prevent editors from complaining about space-tab.
24110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24111 # splitting by setting IFS to empty value.)
24116 # Find who we are. Look in the path if we contain no directory separator.
24118 *[\\/]* ) as_myself
=$0 ;;
24119 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24120 for as_dir
in $PATH
24123 test -z "$as_dir" && as_dir
=.
24124 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24130 # We did not find ourselves, most probably we were run as `sh COMMAND'
24131 # in which case we are not to be found in the path.
24132 if test "x$as_myself" = x
; then
24135 if test ! -f "$as_myself"; then
24136 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24137 { (exit 1); exit 1; }
24140 # Work around bugs in pre-3.0 UWIN ksh.
24141 for as_var
in ENV MAIL MAILPATH
24142 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24150 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24151 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24152 LC_TELEPHONE LC_TIME
24154 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24155 eval $as_var=C
; export $as_var
24157 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24161 # Required to use basename.
24162 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24163 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24169 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24170 as_basename
=basename
24176 # Name of the executable.
24177 as_me
=`$as_basename -- "$0" ||
24178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24179 X"$0" : 'X\(//\)$' \| \
24180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24182 sed '/^.*\/\([^/][^/]*\)\/*$/{
24201 as_lineno_1
=$LINENO
24202 as_lineno_2
=$LINENO
24203 test "x$as_lineno_1" != "x$as_lineno_2" &&
24204 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24206 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24207 # uniformly replaced by the line number. The first 'sed' inserts a
24208 # line-number line after each line using $LINENO; the second 'sed'
24209 # does the real work. The second script uses 'N' to pair each
24210 # line-number line with the line containing $LINENO, and appends
24211 # trailing '-' during substitution so that $LINENO is not a special
24212 # case at line end.
24213 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24214 # scripts with optimization help from Paolo Bonzini. Blame Lee
24215 # E. McMahon (1931-1989) for sed's syntax. :-)
24227 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24230 ' >$as_me.lineno
&&
24231 chmod +x
"$as_me.lineno" ||
24232 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24233 { (exit 1); exit 1; }; }
24235 # Don't try to exec as it changes $[0], causing all sort of problems
24236 # (the dirname of $[0] is not the place where we might find the
24237 # original and so on. Autoconf is especially sensitive to this).
24238 .
"./$as_me.lineno"
24239 # Exit status is that of the last command.
24244 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24250 ECHO_C
= ECHO_N
= ECHO_T
=
24251 case `echo -n x` in
24253 case `echo 'x\c'` in
24254 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24261 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24262 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24268 rm -f conf$$ conf$$.exe conf$$.
file
24269 if test -d conf$$.dir
; then
24270 rm -f conf$$.dir
/conf$$.
file
24276 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24278 # ... but there are two gotchas:
24279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24281 # In both cases, we have to default to `cp -p'.
24282 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24284 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24289 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24290 rmdir conf$$.dir
2>/dev
/null
24292 if mkdir
-p .
2>/dev
/null
; then
24295 test -d .
/-p && rmdir .
/-p
24299 if test -x / >/dev
/null
2>&1; then
24300 as_test_x
='test -x'
24302 if ls -dL / >/dev
/null
2>&1; then
24309 if test -d "$1"; then
24315 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24316 ???[sx]*):;;*)false;;esac;fi
24320 as_executable_p
=$as_test_x
24322 # Sed expression to map a string onto a valid CPP name.
24323 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24325 # Sed expression to map a string onto a valid variable name.
24326 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24331 # Save the log message, to keep $[0] and so on meaningful, and to
24332 # report actual input values of CONFIG_FILES etc. instead of their
24333 # values after options handling.
24335 This file was extended by emacs $as_me 23.0.50, which was
24336 generated by GNU Autoconf 2.61. Invocation command line was
24338 CONFIG_FILES = $CONFIG_FILES
24339 CONFIG_HEADERS = $CONFIG_HEADERS
24340 CONFIG_LINKS = $CONFIG_LINKS
24341 CONFIG_COMMANDS = $CONFIG_COMMANDS
24344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24349 cat >>$CONFIG_STATUS <<_ACEOF
24350 # Files that config.status was made for.
24351 config_files="$ac_config_files"
24352 config_headers="$ac_config_headers"
24353 config_commands="$ac_config_commands"
24357 cat >>$CONFIG_STATUS <<\_ACEOF
24359 \`$as_me' instantiates files from templates according to the
24360 current configuration.
24362 Usage: $0 [OPTIONS] [FILE]...
24364 -h, --help print this help, then exit
24365 -V, --version print version number and configuration settings, then exit
24366 -q, --quiet do not print progress messages
24367 -d, --debug don't remove temporary files
24368 --recheck update $as_me by reconfiguring in the same conditions
24369 --file=FILE[:TEMPLATE]
24370 instantiate the configuration file FILE
24371 --header=FILE[:TEMPLATE]
24372 instantiate the configuration header FILE
24374 Configuration files:
24377 Configuration headers:
24380 Configuration commands:
24383 Report bugs to <bug-autoconf@gnu.org>."
24386 cat >>$CONFIG_STATUS <<_ACEOF
24388 emacs config.status 23.0.50
24389 configured by $0, generated by GNU Autoconf 2.61,
24390 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24392 Copyright (C) 2006 Free Software Foundation, Inc.
24393 This config.status script is free software; the Free Software Foundation
24394 gives unlimited permission to copy, distribute and modify it."
24401 cat >>$CONFIG_STATUS <<\_ACEOF
24402 # If no file are specified by the user, then we need to provide default
24403 # value. By we need to know if files were specified by the user.
24409 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24410 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24421 # Handling of the options.
24422 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24424 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24425 echo "$ac_cs_version"; exit ;;
24426 --debug |
--debu |
--deb |
--de |
--d |
-d )
24428 --file |
--fil |
--fi |
--f )
24430 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24431 ac_need_defaults
=false
;;
24432 --header |
--heade |
--head |
--hea )
24434 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24435 ac_need_defaults
=false
;;
24437 # Conflict between --help and --header
24438 { echo "$as_me: error: ambiguous option: $1
24439 Try \`$0 --help' for more information." >&2
24440 { (exit 1); exit 1; }; };;
24441 --help |
--hel |
-h )
24442 echo "$ac_cs_usage"; exit ;;
24443 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24444 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24447 # This is an error.
24448 -*) { echo "$as_me: error: unrecognized option: $1
24449 Try \`$0 --help' for more information." >&2
24450 { (exit 1); exit 1; }; } ;;
24452 *) ac_config_targets
="$ac_config_targets $1"
24453 ac_need_defaults
=false
;;
24459 ac_configure_extra_args
=
24461 if $ac_cs_silent; then
24463 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24467 cat >>$CONFIG_STATUS <<_ACEOF
24468 if \$ac_cs_recheck; then
24469 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24470 CONFIG_SHELL=$SHELL
24471 export CONFIG_SHELL
24472 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24476 cat >>$CONFIG_STATUS <<\_ACEOF
24480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24481 ## Running $as_me. ##
24487 cat >>$CONFIG_STATUS <<_ACEOF
24491 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24495 cat >>$CONFIG_STATUS <<\_ACEOF
24497 # Handling of arguments.
24498 for ac_config_target
in $ac_config_targets
24500 case $ac_config_target in
24501 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24502 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24503 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24504 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24505 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24506 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24507 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24508 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24509 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24510 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24511 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24512 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24513 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24515 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24516 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24517 { (exit 1); exit 1; }; };;
24522 # If the user did not use the arguments to specify the items to instantiate,
24523 # then the envvar interface is used. Set only those that are not.
24524 # We use the long form for the default assignment because of an extremely
24525 # bizarre bug on SunOS 4.1.3.
24526 if $ac_need_defaults; then
24527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24532 # Have a temporary directory for convenience. Make it in the build tree
24533 # simply because there is no reason against having it here, and in addition,
24534 # creating and moving files from /tmp can sometimes cause problems.
24535 # Hook for its removal unless debugging.
24536 # Note that there is a small window in which the directory will not be cleaned:
24537 # after its creation but before its name has been assigned to `$tmp'.
24541 trap 'exit_status=$?
24542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24544 trap '{ (exit 1); exit 1; }' 1 2 13 15
24546 # Create a (secure) tmp directory for tmp files.
24549 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24550 test -n "$tmp" && test -d "$tmp"
24553 tmp
=.
/conf$$
-$RANDOM
24554 (umask 077 && mkdir
"$tmp")
24557 echo "$me: cannot create a temporary directory in ." >&2
24558 { (exit 1); exit 1; }
24562 # Set up the sed scripts for CONFIG_FILES section.
24565 # No need to generate the scripts if there are no CONFIG_FILES.
24566 # This happens for instance when ./config.status config.h
24567 if test -n "$CONFIG_FILES"; then
24574 for ac_last_try
in false false false false false
:; do
24575 cat >conf$
$subs.
sed <<_ACEOF
24576 SHELL!$SHELL$ac_delim
24577 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24578 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24579 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24580 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24581 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24582 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24583 exec_prefix!$exec_prefix$ac_delim
24584 prefix!$prefix$ac_delim
24585 program_transform_name!$program_transform_name$ac_delim
24586 bindir!$bindir$ac_delim
24587 sbindir!$sbindir$ac_delim
24588 libexecdir!$libexecdir$ac_delim
24589 datarootdir!$datarootdir$ac_delim
24590 datadir!$datadir$ac_delim
24591 sysconfdir!$sysconfdir$ac_delim
24592 sharedstatedir!$sharedstatedir$ac_delim
24593 localstatedir!$localstatedir$ac_delim
24594 includedir!$includedir$ac_delim
24595 oldincludedir!$oldincludedir$ac_delim
24596 docdir!$docdir$ac_delim
24597 infodir!$infodir$ac_delim
24598 htmldir!$htmldir$ac_delim
24599 dvidir!$dvidir$ac_delim
24600 pdfdir!$pdfdir$ac_delim
24601 psdir!$psdir$ac_delim
24602 libdir!$libdir$ac_delim
24603 localedir!$localedir$ac_delim
24604 mandir!$mandir$ac_delim
24605 DEFS!$DEFS$ac_delim
24606 ECHO_C!$ECHO_C$ac_delim
24607 ECHO_N!$ECHO_N$ac_delim
24608 ECHO_T!$ECHO_T$ac_delim
24609 LIBS!$LIBS$ac_delim
24610 build_alias!$build_alias$ac_delim
24611 host_alias!$host_alias$ac_delim
24612 target_alias!$target_alias$ac_delim
24613 MAINT!$MAINT$ac_delim
24614 build!$build$ac_delim
24615 build_cpu!$build_cpu$ac_delim
24616 build_vendor!$build_vendor$ac_delim
24617 build_os!$build_os$ac_delim
24618 host!$host$ac_delim
24619 host_cpu!$host_cpu$ac_delim
24620 host_vendor!$host_vendor$ac_delim
24621 host_os!$host_os$ac_delim
24623 CFLAGS!$CFLAGS$ac_delim
24624 LDFLAGS!$LDFLAGS$ac_delim
24625 CPPFLAGS!$CPPFLAGS$ac_delim
24626 ac_ct_CC!$ac_ct_CC$ac_delim
24627 EXEEXT!$EXEEXT$ac_delim
24628 OBJEXT!$OBJEXT$ac_delim
24630 GREP!$GREP$ac_delim
24631 EGREP!$EGREP$ac_delim
24632 LN_S!$LN_S$ac_delim
24633 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24634 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24635 INSTALL_DATA!$INSTALL_DATA$ac_delim
24636 RANLIB!$RANLIB$ac_delim
24637 INSTALL_INFO!$INSTALL_INFO$ac_delim
24638 GZIP_PROG!$GZIP_PROG$ac_delim
24639 MAKEINFO!$MAKEINFO$ac_delim
24640 LIBSOUND!$LIBSOUND$ac_delim
24641 PKG_CONFIG!$PKG_CONFIG$ac_delim
24642 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24643 ALSA_LIBS!$ALSA_LIBS$ac_delim
24644 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24645 SET_MAKE!$SET_MAKE$ac_delim
24646 XMKMF!$XMKMF$ac_delim
24647 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24648 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24649 RSVG_LIBS!$RSVG_LIBS$ac_delim
24650 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24651 GTK_LIBS!$GTK_LIBS$ac_delim
24652 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24653 DBUS_LIBS!$DBUS_LIBS$ac_delim
24654 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24655 XFT_LIBS!$XFT_LIBS$ac_delim
24656 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24657 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24658 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24659 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24660 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24661 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24662 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24663 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24664 ALLOCA!$ALLOCA$ac_delim
24665 liblockfile!$liblockfile$ac_delim
24666 LIBOBJS!$LIBOBJS$ac_delim
24667 NEED_SETGID!$NEED_SETGID$ac_delim
24668 KMEM_GROUP!$KMEM_GROUP$ac_delim
24669 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24670 GETOPT_H!$GETOPT_H$ac_delim
24671 GETOPTOBJS!$GETOPTOBJS$ac_delim
24672 version!$version$ac_delim
24675 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24677 elif $ac_last_try; then
24678 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24679 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24680 { (exit 1); exit 1; }; }
24682 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24686 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24687 if test -n "$ac_eof"; then
24688 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24689 ac_eof
=`expr $ac_eof + 1`
24692 cat >>$CONFIG_STATUS <<_ACEOF
24693 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24697 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24698 s/^/s,@/; s/!/@,|#_!!_#|/
24701 s/'"$ac_delim"'$/,g/; t
24703 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24704 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24705 rm -f conf$
$subs.
sed
24706 cat >>$CONFIG_STATUS <<_ACEOF
24712 for ac_last_try
in false false false false false
:; do
24713 cat >conf$
$subs.
sed <<_ACEOF
24714 configuration!$configuration$ac_delim
24715 canonical!$canonical$ac_delim
24716 srcdir!$srcdir$ac_delim
24717 lispdir!$lispdir$ac_delim
24718 locallisppath!$locallisppath$ac_delim
24719 lisppath!$lisppath$ac_delim
24720 x_default_search_path!$x_default_search_path$ac_delim
24721 etcdir!$etcdir$ac_delim
24722 archlibdir!$archlibdir$ac_delim
24723 bitmapdir!$bitmapdir$ac_delim
24724 gamedir!$gamedir$ac_delim
24725 gameuser!$gameuser$ac_delim
24726 c_switch_system!$c_switch_system$ac_delim
24727 c_switch_machine!$c_switch_machine$ac_delim
24728 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24729 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24730 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24731 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24732 machfile!$machfile$ac_delim
24733 opsysfile!$opsysfile$ac_delim
24734 carbon_appdir!$carbon_appdir$ac_delim
24735 LTLIBOBJS!$LTLIBOBJS$ac_delim
24738 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24740 elif $ac_last_try; then
24741 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24742 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24743 { (exit 1); exit 1; }; }
24745 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24749 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24750 if test -n "$ac_eof"; then
24751 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24752 ac_eof
=`expr $ac_eof + 1`
24755 cat >>$CONFIG_STATUS <<_ACEOF
24756 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24760 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24761 s/^/s,@/; s/!/@,|#_!!_#|/
24764 s/'"$ac_delim"'$/,g/; t
24766 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24767 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24768 rm -f conf$
$subs.
sed
24769 cat >>$CONFIG_STATUS <<_ACEOF
24776 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24777 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24778 # trailing colons and then remove the whole line if VPATH becomes empty
24779 # (actually we leave an empty line to preserve line numbers).
24780 if test "x$srcdir" = x.
; then
24781 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24782 s/:*\$(srcdir):*/:/
24783 s/:*\${srcdir}:*/:/
24785 s/^\([^=]*=[ ]*\):*/\1/
24791 cat >>$CONFIG_STATUS <<\_ACEOF
24792 fi # test -n "$CONFIG_FILES"
24795 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24798 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24800 case $ac_mode$ac_tag in
24802 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24803 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24804 { (exit 1); exit 1; }; };;
24805 :[FH
]-) ac_tag
=-:-;;
24806 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24823 -) ac_f
="$tmp/stdin";;
24824 *) # Look for the file first in the build tree, then in the source tree
24825 # (if the path is not absolute). The absolute path cannot be DOS-style,
24826 # because $ac_f cannot contain `:'.
24830 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24832 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24833 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24834 { (exit 1); exit 1; }; };;
24836 ac_file_inputs
="$ac_file_inputs $ac_f"
24839 # Let's still pretend it is `configure' which instantiates (i.e., don't
24840 # use $as_me), people would be surprised to read:
24841 # /* config.h. Generated by config.status. */
24842 configure_input
="Generated from "`IFS=:
24843 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24844 if test x
"$ac_file" != x-
; then
24845 configure_input
="$ac_file. $configure_input"
24846 { echo "$as_me:$LINENO: creating $ac_file" >&5
24847 echo "$as_me: creating $ac_file" >&6;}
24851 *:-:* |
*:-) cat >"$tmp/stdin";;
24856 ac_dir
=`$as_dirname -- "$ac_file" ||
24857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24858 X"$ac_file" : 'X\(//\)[^/]' \| \
24859 X"$ac_file" : 'X\(//\)$' \| \
24860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24866 /^X\(\/\/\)[^/].*/{
24881 -*) as_dir
=.
/$as_dir;;
24883 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24887 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24888 *) as_qdir
=$as_dir;;
24890 as_dirs
="'$as_qdir' $as_dirs"
24891 as_dir
=`$as_dirname -- "$as_dir" ||
24892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24893 X"$as_dir" : 'X\(//\)[^/]' \| \
24894 X"$as_dir" : 'X\(//\)$' \| \
24895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24901 /^X\(\/\/\)[^/].*/{
24914 test -d "$as_dir" && break
24916 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24917 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24918 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24919 { (exit 1); exit 1; }; }; }
24923 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24925 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24926 # A ".." for each directory in $ac_dir_suffix.
24927 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24928 case $ac_top_builddir_sub in
24929 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24930 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24933 ac_abs_top_builddir
=$ac_pwd
24934 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24935 # for backward compatibility:
24936 ac_top_builddir
=$ac_top_build_prefix
24939 .
) # We are building in place.
24941 ac_top_srcdir
=$ac_top_builddir_sub
24942 ac_abs_top_srcdir
=$ac_pwd ;;
24943 [\\/]* | ?
:[\\/]* ) # Absolute name.
24944 ac_srcdir
=$srcdir$ac_dir_suffix;
24945 ac_top_srcdir
=$srcdir
24946 ac_abs_top_srcdir
=$srcdir ;;
24947 *) # Relative name.
24948 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24949 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24950 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24952 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24962 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24963 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24967 cat >>$CONFIG_STATUS <<\_ACEOF
24968 # If the template does not know about datarootdir, expand it.
24969 # FIXME: This hack should be removed a few years after 2.60.
24970 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24972 case `sed -n '/datarootdir/ {
24981 ' $ac_file_inputs` in
24982 *datarootdir
*) ac_datarootdir_seen
=yes;;
24983 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24984 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24985 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24987 cat >>$CONFIG_STATUS <<_ACEOF
24988 ac_datarootdir_hack='
24989 s&@datadir@&$datadir&g
24990 s&@docdir@&$docdir&g
24991 s&@infodir@&$infodir&g
24992 s&@localedir@&$localedir&g
24993 s&@mandir@&$mandir&g
24994 s&\\\${datarootdir}&$datarootdir&g' ;;
24998 # Neutralize VPATH when `$srcdir' = `.'.
24999 # Shell code in configure.ac might set extrasub.
25000 # FIXME: do we really want to maintain this feature?
25001 cat >>$CONFIG_STATUS <<_ACEOF
25005 cat >>$CONFIG_STATUS <<\_ACEOF
25007 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25008 s
&@configure_input@
&$configure_input&;t t
25009 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25010 s
&@srcdir@
&$ac_srcdir&;t t
25011 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25012 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25013 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25014 s
&@builddir@
&$ac_builddir&;t t
25015 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25016 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25017 s
&@INSTALL@
&$ac_INSTALL&;t t
25018 $ac_datarootdir_hack
25019 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25022 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25024 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25025 which seems to be undefined. Please make sure it is defined." >&5
25026 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25027 which seems to be undefined. Please make sure it is defined." >&2;}
25031 -) cat "$tmp/out"; rm -f "$tmp/out";;
25032 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25041 # Transform confdefs.h into a sed script `conftest.defines', that
25042 # substitutes the proper values into config.h.in to produce config.h.
25043 rm -f conftest.defines conftest.
tail
25044 # First, append a space to every undef/define line, to ease matching.
25045 echo 's/$/ /' >conftest.defines
25046 # Then, protect against being on the right side of a sed subst, or in
25047 # an unquoted here document, in config.status. If some macros were
25048 # called several times there might be several #defines for the same
25049 # symbol, which is useless. But do not sort them, since the last
25050 # AC_DEFINE must be honored.
25051 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25052 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25053 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25054 # PARAMS is the parameter list in the macro definition--in most cases, it's
25055 # just an empty string.
25056 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25057 ac_dB
='\\)[ (].*,\\1define\\2'
25065 s/^[ ]*#[ ]*define[ ][ ]*//
25070 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25071 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25072 ' >>conftest.defines
25074 # Remove the space that was appended to ease matching.
25075 # Then replace #undef with comments. This is necessary, for
25076 # example, in the case of _POSIX_SOURCE, which is predefined and required
25077 # on some systems where configure will not decide to define it.
25078 # (The regexp can be short, since the line contains either #define or #undef.)
25080 s,^[ #]*u.*,/* & */,' >>conftest.defines
25082 # Break up conftest.defines:
25083 ac_max_sed_lines
=50
25085 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25086 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25087 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25089 ac_in
='$ac_file_inputs'
25090 ac_out
='"$tmp/out1"'
25091 ac_nxt
='"$tmp/out2"'
25095 # Write a here document:
25096 cat >>$CONFIG_STATUS <<_ACEOF
25097 # First, check the format of the line:
25098 cat >"\$tmp/defines.sed" <<\\CEOF
25099 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25100 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25104 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25106 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25107 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25108 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25109 grep . conftest.
tail >/dev
/null ||
break
25110 rm -f conftest.defines
25111 mv conftest.
tail conftest.defines
25113 rm -f conftest.defines conftest.
tail
25115 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25116 cat >>$CONFIG_STATUS <<\_ACEOF
25117 if test x
"$ac_file" != x-
; then
25118 echo "/* $configure_input */" >"$tmp/config.h"
25119 cat "$ac_result" >>"$tmp/config.h"
25120 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25121 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25122 echo "$as_me: $ac_file is unchanged" >&6;}
25125 mv "$tmp/config.h" $ac_file
25128 echo "/* $configure_input */"
25134 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25135 echo "$as_me: executing $ac_file commands" >&6;}
25140 case $ac_file$ac_mode in
25143 ### Make the necessary directories, if they don't exist.
25144 for dir
in etc lisp
; do
25145 test -d ${dir} || mkdir
${dir}
25148 # Build src/Makefile from ${srcdir}/src/Makefile.c
25149 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25150 # This must be done after src/config.h is built, since we rely on that file.
25152 # Now get this: Some word that is part of the ${srcdir} directory name
25153 # or the ${configuration} value might, just might, happen to be an
25154 # identifier like `sun4' or `i386' or something, and be predefined by
25155 # the C preprocessor to some helpful value like 1, or maybe the empty
25156 # string. Needless to say consequent macro substitutions are less
25157 # than conducive to the makefile finding the correct directory.
25158 undefs
="`echo $top_srcdir $configuration $canonical |
25159 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25160 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25163 echo creating src
/epaths.h
25164 ${MAKE-make} epaths-force
25166 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25167 # `..' to `. .' unless invoked with -traditional
25169 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25170 CPPFLAGS
="$CPPFLAGS -traditional"
25173 echo creating lib-src
/Makefile
25175 rm -f junk.c junk1.c junk2.c
25176 sed -e '/start of cpp stuff/q' \
25177 < Makefile.c
> junk1.c
25178 sed -e '1,/start of cpp stuff/d'\
25179 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25180 < Makefile.c
> junk.c
25181 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25182 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25183 cat junk1.c junk2.c
> Makefile.new
25184 rm -f junk.c junk1.c junk2.c
25185 chmod 444 Makefile.new
25186 mv -f Makefile.new Makefile
25189 echo creating src
/Makefile
25191 rm -f junk.c junk1.c junk2.c
25192 sed -e '/start of cpp stuff/q' \
25193 < Makefile.c
> junk1.c
25194 sed -e '1,/start of cpp stuff/d'\
25195 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25196 < Makefile.c
> junk.c
25197 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25198 echo creating
${srcdir}/admin
/unidata
/Makefile
25199 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25200 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25202 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25203 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25204 cat junk1.c junk2.c
> Makefile.new
25205 rm -f junk.c junk1.c junk2.c
25206 chmod 444 Makefile.new
25207 mv -f Makefile.new Makefile
25210 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25211 echo creating src
/.gdbinit
25212 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25215 # This is how we know whether to re-run configure in certain cases.
25216 touch src
/config.stamp
25224 { (exit 0); exit 0; }
25226 chmod +x
$CONFIG_STATUS
25227 ac_clean_files
=$ac_clean_files_save
25230 # configure is writing to config.log, and then calls config.status.
25231 # config.status does its own redirection, appending to config.log.
25232 # Unfortunately, on DOS this fails, as config.log is still kept open
25233 # by configure, so config.status won't be able to write to it; its
25234 # output is simply discarded. So we exec the FD to /dev/null,
25235 # effectively closing config.log, so it can be properly (re)opened and
25236 # appended to by config.status. When coming back to configure, we
25237 # need to make the FD available again.
25238 if test "$no_create" != yes; then
25240 ac_config_status_args
=
25241 test "$silent" = yes &&
25242 ac_config_status_args
="$ac_config_status_args --quiet"
25244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25247 # would make configure fail if this is the last instruction.
25248 $ac_cs_success ||
{ (exit 1); exit 1; }