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 --disable-font-backend don
't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP
mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version
5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server
host
1352 --without-sound don
't compile with sound support
1353 --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 ## Enabled by default.
2131 # Check whether --enable-font-backend was given.
2132 if test "${enable_font_backend+set}" = set; then
2133 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2135 USE_FONT_BACKEND=yes
2139 # Check whether --enable-asserts was given.
2140 if test "${enable_asserts+set}" = set; then
2141 enableval=$enable_asserts; USE_XASSERTS=$enableval
2147 # Check whether --enable-maintainer-mode was given.
2148 if test "${enable_maintainer_mode+set}" = set; then
2149 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2151 USE_MAINTAINER_MODE=no
2154 if test $USE_MAINTAINER_MODE = yes; then
2161 # Check whether --enable-locallisppath was given.
2162 if test "${enable_locallisppath+set}" = set; then
2163 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2165 elif test "${enableval}" != "yes"; then
2166 locallisppath=${enableval}
2171 #### Make srcdir absolute, if it isn't already. It's important to
2172 #### avoid running the path through pwd unnecessarily, since pwd can
2173 #### give you automounter prefixes, which can go away. We do all this
2174 #### so Emacs can find its files when run uninstalled.
2175 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2180 ## We may be able to use the $PWD environment variable to make this
2181 ## absolute. But sometimes PWD is inaccurate.
2182 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2183 ## but that tested only for a well-formed and valid PWD,
2184 ## it did not object when PWD was well-formed and valid but just wrong.
2185 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
2189 srcdir="`(cd ${srcdir}; pwd)`"
2192 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2195 #### Check if the source directory already has a configured system in it.
2196 if test `pwd` != `(cd ${srcdir} && pwd)` \
2197 && test -f "${srcdir}/src/config.h" ; then
2198 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2199 as a build directory right now; it has been configured in its own
2200 right. To configure in another directory as well, you MUST
2201 use GNU make. If you do not have GNU make, then you must
2202 now do \`make distclean' in ${srcdir},
2203 and
then run
$0 again.
" >&5
2204 echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
2205 as a build directory right now; it has been configured in its own
2206 right. To configure in another directory as well, you MUST
2207 use GNU make. If you do not have GNU make, then you must
2208 now do \`make distclean
' in ${srcdir},
2209 and then run $0 again." >&2;}
2212 #### Given the configuration name, set machfile and opsysfile to the
2213 #### names of the m/*.h and s/*.h files we should use.
2215 ### Canonicalize the configuration name.
2218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2219 if test -f "$ac_dir/install-sh"; then
2221 ac_install_sh="$ac_aux_dir/install-sh -c"
2223 elif test -f "$ac_dir/install.sh"; then
2225 ac_install_sh="$ac_aux_dir/install.sh -c"
2227 elif test -f "$ac_dir/shtool"; then
2229 ac_install_sh="$ac_aux_dir/shtool install -c"
2233 if test -z "$ac_aux_dir"; then
2234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2235 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2236 { (exit 1); exit 1; }; }
2239 # These three variables are undocumented and unsupported,
2240 # and are intended to be withdrawn in a future Autoconf release.
2241 # They can cause serious problems if a builder's
source tree is
in a directory
2242 # whose full name contains unusual characters.
2243 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2244 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2245 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2248 # Make sure we can run config.sub.
2249 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2250 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2251 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2252 { (exit 1); exit 1; }; }
2254 { echo "$as_me:$LINENO: checking build system type" >&5
2255 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2256 if test "${ac_cv_build+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 ac_build_alias
=$build_alias
2260 test "x$ac_build_alias" = x
&&
2261 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2262 test "x$ac_build_alias" = x
&&
2263 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2264 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2265 { (exit 1); exit 1; }; }
2266 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2267 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2268 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2269 { (exit 1); exit 1; }; }
2272 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2273 echo "${ECHO_T}$ac_cv_build" >&6; }
2274 case $ac_cv_build in
2276 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2277 echo "$as_me: error: invalid value of canonical build" >&2;}
2278 { (exit 1); exit 1; }; };;
2281 ac_save_IFS
=$IFS; IFS
='-'
2287 # Remember, the first character of IFS is used to create $*,
2288 # except with old shells:
2291 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2294 { echo "$as_me:$LINENO: checking host system type" >&5
2295 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2296 if test "${ac_cv_host+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test "x$host_alias" = x
; then
2300 ac_cv_host
=$ac_cv_build
2302 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2303 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2304 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2305 { (exit 1); exit 1; }; }
2309 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2310 echo "${ECHO_T}$ac_cv_host" >&6; }
2313 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2314 echo "$as_me: error: invalid value of canonical host" >&2;}
2315 { (exit 1); exit 1; }; };;
2318 ac_save_IFS
=$IFS; IFS
='-'
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2328 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2332 configuration
=${host_alias-${build_alias-$host}}
2336 ### If you add support for a new configuration, add code to this
2337 ### switch statement to recognize your configuration name and select
2338 ### the appropriate operating system and machine description files.
2340 ### You would hope that you could choose an m/*.h file pretty much
2341 ### based on the machine portion of the configuration name, and an s-
2342 ### file based on the operating system portion. However, it turns out
2343 ### that each m/*.h file is pretty manufacturer-specific - for
2344 ### example hp9000s300.h is a 68000 machine;
2345 ### mips.h, pmax.h are all MIPS
2346 ### machines. So we basically have to have a special case for each
2347 ### configuration name.
2349 ### As far as handling version numbers on operating systems is
2350 ### concerned, make sure things will fail in a fixable way. If
2351 ### /etc/MACHINES doesn't say anything about version numbers, be
2352 ### prepared to handle anything reasonably. If version numbers
2353 ### matter, be sure /etc/MACHINES says something about it.
2355 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2356 ### "System V Release 4"; he writes, "The old convention encouraged
2357 ### confusion between `system' and `release' levels'."
2359 machine
='' opsys
='' unported
=no
2360 case "${canonical}" in
2365 case "${canonical}" in
2366 alpha
*-*-freebsd*) machine
=alpha
;;
2367 arm
*-*-freebsd*) machine
=arm
;;
2368 ia64-
*-freebsd*) machine
=ia64
;;
2369 sparc64-
*-freebsd*) machine
=sparc
;;
2370 powerpc-
*-freebsd*) machine
=macppc
;;
2371 i
[3456]86-*-freebsd*) machine
=intel386
;;
2372 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2376 ## FreeBSD kernel + glibc based userland
2379 case "${canonical}" in
2380 alpha
*-*-kfreebsd*) machine
=alpha
;;
2381 ia64-
*-kfreebsd*) machine
=ia64
;;
2382 sparc64-
*-kfreebsd*) machine
=sparc
;;
2383 powerpc-
*-kfreebsd*) machine
=macppc
;;
2384 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2385 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2392 if test -f /usr
/lib
/crti.o
; then
2394 cat >>confdefs.h
<<\_ACEOF
2400 case "${canonical}" in
2401 alpha
*-*-netbsd*) machine
=alpha
;;
2402 i
[3456]86-*-netbsd*) machine
=intel386
;;
2404 # This is somewhat bogus.
2405 machine
=hp9000s300
;;
2406 mips-
*-netbsd*) machine
=pmax
;;
2407 mipsel-
*-netbsd*) machine
=pmax
;;
2408 mipseb-
*-netbsd*) machine
=pmax
;;
2409 powerpc-
*-netbsd*) machine
=macppc
;;
2410 sparc
*-*-netbsd*) machine
=sparc
;;
2411 vax-
*-netbsd*) machine
=vax
;;
2412 arm-
*-netbsd*) machine
=arm
;;
2413 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2414 hppa-
*-netbsd*) machine
=hp800
;;
2421 case "${canonical}" in
2422 alpha
*-*-openbsd*) machine
=alpha
;;
2423 arm-
*-openbsd*) machine
=arm
;;
2424 hppa-
*-openbsd*) machine
=hp9000s300
;;
2425 i386-
*-openbsd*) machine
=intel386
;;
2426 m68k-
*-openbsd*) machine
=hp9000s300
;;
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 i
[3456]86-cubix-sysv* )
2488 machine
=intel386 opsys
=usg5-3
2491 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2492 machine
=pmax opsys
=bsd4-2
2494 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2495 machine
=pmax opsys
=bsd4-3
2498 machine
=pmax opsys
=ultrix4-3
2500 ## HP 9000 series 200 or 300
2502 machine
=hp9000s300 opsys
=bsd4-3
2504 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2506 case "`uname -r`" in
2507 ## Someone's system reports A.B8.05 for this.
2508 ## I wonder what other possibilities there are.
2509 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2510 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2511 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2512 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2513 *) machine
=hp9000s300 opsys
=hpux
;;
2517 ## HP 9000 series 700 and 800, running HP/UX
2519 machine
=hp800 opsys
=hpux
2522 machine
=hp800 opsys
=hpux8
2524 hppa
*-hp-hpux9shr* )
2525 machine
=hp800 opsys
=hpux9shr
2528 machine
=hp800 opsys
=hpux9
2530 hppa
*-hp-hpux10.2
* )
2531 machine
=hp800 opsys
=hpux10-20
2534 machine
=hp800 opsys
=hpux10
2536 hppa
*-hp-hpux1[1-9]* )
2537 machine
=hp800 opsys
=hpux11
2538 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2541 hppa
*-*-linux-gnu* )
2542 machine
=hp800 opsys
=gnu-linux
2545 ## HP 9000 series 700 and 800, running HP/UX
2547 ## Cross-compilation? Nah!
2548 case "`uname -r`" in
2549 ## Someone's system reports A.B8.05 for this.
2550 ## I wonder what other possibilities there are.
2551 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2552 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2553 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2554 *) machine
=hp800 opsys
=hpux10
;;
2558 machine
=hp800 opsys
=nextstep
2563 machine
=ibm370aix opsys
=usg5-3
2566 machine
=ibms390 opsys
=gnu-linux
2568 s390x-
*-linux-gnu* )
2569 machine
=ibms390x opsys
=gnu-linux
2571 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2572 machine
=ibmrs6000 opsys
=aix3-1
2574 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2575 machine
=ibmrs6000 opsys
=aix3-2-5
2577 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2578 machine
=ibmrs6000 opsys
=aix4-1
2580 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2581 machine
=ibmrs6000 opsys
=aix4-2
2583 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2584 machine
=ibmrs6000 opsys
=aix4-2
2586 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2587 machine
=ibmrs6000 opsys
=aix4-2
2589 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2590 machine
=ibmrs6000 opsys
=aix4-2
2592 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2593 machine
=ibmrs6000 opsys
=aix4
2595 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2596 machine
=ibmrs6000 opsys
=aix4-1
2598 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2599 machine
=ibmrs6000 opsys
=aix3-2
2603 i
[3456]86-prime-sysv* )
2604 machine
=i386 opsys
=usg5-3
2607 ## ncr machine running svr4.3.
2608 i
[3456]86-ncr-sysv4.3
)
2609 machine
=ncr386 opsys
=usg5-4-3
2612 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2613 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2614 i
[3456]86-ncr-sysv* )
2615 machine
=ncr386 opsys
=usg5-4-2
2618 ## Macintosh PowerPC
2619 powerpc
*-*-linux-gnu* )
2620 machine
=macppc opsys
=gnu-linux
2623 ## Workstations sold by MIPS
2624 ## This is not necessarily all workstations using the MIPS processor -
2625 ## Irises are produced by SGI, and DECstations by DEC.
2628 machine
=mips opsys
=bsd4-3
2631 machine
=mips opsys
=usg5-2-2
2635 m68
*-next-* | m68k-
*-nextstep* )
2636 machine
=m68k opsys
=nextstep
2641 machine
=ews4800 opsys
=ux4800
2645 mips-siemens-sysv
* | mips-sni-sysv
*)
2646 machine
=mips-siemens opsys
=usg5-4
2647 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2648 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2651 ## Silicon Graphics machines
2654 machine
=iris4d opsys
=irix6-5
2655 # Without defining _LANGUAGE_C, things get masked out in the headers
2656 # so that, for instance, grepping for `free' in stdlib.h fails and
2657 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2658 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2659 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2663 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2664 machine
=sparc opsys
=gnu-linux
2667 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2668 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2669 | rs6000-
*-solaris2*)
2670 case "${canonical}" in
2671 i
[3456]86-*-* ) machine
=intel386
;;
2672 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2673 powerpcle
* ) machine
=powerpcle
;;
2674 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2675 sparc
* ) machine
=sparc
;;
2678 case "${canonical}" in
2679 *-sunos5.3
* |
*-solaris2.3
* )
2681 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2683 *-sunos5.4
* |
*-solaris2.4
* )
2685 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2688 *-sunos5.5
* |
*-solaris2.5
* )
2690 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2693 *-sunos5.6
* |
*-solaris2.6
* )
2695 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2698 *-sunos5* |
*-solaris* )
2700 emacs_check_sunpro_c
=yes
2701 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2705 ## Watch out for a compiler that we know will not work.
2706 case "${canonical}" in
2707 *-solaris* |
*-sunos5* )
2708 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2709 ## /usr/ucb/cc doesn't work;
2710 ## we should find some other compiler that does work.
2718 machine
=sparc opsys
=nextstep
2721 ## Tandem Integrity S2
2723 machine
=tandem-s2 opsys
=usg5-3
2729 case "${canonical}" in
2730 *-bsd4.1
* ) opsys
=bsd4-1
;;
2731 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2732 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2733 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2734 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2735 *-vms* ) opsys
=vms
;;
2742 machine
=ia64 opsys
=gnu-linux
2745 ## Intel 386 machines where we don't care about the manufacturer
2748 case "${canonical}" in
2749 *-cygwin ) opsys
=cygwin
;;
2750 *-darwin* ) opsys
=darwin
2751 CPP
="${CC-cc} -E -no-cpp-precomp"
2753 *-linux-gnu* ) opsys
=gnu-linux
;;
2754 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2755 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2756 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2757 *-386bsd* ) opsys
=386bsd
;;
2758 *-nextstep* ) opsys
=nextstep
;;
2759 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2763 ## m68k Linux-based GNU system
2765 machine
=m68k opsys
=gnu-linux
2768 ## Mips Linux-based GNU system
2769 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2770 machine
=mips opsys
=gnu-linux
2774 sparc-fujitsu-sysv4
* )
2775 machine
=sparc opsys
=uxpds
2776 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-
*-linux-gnu* )
2782 machine
=amdx86-64 opsys
=gnu-linux
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa
*-*-linux-gnu* )
2787 machine
=xtensa opsys
=gnu-linux
2795 ### If the code above didn't choose an operating system, just choose
2796 ### an operating system based on the configuration name. You really
2797 ### only want to use this when you have no idea what the right
2798 ### operating system is; if you know what operating systems a machine
2799 ### runs, it's cleaner to make it explicit in the case statement
2801 if test x
"${opsys}" = x
; then
2802 case "${canonical}" in
2803 *-gnu* ) opsys
=gnu
;;
2804 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2805 *-bsd4.2
) opsys
=bsd4-2
;;
2806 *-bsd4.3
) opsys
=bsd4-3
;;
2807 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2808 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2809 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2810 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2811 *-sysv4.2uw
* ) opsys
=unixware
;;
2812 *-sysv5uw* ) opsys
=unixware
;;
2813 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2814 *-sysv4.1
* |
*-sysvr4.1
* )
2815 NON_GNU_CPP
=/usr
/lib
/cpp
2817 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2818 if [ x
$NON_GNU_CPP = x
]; then
2819 if [ -f /usr
/ccs
/lib
/cpp
]; then
2820 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2822 NON_GNU_CPP
=/lib
/cpp
2826 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2833 ### Tests for sytems that we beleive are obsolete and should be desupported.
2835 case "${machine}" in
2836 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2837 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2838 echo "and it is planned to be desupported in the next version of Emacs"
2839 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2840 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2841 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2847 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 |
386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv
)
2848 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2849 echo "and it is planned to be desupported in the next version of Emacs"
2850 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2851 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2852 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2859 if test $unported = yes; then
2860 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2861 Check \`etc/MACHINES' for recognized configuration names." >&5
2862 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2863 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2864 { (exit 1); exit 1; }; }
2867 machfile
="m/${machine}.h"
2868 opsysfile
="s/${opsys}.h"
2871 #### Choose a compiler.
2872 test -n "$CC" && cc_specified
=yes
2874 # Save the value of CFLAGS that the user specified.
2875 SPECIFIED_CFLAGS
="$CFLAGS"
2878 ac_cpp
='$CPP $CPPFLAGS'
2879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC
="$CC" # Let the user override the test.
2893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir
=.
2898 for ac_exec_ext
in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CC"; then
2912 { echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6; }
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2921 if test -z "$ac_cv_prog_CC"; then
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc
; ac_word
=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir
=.
2938 for ac_exec_ext
in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CC
="gcc"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2953 echo "${ECHO_T}$ac_ct_CC" >&6; }
2955 { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2959 if test "x$ac_ct_CC" = x
; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned
=yes ;;
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC
="$CC" # Let the user override the test.
2990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir
=.
2995 for ac_exec_ext
in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { echo "$as_me:$LINENO: result: $CC" >&5
3010 echo "${ECHO_T}$CC" >&6; }
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc
; ac_word
=$2
3022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC
="$CC" # Let the user override the test.
3031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir
=.
3036 for ac_exec_ext
in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected
=yes
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy
$ac_cv_prog_CC
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3059 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3065 if test -n "$CC"; then
3066 { echo "$as_me:$LINENO: result: $CC" >&5
3067 echo "${ECHO_T}$CC" >&6; }
3069 { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog
in cl.exe
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC
="$CC" # Let the user override the test.
3089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir
=.
3094 for ac_exec_ext
in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test -n "$CC"; then
3108 { echo "$as_me:$LINENO: result: $CC" >&5
3109 echo "${ECHO_T}$CC" >&6; }
3111 { echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6; }
3116 test -n "$CC" && break
3119 if test -z "$CC"; then
3121 for ac_prog
in cl.exe
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy
$ac_prog; ac_word
=$2
3125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir
=.
3138 for ac_exec_ext
in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_ac_ct_CC
="$ac_prog"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3153 echo "${ECHO_T}$ac_ct_CC" >&6; }
3155 { echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6; }
3160 test -n "$ac_ct_CC" && break
3163 if test "x$ac_ct_CC" = x
; then
3166 case $cross_compiling:$ac_tool_warned in
3168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet. If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&5
3171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3172 whose name does not start with the host triplet. If you think this
3173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3174 ac_tool_warned
=yes ;;
3183 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }
3189 # Provide some information about the compiler.
3190 echo "$as_me:$LINENO: checking for C compiler version" >&5
3191 ac_compiler
=`set X $ac_compile; echo $2`
3192 { (ac_try
="$ac_compiler --version >&5"
3194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compiler --version >&5") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }
3202 { (ac_try="$ac_compiler -v >&5"
3204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3205 *) ac_try_echo
=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compiler -v >&5") 2>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }
3212 { (ac_try
="$ac_compiler -V >&5"
3214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compiler -V >&5") 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3238 ac_clean_files_save=$ac_clean_files
3239 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3240 # Try to create an executable without -o first, disregard a.out.
3241 # It will help us diagnose broken compilers, and finding out an intuition
3243 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3245 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3247 # List of possible output files, starting from the most likely.
3248 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3249 # only as a last resort. b.out is created by i960 compilers.
3250 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3252 # The IRIX 6 linker writes into existing files which may not be
3253 # executable, retaining their permissions. Remove them first so a
3254 # subsequent execution test works.
3256 for ac_file in $ac_files
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3265 if { (ac_try="$ac_link_default"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_link_default") 2>&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; then
3275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3278 # so that the user can short-circuit this test for compilers unknown to
3280 for ac_file
in $ac_files ''
3282 test -f "$ac_file" ||
continue
3284 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3287 # We found the default executable, but exeext='' is most
3291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3293 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3305 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3311 { echo "$as_me:$LINENO: result: $ac_file" >&5
3312 echo "${ECHO_T}$ac_file" >&6; }
3313 if test -z "$ac_file"; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.
$ac_ext >&5
3317 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3318 See \`config.log' for more details." >&5
3319 echo "$as_me: error: C compiler cannot create executables
3320 See \`config.log' for more details." >&2;}
3321 { (exit 77); exit 77; }; }
3324 ac_exeext
=$ac_cv_exeext
3326 # Check that the compiler produces executables we can run. If not, either
3327 # the compiler is broken, or we cross compile.
3328 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3329 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3330 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3331 # If not cross compiling, check that we can run a simple program.
3332 if test "$cross_compiling" != yes; then
3333 if { ac_try
='./$ac_file'
3334 { (case "(($ac_try" in
3335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3345 if test "$cross_compiling" = maybe; then
3348 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details.
" >&5
3351 echo "$as_me: error
: cannot run C compiled programs.
3352 If you meant to cross compile
, use \
`--host'.
3353 See \`config.log
' for more details." >&2;}
3354 { (exit 1); exit 1; }; }
3358 { echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6; }
3361 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3366 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3367 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3368 echo "${ECHO_T}$cross_compiling" >&6; }
3370 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3371 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3372 if { (ac_try="$ac_link"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_link") 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; then
3382 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3383 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3384 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3386 for ac_file
in conftest.exe conftest conftest.
*; do
3387 test -f "$ac_file" ||
continue
3389 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3390 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3397 See \`config.log' for more details." >&5
3398 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3403 rm -f conftest
$ac_cv_exeext
3404 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3405 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3407 rm -f conftest.
$ac_ext
3408 EXEEXT
=$ac_cv_exeext
3410 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3411 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3412 if test "${ac_cv_objext+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 cat >conftest.
$ac_ext <<_ACEOF
3418 cat confdefs.h
>>conftest.
$ac_ext
3419 cat >>conftest.
$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3430 rm -f conftest.o conftest.obj
3431 if { (ac_try
="$ac_compile"
3433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; then
3441 for ac_file in conftest.o conftest.obj conftest.*; do
3442 test -f "$ac_file" || continue;
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3454 See \`config.log
' for more details." >&5
3455 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3456 See \`config.log' for more details.
" >&2;}
3457 { (exit 1); exit 1; }; }
3460 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3463 echo "${ECHO_T}$ac_cv_objext" >&6; }
3464 OBJEXT=$ac_cv_objext
3466 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3467 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3468 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3469 echo $ECHO_N "(cached
) $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.$ac_objext; then
3508 echo "$as_me: failed program was
:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3519 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3520 GCC=`test $ac_compiler_gnu = yes && echo yes`
3521 ac_test_CFLAGS=${CFLAGS+set}
3522 ac_save_CFLAGS=$CFLAGS
3523 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3524 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_g+set}" = set; then
3526 echo $ECHO_N "(cached
) $ECHO_C" >&6
3528 ac_save_c_werror_flag=$ac_c_werror_flag
3529 ac_c_werror_flag=yes
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_compile") 2>conftest.er1
3556 grep -v '^ *+' conftest.er1 >conftest.err
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3560 (exit $ac_status); } && {
3561 test -z "$ac_c_werror_flag" ||
3562 test ! -s conftest.err
3563 } && test -s conftest.$ac_objext; then
3566 echo "$as_me: failed program was
:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest.$ac_objext; then
3604 echo "$as_me: failed program was
:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1 >conftest.err
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3643 echo "$as_me: failed program was
:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3658 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3660 if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662 elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3669 if test "$GCC" = yes; then
3675 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3676 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3677 if test "${ac_cv_prog_cc_c89+set}" = set; then
3678 echo $ECHO_N "(cached
) $ECHO_C" >&6
3680 ac_cv_prog_cc_c89=no
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3690 #include <sys/types.h>
3691 #include <sys/stat.h>
3692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3693 struct buf { int x; };
3694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695 static char *e (p, i)
3701 static char *f (char * (*g) (char **, int), char **p, ...)
3706 s = g (p, va_arg (v,int));
3711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3712 function prototypes and stuff, but not '\xHH' hex character constants.
3713 These don't provoke an error unfortunately, instead are silently treated
3714 as 'x'. The following induces an error, until -std is added to get
3715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3716 array size at least. It's necessary to write '\x00'==0 to get something
3717 that's true only with -std. */
3718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721 inside strings and character constants. */
3723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725 int test (int i, double x);
3726 struct s1 {int (*f) (int a);};
3727 struct s2 {int (*f) (double a);};
3728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742 CC="$ac_save_CC $ac_arg"
3743 rm -f conftest.$ac_objext
3744 if { (ac_try="$ac_compile"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_compile") 2>conftest.er1
3752 grep -v '^ *+' conftest.er1 >conftest.err
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3756 (exit $ac_status); } && {
3757 test -z "$ac_c_werror_flag" ||
3758 test ! -s conftest.err
3759 } && test -s conftest.$ac_objext; then
3760 ac_cv_prog_cc_c89=$ac_arg
3762 echo "$as_me: failed program was
:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3768 rm -f core conftest.err conftest.$ac_objext
3769 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3771 rm -f conftest.$ac_ext
3776 case "x
$ac_cv_prog_cc_c89" in
3778 { echo "$as_me:$LINENO: result
: none needed
" >&5
3779 echo "${ECHO_T}none needed
" >&6; } ;;
3781 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3782 echo "${ECHO_T}unsupported
" >&6; } ;;
3784 CC="$CC $ac_cv_prog_cc_c89"
3785 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3786 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 # On Suns, sometimes $CPP names a directory.
3798 if test -n "$CPP" && test -d "$CPP"; then
3802 ## If not using gcc, and on Solaris, and no CPP specified, see if
3803 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3804 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3805 test x"$CPP" = x; then
3806 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3807 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3809 if test "${emacs_cv_sunpro_c+set}" = set; then
3810 echo $ECHO_N "(cached
) $ECHO_C" >&6
3812 cat >conftest.$ac_ext <<_ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (ac_try="$ac_link"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_link") 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3843 (exit $ac_status); } && {
3844 test -z "$ac_c_werror_flag" ||
3845 test ! -s conftest.err
3846 } && test -s conftest$ac_exeext &&
3847 $as_test_x conftest$ac_exeext; then
3848 emacs_cv_sunpro_c=yes
3850 echo "$as_me: failed program was
:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 emacs_cv_sunpro_c=no
3856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3857 conftest$ac_exeext conftest.$ac_ext
3860 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3861 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3863 if test x"$emacs_cv_sunpro_c" = xyes; then
3864 NON_GNU_CPP="$CC -E -Xs"
3868 #### Some systems specify a CPP to use unless we are using GCC.
3869 #### Now that we know whether we are using GCC, we can decide whether
3870 #### to use that one.
3871 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3876 #### Some systems specify a CC to use unless we are using GCC.
3877 #### Now that we know whether we are using GCC, we can decide whether
3878 #### to use that one.
3879 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3880 test x$cc_specified != xyes
3885 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3887 CC="$CC $GCC_TEST_OPTIONS"
3890 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3892 CC="$CC $NON_GCC_TEST_OPTIONS"
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3901 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3902 # On Suns, sometimes $CPP names a directory.
3903 if test -n "$CPP" && test -d "$CPP"; then
3906 if test -z "$CPP"; then
3907 if test "${ac_cv_prog_CPP+set}" = set; then
3908 echo $ECHO_N "(cached
) $ECHO_C" >&6
3910 # Double quotes because CPP needs to be expanded
3911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3914 for ac_c_preproc_warn_flag in '' yes
3916 # Use a header file that comes with gcc, so configuring glibc
3917 # with a fresh cross-compiler works.
3918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919 # <limits.h> exists even on freestanding compilers.
3920 # On the NeXT, cc -E runs the code through the compiler's parser,
3921 # not just through cpp. "Syntax error
" is here to catch this case.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3929 # include <limits.h>
3931 # include <assert.h>
3935 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3947 (exit $ac_status); } >/dev/null && {
3948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3953 echo "$as_me: failed program was
:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 # Broken: fails on valid input.
3960 rm -f conftest.err conftest.$ac_ext
3962 # OK, works on sane cases. Now check whether nonexistent headers
3963 # can be detected and how.
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 #include <ac_nonexistent.h>
3972 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3984 (exit $ac_status); } >/dev/null && {
3985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3988 # Broken: success on invalid input.
3991 echo "$as_me: failed program was
:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 # Passes both tests.
3999 rm -f conftest.err conftest.$ac_ext
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then
4016 { echo "$as_me:$LINENO: result
: $CPP" >&5
4017 echo "${ECHO_T}$CPP" >&6; }
4019 for ac_c_preproc_warn_flag in '' yes
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error
" is here to catch this case.
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4034 # include <limits.h>
4036 # include <assert.h>
4040 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4052 (exit $ac_status); } >/dev/null && {
4053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4058 echo "$as_me: failed program was
:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 # Broken: fails on valid input.
4065 rm -f conftest.err conftest.$ac_ext
4067 # OK, works on sane cases. Now check whether nonexistent headers
4068 # can be detected and how.
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #include <ac_nonexistent.h>
4077 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4089 (exit $ac_status); } >/dev/null && {
4090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4093 # Broken: success on invalid input.
4096 echo "$as_me: failed program was
:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 # Passes both tests.
4104 rm -f conftest.err conftest.$ac_ext
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then
4112 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4113 See \
`config.log' for more details." >&5
4114 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4115 See \`config.log
' for more details." >&2;}
4116 { (exit 1); exit 1; }; }
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4122 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4127 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4128 if test "${ac_cv_path_GREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 # Extract the first word of "grep ggrep" to use in msg output
4132 if test -z "$GREP"; then
4133 set dummy grep ggrep; ac_prog_name=$2
4134 if test "${ac_cv_path_GREP+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 ac_path_GREP_found=false
4138 # Loop through the user's path and
test for each of PROGNAME-LIST
4139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4140 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4143 test -z "$as_dir" && as_dir
=.
4144 for ac_prog
in grep ggrep
; do
4145 for ac_exec_ext
in '' $ac_executable_extensions; do
4146 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4147 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4148 # Check for GNU ac_path_GREP and select it if it is found.
4149 # Check for GNU $ac_path_GREP
4150 case `"$ac_path_GREP" --version 2>&1` in
4152 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4155 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 echo 'GREP' >> "conftest.nl"
4162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4163 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4164 ac_count
=`expr $ac_count + 1`
4165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_GREP
="$ac_path_GREP"
4168 ac_path_GREP_max
=$ac_count
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4173 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4177 $ac_path_GREP_found && break 3
4187 GREP
="$ac_cv_path_GREP"
4188 if test -z "$GREP"; then
4189 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4190 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4191 { (exit 1); exit 1; }; }
4195 ac_cv_path_GREP
=$GREP
4200 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4201 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4202 GREP
="$ac_cv_path_GREP"
4205 { echo "$as_me:$LINENO: checking for egrep" >&5
4206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4207 if test "${ac_cv_path_EGREP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4211 then ac_cv_path_EGREP
="$GREP -E"
4213 # Extract the first word of "egrep" to use in msg output
4214 if test -z "$EGREP"; then
4215 set dummy
egrep; ac_prog_name
=$2
4216 if test "${ac_cv_path_EGREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 ac_path_EGREP_found
=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4222 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_prog
in egrep; do
4227 for ac_exec_ext
in '' $ac_executable_extensions; do
4228 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4234 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4237 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4245 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4246 ac_count
=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP
="$ac_path_EGREP"
4250 ac_path_EGREP_max
=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4255 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4259 $ac_path_EGREP_found && break 3
4269 EGREP
="$ac_cv_path_EGREP"
4270 if test -z "$EGREP"; then
4271 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4272 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4273 { (exit 1); exit 1; }; }
4277 ac_cv_path_EGREP
=$EGREP
4283 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4284 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4285 EGREP
="$ac_cv_path_EGREP"
4289 { echo "$as_me:$LINENO: checking for AIX" >&5
4290 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4291 cat >conftest.
$ac_ext <<_ACEOF
4294 cat confdefs.h
>>conftest.
$ac_ext
4295 cat >>conftest.
$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 $EGREP "yes" >/dev
/null
2>&1; then
4304 { echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; }
4306 cat >>confdefs.h
<<\_ACEOF
4307 #define _ALL_SOURCE 1
4311 { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4318 cat >>confdefs.h
<<\_ACEOF
4319 #define _GNU_SOURCE 1
4324 ### Use -Wno-pointer-sign if the compiler supports it
4325 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4326 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4327 SAVE_CFLAGS
="$CFLAGS"
4328 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4329 cat >conftest.
$ac_ext <<_ACEOF
4332 cat confdefs.h
>>conftest.
$ac_ext
4333 cat >>conftest.
$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4344 rm -f conftest.
$ac_objext
4345 if { (ac_try
="$ac_compile"
4347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 if test $has_option = yes; then
4371 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4373 { echo "$as_me:$LINENO: result: $has_option" >&5
4374 echo "${ECHO_T}$has_option" >&6; }
4375 CFLAGS="$SAVE_CFLAGS"
4379 #### Some other nice autoconf tests.
4381 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4384 if test "$LN_S" = "ln -s"; then
4385 { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4388 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4389 echo "${ECHO_T}no, using $LN_S" >&6; }
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4399 # On Suns, sometimes $CPP names a directory.
4400 if test -n "$CPP" && test -d "$CPP"; then
4403 if test -z "$CPP"; then
4404 if test "${ac_cv_prog_CPP+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 # Double quotes because CPP needs to be expanded
4408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4411 for ac_c_preproc_warn_flag in '' yes
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4426 # include <limits.h>
4428 # include <assert.h>
4432 if { (ac_try="$ac_cpp conftest.$ac_ext"
4434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4435 *) ac_try_echo
=$ac_try;;
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4440 grep -v '^ *+' conftest.er1
>conftest.err
4442 cat conftest.err
>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } >/dev
/null
&& {
4445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4446 test ! -s conftest.err
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.
$ac_ext >&5
4453 # Broken: fails on valid input.
4457 rm -f conftest.err conftest.
$ac_ext
4459 # OK, works on sane cases. Now check whether nonexistent headers
4460 # can be detected and how.
4461 cat >conftest.
$ac_ext <<_ACEOF
4464 cat confdefs.h
>>conftest.
$ac_ext
4465 cat >>conftest.
$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <ac_nonexistent.h>
4469 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } >/dev/null && {
4482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4485 # Broken: success on invalid input.
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 # Passes both tests.
4496 rm -f conftest.err conftest.$ac_ext
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.
$ac_ext
4501 if $ac_preproc_ok; then
4513 { echo "$as_me:$LINENO: result: $CPP" >&5
4514 echo "${ECHO_T}$CPP" >&6; }
4516 for ac_c_preproc_warn_flag
in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.
$ac_ext <<_ACEOF
4527 cat confdefs.h
>>conftest.
$ac_ext
4528 cat >>conftest.
$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4531 # include <limits.h>
4533 # include <assert.h>
4537 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 # Broken: fails on valid input.
4562 rm -f conftest.err conftest.$ac_ext
4564 # OK, works on sane cases. Now check whether nonexistent headers
4565 # can be detected and how.
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <ac_nonexistent.h>
4574 if { (ac_try="$ac_cpp conftest.$ac_ext"
4576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4577 *) ac_try_echo
=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1
>conftest.err
4584 cat conftest.err
>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev
/null
&& {
4587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4590 # Broken: success on invalid input.
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.
$ac_ext >&5
4596 # Passes both tests.
4601 rm -f conftest.err conftest.
$ac_ext
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.
$ac_ext
4606 if $ac_preproc_ok; then
4609 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }
4617 ac_cpp
='$CPP $CPPFLAGS'
4618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4622 # Find a good install program. We prefer a C program (faster),
4623 # so one script is as good as another. But avoid the broken or
4624 # incompatible versions:
4625 # SysV /etc/install, /usr/sbin/install
4626 # SunOS /usr/etc/install
4627 # IRIX /sbin/install
4629 # AmigaOS /C/install, which installs bootblocks on floppy discs
4630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4633 # OS/2's system install, which has a completely different semantic
4634 # ./install, which can be erroneously created by make from ./install.sh.
4635 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4637 if test -z "$INSTALL"; then
4638 if test "${ac_cv_path_install+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir
=.
4646 # Account for people who put trailing slashes in PATH elements.
4648 .
/ | .
// |
/cC
/* | \
4649 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4650 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4653 # OSF1 and SCO ODT 3.0 have their own names for install.
4654 # Don't use installbsd from OSF since it installs stuff as root
4656 for ac_prog
in ginstall scoinst
install; do
4657 for ac_exec_ext
in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4659 if test $ac_prog = install &&
4660 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4661 # AIX install. It has an incompatible calling convention.
4663 elif test $ac_prog = install &&
4664 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4665 # program-specific install script used by HP pwplus--don't use.
4668 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4681 if test "${ac_cv_path_install+set}" = set; then
4682 INSTALL
=$ac_cv_path_install
4684 # As a last resort, use the slow shell script. Don't cache a
4685 # value for INSTALL within a source directory, because that will
4686 # break other packages using the cache if that directory is
4687 # removed, or if the value is a relative name.
4688 INSTALL
=$ac_install_sh
4691 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4692 echo "${ECHO_T}$INSTALL" >&6; }
4694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4695 # It thinks the first close brace ends the variable substitution.
4696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4700 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4702 if test "x$RANLIB" = x
; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4705 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_RANLIB+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$RANLIB"; then
4712 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir
=.
4719 for ac_exec_ext
in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 RANLIB
=$ac_cv_prog_RANLIB
4732 if test -n "$RANLIB"; then
4733 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4734 echo "${ECHO_T}$RANLIB" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4742 if test -z "$ac_cv_prog_RANLIB"; then
4743 ac_ct_RANLIB
=$RANLIB
4744 # Extract the first word of "ranlib", so it can be a program name with args.
4745 set dummy ranlib
; ac_word
=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$ac_ct_RANLIB"; then
4752 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir
=.
4759 for ac_exec_ext
in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4772 if test -n "$ac_ct_RANLIB"; then
4773 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4774 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4780 if test "x$ac_ct_RANLIB" = x
; then
4783 case $cross_compiling:$ac_tool_warned in
4785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4786 whose name does not start with the host triplet. If you think this
4787 configuration is useful to you, please write to autoconf@gnu.org." >&5
4788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4789 whose name does not start with the host triplet. If you think this
4790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4791 ac_tool_warned
=yes ;;
4793 RANLIB
=$ac_ct_RANLIB
4796 RANLIB
="$ac_cv_prog_RANLIB"
4800 # Extract the first word of "install-info", so it can be a program name with args.
4801 set dummy install-info
; ac_word
=$2
4802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4804 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 case $INSTALL_INFO in
4809 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir
=.
4817 for ac_exec_ext
in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4831 if test -n "$INSTALL_INFO"; then
4832 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4833 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 # Extract the first word of "install-info", so it can be a program name with args.
4841 set dummy install-info
; ac_word
=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 case $INSTALL_INFO in
4849 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4853 for as_dir
in /usr
/sbin
4856 test -z "$as_dir" && as_dir
=.
4857 for ac_exec_ext
in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4871 if test -n "$INSTALL_INFO"; then
4872 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4873 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 # Extract the first word of "install-info", so it can be a program name with args.
4881 set dummy install-info
; ac_word
=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 case $INSTALL_INFO in
4889 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir
=.
4897 for ac_exec_ext
in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4911 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4912 if test -n "$INSTALL_INFO"; then
4913 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4914 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4921 # Extract the first word of "gzip", so it can be a program name with args.
4922 set dummy
gzip; ac_word
=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4937 test -z "$as_dir" && as_dir
=.
4938 for ac_exec_ext
in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4952 if test -n "$GZIP_PROG"; then
4953 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4954 echo "${ECHO_T}$GZIP_PROG" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4963 ## Need makeinfo >= 4.6 (?) to build the manuals.
4964 # Extract the first word of "makeinfo", so it can be a program name with args.
4965 set dummy makeinfo
; ac_word
=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir
=.
4981 for ac_exec_ext
in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
4995 MAKEINFO
=$ac_cv_path_MAKEINFO
4996 if test -n "$MAKEINFO"; then
4997 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4998 echo "${ECHO_T}$MAKEINFO" >&6; }
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5005 if test "$MAKEINFO" != "no" && \
5006 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
5010 if test "$MAKEINFO" = "no"; then
5011 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5012 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5013 { (exit 1); exit 1; }; }
5018 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5020 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5023 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5025 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5029 late_LDFLAGS
=$LDFLAGS
5030 if test "$GCC" = yes; then
5031 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5033 LDFLAGS
="$LDFLAGS -znocombreloc"
5036 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5037 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5038 cat >conftest.
$ac_ext <<_ACEOF
5041 rm -f conftest.
$ac_objext conftest
$ac_exeext
5042 if { (ac_try
="$ac_link"
5044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_link") 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest$ac_exeext &&
5058 $as_test_x conftest$ac_exeext; then
5059 { echo "$as_me:$LINENO: result: yes" >&5
5060 echo "${ECHO_T}yes" >&6; }
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 LDFLAGS=$late_LDFLAGS
5066 { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071 conftest$ac_exeext conftest.$ac_ext
5073 #### Extract some information from the operating system and machine files.
5075 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5076 - which libraries the lib-src programs will want, and
5077 - whether the GNU malloc routines are usable..." >&5
5078 echo "$as_me: checking the machine- and system-dependent files to find out
5079 - which libraries the lib-src programs will want, and
5080 - whether the GNU malloc routines are usable..." >&6;}
5082 ### First figure out CFLAGS (which we use for running the compiler here)
5083 ### and REAL_CFLAGS (which we use for real compilation).
5084 ### The two are the same except on a few systems, where they are made
5085 ### different to work around various lossages. For example,
5086 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5087 ### as implying static linking.
5089 ### If the CFLAGS env var is specified, we use that value
5090 ### instead of the default.
5092 ### It's not important that this name contain the PID; you can't run
5093 ### two configures in the same directory and have anything work
5095 tempcname="conftest.c"
5098 #include "'${srcdir}'/src/'${opsysfile}'"
5099 #include "'${srcdir}'/src/'${machfile}'"
5100 #ifndef LIBS_MACHINE
5101 #define LIBS_MACHINE
5106 #ifndef C_SWITCH_SYSTEM
5107 #define C_SWITCH_SYSTEM
5109 #ifndef C_SWITCH_MACHINE
5110 #define C_SWITCH_MACHINE
5112 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5113 configure___ c_switch_system=C_SWITCH_SYSTEM
5114 configure___ c_switch_machine=C_SWITCH_MACHINE
5117 #define LIB_X11_LIB -lX11
5120 #ifndef LIBX11_SYSTEM
5121 #define LIBX11_SYSTEM
5123 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5126 configure___ unexec=UNEXEC
5128 configure___ unexec=unexec.o
5131 #ifdef SYSTEM_MALLOC
5132 configure___ system_malloc=yes
5134 configure___ system_malloc=no
5137 #ifdef USE_MMAP_FOR_BUFFERS
5138 configure___ use_mmap_for_buffers=yes
5140 configure___ use_mmap_for_buffers=no
5143 #ifndef C_DEBUG_SWITCH
5144 #define C_DEBUG_SWITCH -g
5147 #ifndef C_OPTIMIZE_SWITCH
5149 #define C_OPTIMIZE_SWITCH -O2
5151 #define C_OPTIMIZE_SWITCH -O
5155 #ifndef C_WARNINGS_SWITCH
5156 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5159 #ifndef LD_SWITCH_MACHINE
5160 #define LD_SWITCH_MACHINE
5163 #ifndef LD_SWITCH_SYSTEM
5164 #define LD_SWITCH_SYSTEM
5167 #ifndef LD_SWITCH_X_SITE_AUX
5168 #define LD_SWITCH_X_SITE_AUX
5171 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5172 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5174 #ifdef THIS_IS_CONFIGURE
5176 /* Get the CFLAGS for tests in configure. */
5178 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5180 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5183 #else /* not THIS_IS_CONFIGURE */
5185 /* Get the CFLAGS for real compilation. */
5187 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5189 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5192 #endif /* not THIS_IS_CONFIGURE */
5195 # The value of CPP is a quoted variable reference, so we need to do this
5196 # to get its actual value...
5197 CPP=`eval "echo $CPP"`
5198 eval `${CPP} -Isrc ${tempcname} \
5199 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5200 if test "x$SPECIFIED_CFLAGS" = x; then
5201 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5202 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5204 REAL_CFLAGS="$CFLAGS"
5208 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5210 ### Make sure subsequent tests use flags consistent with the build flags.
5212 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5213 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5215 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5220 # Check whether --enable-largefile was given.
5221 if test "${enable_largefile+set}" = set; then
5222 enableval=$enable_largefile;
5225 if test "$enable_largefile" != no; then
5227 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5228 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5229 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 ac_cv_sys_largefile_CC=no
5233 if test "$GCC" != yes; then
5236 # IRIX 6.2 and later do not support large files by default,
5237 # so use the C compiler's -n32 option if that helps.
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/types.h>
5245 /* Check that off_t can represent 2**63 - 1 correctly.
5246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5247 since some C++ compilers masquerading as C compilers
5248 incorrectly reject 9223372036854775807. */
5249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5251 && LARGE_OFF_T % 2147483647 == 1)
5261 rm -f conftest.$ac_objext
5262 if { (ac_try="$ac_compile"
5264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5265 *) ac_try_echo
=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5270 grep -v '^ *+' conftest.er1
>conftest.err
5272 cat conftest.err
>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.
$ac_objext; then
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.
$ac_ext >&5
5286 rm -f core conftest.err conftest.
$ac_objext
5288 rm -f conftest.
$ac_objext
5289 if { (ac_try
="$ac_compile"
5291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
5305 ac_cv_sys_largefile_CC=' -n32'; break
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5313 rm -f core conftest.err conftest.$ac_objext
5317 rm -f conftest.$ac_ext
5320 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5321 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5322 if test "$ac_cv_sys_largefile_CC" != no; then
5323 CC=$CC$ac_cv_sys_largefile_CC
5326 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5327 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5328 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <sys/types.h>
5339 /* Check that off_t can represent 2**63 - 1 correctly.
5340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5341 since some C++ compilers masquerading as C compilers
5342 incorrectly reject 9223372036854775807. */
5343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5345 && LARGE_OFF_T % 2147483647 == 1)
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5359 *) ac_try_echo
=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest.
$ac_objext; then
5372 ac_cv_sys_file_offset_bits
=no
; break
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.
$ac_ext >&5
5380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 cat >conftest.
$ac_ext <<_ACEOF
5384 cat confdefs.h
>>conftest.
$ac_ext
5385 cat >>conftest.
$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #define _FILE_OFFSET_BITS 64
5388 #include <sys/types.h>
5389 /* Check that off_t can represent 2**63 - 1 correctly.
5390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5391 since some C++ compilers masquerading as C compilers
5392 incorrectly reject 9223372036854775807. */
5393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5395 && LARGE_OFF_T % 2147483647 == 1)
5405 rm -f conftest.
$ac_objext
5406 if { (ac_try
="$ac_compile"
5408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_sys_file_offset_bits=64; break
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 ac_cv_sys_file_offset_bits=unknown
5435 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5436 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5437 case $ac_cv_sys_file_offset_bits in #(
5440 cat >>confdefs.h <<_ACEOF
5441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5446 if test $ac_cv_sys_file_offset_bits = unknown; then
5447 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5448 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5449 if test "${ac_cv_sys_large_files+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <sys/types.h>
5460 /* Check that off_t can represent 2**63 - 1 correctly.
5461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5462 since some C++ compilers masquerading as C compilers
5463 incorrectly reject 9223372036854775807. */
5464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5466 && LARGE_OFF_T % 2147483647 == 1)
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5480 *) ac_try_echo
=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5485 grep -v '^ *+' conftest.er1
>conftest.err
5487 cat conftest.err
>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && {
5490 test -z "$ac_c_werror_flag" ||
5491 test ! -s conftest.err
5492 } && test -s conftest.
$ac_objext; then
5493 ac_cv_sys_large_files
=no
; break
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.
$ac_ext >&5
5501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5502 cat >conftest.
$ac_ext <<_ACEOF
5505 cat confdefs.h
>>conftest.
$ac_ext
5506 cat >>conftest.
$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #define _LARGE_FILES 1
5509 #include <sys/types.h>
5510 /* Check that off_t can represent 2**63 - 1 correctly.
5511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5512 since some C++ compilers masquerading as C compilers
5513 incorrectly reject 9223372036854775807. */
5514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5516 && LARGE_OFF_T % 2147483647 == 1)
5526 rm -f conftest.
$ac_objext
5527 if { (ac_try
="$ac_compile"
5529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 ac_cv_sys_large_files=1; break
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_cv_sys_large_files=unknown
5556 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5557 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5558 case $ac_cv_sys_large_files in #(
5561 cat >>confdefs.h <<_ACEOF
5562 #define _LARGE_FILES $ac_cv_sys_large_files
5572 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5573 ### be located in either /usr/lib64 or /usr/lib.
5574 case "${canonical}" in
5575 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5576 if test -d /usr/lib64; then
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_LIB64_DIR 1
5588 if test "${with_sound}" != "no"; then
5589 # Sound support for GNU/Linux and the free BSDs.
5590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5592 if test "${ac_cv_header_stdc+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5618 *) ac_try_echo
=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1
>conftest.err
5625 cat conftest.err
>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.
$ac_objext; then
5631 ac_cv_header_stdc
=yes
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.
$ac_ext >&5
5636 ac_cv_header_stdc
=no
5639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5641 if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat >conftest.
$ac_ext <<_ACEOF
5646 cat confdefs.h
>>conftest.
$ac_ext
5647 cat >>conftest.
$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "memchr" >/dev
/null
2>&1; then
5656 ac_cv_header_stdc
=no
5662 if test $ac_cv_header_stdc = yes; then
5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664 cat >conftest.
$ac_ext <<_ACEOF
5667 cat confdefs.h
>>conftest.
$ac_ext
5668 cat >>conftest.
$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "free" >/dev
/null
2>&1; then
5677 ac_cv_header_stdc
=no
5683 if test $ac_cv_header_stdc = yes; then
5684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5685 if test "$cross_compiling" = yes; then
5688 cat >conftest.
$ac_ext <<_ACEOF
5691 cat confdefs.h
>>conftest.
$ac_ext
5692 cat >>conftest.
$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5700 # define ISLOWER(c) \
5701 (('a' <= (c) && (c) <= 'i') \
5702 || ('j' <= (c) && (c) <= 'r') \
5703 || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712 for (i = 0; i < 256; i++)
5713 if (XOR (islower (i), ISLOWER (i))
5714 || toupper (i) != TOUPPER (i))
5719 rm -f conftest
$ac_exeext
5720 if { (ac_try
="$ac_link"
5722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5730 { (case "(($ac_try" in
5731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5732 *) ac_try_echo
=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_try") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5741 echo "$as_me: program exited with status $ac_status" >&5
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.
$ac_ext >&5
5746 ac_cv_header_stdc
=no
5748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5754 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5755 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5756 if test $ac_cv_header_stdc = yes; then
5758 cat >>confdefs.h
<<\_ACEOF
5759 #define STDC_HEADERS 1
5764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5774 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5775 inttypes.h stdint.h unistd.h
5777 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.
$ac_ext <<_ACEOF
5786 cat confdefs.h
>>conftest.
$ac_ext
5787 cat >>conftest.
$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5791 #include <$ac_header>
5793 rm -f conftest.
$ac_objext
5794 if { (ac_try
="$ac_compile"
5796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5802 grep -v '^ *+' conftest.er1 >conftest.err
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5810 eval "$as_ac_Header=yes"
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 eval "$as_ac_Header=no"
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_res=`eval echo '${'$as_ac_Header'}'`
5821 { echo "$as_me:$LINENO: result: $ac_res" >&5
5822 echo "${ECHO_T}$ac_res" >&6; }
5823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5824 cat >>confdefs.h <<_ACEOF
5825 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5836 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_res=`eval echo '${'$as_ac_Header'}'`
5846 { echo "$as_me:$LINENO: result: $ac_res" >&5
5847 echo "${ECHO_T}$ac_res" >&6; }
5849 # Is the header compilable?
5850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 $ac_includes_default
5859 #include <$ac_header>
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5865 *) ac_try_echo
=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest.
$ac_objext; then
5878 ac_header_compiler
=yes
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.
$ac_ext >&5
5883 ac_header_compiler
=no
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5888 echo "${ECHO_T}$ac_header_compiler" >&6; }
5890 # Is the header present?
5891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5893 cat >conftest.
$ac_ext <<_ACEOF
5896 cat confdefs.h
>>conftest.
$ac_ext
5897 cat >>conftest.
$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <$ac_header>
5901 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } >/dev/null && {
5914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5917 ac_header_preproc=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_header_preproc=no
5925 rm -f conftest.err conftest.$ac_ext
5926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5927 echo "${ECHO_T}$ac_header_preproc" >&6; }
5929 # So? What about this header?
5930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5936 ac_header_preproc=yes
5939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 eval "$as_ac_Header=\$ac_header_preproc"
5961 ac_res=`eval echo '${'$as_ac_Header'}'`
5962 { echo "$as_me:$LINENO: result: $ac_res" >&5
5963 echo "${ECHO_T}$ac_res" >&6; }
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5975 # Emulation library used on NetBSD.
5976 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5977 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5978 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lossaudio $LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
6000 return _oss_ioctl ();
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (ac_try="$ac_link"
6008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6009 *) ac_try_echo
=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_link") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1
>conftest.err
6016 cat conftest.err
>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest
$ac_exeext &&
6022 $as_test_x conftest
$ac_exeext; then
6023 ac_cv_lib_ossaudio__oss_ioctl
=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.
$ac_ext >&5
6028 ac_cv_lib_ossaudio__oss_ioctl
=no
6031 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6032 conftest
$ac_exeext conftest.
$ac_ext
6033 LIBS
=$ac_check_lib_save_LIBS
6035 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6036 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6037 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6046 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6050 # Extract the first word of "pkg-config", so it can be a program name with args.
6051 set dummy pkg-config
; ac_word
=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir
=.
6067 for ac_exec_ext
in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6081 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6082 if test -n "$PKG_CONFIG"; then
6083 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6084 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6092 if test "$PKG_CONFIG" = "no" ; then
6095 PKG_CONFIG_MIN_VERSION
=0.9.0
6096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6097 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6098 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6100 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6101 { echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6; }
6105 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6106 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6107 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6108 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6109 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6111 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6112 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6113 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6114 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6115 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6121 ## If we have a custom action on failure, don't print errors, but
6122 ## do set a variable so people can do so.
6123 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6135 if test $succeeded = yes; then
6141 if test $HAVE_ALSA = yes; then
6142 SAVE_CFLAGS
="$CFLAGS"
6143 SAVE_LDFLAGS
="$LDFLAGS"
6144 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6145 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6146 cat >conftest.
$ac_ext <<_ACEOF
6149 cat confdefs.h
>>conftest.
$ac_ext
6150 cat >>conftest.
$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <asoundlib.h>
6156 snd_lib_error_set_handler (0);
6161 rm -f conftest.
$ac_objext
6162 if { (ac_try
="$ac_compile"
6164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 emacs_alsa_normal=yes
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 emacs_alsa_normal=no
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 if test "$emacs_alsa_normal" != yes; then
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <alsa/asoundlib.h>
6198 snd_lib_error_set_handler (0);
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6207 *) ac_try_echo
=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1
>conftest.err
6214 cat conftest.err
>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.
$ac_objext; then
6220 emacs_alsa_subdir
=yes
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.
$ac_ext >&5
6225 emacs_alsa_subdir
=no
6228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6229 if test "$emacs_alsa_subdir" != yes; then
6230 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6231 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6232 { (exit 1); exit 1; }; }
6234 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6237 CFLAGS
="$SAVE_CFLAGS"
6238 LDFLAGS
="$SAVE_LDFLAGS"
6239 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6240 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6242 cat >>confdefs.h
<<\_ACEOF
6275 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6276 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6277 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6278 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6281 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6285 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_res
=`eval echo '${'$as_ac_Header'}'`
6289 { echo "$as_me:$LINENO: result: $ac_res" >&5
6290 echo "${ECHO_T}$ac_res" >&6; }
6292 # Is the header compilable?
6293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6295 cat >conftest.
$ac_ext <<_ACEOF
6298 cat confdefs.h
>>conftest.
$ac_ext
6299 cat >>conftest.
$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6302 #include <$ac_header>
6304 rm -f conftest.
$ac_objext
6305 if { (ac_try
="$ac_compile"
6307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6321 ac_header_compiler=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_header_compiler=no
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6331 echo "${ECHO_T}$ac_header_compiler" >&6; }
6333 # Is the header present?
6334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <$ac_header>
6344 if { (ac_try="$ac_cpp conftest.$ac_ext"
6346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6347 *) ac_try_echo
=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev
/null
&& {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6360 ac_header_preproc
=yes
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.
$ac_ext >&5
6365 ac_header_preproc
=no
6368 rm -f conftest.err conftest.
$ac_ext
6369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 echo "${ECHO_T}$ac_header_preproc" >&6; }
6372 # So? What about this header?
6373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 ac_header_preproc
=yes
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6399 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 eval "$as_ac_Header=\$ac_header_preproc"
6404 ac_res
=`eval echo '${'$as_ac_Header'}'`
6405 { echo "$as_me:$LINENO: result: $ac_res" >&5
6406 echo "${ECHO_T}$ac_res" >&6; }
6409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6410 cat >>confdefs.h
<<_ACEOF
6411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6419 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6420 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6421 cat >conftest.
$ac_ext <<_ACEOF
6424 cat confdefs.h
>>conftest.
$ac_ext
6425 cat >>conftest.
$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <sys/personality.h>
6431 personality (PER_LINUX32)
6436 rm -f conftest.
$ac_objext
6437 if { (ac_try
="$ac_compile"
6439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 emacs_cv_personality_linux32=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 emacs_cv_personality_linux32=no
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6463 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6465 if test $emacs_cv_personality_linux32 = yes; then
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_PERSONALITY_LINUX32 1
6474 for ac_header in term.h
6476 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <$ac_header>
6490 if { (ac_try="$ac_cpp conftest.$ac_ext"
6492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6493 *) ac_try_echo
=$ac_try;;
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6498 grep -v '^ *+' conftest.er1
>conftest.err
6500 cat conftest.err
>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } >/dev
/null
&& {
6503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6506 eval "$as_ac_Header=yes"
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.
$ac_ext >&5
6511 eval "$as_ac_Header=no"
6514 rm -f conftest.err conftest.
$ac_ext
6516 ac_res
=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518 echo "${ECHO_T}$ac_res" >&6; }
6519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520 cat >>confdefs.h
<<_ACEOF
6521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6528 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6530 if test "${ac_cv_header_stdc+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 cat >conftest.
$ac_ext <<_ACEOF
6536 cat confdefs.h
>>conftest.
$ac_ext
6537 cat >>conftest.
$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6552 rm -f conftest.
$ac_objext
6553 if { (ac_try
="$ac_compile"
6555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_header_stdc=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_header_stdc=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test $ac_cv_header_stdc = yes; then
6580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "memchr" >/dev/null 2>&1; then
6594 ac_cv_header_stdc=no
6600 if test $ac_cv_header_stdc = yes; then
6601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 $EGREP "free" >/dev/null 2>&1; then
6615 ac_cv_header_stdc=no
6621 if test $ac_cv_header_stdc = yes; then
6622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6623 if test "$cross_compiling" = yes; then
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6634 #if ((' ' & 0x0FF) == 0x020)
6635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6638 # define ISLOWER(c) \
6639 (('a' <= (c) && (c) <= 'i') \
6640 || ('j' <= (c) && (c) <= 'r') \
6641 || ('s' <= (c) && (c) <= 'z'))
6642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6650 for (i = 0; i < 256; i++)
6651 if (XOR (islower (i), ISLOWER (i))
6652 || toupper (i) != TOUPPER (i))
6657 rm -f conftest$ac_exeext
6658 if { (ac_try="$ac_link"
6660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6661 *) ac_try_echo
=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_link") 2>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6668 { (case "(($ac_try" in
6669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_try") 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6679 echo "$as_me: program exited with status $ac_status" >&5
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6684 ac_cv_header_stdc=no
6686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6693 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6694 if test $ac_cv_header_stdc = yes; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define STDC_HEADERS 1
6702 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6704 if test "${ac_cv_header_time+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <sys/types.h>
6714 #include <sys/time.h>
6720 if ((struct tm *) 0)
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6730 *) ac_try_echo
=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6735 grep -v '^ *+' conftest.er1
>conftest.err
6737 cat conftest.err
>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.
$ac_objext; then
6743 ac_cv_header_time
=yes
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.
$ac_ext >&5
6748 ac_cv_header_time
=no
6751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6753 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6754 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6755 if test $ac_cv_header_time = yes; then
6757 cat >>confdefs.h
<<\_ACEOF
6758 #define TIME_WITH_SYS_TIME 1
6763 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6764 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6765 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.
$ac_ext <<_ACEOF
6771 cat confdefs.h
>>conftest.
$ac_ext
6772 cat >>conftest.
$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 $ac_includes_default
6786 rm -f conftest.
$ac_objext
6787 if { (ac_try
="$ac_compile"
6789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_have_decl_sys_siglist=yes
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_have_decl_sys_siglist=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6814 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6815 if test $ac_cv_have_decl_sys_siglist = yes; then
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_DECL_SYS_SIGLIST 1
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_DECL_SYS_SIGLIST 0
6831 if test $ac_cv_have_decl_sys_siglist != yes; then
6832 # For Tru64, at least:
6833 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6834 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6835 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6848 #ifndef __sys_siglist
6849 (void) __sys_siglist;
6856 rm -f conftest.$ac_objext
6857 if { (ac_try="$ac_compile"
6859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6860 *) ac_try_echo
=$ac_try;;
6862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6865 grep -v '^ *+' conftest.er1
>conftest.err
6867 cat conftest.err
>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.
$ac_objext; then
6873 ac_cv_have_decl___sys_siglist
=yes
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.
$ac_ext >&5
6878 ac_cv_have_decl___sys_siglist
=no
6881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6884 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6885 if test $ac_cv_have_decl___sys_siglist = yes; then
6887 cat >>confdefs.h
<<_ACEOF
6888 #define HAVE_DECL___SYS_SIGLIST 1
6893 cat >>confdefs.h
<<_ACEOF
6894 #define HAVE_DECL___SYS_SIGLIST 0
6901 if test $ac_cv_have_decl___sys_siglist = yes; then
6903 cat >>confdefs.h
<<\_ACEOF
6904 #define sys_siglist __sys_siglist
6909 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6910 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6911 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cat >conftest.
$ac_ext <<_ACEOF
6917 cat confdefs.h
>>conftest.
$ac_ext
6918 cat >>conftest.
$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6921 #include <sys/wait.h>
6923 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6926 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6934 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6939 rm -f conftest.
$ac_objext
6940 if { (ac_try
="$ac_compile"
6942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6948 grep -v '^ *+' conftest.er1 >conftest.err
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_header_sys_wait_h=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_header_sys_wait_h=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6967 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6968 if test $ac_cv_header_sys_wait_h = yes; then
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_SYS_WAIT_H 1
6977 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6978 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6979 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #ifdef TIME_WITH_SYS_TIME
6989 #include <sys/time.h>
6992 #ifdef HAVE_SYS_TIME_H
6993 #include <sys/time.h>
7004 static struct utimbuf x; x.actime = x.modtime;
7009 rm -f conftest.$ac_objext
7010 if { (ac_try="$ac_compile"
7012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7013 *) ac_try_echo
=$ac_try;;
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7018 grep -v '^ *+' conftest.er1
>conftest.err
7020 cat conftest.err
>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.
$ac_objext; then
7026 emacs_cv_struct_utimbuf
=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.
$ac_ext >&5
7031 emacs_cv_struct_utimbuf
=no
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7036 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7037 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7038 if test $emacs_cv_struct_utimbuf = yes; then
7040 cat >>confdefs.h
<<\_ACEOF
7041 #define HAVE_STRUCT_UTIMBUF 1
7046 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7047 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_signal+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.
$ac_ext <<_ACEOF
7054 cat confdefs.h
>>conftest.
$ac_ext
7055 cat >>conftest.
$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7063 return *(signal (0, 0)) (0) == 1;
7068 rm -f conftest.
$ac_objext
7069 if { (ac_try
="$ac_compile"
7071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 ac_cv_type_signal=int
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_type_signal=void
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7096 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7098 cat >>confdefs.h <<_ACEOF
7099 #define RETSIGTYPE $ac_cv_type_signal
7104 { echo "$as_me:$LINENO: checking for speed_t" >&5
7105 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7106 if test "${emacs_cv_speed_t+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <termios.h>
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7128 *) ac_try_echo
=$ac_try;;
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1
>conftest.err
7135 cat conftest.err
>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.
$ac_objext; then
7141 emacs_cv_speed_t
=yes
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.
$ac_ext >&5
7149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7152 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7153 if test $emacs_cv_speed_t = yes; then
7155 cat >>confdefs.h
<<\_ACEOF
7156 #define HAVE_SPEED_T 1
7161 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7162 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_timeval+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.
$ac_ext <<_ACEOF
7169 cat confdefs.h
>>conftest.
$ac_ext
7170 cat >>conftest.
$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7185 static struct timeval x; x.tv_sec = x.tv_usec;
7190 rm -f conftest.
$ac_objext
7191 if { (ac_try
="$ac_compile"
7193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7207 emacs_cv_struct_timeval=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 emacs_cv_struct_timeval=no
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7218 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7219 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7220 if test $emacs_cv_struct_timeval = yes; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_TIMEVAL 1
7228 { echo "$as_me:$LINENO: checking for struct exception" >&5
7229 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7230 if test "${emacs_cv_struct_exception+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7243 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7248 rm -f conftest.$ac_objext
7249 if { (ac_try="$ac_compile"
7251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7252 *) ac_try_echo
=$ac_try;;
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1
>conftest.err
7259 cat conftest.err
>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.
$ac_objext; then
7265 emacs_cv_struct_exception
=yes
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.
$ac_ext >&5
7270 emacs_cv_struct_exception
=no
7273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7275 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7276 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7277 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7278 if test $emacs_cv_struct_exception != yes; then
7280 cat >>confdefs.h
<<\_ACEOF
7281 #define NO_MATHERR 1
7287 for ac_header
in sys
/socket.h
7289 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7293 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_res
=`eval echo '${'$as_ac_Header'}'`
7297 { echo "$as_me:$LINENO: result: $ac_res" >&5
7298 echo "${ECHO_T}$ac_res" >&6; }
7300 # Is the header compilable?
7301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #include <$ac_header>
7312 rm -f conftest.
$ac_objext
7313 if { (ac_try
="$ac_compile"
7315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7321 grep -v '^ *+' conftest.er1 >conftest.err
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
7329 ac_header_compiler=yes
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_header_compiler=no
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7339 echo "${ECHO_T}$ac_header_compiler" >&6; }
7341 # Is the header present?
7342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <$ac_header>
7352 if { (ac_try="$ac_cpp conftest.$ac_ext"
7354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7355 *) ac_try_echo
=$ac_try;;
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7360 grep -v '^ *+' conftest.er1
>conftest.err
7362 cat conftest.err
>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } >/dev
/null
&& {
7365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7368 ac_header_preproc
=yes
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.
$ac_ext >&5
7373 ac_header_preproc
=no
7376 rm -f conftest.err conftest.
$ac_ext
7377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378 echo "${ECHO_T}$ac_header_preproc" >&6; }
7380 # So? What about this header?
7381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7387 ac_header_preproc
=yes
7390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7407 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 eval "$as_ac_Header=\$ac_header_preproc"
7412 ac_res
=`eval echo '${'$as_ac_Header'}'`
7413 { echo "$as_me:$LINENO: result: $ac_res" >&5
7414 echo "${ECHO_T}$ac_res" >&6; }
7417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7418 cat >>confdefs.h
<<_ACEOF
7419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7427 for ac_header
in net
/if.h
7429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 cat >conftest.
$ac_ext <<_ACEOF
7438 cat confdefs.h
>>conftest.
$ac_ext
7439 cat >>conftest.
$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7442 #if HAVE_SYS_SOCKET_H
7443 #include <sys/socket.h>
7446 #include <$ac_header>
7448 rm -f conftest.
$ac_objext
7449 if { (ac_try
="$ac_compile"
7451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 eval "$as_ac_Header=yes"
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 eval "$as_ac_Header=no"
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 ac_res=`eval echo '${'$as_ac_Header'}'`
7476 { echo "$as_me:$LINENO: result: $ac_res" >&5
7477 echo "${ECHO_T}$ac_res" >&6; }
7478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7479 cat >>confdefs.h <<_ACEOF
7480 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7488 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7489 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7490 if test "${ac_cv_struct_tm+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 cat >conftest.$ac_ext <<_ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 #include <sys/types.h>
7506 int *p = &tm.tm_sec;
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7516 *) ac_try_echo
=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7521 grep -v '^ *+' conftest.er1
>conftest.err
7523 cat conftest.err
>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.
$ac_objext; then
7529 ac_cv_struct_tm
=time.h
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.
$ac_ext >&5
7534 ac_cv_struct_tm
=sys
/time.h
7537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7539 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7540 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7541 if test $ac_cv_struct_tm = sys
/time.h
; then
7543 cat >>confdefs.h
<<\_ACEOF
7544 #define TM_IN_SYS_TIME 1
7549 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7550 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7551 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 cat >conftest.
$ac_ext <<_ACEOF
7557 cat confdefs.h
>>conftest.
$ac_ext
7558 cat >>conftest.
$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <sys/types.h>
7561 #include <$ac_cv_struct_tm>
7567 static struct tm ac_aggr;
7568 if (ac_aggr.tm_zone)
7574 rm -f conftest.
$ac_objext
7575 if { (ac_try
="$ac_compile"
7577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_cv_member_struct_tm_tm_zone=yes
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <sys/types.h>
7603 #include <$ac_cv_struct_tm>
7609 static struct tm ac_aggr;
7610 if (sizeof ac_aggr.tm_zone)
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7620 *) ac_try_echo
=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7625 grep -v '^ *+' conftest.er1
>conftest.err
7627 cat conftest.err
>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.
$ac_objext; then
7633 ac_cv_member_struct_tm_tm_zone
=yes
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.
$ac_ext >&5
7638 ac_cv_member_struct_tm_tm_zone
=no
7641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7646 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7650 cat >>confdefs.h
<<_ACEOF
7651 #define HAVE_STRUCT_TM_TM_ZONE 1
7657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7659 cat >>confdefs.h
<<\_ACEOF
7660 #define HAVE_TM_ZONE 1
7664 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7665 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7666 if test "${ac_cv_have_decl_tzname+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7672 cat confdefs.h
>>conftest.
$ac_ext
7673 cat >>conftest.
$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7688 rm -f conftest.
$ac_objext
7689 if { (ac_try
="$ac_compile"
7691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7697 grep -v '^ *+' conftest.er1 >conftest.err
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 ac_cv_have_decl_tzname=yes
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_cv_have_decl_tzname=no
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7716 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7717 if test $ac_cv_have_decl_tzname = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_DECL_TZNAME 1
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DECL_TZNAME 0
7733 { echo "$as_me:$LINENO: checking for tzname" >&5
7734 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7735 if test "${ac_cv_var_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7745 #if !HAVE_DECL_TZNAME
7746 extern char *tzname[];
7752 return tzname[0][0];
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7761 *) ac_try_echo
=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1
>conftest.err
7768 cat conftest.err
>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest
$ac_exeext &&
7774 $as_test_x conftest
$ac_exeext; then
7775 ac_cv_var_tzname
=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.
$ac_ext >&5
7783 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7784 conftest
$ac_exeext conftest.
$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7787 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7788 if test $ac_cv_var_tzname = yes; then
7790 cat >>confdefs.h
<<\_ACEOF
7791 #define HAVE_TZNAME 1
7797 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7798 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7799 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 cat >conftest.
$ac_ext <<_ACEOF
7805 cat confdefs.h
>>conftest.
$ac_ext
7806 cat >>conftest.
$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7813 static struct tm ac_aggr;
7814 if (ac_aggr.tm_gmtoff)
7820 rm -f conftest.
$ac_objext
7821 if { (ac_try
="$ac_compile"
7823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_cv_member_struct_tm_tm_gmtoff=yes
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 cat >conftest.$ac_ext <<_ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7853 static struct tm ac_aggr;
7854 if (sizeof ac_aggr.tm_gmtoff)
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7864 *) ac_try_echo
=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1
>conftest.err
7871 cat conftest.err
>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.
$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff
=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.
$ac_ext >&5
7882 ac_cv_member_struct_tm_tm_gmtoff
=no
7885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7890 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7891 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7892 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7894 cat >>confdefs.h
<<\_ACEOF
7895 #define HAVE_TM_GMTOFF 1
7900 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7901 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7902 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 cat >conftest.
$ac_ext <<_ACEOF
7908 cat confdefs.h
>>conftest.
$ac_ext
7909 cat >>conftest.
$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7912 #if HAVE_SYS_SOCKET_H
7913 #include <sys/socket.h>
7922 static struct ifreq ac_aggr;
7923 if (ac_aggr.ifr_flags)
7929 rm -f conftest.
$ac_objext
7930 if { (ac_try
="$ac_compile"
7932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1 >conftest.err
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_cv_member_struct_ifreq_ifr_flags=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #if HAVE_SYS_SOCKET_H
7959 #include <sys/socket.h>
7968 static struct ifreq ac_aggr;
7969 if (sizeof ac_aggr.ifr_flags)
7975 rm -f conftest.$ac_objext
7976 if { (ac_try="$ac_compile"
7978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7979 *) ac_try_echo
=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_compile") 2>conftest.er1
7984 grep -v '^ *+' conftest.er1
>conftest.err
7986 cat conftest.err
>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest.
$ac_objext; then
7992 ac_cv_member_struct_ifreq_ifr_flags
=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.
$ac_ext >&5
7997 ac_cv_member_struct_ifreq_ifr_flags
=no
8000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8006 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8007 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8009 cat >>confdefs.h
<<_ACEOF
8010 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8015 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8016 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8017 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.
$ac_ext <<_ACEOF
8023 cat confdefs.h
>>conftest.
$ac_ext
8024 cat >>conftest.
$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8037 static struct ifreq ac_aggr;
8038 if (ac_aggr.ifr_hwaddr)
8044 rm -f conftest.
$ac_objext
8045 if { (ac_try
="$ac_compile"
8047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 $ac_includes_default
8073 #if HAVE_SYS_SOCKET_H
8074 #include <sys/socket.h>
8083 static struct ifreq ac_aggr;
8084 if (sizeof ac_aggr.ifr_hwaddr)
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8094 *) ac_try_echo
=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1
>conftest.err
8101 cat conftest.err
>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.
$ac_objext; then
8107 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.
$ac_ext >&5
8112 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8121 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8122 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8124 cat >>confdefs.h
<<_ACEOF
8125 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8130 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8131 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8132 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 cat >conftest.
$ac_ext <<_ACEOF
8138 cat confdefs.h
>>conftest.
$ac_ext
8139 cat >>conftest.
$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8152 static struct ifreq ac_aggr;
8153 if (ac_aggr.ifr_netmask)
8159 rm -f conftest.
$ac_objext
8160 if { (ac_try
="$ac_compile"
8162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_netmask=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 $ac_includes_default
8188 #if HAVE_SYS_SOCKET_H
8189 #include <sys/socket.h>
8198 static struct ifreq ac_aggr;
8199 if (sizeof ac_aggr.ifr_netmask)
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8209 *) ac_try_echo
=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1
>conftest.err
8216 cat conftest.err
>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.
$ac_objext; then
8222 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.
$ac_ext >&5
8227 ac_cv_member_struct_ifreq_ifr_netmask
=no
8230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8236 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8237 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8239 cat >>confdefs.h
<<_ACEOF
8240 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8245 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8246 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8247 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cat >conftest.
$ac_ext <<_ACEOF
8253 cat confdefs.h
>>conftest.
$ac_ext
8254 cat >>conftest.
$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (ac_aggr.ifr_broadaddr)
8274 rm -f conftest.
$ac_objext
8275 if { (ac_try
="$ac_compile"
8277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8313 static struct ifreq ac_aggr;
8314 if (sizeof ac_aggr.ifr_broadaddr)
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8324 *) ac_try_echo
=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8329 grep -v '^ *+' conftest.er1
>conftest.err
8331 cat conftest.err
>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.
$ac_objext; then
8337 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.
$ac_ext >&5
8342 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8351 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8352 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8354 cat >>confdefs.h
<<_ACEOF
8355 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8360 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8361 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.
$ac_ext <<_ACEOF
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_addr)
8389 rm -f conftest.
$ac_objext
8390 if { (ac_try
="$ac_compile"
8392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_addr=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 #if HAVE_SYS_SOCKET_H
8419 #include <sys/socket.h>
8428 static struct ifreq ac_aggr;
8429 if (sizeof ac_aggr.ifr_addr)
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8439 *) ac_try_echo
=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1
>conftest.err
8446 cat conftest.err
>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.
$ac_objext; then
8452 ac_cv_member_struct_ifreq_ifr_addr
=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.
$ac_ext >&5
8457 ac_cv_member_struct_ifreq_ifr_addr
=no
8460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8466 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8467 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8469 cat >>confdefs.h
<<_ACEOF
8470 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8478 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8479 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8480 if test "$ac_cv_prog_cc_c89" != no
; then
8481 { echo "$as_me:$LINENO: result: yes" >&5
8482 echo "${ECHO_T}yes" >&6; }
8484 cat >>confdefs.h
<<\_ACEOF
8485 #define PROTOTYPES 1
8489 cat >>confdefs.h
<<\_ACEOF
8490 #define __PROTOTYPES 1
8494 { echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6; }
8498 { echo "$as_me:$LINENO: checking for working volatile" >&5
8499 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8500 if test "${ac_cv_c_volatile+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.
$ac_ext <<_ACEOF
8506 cat confdefs.h
>>conftest.
$ac_ext
8507 cat >>conftest.
$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8515 int * volatile y = (int *) 0;
8521 rm -f conftest.
$ac_objext
8522 if { (ac_try
="$ac_compile"
8524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_c_volatile=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8549 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8550 if test $ac_cv_c_volatile = no; then
8552 cat >>confdefs.h <<\_ACEOF
8558 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8559 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8560 if test "${ac_cv_c_const+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8573 /* FIXME: Include the comments suggested by Paul. */
8575 /* Ultrix mips cc rejects this. */
8576 typedef int charset[2];
8578 /* SunOS 4.1.1 cc rejects this. */
8579 char const *const *pcpcc;
8581 /* NEC SVR4.0.2 mips cc rejects this. */
8582 struct point {int x, y;};
8583 static struct point const zero = {0,0};
8584 /* AIX XL C 1.02.0.0 rejects this.
8585 It does not let you subtract one const X* pointer from another in
8586 an arm of an if-expression whose if-part is not a constant
8588 const char *g = "string";
8589 pcpcc = &g + (g ? g-g : 0);
8590 /* HPUX 7.0 cc rejects these. */
8592 ppc = (char**) pcpcc;
8593 pcpcc = (char const *const *) ppc;
8594 { /* SCO 3.2v4 cc rejects this. */
8596 char const *s = 0 ? (char *) 0 : (char const *) 0;
8601 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8603 const int *foo = &x[0];
8606 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8607 typedef const int *iptr;
8611 { /* AIX XL C 1.02.0.0 rejects this saying
8612 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8613 struct s { int j; const int *ap[3]; };
8614 struct s *b; b->j = 5;
8616 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8620 return !cs[0] && !zero.x;
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8631 *) ac_try_echo
=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8636 grep -v '^ *+' conftest.er1
>conftest.err
8638 cat conftest.err
>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.
$ac_objext; then
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.
$ac_ext >&5
8652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8655 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8656 if test $ac_cv_c_const = no
; then
8658 cat >>confdefs.h
<<\_ACEOF
8664 { echo "$as_me:$LINENO: checking for void * support" >&5
8665 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8666 if test "${emacs_cv_void_star+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.
$ac_ext <<_ACEOF
8672 cat confdefs.h
>>conftest.
$ac_ext
8673 cat >>conftest.
$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8684 rm -f conftest.
$ac_objext
8685 if { (ac_try
="$ac_compile"
8687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest.$ac_objext; then
8701 emacs_cv_void_star=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 emacs_cv_void_star=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8712 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8713 if test $emacs_cv_void_star = yes; then
8714 cat >>confdefs.h <<\_ACEOF
8715 #define POINTER_TYPE void
8719 cat >>confdefs.h <<\_ACEOF
8720 #define POINTER_TYPE char
8729 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8730 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8731 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8732 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 cat >conftest.make <<\_ACEOF
8738 @echo '@@@%%%=$(MAKE)=@@@%%%'
8740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8741 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8743 eval ac_cv_prog_make_${ac_make}_set=yes;;
8745 eval ac_cv_prog_make_${ac_make}_set=no;;
8749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8750 { echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6; }
8754 { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8756 SET_MAKE="MAKE=${MAKE-make}"
8760 { echo "$as_me:$LINENO: checking for long file names" >&5
8761 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8762 if test "${ac_cv_sys_long_file_names+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 ac_cv_sys_long_file_names=yes
8766 # Test for long file names in all the places we know might matter:
8767 # . the current directory, where building will happen
8768 # $prefix/lib where we will be installing things
8769 # $exec_prefix/lib likewise
8770 # $TMPDIR if set, where it might want to write temporary files
8771 # /tmp where it might want to write temporary files
8774 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8775 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8776 # in the usual case where exec_prefix is '${prefix}'.
8778 . | /* | ?:[\\/]*) ;; #(
8781 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8782 ac_xdir=$ac_dir/cf$$
8783 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8784 ac_tf1=$ac_xdir/conftest9012345
8785 ac_tf2=$ac_xdir/conftest9012346
8786 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8787 ac_cv_sys_long_file_names=no
8788 rm -f -r "$ac_xdir" 2>/dev/null
8789 test $ac_cv_sys_long_file_names = no && break
8792 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8793 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8794 if test $ac_cv_sys_long_file_names = yes; then
8796 cat >>confdefs.h <<\_ACEOF
8797 #define HAVE_LONG_FILE_NAMES 1
8803 #### Choose a window system.
8805 { echo "$as_me:$LINENO: checking for X" >&5
8806 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8809 # Check whether --with-x was given.
8810 if test "${with_x+set}" = set; then
8814 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8815 if test "x$with_x" = xno; then
8816 # The user explicitly disabled X.
8819 case $x_includes,$x_libraries in #(
8820 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8821 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8822 { (exit 1); exit 1; }; };; #(
8823 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 # One or both of the vars are not set, and there is no cached value.
8827 ac_x_includes=no ac_x_libraries=no
8828 rm -f -r conftest.dir
8829 if mkdir conftest.dir; then
8831 cat >Imakefile <<'_ACEOF'
8833 @echo incroot='${INCROOT}'
8835 @echo usrlibdir='${USRLIBDIR}'
8837 @echo libdir='${LIBDIR}'
8839 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8841 for ac_var in incroot usrlibdir libdir; do
8842 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8844 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8845 for ac_extension in a so sl; do
8846 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8847 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8848 ac_im_usrlibdir=$ac_im_libdir; break
8851 # Screen out bogus values from the imake configuration. They are
8852 # bogus both because they are the default anyway, and because
8853 # using them would break gcc on systems where it needs fixed includes.
8854 case $ac_im_incroot in
8855 /usr/include) ac_x_includes= ;;
8856 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8858 case $ac_im_usrlibdir in
8860 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8864 rm -f -r conftest.dir
8867 # Standard set of common directories for X headers.
8868 # Check X11 before X11Rn because it is often a symlink to the current release.
8880 /usr/local/X11/include
8881 /usr/local/X11R6/include
8882 /usr/local/X11R5/include
8883 /usr/local/X11R4/include
8885 /usr/local/include/X11
8886 /usr/local/include/X11R6
8887 /usr/local/include/X11R5
8888 /usr/local/include/X11R4
8892 /usr/XFree86/include/X11
8896 /usr/unsupported/include
8898 /usr/local/x11r5/include
8899 /usr/lpp/Xamples/include
8901 /usr/openwin/include
8902 /usr/openwin/share/include'
8904 if test "$ac_x_includes" = no; then
8905 # Guess where to find include files, by looking for Xlib.h.
8906 # First, try using that file with no special directory specified.
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 #include <X11/Xlib.h>
8915 if { (ac_try="$ac_cpp conftest.$ac_ext"
8917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8918 *) ac_try_echo
=$ac_try;;
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8923 grep -v '^ *+' conftest.er1
>conftest.err
8925 cat conftest.err
>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } >/dev
/null
&& {
8928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8929 test ! -s conftest.err
8931 # We can compile using X headers with no special include directory.
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.
$ac_ext >&5
8937 for ac_dir
in $ac_x_header_dirs; do
8938 if test -r "$ac_dir/X11/Xlib.h"; then
8939 ac_x_includes
=$ac_dir
8945 rm -f conftest.err conftest.
$ac_ext
8946 fi # $ac_x_includes = no
8948 if test "$ac_x_libraries" = no
; then
8949 # Check for the libraries.
8950 # See if we find them without any special options.
8951 # Don't add to $LIBS permanently.
8954 cat >conftest.
$ac_ext <<_ACEOF
8957 cat confdefs.h
>>conftest.
$ac_ext
8958 cat >>conftest.
$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <X11/Xlib.h>
8969 rm -f conftest.
$ac_objext conftest
$ac_exeext
8970 if { (ac_try
="$ac_link"
8972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_link") 2>conftest.er1
8978 grep -v '^ *+' conftest.er1 >conftest.err
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest$ac_exeext &&
8986 $as_test_x conftest$ac_exeext; then
8988 # We can link X programs with no special library path.
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8995 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
8997 # Don't even attempt the hair of trying to link an X program!
8998 for ac_extension in a so sl; do
8999 if test -r "$ac_dir/libX11.$ac_extension"; then
9000 ac_x_libraries=$ac_dir
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext conftest.$ac_ext
9009 fi # $ac_x_libraries = no
9011 case $ac_x_includes,$ac_x_libraries in #(
9013 # Didn't find X, or a directory has "'" in its name.
9014 ac_cv_have_x="have_x=no";; #(
9016 # Record where we found X for the cache.
9017 ac_cv_have_x="have_x=yes\
9018 ac_x_includes='$ac_x_includes'\
9019 ac_x_libraries='$ac_x_libraries'"
9025 eval "$ac_cv_have_x"
9028 if test "$have_x" != yes; then
9029 { echo "$as_me:$LINENO: result: $have_x" >&5
9030 echo "${ECHO_T}$have_x" >&6; }
9033 # If each of the values was on the command line, it overrides each guess.
9034 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9035 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9036 # Update the cache value to reflect the command line values.
9037 ac_cv_have_x="have_x=yes\
9038 ac_x_includes='$x_includes'\
9039 ac_x_libraries='$x_libraries'"
9040 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9041 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9044 if test "$no_x" = yes; then
9050 if test "${x_libraries}" != NONE; then
9051 if test -n "${x_libraries}"; then
9052 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9053 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9055 x_default_search_path=""
9056 x_search_path=${x_libraries}
9057 if test -z "${x_search_path}"; then
9058 x_search_path=/usr/lib
9060 for x_library in `echo ${x_search_path}: | \
9061 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9063 ${x_library}/X11/%L/%T/%N%C%S:\
9064 ${x_library}/X11/%l/%T/%N%C%S:\
9065 ${x_library}/X11/%T/%N%C%S:\
9066 ${x_library}/X11/%L/%T/%N%S:\
9067 ${x_library}/X11/%l/%T/%N%S:\
9068 ${x_library}/X11/%T/%N%S"
9069 if test x"${x_default_search_path}" = x; then
9070 x_default_search_path=${x_search_path}
9072 x_default_search_path="${x_search_path}:${x_default_search_path}"
9076 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9077 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9080 if test x"${x_includes}" = x; then
9081 bitmapdir=/usr/include/X11/bitmaps
9083 # accumulate include directories that have X11 bitmap subdirectories
9085 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9086 if test -d "${bmd}/X11/bitmaps"; then
9087 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9089 if test -d "${bmd}/bitmaps"; then
9090 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9093 if test ${bmd_acc} != "dummyval"; then
9094 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9099 if test "${with_carbon}" != no; then
9100 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9101 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9102 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9103 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9107 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9109 # Is the header compilable?
9110 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9111 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 #include <Carbon/Carbon.h>
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9125 *) ac_try_echo
=$ac_try;;
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9130 grep -v '^ *+' conftest.er1
>conftest.err
9132 cat conftest.err
>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.
$ac_objext; then
9138 ac_header_compiler
=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.
$ac_ext >&5
9143 ac_header_compiler
=no
9146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6; }
9150 # Is the header present?
9151 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9152 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9153 cat >conftest.
$ac_ext <<_ACEOF
9156 cat confdefs.h
>>conftest.
$ac_ext
9157 cat >>conftest.
$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <Carbon/Carbon.h>
9161 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9169 grep -v '^ *+' conftest.er1 >conftest.err
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } >/dev/null && {
9174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9177 ac_header_preproc=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_preproc=no
9185 rm -f conftest.err conftest.$ac_ext
9186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187 echo "${ECHO_T}$ac_header_preproc" >&6; }
9189 # So? What about this header?
9190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9196 ac_header_preproc=yes
9199 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9200 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9202 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9204 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9206 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9208 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9210 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9214 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9215 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9216 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9221 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9222 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9225 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9231 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9232 if test "${with_carbon+set}" != set \
9233 && test "${carbon_appdir_x+set}" != set; then
9234 for var in with_x with_x_toolkit with_xim \
9235 with_xpm with_jpeg with_tiff with_gif with_png; do
9236 if eval test \"\${$var+set}\" = set; then
9243 if test "${HAVE_CARBON}" = yes; then
9247 case "${window_system}" in
9251 case "${with_x_toolkit}" in
9252 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9253 motif ) USE_X_TOOLKIT=MOTIF ;;
9255 USE_X_TOOLKIT=none ;;
9256 no ) USE_X_TOOLKIT=none ;;
9257 * ) USE_X_TOOLKIT=maybe ;;
9267 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9268 # Extract the first word of "X", so it can be a program name with args.
9269 set dummy X; ac_word=$2
9270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9272 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 if test -n "$HAVE_XSERVER"; then
9276 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285 ac_cv_prog_HAVE_XSERVER="true"
9286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9296 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9297 if test -n "$HAVE_XSERVER"; then
9298 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9299 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9306 if test "$HAVE_XSERVER" = true ||
9307 test -n "$DISPLAY" ||
9308 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9309 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9310 were found. You should install the relevant development files for X
9311 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9312 sure you have development files for image handling, i.e.
9313 tiff, gif, jpeg, png and xpm.
9314 If you are sure you want Emacs compiled without X window support, pass
9317 echo "$as_me: error: You seem to be running X, but no X development libraries
9318 were found. You should install the relevant development files for X
9319 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9320 sure you have development files for image handling, i.e.
9321 tiff, gif, jpeg, png and xpm.
9322 If you are sure you want Emacs compiled without X window support, pass
9324 to configure." >&2;}
9325 { (exit 1); exit 1; }; }
9329 ### If we're using X11, we should use the X menu package.
9332 yes ) HAVE_MENUS=yes ;;
9335 ### Compute the unexec source name from the object name.
9336 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9338 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9339 # Assume not, until told otherwise.
9342 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9343 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9344 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 cat >conftest.$ac_ext <<_ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355 #define malloc_get_state innocuous_malloc_get_state
9357 /* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char malloc_get_state (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9363 # include <limits.h>
9365 # include <assert.h>
9368 #undef malloc_get_state
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9376 char malloc_get_state ();
9377 /* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9387 return malloc_get_state ();
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9396 *) ac_try_echo
=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_link") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1
>conftest.err
9403 cat conftest.err
>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest
$ac_exeext &&
9409 $as_test_x conftest
$ac_exeext; then
9410 ac_cv_func_malloc_get_state
=yes
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.
$ac_ext >&5
9415 ac_cv_func_malloc_get_state
=no
9418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9419 conftest
$ac_exeext conftest.
$ac_ext
9421 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9422 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9423 if test $ac_cv_func_malloc_get_state = yes; then
9429 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9430 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9431 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 cat >conftest.
$ac_ext <<_ACEOF
9437 cat confdefs.h
>>conftest.
$ac_ext
9438 cat >>conftest.
$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442 #define malloc_set_state innocuous_malloc_set_state
9444 /* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char malloc_set_state (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9450 # include <limits.h>
9452 # include <assert.h>
9455 #undef malloc_set_state
9457 /* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9463 char malloc_set_state ();
9464 /* The GNU C library defines this for functions which it implements
9465 to always fail with ENOSYS. Some functions are actually named
9466 something starting with __ and the normal name is an alias. */
9467 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9474 return malloc_set_state ();
9479 rm -f conftest.
$ac_objext conftest
$ac_exeext
9480 if { (ac_try
="$ac_link"
9482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9488 grep -v '^ *+' conftest.er1 >conftest.err
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest$ac_exeext &&
9496 $as_test_x conftest$ac_exeext; then
9497 ac_cv_func_malloc_set_state=yes
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_cv_func_malloc_set_state=no
9505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext
9508 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9509 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9510 if test $ac_cv_func_malloc_set_state = yes; then
9516 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9517 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9518 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 extern void (* __after_morecore_hook)();
9531 __after_morecore_hook = 0
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9540 *) ac_try_echo
=$ac_try;;
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_link") 2>conftest.er1
9545 grep -v '^ *+' conftest.er1
>conftest.err
9547 cat conftest.err
>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest
$ac_exeext &&
9553 $as_test_x conftest
$ac_exeext; then
9554 emacs_cv_var___after_morecore_hook
=yes
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9559 emacs_cv_var___after_morecore_hook
=no
9562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9563 conftest
$ac_exeext conftest.
$ac_ext
9565 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9566 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9567 if test $emacs_cv_var___after_morecore_hook = no
; then
9570 if test "${system_malloc}" = "yes"; then
9573 (The GNU allocators don't work with this system configuration.)"
9575 if test "$doug_lea_malloc" = "yes" ; then
9576 if test "$GNU_MALLOC" = yes ; then
9578 (Using Doug Lea's new malloc from the GNU C Library.)"
9581 cat >>confdefs.h
<<\_ACEOF
9582 #define DOUG_LEA_MALLOC 1
9587 if test x
"${REL_ALLOC}" = x
; then
9588 REL_ALLOC
=${GNU_MALLOC}
9594 for ac_header
in stdlib.h unistd.h
9596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res
=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.
$ac_ext <<_ACEOF
9613 cat confdefs.h
>>conftest.
$ac_ext
9614 cat >>conftest.
$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9619 rm -f conftest.
$ac_objext
9620 if { (ac_try
="$ac_compile"
9622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9662 *) ac_try_echo
=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1
>conftest.err
9669 cat conftest.err
>&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev
/null
&& {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9675 ac_header_preproc
=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.
$ac_ext >&5
9680 ac_header_preproc
=no
9683 rm -f conftest.err conftest.
$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc
=yes
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 ac_res
=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h
<<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734 for ac_func
in getpagesize
9736 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9739 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 cat >conftest.
$ac_ext <<_ACEOF
9745 cat confdefs.h
>>conftest.
$ac_ext
9746 cat >>conftest.
$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9750 #define $ac_func innocuous_$ac_func
9752 /* System header to define __stub macros and hopefully few prototypes,
9753 which can conflict with char $ac_func (); below.
9754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9755 <limits.h> exists even on freestanding compilers. */
9758 # include <limits.h>
9760 # include <assert.h>
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9772 /* The GNU C library defines this for functions which it implements
9773 to always fail with ENOSYS. Some functions are actually named
9774 something starting with __ and the normal name is an alias. */
9775 #if defined __stub_$ac_func || defined __stub___$ac_func
9787 rm -f conftest.
$ac_objext conftest
$ac_exeext
9788 if { (ac_try
="$ac_link"
9790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_link") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest$ac_exeext &&
9804 $as_test_x conftest$ac_exeext; then
9805 eval "$as_ac_var=yes"
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 eval "$as_ac_var=no"
9813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9814 conftest$ac_exeext conftest.$ac_ext
9816 ac_res=`eval echo '${'$as_ac_var'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9819 if test `eval echo '${'$as_ac_var'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9827 { echo "$as_me:$LINENO: checking for working mmap" >&5
9828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 if test "$cross_compiling" = yes; then
9833 ac_cv_func_mmap_fixed_mapped=no
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9842 /* malloc might have been renamed as rpl_malloc. */
9845 /* Thanks to Mike Haertel and Jim Avera for this test.
9846 Here is a matrix of mmap possibilities:
9847 mmap private not fixed
9848 mmap private fixed at somewhere currently unmapped
9849 mmap private fixed at somewhere already mapped
9850 mmap shared not fixed
9851 mmap shared fixed at somewhere currently unmapped
9852 mmap shared fixed at somewhere already mapped
9853 For private mappings, we should verify that changes cannot be read()
9854 back from the file, nor mmap's back from the file at a different
9855 address. (There have been systems where private was not correctly
9856 implemented like the infamous i386 svr4.0, and systems where the
9857 VM page cache was not coherent with the file system buffer cache
9858 like early versions of FreeBSD and possibly contemporary NetBSD.)
9859 For shared mappings, we should conversely verify that changes get
9860 propagated back to all the places they're supposed to be.
9862 Grep wants private fixed already mapped.
9863 The main things grep needs to know about mmap are:
9864 * does it exist and is it safe to write into the mmap'd area
9865 * how to use it (BSD variants) */
9868 #include <sys/mman.h>
9870 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9874 /* This mess was copied from the GNU getpagesize.h. */
9875 #ifndef HAVE_GETPAGESIZE
9876 /* Assume that all systems that can run configure have sys/param.h. */
9877 # ifndef HAVE_SYS_PARAM_H
9878 # define HAVE_SYS_PARAM_H 1
9881 # ifdef _SC_PAGESIZE
9882 # define getpagesize() sysconf(_SC_PAGESIZE)
9883 # else /* no _SC_PAGESIZE */
9884 # ifdef HAVE_SYS_PARAM_H
9885 # include <sys/param.h>
9886 # ifdef EXEC_PAGESIZE
9887 # define getpagesize() EXEC_PAGESIZE
9888 # else /* no EXEC_PAGESIZE */
9890 # define getpagesize() NBPG * CLSIZE
9893 # endif /* no CLSIZE */
9894 # else /* no NBPG */
9896 # define getpagesize() NBPC
9897 # else /* no NBPC */
9899 # define getpagesize() PAGESIZE
9900 # endif /* PAGESIZE */
9901 # endif /* no NBPC */
9902 # endif /* no NBPG */
9903 # endif /* no EXEC_PAGESIZE */
9904 # else /* no HAVE_SYS_PARAM_H */
9905 # define getpagesize() 8192 /* punt totally */
9906 # endif /* no HAVE_SYS_PARAM_H */
9907 # endif /* no _SC_PAGESIZE */
9909 #endif /* no HAVE_GETPAGESIZE */
9914 char *data, *data2, *data3;
9918 pagesize = getpagesize ();
9920 /* First, make a file with some known garbage in it. */
9921 data = (char *) malloc (pagesize);
9924 for (i = 0; i < pagesize; ++i)
9925 *(data + i) = rand ();
9927 fd = creat ("conftest.mmap", 0600);
9930 if (write (fd, data, pagesize) != pagesize)
9934 /* Next, try to mmap the file at a fixed address which already has
9935 something else allocated at it. If we can, also make sure that
9936 we see the same garbage. */
9937 fd = open ("conftest.mmap", O_RDWR);
9940 data2 = (char *) malloc (2 * pagesize);
9943 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9947 for (i = 0; i < pagesize; ++i)
9948 if (*(data + i) != *(data2 + i))
9951 /* Finally, make sure that changes to the mapped area do not
9952 percolate back to the file as seen by read(). (This is a bug on
9953 some variants of i386 svr4.0.) */
9954 for (i = 0; i < pagesize; ++i)
9955 *(data2 + i) = *(data2 + i) + 1;
9956 data3 = (char *) malloc (pagesize);
9959 if (read (fd, data3, pagesize) != pagesize)
9961 for (i = 0; i < pagesize; ++i)
9962 if (*(data + i) != *(data3 + i))
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9972 *) ac_try_echo
=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_func_mmap_fixed_mapped=yes
9990 echo "$as_me: program exited with status $ac_status" >&5
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9995 ac_cv_func_mmap_fixed_mapped=no
9997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10003 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10004 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10006 cat >>confdefs.h <<\_ACEOF
10007 #define HAVE_MMAP 1
10011 rm -f conftest.mmap
10013 if test $use_mmap_for_buffers = yes; then
10017 LIBS="$libsrc_libs $LIBS"
10020 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10021 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldnet $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10044 return dnet_ntoa ();
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10053 *) ac_try_echo
=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1
>conftest.err
10060 cat conftest.err
>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest
$ac_exeext &&
10066 $as_test_x conftest
$ac_exeext; then
10067 ac_cv_lib_dnet_dnet_ntoa
=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 ac_cv_lib_dnet_dnet_ntoa
=no
10075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10076 conftest
$ac_exeext conftest.
$ac_ext
10077 LIBS
=$ac_check_lib_save_LIBS
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10080 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10081 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10082 cat >>confdefs.h
<<_ACEOF
10083 #define HAVE_LIBDNET 1
10086 LIBS
="-ldnet $LIBS"
10091 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10092 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 ac_check_lib_save_LIBS
=$LIBS
10097 LIBS
="-lXbsd $LIBS"
10098 cat >conftest.
$ac_ext <<_ACEOF
10101 cat confdefs.h
>>conftest.
$ac_ext
10102 cat >>conftest.
$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10114 rm -f conftest.
$ac_objext conftest
$ac_exeext
10115 if { (ac_try
="$ac_link"
10116 case "(($ac_try" in
10117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_lib_Xbsd_main=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_Xbsd_main=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10145 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10146 if test $ac_cv_lib_Xbsd_main = yes; then
10147 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10152 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10153 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-lpthreads $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10176 return cma_open ();
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10185 *) ac_try_echo
=$ac_try;;
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10190 grep -v '^ *+' conftest.er1
>conftest.err
10192 cat conftest.err
>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest
$ac_exeext &&
10198 $as_test_x conftest
$ac_exeext; then
10199 ac_cv_lib_pthreads_cma_open
=yes
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.
$ac_ext >&5
10204 ac_cv_lib_pthreads_cma_open
=no
10207 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10208 conftest
$ac_exeext conftest.
$ac_ext
10209 LIBS
=$ac_check_lib_save_LIBS
10211 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10212 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10213 if test $ac_cv_lib_pthreads_cma_open = yes; then
10214 cat >>confdefs.h
<<_ACEOF
10215 #define HAVE_LIBPTHREADS 1
10218 LIBS
="-lpthreads $LIBS"
10226 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10227 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10228 if test "${gdb_cv_bigtoc+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10234 *) gdb_cv_bigtoc
=-bbigtoc ;;
10237 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10238 cat >conftest.
$ac_ext <<_ACEOF
10241 cat confdefs.h
>>conftest.
$ac_ext
10242 cat >>conftest.
$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10253 rm -f conftest.
$ac_objext conftest
$ac_exeext
10254 if { (ac_try
="$ac_link"
10255 case "(($ac_try" in
10256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280 conftest$ac_exeext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10284 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10288 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10289 # used for the tests that follow. We set them back to REAL_CFLAGS and
10290 # REAL_CPPFLAGS later on.
10292 REAL_CPPFLAGS="$CPPFLAGS"
10294 if test "${HAVE_X11}" = "yes"; then
10295 DEFS="$C_SWITCH_X_SITE $DEFS"
10296 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10298 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10299 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10301 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10302 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10303 # but it's more convenient here to set LD_RUN_PATH
10304 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10305 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10306 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10310 if test "${opsys}" = "gnu-linux"; then
10311 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10312 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10323 XOpenDisplay ("foo");
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10332 *) ac_try_echo
=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10337 grep -v '^ *+' conftest.er1
>conftest.err
10339 cat conftest.err
>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest
$ac_exeext &&
10345 $as_test_x conftest
$ac_exeext; then
10346 xlinux_first_failure
=no
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 xlinux_first_failure
=yes
10354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10355 conftest
$ac_exeext conftest.
$ac_ext
10356 if test "${xlinux_first_failure}" = "yes"; then
10357 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10358 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10359 OLD_CPPFLAGS
="$CPPFLAGS"
10361 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10362 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10363 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10364 LIBS
="$LIBS -b i486-linuxaout"
10365 cat >conftest.
$ac_ext <<_ACEOF
10368 cat confdefs.h
>>conftest.
$ac_ext
10369 cat >>conftest.
$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10375 XOpenDisplay ("foo");
10380 rm -f conftest.
$ac_objext conftest
$ac_exeext
10381 if { (ac_try
="$ac_link"
10382 case "(($ac_try" in
10383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_link") 2>conftest.er1
10389 grep -v '^ *+' conftest.er1 >conftest.err
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest$ac_exeext &&
10397 $as_test_x conftest$ac_exeext; then
10398 xlinux_second_failure=no
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 xlinux_second_failure=yes
10406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407 conftest$ac_exeext conftest.$ac_ext
10408 if test "${xlinux_second_failure}" = "yes"; then
10409 # If we get the same failure with -b, there is no use adding -b.
10410 # So take it out. This plays safe.
10411 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10412 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10413 CPPFLAGS="$OLD_CPPFLAGS"
10415 { echo "$as_me:$LINENO: result: no" >&5
10416 echo "${ECHO_T}no" >&6; }
10418 { echo "$as_me:$LINENO: result: yes" >&5
10419 echo "${ECHO_T}yes" >&6; }
10422 { echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6; }
10427 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10428 # header files included from there.
10429 { echo "$as_me:$LINENO: checking for Xkb" >&5
10430 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <X11/Xlib.h>
10438 #include <X11/XKBlib.h>
10442 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10451 *) ac_try_echo
=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_link") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1
>conftest.err
10458 cat conftest.err
>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest
$ac_exeext &&
10464 $as_test_x conftest
$ac_exeext; then
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.
$ac_ext >&5
10473 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10474 conftest
$ac_exeext conftest.
$ac_ext
10475 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10476 echo "${ECHO_T}$emacs_xkb" >&6; }
10477 if test $emacs_xkb = yes; then
10479 cat >>confdefs.h
<<\_ACEOF
10480 #define HAVE_XKBGETKEYBOARD 1
10489 for ac_func
in XrmSetDatabase XScreenResourceString \
10490 XScreenNumberOfScreen XSetWMProtocols
10492 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10495 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 cat >conftest.
$ac_ext <<_ACEOF
10501 cat confdefs.h
>>conftest.
$ac_ext
10502 cat >>conftest.
$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10506 #define $ac_func innocuous_$ac_func
10508 /* System header to define __stub macros and hopefully few prototypes,
10509 which can conflict with char $ac_func (); below.
10510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10511 <limits.h> exists even on freestanding compilers. */
10514 # include <limits.h>
10516 # include <assert.h>
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined __stub_$ac_func || defined __stub___$ac_func
10538 return $ac_func ();
10543 rm -f conftest.
$ac_objext conftest
$ac_exeext
10544 if { (ac_try
="$ac_link"
10545 case "(($ac_try" in
10546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest$ac_exeext &&
10560 $as_test_x conftest$ac_exeext; then
10561 eval "$as_ac_var=yes"
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 eval "$as_ac_var=no"
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10572 ac_res=`eval echo '${'$as_ac_var'}'`
10573 { echo "$as_me:$LINENO: result: $ac_res" >&5
10574 echo "${ECHO_T}$ac_res" >&6; }
10575 if test `eval echo '${'$as_ac_var'}'` = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10585 if test "${window_system}" = "x11"; then
10586 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10587 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10588 if test "${emacs_cv_x11_version_6+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 #include <X11/Xlib.h>
10601 #if XlibSpecificationRelease < 6
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10613 *) ac_try_echo
=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1
>conftest.err
10620 cat conftest.err
>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest
$ac_exeext &&
10626 $as_test_x conftest
$ac_exeext; then
10627 emacs_cv_x11_version_6
=yes
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10632 emacs_cv_x11_version_6
=no
10635 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10636 conftest
$ac_exeext conftest.
$ac_ext
10639 if test $emacs_cv_x11_version_6 = yes; then
10640 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10641 echo "${ECHO_T}6 or newer" >&6; }
10643 cat >>confdefs.h
<<\_ACEOF
10644 #define HAVE_X11R6 1
10648 { echo "$as_me:$LINENO: result: before 6" >&5
10649 echo "${ECHO_T}before 6" >&6; }
10654 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10656 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10657 if test "${with_rsvg}" != "no"; then
10658 RSVG_REQUIRED
=2.0.0
10659 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10664 # Extract the first word of "pkg-config", so it can be a program name with args.
10665 set dummy pkg-config
; ac_word
=$2
10666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 case $PKG_CONFIG in
10673 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10677 for as_dir
in $PATH
10680 test -z "$as_dir" && as_dir
=.
10681 for ac_exec_ext
in '' $ac_executable_extensions; do
10682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10683 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10695 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10696 if test -n "$PKG_CONFIG"; then
10697 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10698 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10706 if test "$PKG_CONFIG" = "no" ; then
10709 PKG_CONFIG_MIN_VERSION
=0.9.0
10710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10711 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10712 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10714 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10715 { echo "$as_me:$LINENO: result: yes" >&5
10716 echo "${ECHO_T}yes" >&6; }
10719 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10720 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10721 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10722 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10723 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10725 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10726 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10727 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10728 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10729 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10731 { echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6; }
10735 ## If we have a custom action on failure, don't print errors, but
10736 ## do set a variable so people can do so.
10737 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10749 if test $succeeded = yes; then
10758 if test ".${RSVG_CFLAGS}" != "."; then
10761 cat >>confdefs.h
<<\_ACEOF
10762 #define HAVE_RSVG 1
10765 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10766 LIBS
="$RSVG_LIBS $LIBS"
10773 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10776 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10781 # Extract the first word of "pkg-config", so it can be a program name with args.
10782 set dummy pkg-config
; ac_word
=$2
10783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 case $PKG_CONFIG in
10790 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10794 for as_dir
in $PATH
10797 test -z "$as_dir" && as_dir
=.
10798 for ac_exec_ext
in '' $ac_executable_extensions; do
10799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10800 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10812 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10813 if test -n "$PKG_CONFIG"; then
10814 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10815 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10817 { echo "$as_me:$LINENO: result: no" >&5
10818 echo "${ECHO_T}no" >&6; }
10823 if test "$PKG_CONFIG" = "no" ; then
10826 PKG_CONFIG_MIN_VERSION
=0.9.0
10827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10828 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10829 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10831 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10832 { echo "$as_me:$LINENO: result: yes" >&5
10833 echo "${ECHO_T}yes" >&6; }
10836 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10837 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10838 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10839 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10840 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10842 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10843 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10844 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10845 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10846 echo "${ECHO_T}$GTK_LIBS" >&6; }
10848 { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; }
10852 ## If we have a custom action on failure, don't print errors, but
10853 ## do set a variable so people can do so.
10854 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10866 if test $succeeded = yes; then
10872 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10873 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10874 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10875 { (exit 1); exit 1; }; }
10880 if test x
"$pkg_check_gtk" = xyes
; then
10884 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10885 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10886 LIBS
="$GTK_LIBS $LIBS"
10889 for ac_func
in gtk_main
10891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10894 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 cat >conftest.
$ac_ext <<_ACEOF
10900 cat confdefs.h
>>conftest.
$ac_ext
10901 cat >>conftest.
$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10905 #define $ac_func innocuous_$ac_func
10907 /* System header to define __stub macros and hopefully few prototypes,
10908 which can conflict with char $ac_func (); below.
10909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 <limits.h> exists even on freestanding compilers. */
10913 # include <limits.h>
10915 # include <assert.h>
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10927 /* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930 #if defined __stub_$ac_func || defined __stub___$ac_func
10937 return $ac_func ();
10942 rm -f conftest.
$ac_objext conftest
$ac_exeext
10943 if { (ac_try
="$ac_link"
10944 case "(($ac_try" in
10945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest$ac_exeext &&
10959 $as_test_x conftest$ac_exeext; then
10960 eval "$as_ac_var=yes"
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 eval "$as_ac_var=no"
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10971 ac_res=`eval echo '${'$as_ac_var'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_var'}'` = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10982 if test "${GTK_COMPILES}" != "yes"; then
10983 if test "$USE_X_TOOLKIT" != "maybe"; then
10984 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10985 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10986 { (exit 1); exit 1; }; };
10991 cat >>confdefs.h <<\_ACEOF
10996 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10999 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11000 closing open displays. This is no problem if you just use
11001 one display, but if you use more than one and close one of them
11002 Emacs may crash." >&5
11003 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11004 closing open displays. This is no problem if you just use
11005 one display, but if you use more than one and close one of them
11006 Emacs may crash." >&2;}
11014 if test "${HAVE_GTK}" = "yes"; then
11016 if test "$with_toolkit_scroll_bars" != no; then
11017 with_toolkit_scroll_bars=yes
11020 HAVE_GTK_MULTIDISPLAY=no
11022 for ac_func in gdk_display_open
11024 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038 #define $ac_func innocuous_$ac_func
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11046 # include <limits.h>
11048 # include <assert.h>
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11070 return $ac_func ();
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11079 *) ac_try_echo
=$ac_try;;
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11084 grep -v '^ *+' conftest.er1
>conftest.err
11086 cat conftest.err
>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest
$ac_exeext &&
11092 $as_test_x conftest
$ac_exeext; then
11093 eval "$as_ac_var=yes"
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.
$ac_ext >&5
11098 eval "$as_ac_var=no"
11101 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11102 conftest
$ac_exeext conftest.
$ac_ext
11104 ac_res
=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h
<<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11111 HAVE_GTK_MULTIDISPLAY
=yes
11115 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11117 cat >>confdefs.h
<<\_ACEOF
11118 #define HAVE_GTK_MULTIDISPLAY 1
11123 HAVE_GTK_FILE_SELECTION
=no
11125 for ac_func
in gtk_file_selection_new
11127 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11130 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define $ac_func innocuous_$ac_func
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11149 # include <limits.h>
11151 # include <assert.h>
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined __stub_$ac_func || defined __stub___$ac_func
11173 return $ac_func ();
11178 rm -f conftest.
$ac_objext conftest
$ac_exeext
11179 if { (ac_try
="$ac_link"
11180 case "(($ac_try" in
11181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 eval "$as_ac_var=yes"
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 eval "$as_ac_var=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205 conftest$ac_exeext conftest.$ac_ext
11207 ac_res=`eval echo '${'$as_ac_var'}'`
11208 { echo "$as_me:$LINENO: result: $ac_res" >&5
11209 echo "${ECHO_T}$ac_res" >&6; }
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11214 HAVE_GTK_FILE_SELECTION=yes
11219 HAVE_GTK_FILE_CHOOSER=no
11221 for ac_func in gtk_file_chooser_dialog_new
11223 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11237 #define $ac_func innocuous_$ac_func
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func (); below.
11241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11242 <limits.h> exists even on freestanding compilers. */
11245 # include <limits.h>
11247 # include <assert.h>
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined __stub_$ac_func || defined __stub___$ac_func
11269 return $ac_func ();
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (ac_try="$ac_link"
11276 case "(($ac_try" in
11277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11278 *) ac_try_echo
=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_link") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1
>conftest.err
11285 cat conftest.err
>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest
$ac_exeext &&
11291 $as_test_x conftest
$ac_exeext; then
11292 eval "$as_ac_var=yes"
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.
$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11301 conftest
$ac_exeext conftest.
$ac_ext
11303 ac_res
=`eval echo '${'$as_ac_var'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h
<<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 HAVE_GTK_FILE_CHOOSER
=yes
11315 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11316 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11318 cat >>confdefs.h
<<\_ACEOF
11319 #define HAVE_GTK_FILE_BOTH 1
11324 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11325 HAVE_GTK_AND_PTHREAD
=no
11327 for ac_header
in pthread.h
11329 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_res
=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11340 # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 $ac_includes_default
11350 #include <$ac_header>
11352 rm -f conftest.
$ac_objext
11353 if { (ac_try
="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_header_compiler=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11395 *) ac_try_echo
=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev
/null
&& {
11405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11408 ac_header_preproc
=yes
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.
$ac_ext >&5
11413 ac_header_preproc
=no
11416 rm -f conftest.err conftest.
$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc
=yes
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 eval "$as_ac_Header=\$ac_header_preproc"
11452 ac_res
=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h
<<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11466 if test "$ac_cv_header_pthread_h"; then
11467 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11468 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11469 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 ac_check_lib_save_LIBS
=$LIBS
11473 LIBS
="-lpthread $LIBS"
11474 cat >conftest.
$ac_ext <<_ACEOF
11477 cat confdefs.h
>>conftest.
$ac_ext
11478 cat >>conftest.
$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11487 char pthread_self ();
11491 return pthread_self ();
11496 rm -f conftest.
$ac_objext conftest
$ac_exeext
11497 if { (ac_try
="$ac_link"
11498 case "(($ac_try" in
11499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_lib_pthread_pthread_self=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_pthread_pthread_self=no
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11527 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11528 if test $ac_cv_lib_pthread_pthread_self = yes; then
11529 HAVE_GTK_AND_PTHREAD=yes
11533 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11534 case "${canonical}" in
11536 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_GTK_AND_PTHREAD 1
11548 if test "${with_dbus}" = "yes"; then
11552 # Extract the first word of "pkg-config", so it can be a program name with args.
11553 set dummy pkg-config; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 case $PKG_CONFIG in
11561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11584 if test -n "$PKG_CONFIG"; then
11585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11588 { echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6; }
11594 if test "$PKG_CONFIG" = "no" ; then
11597 PKG_CONFIG_MIN_VERSION=0.9.0
11598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11599 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11600 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11603 { echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6; }
11607 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11608 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11610 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11611 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11613 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11614 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11616 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11617 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11619 { echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6; }
11623 ## If we have a custom action on failure, don't print errors, but
11624 ## do set a variable so people can do so.
11625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11637 if test $succeeded = yes; then
11643 if test "$HAVE_DBUS" = yes; then
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_DBUS 1
11653 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11654 if test "$with_xaw3d" != no; then
11655 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11656 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11657 if test "${emacs_cv_xaw3d+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 #include <X11/Intrinsic.h>
11668 #include <X11/Xaw3d/Simple.h>
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11681 *) ac_try_echo
=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11686 grep -v '^ *+' conftest.er1
>conftest.err
11688 cat conftest.err
>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest
$ac_exeext &&
11694 $as_test_x conftest
$ac_exeext; then
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.
$ac_ext >&5
11703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11704 conftest
$ac_exeext conftest.
$ac_ext
11710 if test $emacs_cv_xaw3d = yes; then
11711 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11712 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11713 USE_X_TOOLKIT
=LUCID
11716 cat >>confdefs.h
<<\_ACEOF
11717 #define HAVE_XAW3D 1
11721 { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11723 { echo "$as_me:$LINENO: checking for libXaw" >&5
11724 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11725 if test "${emacs_cv_xaw+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 cat >conftest.
$ac_ext <<_ACEOF
11731 cat confdefs.h
>>conftest.
$ac_ext
11732 cat >>conftest.
$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 #include <X11/Intrinsic.h>
11736 #include <X11/Xaw/Simple.h>
11745 rm -f conftest.
$ac_objext conftest
$ac_exeext
11746 if { (ac_try
="$ac_link"
11747 case "(($ac_try" in
11748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_link") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest$ac_exeext &&
11762 $as_test_x conftest$ac_exeext; then
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11772 conftest$ac_exeext conftest.$ac_ext
11775 if test $emacs_cv_xaw = yes; then
11776 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11777 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11778 USE_X_TOOLKIT=LUCID
11779 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11780 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11781 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11782 { (exit 1); exit 1; }; }
11784 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11785 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11791 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11793 if test "${USE_X_TOOLKIT}" != "none"; then
11794 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11795 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11796 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 #include <X11/Intrinsic.h>
11809 #if XtSpecificationRelease < 6
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (ac_try="$ac_link"
11819 case "(($ac_try" in
11820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11821 *) ac_try_echo
=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_link") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest
$ac_exeext &&
11834 $as_test_x conftest
$ac_exeext; then
11835 emacs_cv_x11_toolkit_version_6
=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.
$ac_ext >&5
11840 emacs_cv_x11_toolkit_version_6
=no
11843 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11844 conftest
$ac_exeext conftest.
$ac_ext
11847 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11848 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11849 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11850 echo "${ECHO_T}6 or newer" >&6; }
11852 cat >>confdefs.h
<<\_ACEOF
11853 #define HAVE_X11XTR6 1
11857 { echo "$as_me:$LINENO: result: before 6" >&5
11858 echo "${ECHO_T}before 6" >&6; }
11862 if test x
$HAVE_X11XTR6 = xyes
; then
11863 LIBS
="-lXt -lSM -lICE $LIBS"
11868 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11869 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11870 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 ac_check_lib_save_LIBS
=$LIBS
11875 cat >conftest.
$ac_ext <<_ACEOF
11878 cat confdefs.h
>>conftest.
$ac_ext
11879 cat >>conftest.
$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11888 char XmuConvertStandardSelection ();
11892 return XmuConvertStandardSelection ();
11897 rm -f conftest.
$ac_objext conftest
$ac_exeext
11898 if { (ac_try
="$ac_link"
11899 case "(($ac_try" in
11900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest$ac_exeext &&
11914 $as_test_x conftest$ac_exeext; then
11915 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11928 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11929 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_LIBXMU 1
11938 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11941 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11942 if test "${HAVE_X11}" = "yes"; then
11943 if test "${USE_X_TOOLKIT}" != "none"; then
11945 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11946 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11947 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-lXext $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11965 char XShapeQueryExtension ();
11969 return XShapeQueryExtension ();
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11978 *) ac_try_echo
=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_link") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1
>conftest.err
11985 cat conftest.err
>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest
$ac_exeext &&
11991 $as_test_x conftest
$ac_exeext; then
11992 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.
$ac_ext >&5
11997 ac_cv_lib_Xext_XShapeQueryExtension
=no
12000 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12001 conftest
$ac_exeext conftest.
$ac_ext
12002 LIBS
=$ac_check_lib_save_LIBS
12004 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12005 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12006 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12007 cat >>confdefs.h
<<_ACEOF
12008 #define HAVE_LIBXEXT 1
12011 LIBS
="-lXext $LIBS"
12018 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12019 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12020 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12021 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 cat >conftest.
$ac_ext <<_ACEOF
12027 cat confdefs.h
>>conftest.
$ac_ext
12028 cat >>conftest.
$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12034 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12037 Motif version prior to 2.1.
12043 rm -f conftest.
$ac_objext
12044 if { (ac_try
="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1 >conftest.err
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 emacs_cv_motif_version_2_1=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 emacs_cv_motif_version_2_1=no
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12071 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12072 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12073 if test $emacs_cv_motif_version_2_1 = yes; then
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_MOTIF_2_1 1
12080 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12081 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12082 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 ac_check_lib_save_LIBS=$LIBS
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12100 char XpCreateContext ();
12104 return XpCreateContext ();
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (ac_try="$ac_link"
12111 case "(($ac_try" in
12112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12113 *) ac_try_echo
=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_link") 2>conftest.er1
12118 grep -v '^ *+' conftest.er1
>conftest.err
12120 cat conftest.err
>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest
$ac_exeext &&
12126 $as_test_x conftest
$ac_exeext; then
12127 ac_cv_lib_Xp_XpCreateContext
=yes
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.
$ac_ext >&5
12132 ac_cv_lib_Xp_XpCreateContext
=no
12135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12136 conftest
$ac_exeext conftest.
$ac_ext
12137 LIBS
=$ac_check_lib_save_LIBS
12139 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12140 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12141 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12145 if test ${HAVE_LIBXP} = yes; then
12147 cat >>confdefs.h
<<\_ACEOF
12148 #define HAVE_LIBXP 1
12153 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12154 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12155 if test "${emacs_cv_lesstif+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 # We put this in CFLAGS temporarily to precede other -I options
12159 # that might be in CFLAGS temporarily.
12160 # We put this in CPPFLAGS where it precedes the other -I options.
12161 OLD_CPPFLAGS
=$CPPFLAGS
12163 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12164 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12165 cat >conftest.
$ac_ext <<_ACEOF
12168 cat confdefs.h
>>conftest.
$ac_ext
12169 cat >>conftest.
$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12180 rm -f conftest.
$ac_objext
12181 if { (ac_try
="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 emacs_cv_lesstif=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 emacs_cv_lesstif=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12208 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12209 if test $emacs_cv_lesstif = yes; then
12210 # Make sure this -I option remains in CPPFLAGS after it is set
12211 # back to REAL_CPPFLAGS.
12212 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12213 # have those other -I options anyway. Ultimately, having this
12214 # directory ultimately in CPPFLAGS will be enough.
12215 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12216 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12219 CPPFLAGS=$OLD_CPPFLAGS
12226 USE_TOOLKIT_SCROLL_BARS=no
12227 if test "${with_toolkit_scroll_bars}" != "no"; then
12228 if test "${USE_X_TOOLKIT}" != "none"; then
12229 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define USE_TOOLKIT_SCROLL_BARS 1
12235 USE_TOOLKIT_SCROLL_BARS=yes
12236 elif test "${HAVE_XAW3D}" = "yes"; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define USE_TOOLKIT_SCROLL_BARS 1
12241 USE_TOOLKIT_SCROLL_BARS=yes
12243 elif test "${HAVE_GTK}" = "yes"; then
12244 cat >>confdefs.h <<\_ACEOF
12245 #define USE_TOOLKIT_SCROLL_BARS 1
12248 USE_TOOLKIT_SCROLL_BARS=yes
12249 elif test "${HAVE_CARBON}" = "yes"; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define USE_TOOLKIT_SCROLL_BARS 1
12254 USE_TOOLKIT_SCROLL_BARS=yes
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 #include <X11/Xlib.h>
12266 #include <X11/Xresource.h>
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12279 *) ac_try_echo
=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_compile") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1
>conftest.err
12286 cat conftest.err
>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest.
$ac_objext; then
12294 cat >>confdefs.h
<<\_ACEOF
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.
$ac_ext >&5
12305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12308 if test "${with_xim}" != "no"; then
12310 cat >>confdefs.h
<<\_ACEOF
12317 if test "${HAVE_XIM}" != "no"; then
12318 late_CFLAGS
=$CFLAGS
12319 if test "$GCC" = yes; then
12320 CFLAGS
="$CFLAGS --pedantic-errors"
12322 cat >conftest.
$ac_ext <<_ACEOF
12325 cat confdefs.h
>>conftest.
$ac_ext
12326 cat >>conftest.
$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #include <X11/Xlib.h>
12330 #include <X11/Xresource.h>
12339 XPointer *client_data;
12341 /* If we're not using GCC, it's probably not XFree86, and this is
12342 probably right, but we can't use something like --pedantic-errors. */
12343 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12344 char*, XIMProc, XPointer*);
12346 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12352 rm -f conftest.
$ac_objext
12353 if { (ac_try
="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest.$ac_objext; then
12369 emacs_cv_arg6_star=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 if test "$emacs_cv_arg6_star" = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12385 cat >>confdefs.h <<\_ACEOF
12386 #define XRegisterIMInstantiateCallback_arg6 XPointer
12390 CFLAGS=$late_CFLAGS
12393 ### Start of font-backend section.
12394 if test "${HAVE_X11}" != "yes"; then
12395 USE_FONT_BACKEND=no
12398 if test "${USE_FONT_BACKEND}" = "yes"; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define USE_FONT_BACKEND 1
12405 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12407 if test "x${with_freetype}" = "xno"; then
12410 if test "x${with_xft}" != "xno"; then
12415 # Extract the first word of "pkg-config", so it can be a program name with args.
12416 set dummy pkg-config
; ac_word
=$2
12417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 case $PKG_CONFIG in
12424 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12428 for as_dir
in $PATH
12431 test -z "$as_dir" && as_dir
=.
12432 for ac_exec_ext
in '' $ac_executable_extensions; do
12433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12434 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12446 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12447 if test -n "$PKG_CONFIG"; then
12448 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12449 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12451 { echo "$as_me:$LINENO: result: no" >&5
12452 echo "${ECHO_T}no" >&6; }
12457 if test "$PKG_CONFIG" = "no" ; then
12460 PKG_CONFIG_MIN_VERSION
=0.9.0
12461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12462 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12463 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12465 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12466 { echo "$as_me:$LINENO: result: yes" >&5
12467 echo "${ECHO_T}yes" >&6; }
12470 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12471 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12472 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12473 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12474 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12476 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12477 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12478 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12479 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12480 echo "${ECHO_T}$XFT_LIBS" >&6; }
12482 { echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6; }
12486 ## If we have a custom action on failure, don't print errors, but
12487 ## do set a variable so people can do so.
12488 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12500 if test $succeeded = yes; then
12506 if test "$HAVE_XFT" != no
; then
12507 OLD_CPPFLAGS
="$CPPFLAGS"
12508 OLD_CFLAGS
="$CFLAGS"
12510 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12511 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12512 LIBS
="$XFT_LIBS $LIBS"
12513 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12514 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12515 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12516 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12520 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12522 # Is the header compilable?
12523 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12524 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12525 cat >conftest.
$ac_ext <<_ACEOF
12528 cat confdefs.h
>>conftest.
$ac_ext
12529 cat >>conftest.
$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 $ac_includes_default
12532 #include <X11/Xft/Xft.h>
12534 rm -f conftest.
$ac_objext
12535 if { (ac_try
="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_compile") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest.$ac_objext; then
12551 ac_header_compiler=yes
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_header_compiler=no
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12561 echo "${ECHO_T}$ac_header_compiler" >&6; }
12563 # Is the header present?
12564 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12565 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 #include <X11/Xft/Xft.h>
12574 if { (ac_try="$ac_cpp conftest.$ac_ext"
12575 case "(($ac_try" in
12576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12577 *) ac_try_echo
=$ac_try;;
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12582 grep -v '^ *+' conftest.er1
>conftest.err
12584 cat conftest.err
>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev
/null
&& {
12587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12590 ac_header_preproc
=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.
$ac_ext >&5
12595 ac_header_preproc
=no
12598 rm -f conftest.err conftest.
$ac_ext
12599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12600 echo "${ECHO_T}$ac_header_preproc" >&6; }
12602 # So? What about this header?
12603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12605 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12606 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12608 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12609 ac_header_preproc
=yes
12612 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12613 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12614 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12615 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12617 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12619 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12621 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12623 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12627 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12628 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12629 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12634 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12635 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12638 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12639 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12640 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12641 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 ac_check_lib_save_LIBS
=$LIBS
12645 LIBS
="-lXft $XFT_LIBS $LIBS"
12646 cat >conftest.
$ac_ext <<_ACEOF
12649 cat confdefs.h
>>conftest.
$ac_ext
12650 cat >>conftest.
$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12659 char XftFontOpen ();
12663 return XftFontOpen ();
12668 rm -f conftest.
$ac_objext conftest
$ac_exeext
12669 if { (ac_try
="$ac_link"
12670 case "(($ac_try" in
12671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_link") 2>conftest.er1
12677 grep -v '^ *+' conftest.er1 >conftest.err
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } && {
12682 test -z "$ac_c_werror_flag" ||
12683 test ! -s conftest.err
12684 } && test -s conftest$ac_exeext &&
12685 $as_test_x conftest$ac_exeext; then
12686 ac_cv_lib_Xft_XftFontOpen=yes
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_cv_lib_Xft_XftFontOpen=no
12694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12695 conftest$ac_exeext conftest.$ac_ext
12696 LIBS=$ac_check_lib_save_LIBS
12698 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12699 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12700 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12708 if test "${HAVE_XFT}" = "yes"; then
12710 cat >>confdefs.h <<\_ACEOF
12715 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12717 CPPFLAGS="$OLD_CPPFLAGS"
12718 CFLAGS="$OLD_CFLAGS"
12720 fi # "${HAVE_XFT}" = "yes"
12721 fi # "$HAVE_XFT" != no
12722 fi # "x${with_xft}" != "xno"
12724 if test "$HAVE_XFT" != "yes"; then
12730 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12731 if test "${HAVE_XFT}" = "yes"; then
12733 elif test "x${with_freetype}" != "xno"; then
12738 # Extract the first word of "pkg-config", so it can be a program name with args.
12739 set dummy pkg-config; ac_word=$2
12740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12742 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 case $PKG_CONFIG in
12747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $PATH
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12769 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12770 if test -n "$PKG_CONFIG"; then
12771 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12772 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12774 { echo "$as_me:$LINENO: result: no" >&5
12775 echo "${ECHO_T}no" >&6; }
12780 if test "$PKG_CONFIG" = "no" ; then
12783 PKG_CONFIG_MIN_VERSION=0.9.0
12784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12785 { echo "$as_me:$LINENO: checking for freetype2" >&5
12786 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12788 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12789 { echo "$as_me:$LINENO: result: yes" >&5
12790 echo "${ECHO_T}yes" >&6; }
12793 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12794 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12795 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12796 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12797 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12799 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12800 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12801 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12802 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12803 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12805 { echo "$as_me:$LINENO: result: no" >&5
12806 echo "${ECHO_T}no" >&6; }
12809 ## If we have a custom action on failure, don't print errors
, but
12810 ## do set a variable so people can do so.
12811 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12818 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12819 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12823 if test $succeeded = yes; then
12829 if test "${HAVE_FREETYPE}" = "yes"; then
12833 # Extract the first word of "pkg-config", so it can be a program name with args.
12834 set dummy pkg-config
; ac_word
=$2
12835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12837 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 case $PKG_CONFIG in
12842 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12846 for as_dir
in $PATH
12849 test -z "$as_dir" && as_dir
=.
12850 for ac_exec_ext
in '' $ac_executable_extensions; do
12851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12852 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12864 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12865 if test -n "$PKG_CONFIG"; then
12866 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12867 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12869 { echo "$as_me:$LINENO: result: no" >&5
12870 echo "${ECHO_T}no" >&6; }
12875 if test "$PKG_CONFIG" = "no" ; then
12878 PKG_CONFIG_MIN_VERSION
=0.9.0
12879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12880 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12881 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12883 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12884 { echo "$as_me:$LINENO: result: yes" >&5
12885 echo "${ECHO_T}yes" >&6; }
12888 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12889 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12890 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12891 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12892 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12894 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12895 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12896 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12897 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12898 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12900 { echo "$as_me:$LINENO: result: no" >&5
12901 echo "${ECHO_T}no" >&6; }
12902 FONTCONFIG_CFLAGS
=""
12904 ## If we have a custom action on failure, don't print errors, but
12905 ## do set a variable so people can do so.
12906 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12918 if test $succeeded = yes; then
12924 if test "${HAVE_FC}" = "no"; then
12931 if test "${HAVE_FREETYPE}" = "yes"; then
12933 cat >>confdefs.h
<<\_ACEOF
12934 #define HAVE_FREETYPE 1
12937 if test "${with_libotf}" != "no"; then
12941 # Extract the first word of "pkg-config", so it can be a program name with args.
12942 set dummy pkg-config
; ac_word
=$2
12943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12945 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 case $PKG_CONFIG in
12950 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12954 for as_dir
in $PATH
12957 test -z "$as_dir" && as_dir
=.
12958 for ac_exec_ext
in '' $ac_executable_extensions; do
12959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12960 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12972 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12973 if test -n "$PKG_CONFIG"; then
12974 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12975 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12977 { echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6; }
12983 if test "$PKG_CONFIG" = "no" ; then
12986 PKG_CONFIG_MIN_VERSION
=0.9.0
12987 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12988 { echo "$as_me:$LINENO: checking for libotf" >&5
12989 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12991 if $PKG_CONFIG --exists "libotf" 2>&5; then
12992 { echo "$as_me:$LINENO: result: yes" >&5
12993 echo "${ECHO_T}yes" >&6; }
12996 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
12997 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
12998 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12999 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13000 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13002 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13003 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13004 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13005 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13006 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13012 ## If we have a custom action on failure, don't print errors, but
13013 ## do set a variable so people can do so.
13014 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13021 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13022 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13026 if test $succeeded = yes; then
13032 if test "$HAVE_LIBOTF" = "yes"; then
13034 cat >>confdefs.h
<<\_ACEOF
13035 #define HAVE_LIBOTF 1
13043 if test "${with_m17n_flt}" != "no"; then
13047 # Extract the first word of "pkg-config", so it can be a program name with args.
13048 set dummy pkg-config
; ac_word
=$2
13049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13051 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 case $PKG_CONFIG in
13056 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13060 for as_dir
in $PATH
13063 test -z "$as_dir" && as_dir
=.
13064 for ac_exec_ext
in '' $ac_executable_extensions; do
13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13066 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13078 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13079 if test -n "$PKG_CONFIG"; then
13080 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13081 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13083 { echo "$as_me:$LINENO: result: no" >&5
13084 echo "${ECHO_T}no" >&6; }
13089 if test "$PKG_CONFIG" = "no" ; then
13092 PKG_CONFIG_MIN_VERSION
=0.9.0
13093 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13094 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13095 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13097 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13098 { echo "$as_me:$LINENO: result: yes" >&5
13099 echo "${ECHO_T}yes" >&6; }
13102 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13103 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13104 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13105 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13106 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13108 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13109 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13110 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13111 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13112 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13114 { echo "$as_me:$LINENO: result: no" >&5
13115 echo "${ECHO_T}no" >&6; }
13118 ## If we have a custom action on failure, don't print errors, but
13119 ## do set a variable so people can do so.
13120 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13127 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13128 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13132 if test $succeeded = yes; then
13138 if test "$HAVE_M17N_FLT" = "yes"; then
13140 cat >>confdefs.h
<<\_ACEOF
13141 #define HAVE_M17N_FLT 1
13156 fi # "${USE_FONT_BACKEND}" = "yes"
13157 ### End of font-backend section.
13159 ### Use -lXpm if available, unless `--with-xpm=no'.
13161 if test "${HAVE_X11}" = "yes"; then
13162 if test "${with_xpm}" != "no"; then
13163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13164 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13165 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13166 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13170 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13172 # Is the header compilable?
13173 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13174 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13175 cat >conftest.
$ac_ext <<_ACEOF
13178 cat confdefs.h
>>conftest.
$ac_ext
13179 cat >>conftest.
$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 $ac_includes_default
13182 #include <X11/xpm.h>
13184 rm -f conftest.
$ac_objext
13185 if { (ac_try
="$ac_compile"
13186 case "(($ac_try" in
13187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_compile") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } && {
13198 test -z "$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13200 } && test -s conftest.$ac_objext; then
13201 ac_header_compiler=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_header_compiler=no
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13211 echo "${ECHO_T}$ac_header_compiler" >&6; }
13213 # Is the header present?
13214 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13215 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <X11/xpm.h>
13224 if { (ac_try="$ac_cpp conftest.$ac_ext"
13225 case "(($ac_try" in
13226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13227 *) ac_try_echo
=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1
>conftest.err
13234 cat conftest.err
>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } >/dev
/null
&& {
13237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13240 ac_header_preproc
=yes
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.
$ac_ext >&5
13245 ac_header_preproc
=no
13248 rm -f conftest.err conftest.
$ac_ext
13249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13250 echo "${ECHO_T}$ac_header_preproc" >&6; }
13252 # So? What about this header?
13253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13255 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13256 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13258 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13259 ac_header_preproc
=yes
13262 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13263 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13264 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13265 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13267 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13269 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13271 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13273 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13277 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13278 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13279 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13284 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13285 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13288 if test $ac_cv_header_X11_xpm_h = yes; then
13289 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13290 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13291 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 ac_check_lib_save_LIBS
=$LIBS
13295 LIBS
="-lXpm -lX11 $LIBS"
13296 cat >conftest.
$ac_ext <<_ACEOF
13299 cat confdefs.h
>>conftest.
$ac_ext
13300 cat >>conftest.
$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13309 char XpmReadFileToPixmap ();
13313 return XpmReadFileToPixmap ();
13318 rm -f conftest.
$ac_objext conftest
$ac_exeext
13319 if { (ac_try
="$ac_link"
13320 case "(($ac_try" in
13321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest$ac_exeext &&
13335 $as_test_x conftest$ac_exeext; then
13336 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13349 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13350 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13357 if test "${HAVE_XPM}" = "yes"; then
13358 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13359 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13360 cat >conftest.$ac_ext <<_ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 #include "X11/xpm.h"
13367 #ifndef XpmReturnAllocPixels
13368 no_return_alloc_pixels
13372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13373 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13381 if test "${HAVE_XPM}" = "yes"; then
13382 { echo "$as_me:$LINENO: result: yes" >&5
13383 echo "${ECHO_T}yes" >&6; }
13385 { echo "$as_me:$LINENO: result: no" >&5
13386 echo "${ECHO_T}no" >&6; }
13391 if test "${HAVE_XPM}" = "yes"; then
13393 cat >>confdefs.h <<\_ACEOF
13400 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13402 if test "${HAVE_X11}" = "yes"; then
13403 if test "${with_jpeg}" != "no"; then
13404 if test "${ac_cv_header_jerror_h+set}" = set; then
13405 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13406 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13407 if test "${ac_cv_header_jerror_h+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13411 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13413 # Is the header compilable?
13414 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13415 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 $ac_includes_default
13423 #include <jerror.h>
13425 rm -f conftest.$ac_objext
13426 if { (ac_try="$ac_compile"
13427 case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_compile") 2>conftest.er1
13434 grep -v '^
*+' conftest.er1 >conftest.err
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && {
13439 test -z "$ac_c_werror_flag" ||
13440 test ! -s conftest.err
13441 } && test -s conftest.$ac_objext; then
13442 ac_header_compiler=yes
13444 echo "$as_me: failed program was:" >&5
13445 sed 's
/^
/|
/' conftest.$ac_ext >&5
13447 ac_header_compiler=no
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13452 echo "${ECHO_T}$ac_header_compiler" >&6; }
13454 # Is the header present?
13455 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13456 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 #include <jerror.h>
13465 if { (ac_try="$ac_cpp conftest.$ac_ext"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473 grep -v '^
*+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } >/dev/null && {
13478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13479 test ! -s conftest.err
13481 ac_header_preproc=yes
13483 echo "$as_me: failed program was:" >&5
13484 sed 's
/^
/|
/' conftest.$ac_ext >&5
13486 ac_header_preproc=no
13489 rm -f conftest.err conftest.$ac_ext
13490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13491 echo "${ECHO_T}$ac_header_preproc" >&6; }
13493 # So? What about this header?
13494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13496 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13497 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13499 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13500 ac_header_preproc=yes
13503 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13504 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13506 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13508 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13510 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13512 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13514 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13518 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13519 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13520 if test "${ac_cv_header_jerror_h+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 ac_cv_header_jerror_h=$ac_header_preproc
13525 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13526 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13529 if test $ac_cv_header_jerror_h = yes; then
13530 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13531 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13532 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 ac_check_lib_save_LIBS=$LIBS
13536 LIBS="-ljpeg $LIBS"
13537 cat >conftest.$ac_ext <<_ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13550 char jpeg_destroy_compress ();
13554 return jpeg_destroy_compress ();
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (ac_try="$ac_link"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_link") 2>conftest.er1
13568 grep -v '^
*+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest$ac_exeext &&
13576 $as_test_x conftest$ac_exeext; then
13577 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13579 echo "$as_me: failed program was:" >&5
13580 sed 's
/^
/|
/' conftest.$ac_ext >&5
13582 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13589 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13590 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13591 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13601 if test "${HAVE_JPEG}" = "yes"; then
13602 cat >>confdefs.h <<\_ACEOF
13603 #define HAVE_JPEG 1
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <jpeglib.h>
13613 version=JPEG_LIB_VERSION
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13618 cat >>confdefs.h <<\_ACEOF
13619 #define HAVE_JPEG 1
13623 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13624 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13632 ### Use -lpng if available, unless `--with-png=no'.
13634 if test "${HAVE_X11}" = "yes"; then
13635 if test "${with_png}" != "no"; then
13636 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13637 # in /usr/include/libpng.
13640 for ac_header
in png.h libpng
/png.h
13642 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13643 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13646 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 ac_res
=`eval echo '${'$as_ac_Header'}'`
13650 { echo "$as_me:$LINENO: result: $ac_res" >&5
13651 echo "${ECHO_T}$ac_res" >&6; }
13653 # Is the header compilable?
13654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13656 cat >conftest.
$ac_ext <<_ACEOF
13659 cat confdefs.h
>>conftest.
$ac_ext
13660 cat >>conftest.
$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 $ac_includes_default
13663 #include <$ac_header>
13665 rm -f conftest.
$ac_objext
13666 if { (ac_try
="$ac_compile"
13667 case "(($ac_try" in
13668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_compile") 2>conftest.er1
13674 grep -v '^ *+' conftest.er1 >conftest.err
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } && {
13679 test -z "$ac_c_werror_flag" ||
13680 test ! -s conftest.err
13681 } && test -s conftest.$ac_objext; then
13682 ac_header_compiler=yes
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ac_header_compiler=no
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13692 echo "${ECHO_T}$ac_header_compiler" >&6; }
13694 # Is the header present?
13695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13697 cat >conftest.$ac_ext <<_ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 #include <$ac_header>
13705 if { (ac_try="$ac_cpp conftest.$ac_ext"
13706 case "(($ac_try" in
13707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13708 *) ac_try_echo
=$ac_try;;
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13713 grep -v '^ *+' conftest.er1
>conftest.err
13715 cat conftest.err
>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } >/dev
/null
&& {
13718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13719 test ! -s conftest.err
13721 ac_header_preproc
=yes
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.
$ac_ext >&5
13726 ac_header_preproc
=no
13729 rm -f conftest.err conftest.
$ac_ext
13730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13731 echo "${ECHO_T}$ac_header_preproc" >&6; }
13733 # So? What about this header?
13734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13740 ac_header_preproc
=yes
13743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13760 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 eval "$as_ac_Header=\$ac_header_preproc"
13765 ac_res
=`eval echo '${'$as_ac_Header'}'`
13766 { echo "$as_me:$LINENO: result: $ac_res" >&5
13767 echo "${ECHO_T}$ac_res" >&6; }
13770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13771 cat >>confdefs.h
<<_ACEOF
13772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13779 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13780 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13781 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_check_lib_save_LIBS
=$LIBS
13786 LIBS
="-lpng -lz -lm $LIBS"
13787 cat >conftest.
$ac_ext <<_ACEOF
13790 cat confdefs.h
>>conftest.
$ac_ext
13791 cat >>conftest.
$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13800 char png_get_channels ();
13804 return png_get_channels ();
13809 rm -f conftest.
$ac_objext conftest
$ac_exeext
13810 if { (ac_try
="$ac_link"
13811 case "(($ac_try" in
13812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_png_png_get_channels=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_lib_png_png_get_channels=no
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13840 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13841 if test $ac_cv_lib_png_png_get_channels = yes; then
13848 if test "${HAVE_PNG}" = "yes"; then
13850 cat >>confdefs.h <<\_ACEOF
13857 ### Use -ltiff if available, unless `--with-tiff=no
'.
13859 if test "${HAVE_X11}" = "yes"; then
13860 if test "${with_tiff}" != "no"; then
13861 if test "${ac_cv_header_tiffio_h+set}" = set; then
13862 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13863 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13864 if test "${ac_cv_header_tiffio_h+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13868 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13870 # Is the header compilable?
13871 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13872 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13873 cat >conftest.$ac_ext <<_ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 $ac_includes_default
13880 #include <tiffio.h>
13882 rm -f conftest.$ac_objext
13883 if { (ac_try="$ac_compile"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13891 grep -v '^
*+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 ac_header_compiler=yes
13901 echo "$as_me: failed program was:" >&5
13902 sed 's
/^
/|
/' conftest.$ac_ext >&5
13904 ac_header_compiler=no
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13909 echo "${ECHO_T}$ac_header_compiler" >&6; }
13911 # Is the header present?
13912 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13913 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13914 cat >conftest.$ac_ext <<_ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 #include <tiffio.h>
13922 if { (ac_try="$ac_cpp conftest.$ac_ext"
13923 case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13930 grep -v '^
*+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } >/dev/null && {
13935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13936 test ! -s conftest.err
13938 ac_header_preproc=yes
13940 echo "$as_me: failed program was:" >&5
13941 sed 's
/^
/|
/' conftest.$ac_ext >&5
13943 ac_header_preproc=no
13946 rm -f conftest.err conftest.$ac_ext
13947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13948 echo "${ECHO_T}$ac_header_preproc" >&6; }
13950 # So? What about this header?
13951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13953 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13954 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13956 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13957 ac_header_preproc=yes
13960 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13961 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13963 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13965 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13967 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13968 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13969 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13971 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13975 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13976 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_tiffio_h+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 ac_cv_header_tiffio_h=$ac_header_preproc
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13986 if test $ac_cv_header_tiffio_h = yes; then
13988 # At least one tiff package requires the jpeg library.
13989 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13990 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13991 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13992 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 ac_check_lib_save_LIBS=$LIBS
13996 LIBS="-ltiff $tifflibs $LIBS"
13997 cat >conftest.$ac_ext <<_ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14010 char TIFFGetVersion ();
14014 return TIFFGetVersion ();
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (ac_try="$ac_link"
14021 case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_link") 2>conftest.er1
14028 grep -v '^
*+' conftest.er1 >conftest.err
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest$ac_exeext &&
14036 $as_test_x conftest$ac_exeext; then
14037 ac_cv_lib_tiff_TIFFGetVersion=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's
/^
/|
/' conftest.$ac_ext >&5
14042 ac_cv_lib_tiff_TIFFGetVersion=no
14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046 conftest$ac_exeext conftest.$ac_ext
14047 LIBS=$ac_check_lib_save_LIBS
14049 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14050 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14051 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14060 if test "${HAVE_TIFF}" = "yes"; then
14062 cat >>confdefs.h <<\_ACEOF
14063 #define HAVE_TIFF 1
14069 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14071 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14072 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14073 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14074 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14075 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14079 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14081 # Is the header compilable?
14082 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14083 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14084 cat >conftest.
$ac_ext <<_ACEOF
14087 cat confdefs.h
>>conftest.
$ac_ext
14088 cat >>conftest.
$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 $ac_includes_default
14091 #include <gif_lib.h>
14093 rm -f conftest.
$ac_objext
14094 if { (ac_try
="$ac_compile"
14095 case "(($ac_try" in
14096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_compile") 2>conftest.er1
14102 grep -v '^ *+' conftest.er1 >conftest.err
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest.$ac_objext; then
14110 ac_header_compiler=yes
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_header_compiler=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14120 echo "${ECHO_T}$ac_header_compiler" >&6; }
14122 # Is the header present?
14123 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14124 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 #include <gif_lib.h>
14133 if { (ac_try="$ac_cpp conftest.$ac_ext"
14134 case "(($ac_try" in
14135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14136 *) ac_try_echo
=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14141 grep -v '^ *+' conftest.er1
>conftest.err
14143 cat conftest.err
>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } >/dev
/null
&& {
14146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14149 ac_header_preproc
=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.
$ac_ext >&5
14154 ac_header_preproc
=no
14157 rm -f conftest.err conftest.
$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14159 echo "${ECHO_T}$ac_header_preproc" >&6; }
14161 # So? What about this header?
14162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14164 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14165 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14167 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14168 ac_header_preproc
=yes
14171 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14172 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14174 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14176 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14178 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14180 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14182 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14186 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14187 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14188 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 ac_cv_header_gif_lib_h
=$ac_header_preproc
14193 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14194 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14197 if test $ac_cv_header_gif_lib_h = yes; then
14198 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14199 # Earlier versions can crash Emacs.
14200 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14201 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14202 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 ac_check_lib_save_LIBS
=$LIBS
14207 cat >conftest.
$ac_ext <<_ACEOF
14210 cat confdefs.h
>>conftest.
$ac_ext
14211 cat >>conftest.
$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14220 char EGifPutExtensionLast ();
14224 return EGifPutExtensionLast ();
14229 rm -f conftest.
$ac_objext conftest
$ac_exeext
14230 if { (ac_try
="$ac_link"
14231 case "(($ac_try" in
14232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_link") 2>conftest.er1
14238 grep -v '^ *+' conftest.er1 >conftest.err
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } && {
14243 test -z "$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14245 } && test -s conftest$ac_exeext &&
14246 $as_test_x conftest$ac_exeext; then
14247 ac_cv_lib_gif_EGifPutExtensionLast=yes
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_cv_lib_gif_EGifPutExtensionLast=no
14255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14256 conftest$ac_exeext conftest.$ac_ext
14257 LIBS=$ac_check_lib_save_LIBS
14259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14260 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14261 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14271 if test "$HAVE_GIF" = yes; then
14272 ac_gif_lib_name="-lgif"
14275 # If gif_lib.h but no libgif, try libungif.
14276 if test x"$try_libungif" = xyes; then
14277 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14278 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14279 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 ac_check_lib_save_LIBS=$LIBS
14283 LIBS="-lungif $LIBS"
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14297 char EGifPutExtensionLast ();
14301 return EGifPutExtensionLast ();
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14310 *) ac_try_echo
=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_link") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1
>conftest.err
14317 cat conftest.err
>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest
$ac_exeext &&
14323 $as_test_x conftest
$ac_exeext; then
14324 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.
$ac_ext >&5
14329 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14332 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14333 conftest
$ac_exeext conftest.
$ac_ext
14334 LIBS
=$ac_check_lib_save_LIBS
14336 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14337 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14338 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14343 if test "$HAVE_GIF" = yes; then
14345 cat >>confdefs.h
<<\_ACEOF
14346 #define LIBGIF -lungif
14349 ac_gif_lib_name
="-lungif"
14353 if test "${HAVE_GIF}" = "yes"; then
14355 cat >>confdefs.h
<<\_ACEOF
14362 if test "${HAVE_X11}" = "yes"; then
14365 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14366 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14367 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14368 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14369 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14370 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14371 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14372 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14373 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14374 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14376 if test "X${MISSING}" != X
; then
14377 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14379 Maybe some development libraries/packages are missing?
14380 If you don't want to link with them give
14382 as options to configure" >&5
14383 echo "$as_me: error: The following required libraries were not found:
14385 Maybe some development libraries/packages are missing?
14386 If you don't want to link with them give
14388 as options to configure" >&2;}
14389 { (exit 1); exit 1; }; }
14393 ### Use -lgpm if available, unless `--with-gpm=no'.
14395 if test "${with_gpm}" != "no"; then
14396 if test "${ac_cv_header_gpm_h+set}" = set; then
14397 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14398 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14399 if test "${ac_cv_header_gpm_h+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14403 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14405 # Is the header compilable?
14406 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14407 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14408 cat >conftest.
$ac_ext <<_ACEOF
14411 cat confdefs.h
>>conftest.
$ac_ext
14412 cat >>conftest.
$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 $ac_includes_default
14417 rm -f conftest.
$ac_objext
14418 if { (ac_try
="$ac_compile"
14419 case "(($ac_try" in
14420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_compile") 2>conftest.er1
14426 grep -v '^ *+' conftest.er1 >conftest.err
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } && {
14431 test -z "$ac_c_werror_flag" ||
14432 test ! -s conftest.err
14433 } && test -s conftest.$ac_objext; then
14434 ac_header_compiler=yes
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 ac_header_compiler=no
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14444 echo "${ECHO_T}$ac_header_compiler" >&6; }
14446 # Is the header present?
14447 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14448 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14449 cat >conftest.$ac_ext <<_ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14457 if { (ac_try="$ac_cpp conftest.$ac_ext"
14458 case "(($ac_try" in
14459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14460 *) ac_try_echo
=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14465 grep -v '^ *+' conftest.er1
>conftest.err
14467 cat conftest.err
>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } >/dev
/null
&& {
14470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14473 ac_header_preproc
=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14478 ac_header_preproc
=no
14481 rm -f conftest.err conftest.
$ac_ext
14482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14483 echo "${ECHO_T}$ac_header_preproc" >&6; }
14485 # So? What about this header?
14486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14488 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14489 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14491 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14492 ac_header_preproc
=yes
14495 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14496 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14498 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14500 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14502 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14504 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14506 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14510 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14511 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14512 if test "${ac_cv_header_gpm_h+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 ac_cv_header_gpm_h
=$ac_header_preproc
14517 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14518 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14521 if test $ac_cv_header_gpm_h = yes; then
14522 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14523 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14524 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 ac_check_lib_save_LIBS
=$LIBS
14529 cat >conftest.
$ac_ext <<_ACEOF
14532 cat confdefs.h
>>conftest.
$ac_ext
14533 cat >>conftest.
$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14536 /* Override any GCC internal prototype to avoid an error.
14537 Use char because int might match the return type of a GCC
14538 builtin and then its argument prototype would still apply. */
14546 return Gpm_Open ();
14551 rm -f conftest.
$ac_objext conftest
$ac_exeext
14552 if { (ac_try
="$ac_link"
14553 case "(($ac_try" in
14554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_link") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext &&
14568 $as_test_x conftest$ac_exeext; then
14569 ac_cv_lib_gpm_Gpm_Open=yes
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 ac_cv_lib_gpm_Gpm_Open=no
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LIBS=$ac_check_lib_save_LIBS
14581 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14582 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14583 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14592 if test "${HAVE_GPM}" = "yes"; then
14594 cat >>confdefs.h <<\_ACEOF
14600 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14601 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14602 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14603 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14607 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14609 # Is the header compilable?
14610 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14611 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <malloc/malloc.h>
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14625 *) ac_try_echo
=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14630 grep -v '^ *+' conftest.er1
>conftest.err
14632 cat conftest.err
>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } && {
14635 test -z "$ac_c_werror_flag" ||
14636 test ! -s conftest.err
14637 } && test -s conftest.
$ac_objext; then
14638 ac_header_compiler
=yes
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.
$ac_ext >&5
14643 ac_header_compiler
=no
14646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14648 echo "${ECHO_T}$ac_header_compiler" >&6; }
14650 # Is the header present?
14651 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14652 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14653 cat >conftest.
$ac_ext <<_ACEOF
14656 cat confdefs.h
>>conftest.
$ac_ext
14657 cat >>conftest.
$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <malloc/malloc.h>
14661 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14662 case "(($ac_try" in
14663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } >/dev/null && {
14674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14677 ac_header_preproc=yes
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_header_preproc=no
14685 rm -f conftest.err conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14687 echo "${ECHO_T}$ac_header_preproc" >&6; }
14689 # So? What about this header?
14690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14693 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14695 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14696 ac_header_preproc=yes
14699 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14700 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14702 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14704 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14706 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14708 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14710 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14714 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14715 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14716 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14721 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14722 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14725 if test $ac_cv_header_malloc_malloc_h = yes; then
14727 cat >>confdefs.h <<\_ACEOF
14728 #define HAVE_MALLOC_MALLOC_H 1
14735 ### Use Mac OS X Carbon API to implement GUI.
14736 if test "${HAVE_CARBON}" = "yes"; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_CARBON 1
14742 ## Specify the install directory
14744 if test "${carbon_appdir_x}" != ""; then
14745 case ${carbon_appdir_x} in
14746 y | ye | yes) carbon_appdir=/Applications ;;
14747 * ) carbon_appdir=${carbon_appdir_x} ;;
14750 # We also have mouse menus.
14754 ### Use session management (-lSM -lICE) if available
14756 if test "${HAVE_X11}" = "yes"; then
14757 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14758 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14759 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14760 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14764 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14766 # Is the header compilable?
14767 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14768 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 $ac_includes_default
14776 #include <X11/SM/SMlib.h>
14778 rm -f conftest.$ac_objext
14779 if { (ac_try="$ac_compile"
14780 case "(($ac_try" in
14781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14782 *) ac_try_echo
=$ac_try;;
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_compile") 2>conftest.er1
14787 grep -v '^ *+' conftest.er1
>conftest.err
14789 cat conftest.err
>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest.
$ac_objext; then
14795 ac_header_compiler
=yes
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.
$ac_ext >&5
14800 ac_header_compiler
=no
14803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14805 echo "${ECHO_T}$ac_header_compiler" >&6; }
14807 # Is the header present?
14808 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14809 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14810 cat >conftest.
$ac_ext <<_ACEOF
14813 cat confdefs.h
>>conftest.
$ac_ext
14814 cat >>conftest.
$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 #include <X11/SM/SMlib.h>
14818 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14819 case "(($ac_try" in
14820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } >/dev/null && {
14831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14834 ac_header_preproc=yes
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 ac_header_preproc=no
14842 rm -f conftest.err conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844 echo "${ECHO_T}$ac_header_preproc" >&6; }
14846 # So? What about this header?
14847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14849 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14850 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14852 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14853 ac_header_preproc=yes
14856 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14857 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14859 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14861 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14863 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14865 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14867 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14871 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14872 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14873 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14878 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14879 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14882 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14883 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14884 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14885 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 ac_check_lib_save_LIBS=$LIBS
14889 LIBS="-lSM -lICE $LIBS"
14890 cat >conftest.$ac_ext <<_ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14897 /* Override any GCC internal prototype to avoid an error.
14898 Use char because int might match the return type of a GCC
14899 builtin and then its argument prototype would still apply. */
14903 char SmcOpenConnection ();
14907 return SmcOpenConnection ();
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (ac_try="$ac_link"
14914 case "(($ac_try" in
14915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14916 *) ac_try_echo
=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_link") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1
>conftest.err
14923 cat conftest.err
>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest
$ac_exeext &&
14929 $as_test_x conftest
$ac_exeext; then
14930 ac_cv_lib_SM_SmcOpenConnection
=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.
$ac_ext >&5
14935 ac_cv_lib_SM_SmcOpenConnection
=no
14938 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14939 conftest
$ac_exeext conftest.
$ac_ext
14940 LIBS
=$ac_check_lib_save_LIBS
14942 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14943 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14944 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14952 if test "${HAVE_X_SM}" = "yes"; then
14954 cat >>confdefs.h
<<\_ACEOF
14955 #define HAVE_X_SM 1
14960 *) LIBS
="-lSM -lICE $LIBS" ;;
14965 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14966 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14967 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14968 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 cat >conftest.
$ac_ext <<_ACEOF
14974 cat confdefs.h
>>conftest.
$ac_ext
14975 cat >>conftest.
$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14986 rm -f conftest.
$ac_objext conftest
$ac_exeext
14987 if { (ac_try
="$ac_link"
14988 case "(($ac_try" in
14989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_link") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext &&
15003 $as_test_x conftest$ac_exeext; then
15004 emacs_cv_netdb_declares_h_errno=yes
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 emacs_cv_netdb_declares_h_errno=no
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15016 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15017 if test $emacs_cv_netdb_declares_h_errno = yes; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_H_ERRNO 1
15025 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15026 # for constant arguments. Useless!
15027 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15028 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15029 if test "${ac_cv_working_alloca_h+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 #include <alloca.h>
15042 char *p = (char *) alloca (2 * sizeof (int));
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15052 *) ac_try_echo
=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15057 grep -v '^ *+' conftest.er1
>conftest.err
15059 cat conftest.err
>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest
$ac_exeext &&
15065 $as_test_x conftest
$ac_exeext; then
15066 ac_cv_working_alloca_h
=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.
$ac_ext >&5
15071 ac_cv_working_alloca_h
=no
15074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15075 conftest
$ac_exeext conftest.
$ac_ext
15077 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15078 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15079 if test $ac_cv_working_alloca_h = yes; then
15081 cat >>confdefs.h
<<\_ACEOF
15082 #define HAVE_ALLOCA_H 1
15087 { echo "$as_me:$LINENO: checking for alloca" >&5
15088 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15089 if test "${ac_cv_func_alloca_works+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 cat >conftest.
$ac_ext <<_ACEOF
15095 cat confdefs.h
>>conftest.
$ac_ext
15096 cat >>conftest.
$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 # define alloca __builtin_alloca
15102 # include <malloc.h>
15103 # define alloca _alloca
15105 # ifdef HAVE_ALLOCA_H
15106 # include <alloca.h>
15111 # ifndef alloca /* predefined by HP cc +Olibcalls */
15122 char *p = (char *) alloca (1);
15128 rm -f conftest.
$ac_objext conftest
$ac_exeext
15129 if { (ac_try
="$ac_link"
15130 case "(($ac_try" in
15131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_link") 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest$ac_exeext &&
15145 $as_test_x conftest$ac_exeext; then
15146 ac_cv_func_alloca_works=yes
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_cv_func_alloca_works=no
15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155 conftest$ac_exeext conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15158 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15160 if test $ac_cv_func_alloca_works = yes; then
15162 cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_ALLOCA 1
15167 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15168 # that cause trouble. Some versions do not even contain alloca or
15169 # contain a buggy version. If you still want to use their alloca,
15170 # use ar to extract alloca.o from them instead of compiling alloca.c.
15172 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15174 cat >>confdefs.h <<\_ACEOF
15179 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15180 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15181 if test "${ac_cv_os_cray+set}" = set; then
15182 echo $ECHO_N "(cached
) $ECHO_C" >&6
15184 cat >conftest.$ac_ext <<_ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 #if defined CRAY && ! defined CRAY2
15197 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15198 $EGREP "webecray
" >/dev/null 2>&1; then
15206 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15207 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15208 if test $ac_cv_os_cray = yes; then
15209 for ac_func in _getb67 GETB67 getb67; do
15210 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15211 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15212 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15213 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15214 echo $ECHO_N "(cached
) $ECHO_C" >&6
15216 cat >conftest.$ac_ext <<_ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15224 #define $ac_func innocuous_$ac_func
15226 /* System header to define __stub macros and hopefully few prototypes,
15227 which can conflict with char $ac_func (); below.
15228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15229 <limits.h> exists even on freestanding compilers. */
15232 # include <limits.h>
15234 # include <assert.h>
15239 /* Override any GCC internal prototype to avoid an error.
15240 Use char because int might match the return type of a GCC
15241 builtin and then its argument prototype would still apply. */
15246 /* The GNU C library defines this for functions which it implements
15247 to always fail with ENOSYS. Some functions are actually named
15248 something starting with __ and the normal name is an alias. */
15249 #if defined __stub_$ac_func || defined __stub___$ac_func
15256 return $ac_func ();
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext &&
15278 $as_test_x conftest$ac_exeext; then
15279 eval "$as_ac_var=yes"
15281 echo "$as_me: failed program was
:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 eval "$as_ac_var=no
"
15287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15288 conftest$ac_exeext conftest.$ac_ext
15290 ac_res=`eval echo '${'$as_ac_var'}'`
15291 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15292 echo "${ECHO_T}$ac_res" >&6; }
15293 if test `eval echo '${'$as_ac_var'}'` = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296 #define CRAY_STACKSEG_END $ac_func
15305 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15306 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15307 if test "${ac_cv_c_stack_direction+set}" = set; then
15308 echo $ECHO_N "(cached
) $ECHO_C" >&6
15310 if test "$cross_compiling" = yes; then
15311 ac_cv_c_stack_direction=0
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 $ac_includes_default
15321 find_stack_direction ()
15323 static char *addr = 0;
15328 return find_stack_direction ();
15331 return (&dummy > addr) ? 1 : -1;
15337 return find_stack_direction () < 0;
15340 rm -f conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>&5
15349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15351 { (case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_try") 2>&5
15358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_cv_c_stack_direction=1
15362 echo "$as_me: program exited with status
$ac_status" >&5
15363 echo "$as_me: failed program was
:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ( exit $ac_status )
15367 ac_cv_c_stack_direction=-1
15369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15375 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15377 cat >>confdefs.h <<_ACEOF
15378 #define STACK_DIRECTION $ac_cv_c_stack_direction
15385 if test x"$ac_cv_func_alloca_works" != xyes; then
15386 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15387 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15388 { (exit 1); exit 1; }; }
15391 # fmod, logb, and frexp are found in -lm on most systems.
15392 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15394 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15395 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15396 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15397 echo $ECHO_N "(cached
) $ECHO_C" >&6
15399 ac_check_lib_save_LIBS=$LIBS
15401 cat >conftest.$ac_ext <<_ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15408 /* Override any GCC internal prototype to avoid an error.
15409 Use char because int might match the return type of a GCC
15410 builtin and then its argument prototype would still apply. */
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_link") 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15436 (exit $ac_status); } && {
15437 test -z "$ac_c_werror_flag" ||
15438 test ! -s conftest.err
15439 } && test -s conftest$ac_exeext &&
15440 $as_test_x conftest$ac_exeext; then
15441 ac_cv_lib_m_sqrt=yes
15443 echo "$as_me: failed program was
:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 ac_cv_lib_m_sqrt=no
15449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15450 conftest$ac_exeext conftest.$ac_ext
15451 LIBS=$ac_check_lib_save_LIBS
15453 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15454 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15455 if test $ac_cv_lib_m_sqrt = yes; then
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_LIBM 1
15465 # Check for mail-locking functions in a "mail" library. Probably this should
15466 # have the same check as for liblockfile below.
15468 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15469 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15470 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15471 echo $ECHO_N "(cached
) $ECHO_C" >&6
15473 ac_check_lib_save_LIBS=$LIBS
15474 LIBS="-lmail $LIBS"
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15482 /* Override any GCC internal prototype to avoid an error.
15483 Use char because int might match the return type of a GCC
15484 builtin and then its argument prototype would still apply. */
15492 return maillock ();
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (ac_try="$ac_link"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_link") 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15510 (exit $ac_status); } && {
15511 test -z "$ac_c_werror_flag" ||
15512 test ! -s conftest.err
15513 } && test -s conftest$ac_exeext &&
15514 $as_test_x conftest$ac_exeext; then
15515 ac_cv_lib_mail_maillock=yes
15517 echo "$as_me: failed program was
:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15520 ac_cv_lib_mail_maillock=no
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524 conftest$ac_exeext conftest.$ac_ext
15525 LIBS=$ac_check_lib_save_LIBS
15527 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15528 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15529 if test $ac_cv_lib_mail_maillock = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define HAVE_LIBMAIL 1
15534 LIBS="-lmail $LIBS"
15539 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15540 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15541 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15542 echo $ECHO_N "(cached
) $ECHO_C" >&6
15544 ac_check_lib_save_LIBS=$LIBS
15545 LIBS="-llockfile $LIBS"
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15553 /* Override any GCC internal prototype to avoid an error.
15554 Use char because int might match the return type of a GCC
15555 builtin and then its argument prototype would still apply. */
15563 return maillock ();
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (ac_try="$ac_link"
15570 case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_link") 2>conftest.er1
15577 grep -v '^ *+' conftest.er1 >conftest.err
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest$ac_exeext &&
15585 $as_test_x conftest$ac_exeext; then
15586 ac_cv_lib_lockfile_maillock=yes
15588 echo "$as_me: failed program was
:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15591 ac_cv_lib_lockfile_maillock=no
15594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15595 conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15598 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15599 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15600 if test $ac_cv_lib_lockfile_maillock = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define HAVE_LIBLOCKFILE 1
15605 LIBS="-llockfile $LIBS"
15609 # If we have the shared liblockfile, assume we must use it for mail
15610 # locking (e.g. Debian). If we couldn't link against liblockfile
15611 # (no liblockfile.a installed), ensure that we don't need to.
15612 if test "$ac_cv_lib_lockfile_maillock" = no; then
15613 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15614 set dummy liblockfile.so; ac_word=$2
15615 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15616 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15617 if test "${ac_cv_prog_liblockfile+set}" = set; then
15618 echo $ECHO_N "(cached
) $ECHO_C" >&6
15620 if test -n "$liblockfile"; then
15621 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15624 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15625 for as_dir in $as_dummy
15628 test -z "$as_dir" && as_dir=.
15629 for ac_exec_ext in '' $ac_executable_extensions; do
15630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15631 ac_cv_prog_liblockfile="yes"
15632 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15639 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15642 liblockfile=$ac_cv_prog_liblockfile
15643 if test -n "$liblockfile"; then
15644 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15645 echo "${ECHO_T}$liblockfile" >&6; }
15647 { echo "$as_me:$LINENO: result
: no
" >&5
15648 echo "${ECHO_T}no
" >&6; }
15652 if test $ac_cv_prog_liblockfile = yes; then
15653 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15654 This probably means that movemail could lose mail.
15655 There may be a \`development' package to
install containing liblockfile.
" >&5
15656 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15657 This probably means that movemail could lose mail.
15658 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15659 { (exit 1); exit 1; }; }
15664 for ac_func in touchlock
15666 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15667 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15668 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15669 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached
) $ECHO_C" >&6
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15680 #define $ac_func innocuous_$ac_func
15682 /* System header to define __stub macros and hopefully few prototypes,
15683 which can conflict with char $ac_func (); below.
15684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15685 <limits.h> exists even on freestanding compilers. */
15688 # include <limits.h>
15690 # include <assert.h>
15695 /* Override any GCC internal prototype to avoid an error.
15696 Use char because int might match the return type of a GCC
15697 builtin and then its argument prototype would still apply. */
15702 /* The GNU C library defines this for functions which it implements
15703 to always fail with ENOSYS. Some functions are actually named
15704 something starting with __ and the normal name is an alias. */
15705 #if defined __stub_$ac_func || defined __stub___$ac_func
15712 return $ac_func ();
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (ac_try="$ac_link"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_link") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest$ac_exeext &&
15734 $as_test_x conftest$ac_exeext; then
15735 eval "$as_ac_var=yes"
15737 echo "$as_me: failed program was
:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 eval "$as_ac_var=no
"
15743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15744 conftest$ac_exeext conftest.$ac_ext
15746 ac_res=`eval echo '${'$as_ac_var'}'`
15747 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15748 echo "${ECHO_T}$ac_res" >&6; }
15749 if test `eval echo '${'$as_ac_var'}'` = yes; then
15750 cat >>confdefs.h <<_ACEOF
15751 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15758 for ac_header in maillock.h
15760 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15761 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15762 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15763 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached
) $ECHO_C" >&6
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15771 # Is the header compilable?
15772 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15773 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <$ac_header>
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_compile") 2>conftest.er1
15792 grep -v '^ *+' conftest.er1 >conftest.err
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15796 (exit $ac_status); } && {
15797 test -z "$ac_c_werror_flag" ||
15798 test ! -s conftest.err
15799 } && test -s conftest.$ac_objext; then
15800 ac_header_compiler=yes
15802 echo "$as_me: failed program was
:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_compiler=no
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15814 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 #include <$ac_header>
15823 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15835 (exit $ac_status); } >/dev/null && {
15836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15839 ac_header_preproc=yes
15841 echo "$as_me: failed program was
:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 ac_header_preproc=no
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15851 # So? What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15854 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15855 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15856 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15858 ac_header_preproc=yes
15861 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15862 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15863 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15864 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15866 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15867 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15868 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15869 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15871 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15872 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15876 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15877 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached
) $ECHO_C" >&6
15881 eval "$as_ac_Header=\
$ac_header_preproc"
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15966 for ac_func in gethostname getdomainname dup2 \
15967 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15968 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15969 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15970 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15971 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15972 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15973 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15974 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15976 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15977 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15978 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15979 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15980 echo $ECHO_N "(cached
) $ECHO_C" >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15990 #define $ac_func innocuous_$ac_func
15992 /* System header to define __stub macros and hopefully few prototypes,
15993 which can conflict with char $ac_func (); below.
15994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15995 <limits.h> exists even on freestanding compilers. */
15998 # include <limits.h>
16000 # include <assert.h>
16005 /* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16012 /* The GNU C library defines this for functions which it implements
16013 to always fail with ENOSYS. Some functions are actually named
16014 something starting with __ and the normal name is an alias. */
16015 #if defined __stub_$ac_func || defined __stub___$ac_func
16022 return $ac_func ();
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (ac_try="$ac_link"
16029 case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_link") 2>conftest.er1
16036 grep -v '^ *+' conftest.er1 >conftest.err
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16040 (exit $ac_status); } && {
16041 test -z "$ac_c_werror_flag" ||
16042 test ! -s conftest.err
16043 } && test -s conftest$ac_exeext &&
16044 $as_test_x conftest$ac_exeext; then
16045 eval "$as_ac_var=yes"
16047 echo "$as_me: failed program was
:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 eval "$as_ac_var=no
"
16053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16054 conftest$ac_exeext conftest.$ac_ext
16056 ac_res=`eval echo '${'$as_ac_var'}'`
16057 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16058 echo "${ECHO_T}$ac_res" >&6; }
16059 if test `eval echo '${'$as_ac_var'}'` = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16069 for ac_header in sys/un.h
16071 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16073 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16074 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached
) $ECHO_C" >&6
16078 ac_res=`eval echo '${'$as_ac_Header'}'`
16079 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16080 echo "${ECHO_T}$ac_res" >&6; }
16082 # Is the header compilable?
16083 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16084 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 $ac_includes_default
16092 #include <$ac_header>
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_compile") 2>conftest.er1
16103 grep -v '^ *+' conftest.er1 >conftest.err
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16107 (exit $ac_status); } && {
16108 test -z "$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 } && test -s conftest.$ac_objext; then
16111 ac_header_compiler=yes
16113 echo "$as_me: failed program was
:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_header_compiler=no
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16121 echo "${ECHO_T}$ac_header_compiler" >&6; }
16123 # Is the header present?
16124 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16125 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16126 cat >conftest.$ac_ext <<_ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <$ac_header>
16134 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16146 (exit $ac_status); } >/dev/null && {
16147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16150 ac_header_preproc=yes
16152 echo "$as_me: failed program was
:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_header_preproc=no
16158 rm -f conftest.err conftest.$ac_ext
16159 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16160 echo "${ECHO_T}$ac_header_preproc" >&6; }
16162 # So? What about this header?
16163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16165 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16166 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16167 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16169 ac_header_preproc=yes
16172 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16173 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16174 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16175 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16176 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16177 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16178 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16179 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16180 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16182 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16183 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16187 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16188 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16189 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16190 echo $ECHO_N "(cached
) $ECHO_C" >&6
16192 eval "$as_ac_Header=\
$ac_header_preproc"
16194 ac_res=`eval echo '${'$as_ac_Header'}'`
16195 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16196 echo "${ECHO_T}$ac_res" >&6; }
16199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16200 cat >>confdefs.h <<_ACEOF
16201 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16213 for ac_header in $ac_header_list
16215 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16217 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16218 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16219 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16220 echo $ECHO_N "(cached
) $ECHO_C" >&6
16222 ac_res=`eval echo '${'$as_ac_Header'}'`
16223 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16224 echo "${ECHO_T}$ac_res" >&6; }
16226 # Is the header compilable?
16227 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16228 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16229 cat >conftest.$ac_ext <<_ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 $ac_includes_default
16236 #include <$ac_header>
16238 rm -f conftest.$ac_objext
16239 if { (ac_try="$ac_compile"
16240 case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_compile") 2>conftest.er1
16247 grep -v '^ *+' conftest.er1 >conftest.err
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16251 (exit $ac_status); } && {
16252 test -z "$ac_c_werror_flag" ||
16253 test ! -s conftest.err
16254 } && test -s conftest.$ac_objext; then
16255 ac_header_compiler=yes
16257 echo "$as_me: failed program was
:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_compiler=no
16263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16265 echo "${ECHO_T}$ac_header_compiler" >&6; }
16267 # Is the header present?
16268 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16269 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 #include <$ac_header>
16278 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16286 grep -v '^ *+' conftest.er1 >conftest.err
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16290 (exit $ac_status); } >/dev/null && {
16291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16292 test ! -s conftest.err
16294 ac_header_preproc=yes
16296 echo "$as_me: failed program was
:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299 ac_header_preproc=no
16302 rm -f conftest.err conftest.$ac_ext
16303 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16304 echo "${ECHO_T}$ac_header_preproc" >&6; }
16306 # So? What about this header?
16307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16309 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16310 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16311 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16313 ac_header_preproc=yes
16316 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16317 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16318 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16319 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16320 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16321 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16322 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16323 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16324 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16326 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16327 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16331 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16332 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached
) $ECHO_C" >&6
16336 eval "$as_ac_Header=\
$ac_header_preproc"
16338 ac_res=`eval echo '${'$as_ac_Header'}'`
16339 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16340 echo "${ECHO_T}$ac_res" >&6; }
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 cat >>confdefs.h <<_ACEOF
16345 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16360 for ac_func in $ac_func_list
16362 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16363 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16364 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16365 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16366 echo $ECHO_N "(cached
) $ECHO_C" >&6
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16376 #define $ac_func innocuous_$ac_func
16378 /* System header to define __stub macros and hopefully few prototypes,
16379 which can conflict with char $ac_func (); below.
16380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16381 <limits.h> exists even on freestanding compilers. */
16384 # include <limits.h>
16386 # include <assert.h>
16391 /* Override any GCC internal prototype to avoid an error.
16392 Use char because int might match the return type of a GCC
16393 builtin and then its argument prototype would still apply. */
16398 /* The GNU C library defines this for functions which it implements
16399 to always fail with ENOSYS. Some functions are actually named
16400 something starting with __ and the normal name is an alias. */
16401 #if defined __stub_$ac_func || defined __stub___$ac_func
16408 return $ac_func ();
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_link") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest$ac_exeext &&
16430 $as_test_x conftest$ac_exeext; then
16431 eval "$as_ac_var=yes"
16433 echo "$as_me: failed program was
:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 eval "$as_ac_var=no
"
16439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16440 conftest$ac_exeext conftest.$ac_ext
16442 ac_res=`eval echo '${'$as_ac_var'}'`
16443 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16444 echo "${ECHO_T}$ac_res" >&6; }
16445 if test `eval echo '${'$as_ac_var'}'` = yes; then
16446 cat >>confdefs.h <<_ACEOF
16447 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16469 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16470 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16471 if test "${ac_cv_func_working_mktime+set}" = set; then
16472 echo $ECHO_N "(cached
) $ECHO_C" >&6
16474 if test "$cross_compiling" = yes; then
16475 ac_cv_func_working_mktime=no
16477 cat >conftest.$ac_ext <<_ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 /* Test program from Paul Eggert and Tony Leneis. */
16484 #ifdef TIME_WITH_SYS_TIME
16485 # include <sys/time.h>
16488 # ifdef HAVE_SYS_TIME_H
16489 # include <sys/time.h>
16495 #include <stdlib.h>
16497 #ifdef HAVE_UNISTD_H
16498 # include <unistd.h>
16502 # define alarm(X) /* empty */
16505 /* Work around redefinition to rpl_putenv by other config tests. */
16508 static time_t time_t_max;
16509 static time_t time_t_min;
16511 /* Values we'll use to set the TZ environment variable. */
16512 static char *tz_strings[] = {
16513 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16514 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16516 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16518 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16519 Based on a problem report from Andreas Jaeger. */
16521 spring_forward_gap ()
16523 /* glibc (up to about 1998-10-07) failed this test. */
16526 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16527 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16528 on systems that don't support the Olson extension, or don't have the
16529 full zoneinfo tables installed. */
16530 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16539 return mktime (&tm) != (time_t) -1;
16547 return ! (lt = localtime (&now)) || mktime (lt) == now;
16554 return (mktime_test1 (now)
16555 && mktime_test1 ((time_t) (time_t_max - now))
16556 && mktime_test1 ((time_t) (time_t_min + now)));
16562 /* Based on code from Ariel Faigon. */
16572 return tm.tm_mon == 2 && tm.tm_mday == 31;
16581 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16582 now = mktime (&tm);
16583 if (now != (time_t) -1)
16585 struct tm *lt = localtime (&now);
16587 && lt->tm_year == tm.tm_year
16588 && lt->tm_mon == tm.tm_mon
16589 && lt->tm_mday == tm.tm_mday
16590 && lt->tm_hour == tm.tm_hour
16591 && lt->tm_min == tm.tm_min
16592 && lt->tm_sec == tm.tm_sec
16593 && lt->tm_yday == tm.tm_yday
16594 && lt->tm_wday == tm.tm_wday
16595 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16596 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16605 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16606 ignoring leap seconds. */
16607 unsigned long int answer = 2527315200UL;
16611 tm.tm_year = 2050 - 1900;
16614 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16617 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16618 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16619 on systems that don't support the Olson extension, or don't have the
16620 full zoneinfo tables installed. */
16621 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16625 /* Check that the result is either a failure, or close enough
16626 to the correct answer that we can assume the discrepancy is
16627 due to leap seconds. */
16628 return (t == (time_t) -1
16629 || (0 < t && answer - 120 <= t && t <= answer + 120));
16638 /* This test makes some buggy mktime implementations loop.
16639 Give up after 60 seconds; a mktime slower than that
16640 isn't worth using anyway. */
16643 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16646 if ((time_t) -1 < 0)
16647 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16649 delta = time_t_max / 997; /* a suitable prime number */
16650 for (i = 0; i < N_STRINGS; i++)
16653 putenv (tz_strings[i]);
16655 for (t = 0; t <= time_t_max - delta; t += delta)
16656 if (! mktime_test (t))
16658 if (! (mktime_test ((time_t) 1)
16659 && mktime_test ((time_t) (60 * 60))
16660 && mktime_test ((time_t) (60 * 60 * 24))))
16663 for (j = 1; 0 < j; j *= 2)
16664 if (! bigtime_test (j))
16666 if (! bigtime_test (j - 1))
16669 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16672 rm -f conftest$ac_exeext
16673 if { (ac_try="$ac_link"
16674 case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_link") 2>&5
16681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_func_working_mktime=yes
16694 echo "$as_me: program exited with status
$ac_status" >&5
16695 echo "$as_me: failed program was
:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 ( exit $ac_status )
16699 ac_cv_func_working_mktime=no
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16706 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16707 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16708 if test $ac_cv_func_working_mktime = no; then
16709 case " $LIBOBJS " in
16710 *" mktime.
$ac_objext "* ) ;;
16711 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16717 if test "$ac_cv_func_working_mktime" = no; then
16719 cat >>confdefs.h <<\_ACEOF
16720 #define BROKEN_MKTIME 1
16725 ac_have_func=no # yes means we've found a way to get the load average.
16727 # Make sure getloadavg.c is where it belongs, at configure-time.
16728 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16729 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16730 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16731 { (exit 1); exit 1; }; }
16735 # Check for getloadavg, but be sure not to touch the cache variable.
16736 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16737 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16738 if test "${ac_cv_func_getloadavg+set}" = set; then
16739 echo $ECHO_N "(cached
) $ECHO_C" >&6
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16749 #define getloadavg innocuous_getloadavg
16751 /* System header to define __stub macros and hopefully few prototypes,
16752 which can conflict with char getloadavg (); below.
16753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16754 <limits.h> exists even on freestanding compilers. */
16757 # include <limits.h>
16759 # include <assert.h>
16764 /* Override any GCC internal prototype to avoid an error.
16765 Use char because int might match the return type of a GCC
16766 builtin and then its argument prototype would still apply. */
16770 char getloadavg ();
16771 /* The GNU C library defines this for functions which it implements
16772 to always fail with ENOSYS. Some functions are actually named
16773 something starting with __ and the normal name is an alias. */
16774 #if defined __stub_getloadavg || defined __stub___getloadavg
16781 return getloadavg ();
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (ac_try="$ac_link"
16788 case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_link") 2>conftest.er1
16795 grep -v '^ *+' conftest.er1 >conftest.err
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16799 (exit $ac_status); } && {
16800 test -z "$ac_c_werror_flag" ||
16801 test ! -s conftest.err
16802 } && test -s conftest$ac_exeext &&
16803 $as_test_x conftest$ac_exeext; then
16804 ac_cv_func_getloadavg=yes
16806 echo "$as_me: failed program was
:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_cv_func_getloadavg=no
16812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16813 conftest$ac_exeext conftest.$ac_ext
16815 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16816 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16817 if test $ac_cv_func_getloadavg = yes; then
16822 ) && ac_have_func=yes
16824 # On HPUX9, an unprivileged user can get load averages through this function.
16826 for ac_func in pstat_getdynamic
16828 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16829 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16830 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16831 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16832 echo $ECHO_N "(cached
) $ECHO_C" >&6
16834 cat >conftest.$ac_ext <<_ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16842 #define $ac_func innocuous_$ac_func
16844 /* System header to define __stub macros and hopefully few prototypes,
16845 which can conflict with char $ac_func (); below.
16846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847 <limits.h> exists even on freestanding compilers. */
16850 # include <limits.h>
16852 # include <assert.h>
16857 /* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16864 /* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867 #if defined __stub_$ac_func || defined __stub___$ac_func
16874 return $ac_func ();
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16892 (exit $ac_status); } && {
16893 test -z "$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 } && test -s conftest$ac_exeext &&
16896 $as_test_x conftest$ac_exeext; then
16897 eval "$as_ac_var=yes"
16899 echo "$as_me: failed program was
:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 eval "$as_ac_var=no
"
16905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16906 conftest$ac_exeext conftest.$ac_ext
16908 ac_res=`eval echo '${'$as_ac_var'}'`
16909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16910 echo "${ECHO_T}$ac_res" >&6; }
16911 if test `eval echo '${'$as_ac_var'}'` = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16920 # Solaris has libkstat which does not require root.
16922 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16923 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16924 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16925 echo $ECHO_N "(cached
) $ECHO_C" >&6
16927 ac_check_lib_save_LIBS=$LIBS
16928 LIBS="-lkstat $LIBS"
16929 cat >conftest.$ac_ext <<_ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16942 char kstat_open ();
16946 return kstat_open ();
16951 rm -f conftest.$ac_objext conftest$ac_exeext
16952 if { (ac_try="$ac_link"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_link") 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext &&
16968 $as_test_x conftest$ac_exeext; then
16969 ac_cv_lib_kstat_kstat_open=yes
16971 echo "$as_me: failed program was
:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 ac_cv_lib_kstat_kstat_open=no
16977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16978 conftest$ac_exeext conftest.$ac_ext
16979 LIBS=$ac_check_lib_save_LIBS
16981 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16982 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16983 if test $ac_cv_lib_kstat_kstat_open = yes; then
16984 cat >>confdefs.h <<_ACEOF
16985 #define HAVE_LIBKSTAT 1
16988 LIBS="-lkstat $LIBS"
16992 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16994 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16995 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16996 # to get the right answer into the cache.
16997 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16998 if test $ac_have_func = no; then
16999 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17000 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17001 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17002 echo $ECHO_N "(cached
) $ECHO_C" >&6
17004 ac_check_lib_save_LIBS=$LIBS
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17013 /* Override any GCC internal prototype to avoid an error.
17014 Use char because int might match the return type of a GCC
17015 builtin and then its argument prototype would still apply. */
17023 return elf_begin ();
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest$ac_exeext &&
17045 $as_test_x conftest$ac_exeext; then
17046 ac_cv_lib_elf_elf_begin=yes
17048 echo "$as_me: failed program was
:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_cv_lib_elf_elf_begin=no
17054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17055 conftest$ac_exeext conftest.$ac_ext
17056 LIBS=$ac_check_lib_save_LIBS
17058 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17059 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17060 if test $ac_cv_lib_elf_elf_begin = yes; then
17065 if test $ac_have_func = no; then
17066 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17067 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17068 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17069 echo $ECHO_N "(cached
) $ECHO_C" >&6
17071 ac_check_lib_save_LIBS=$LIBS
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17080 /* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
17090 return kvm_open ();
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17104 grep -v '^ *+' conftest.er1 >conftest.err
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17108 (exit $ac_status); } && {
17109 test -z "$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 } && test -s conftest$ac_exeext &&
17112 $as_test_x conftest$ac_exeext; then
17113 ac_cv_lib_kvm_kvm_open=yes
17115 echo "$as_me: failed program was
:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 ac_cv_lib_kvm_kvm_open=no
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17123 LIBS=$ac_check_lib_save_LIBS
17125 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17126 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17127 if test $ac_cv_lib_kvm_kvm_open = yes; then
17131 # Check for the 4.4BSD definition of getloadavg.
17132 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17133 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17134 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17135 echo $ECHO_N "(cached
) $ECHO_C" >&6
17137 ac_check_lib_save_LIBS=$LIBS
17138 LIBS="-lutil $LIBS"
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17146 /* Override any GCC internal prototype to avoid an error.
17147 Use char because int might match the return type of a GCC
17148 builtin and then its argument prototype would still apply. */
17152 char getloadavg ();
17156 return getloadavg ();
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (ac_try="$ac_link"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
17170 grep -v '^ *+' conftest.er1 >conftest.err
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17174 (exit $ac_status); } && {
17175 test -z "$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 } && test -s conftest$ac_exeext &&
17178 $as_test_x conftest$ac_exeext; then
17179 ac_cv_lib_util_getloadavg=yes
17181 echo "$as_me: failed program was
:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ac_cv_lib_util_getloadavg=no
17187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17188 conftest$ac_exeext conftest.$ac_ext
17189 LIBS=$ac_check_lib_save_LIBS
17191 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17192 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17193 if test $ac_cv_lib_util_getloadavg = yes; then
17194 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17199 if test $ac_have_func = no; then
17200 # There is a commonly available library for RS/6000 AIX.
17201 # Since it is not a standard part of AIX, it might be installed locally.
17202 ac_getloadavg_LIBS=$LIBS
17203 LIBS="-L/usr
/local
/lib
$LIBS"
17204 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17205 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17206 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17207 echo $ECHO_N "(cached
) $ECHO_C" >&6
17209 ac_check_lib_save_LIBS=$LIBS
17210 LIBS="-lgetloadavg $LIBS"
17211 cat >conftest.$ac_ext <<_ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17218 /* Override any GCC internal prototype to avoid an error.
17219 Use char because int might match the return type of a GCC
17220 builtin and then its argument prototype would still apply. */
17224 char getloadavg ();
17228 return getloadavg ();
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest$ac_exeext &&
17250 $as_test_x conftest$ac_exeext; then
17251 ac_cv_lib_getloadavg_getloadavg=yes
17253 echo "$as_me: failed program was
:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_lib_getloadavg_getloadavg=no
17259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17260 conftest$ac_exeext conftest.$ac_ext
17261 LIBS=$ac_check_lib_save_LIBS
17263 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17264 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17265 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17266 LIBS="-lgetloadavg $LIBS"
17268 LIBS=$ac_getloadavg_LIBS
17273 # Make sure it is really in the library, if we think we found it,
17274 # otherwise set up the replacement function.
17276 for ac_func in getloadavg
17278 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17279 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17280 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17281 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17282 echo $ECHO_N "(cached
) $ECHO_C" >&6
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17292 #define $ac_func innocuous_$ac_func
17294 /* System header to define __stub macros and hopefully few prototypes,
17295 which can conflict with char $ac_func (); below.
17296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297 <limits.h> exists even on freestanding compilers. */
17300 # include <limits.h>
17302 # include <assert.h>
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17314 /* The GNU C library defines this for functions which it implements
17315 to always fail with ENOSYS. Some functions are actually named
17316 something starting with __ and the normal name is an alias. */
17317 #if defined __stub_$ac_func || defined __stub___$ac_func
17324 return $ac_func ();
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_link") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17342 (exit $ac_status); } && {
17343 test -z "$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 } && test -s conftest$ac_exeext &&
17346 $as_test_x conftest$ac_exeext; then
17347 eval "$as_ac_var=yes"
17349 echo "$as_me: failed program was
:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 eval "$as_ac_var=no
"
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17358 ac_res=`eval echo '${'$as_ac_var'}'`
17359 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17360 echo "${ECHO_T}$ac_res" >&6; }
17361 if test `eval echo '${'$as_ac_var'}'` = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17367 case " $LIBOBJS " in
17368 *" getloadavg.
$ac_objext "* ) ;;
17369 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17374 cat >>confdefs.h <<\_ACEOF
17375 #define C_GETLOADAVG 1
17378 # Figure out what our getloadavg.c needs.
17380 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17381 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17382 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17383 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17384 echo $ECHO_N "(cached
) $ECHO_C" >&6
17386 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17387 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17389 # Is the header compilable?
17390 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17391 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17392 cat >conftest.$ac_ext <<_ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 $ac_includes_default
17399 #include <sys/dg_sys_info.h>
17401 rm -f conftest.$ac_objext
17402 if { (ac_try="$ac_compile"
17403 case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_compile") 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest.$ac_objext; then
17418 ac_header_compiler=yes
17420 echo "$as_me: failed program was
:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 ac_header_compiler=no
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17428 echo "${ECHO_T}$ac_header_compiler" >&6; }
17430 # Is the header present?
17431 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17432 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 #include <sys/dg_sys_info.h>
17441 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17442 case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17449 grep -v '^ *+' conftest.er1 >conftest.err
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17453 (exit $ac_status); } >/dev/null && {
17454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17455 test ! -s conftest.err
17457 ac_header_preproc=yes
17459 echo "$as_me: failed program was
:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_header_preproc=no
17465 rm -f conftest.err conftest.$ac_ext
17466 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17467 echo "${ECHO_T}$ac_header_preproc" >&6; }
17469 # So? What about this header?
17470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17472 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17473 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17474 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17475 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17476 ac_header_preproc=yes
17479 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17480 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17481 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17482 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17483 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17484 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17485 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17486 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17487 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17488 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17489 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17490 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17494 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17495 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17496 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17497 echo $ECHO_N "(cached
) $ECHO_C" >&6
17499 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17501 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17502 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17505 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17508 cat >>confdefs.h <<\_ACEOF
17513 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17514 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17515 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17516 echo $ECHO_N "(cached
) $ECHO_C" >&6
17518 ac_check_lib_save_LIBS=$LIBS
17520 cat >conftest.$ac_ext <<_ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17527 /* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17533 char dg_sys_info ();
17537 return dg_sys_info ();
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (ac_try="$ac_link"
17544 case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
17551 grep -v '^ *+' conftest.er1 >conftest.err
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest$ac_exeext &&
17559 $as_test_x conftest$ac_exeext; then
17560 ac_cv_lib_dgc_dg_sys_info=yes
17562 echo "$as_me: failed program was
:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17565 ac_cv_lib_dgc_dg_sys_info=no
17568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17569 conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17572 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17573 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17574 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17575 cat >>confdefs.h <<_ACEOF
17576 #define HAVE_LIBDGC 1
17587 if test "${ac_cv_header_locale_h+set}" = set; then
17588 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17589 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17590 if test "${ac_cv_header_locale_h+set}" = set; then
17591 echo $ECHO_N "(cached
) $ECHO_C" >&6
17593 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17594 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17596 # Is the header compilable?
17597 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17598 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 $ac_includes_default
17606 #include <locale.h>
17608 rm -f conftest.$ac_objext
17609 if { (ac_try="$ac_compile"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_compile") 2>conftest.er1
17617 grep -v '^ *+' conftest.er1 >conftest.err
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest.$ac_objext; then
17625 ac_header_compiler=yes
17627 echo "$as_me: failed program was
:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_header_compiler=no
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17635 echo "${ECHO_T}$ac_header_compiler" >&6; }
17637 # Is the header present?
17638 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17639 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <locale.h>
17648 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17660 (exit $ac_status); } >/dev/null && {
17661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17664 ac_header_preproc=yes
17666 echo "$as_me: failed program was
:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_header_preproc=no
17672 rm -f conftest.err conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17674 echo "${ECHO_T}$ac_header_preproc" >&6; }
17676 # So? What about this header?
17677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17679 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17680 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17681 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17682 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17683 ac_header_preproc=yes
17686 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17687 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17688 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17689 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17690 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17691 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17692 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17693 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17694 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17695 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17696 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17697 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17701 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17702 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17703 if test "${ac_cv_header_locale_h+set}" = set; then
17704 echo $ECHO_N "(cached
) $ECHO_C" >&6
17706 ac_cv_header_locale_h=$ac_header_preproc
17708 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17709 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17715 for ac_func in setlocale
17717 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17718 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17719 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17720 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17721 echo $ECHO_N "(cached
) $ECHO_C" >&6
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17731 #define $ac_func innocuous_$ac_func
17733 /* System header to define __stub macros and hopefully few prototypes,
17734 which can conflict with char $ac_func (); below.
17735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17736 <limits.h> exists even on freestanding compilers. */
17739 # include <limits.h>
17741 # include <assert.h>
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17753 /* The GNU C library defines this for functions which it implements
17754 to always fail with ENOSYS. Some functions are actually named
17755 something starting with __ and the normal name is an alias. */
17756 #if defined __stub_$ac_func || defined __stub___$ac_func
17763 return $ac_func ();
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (ac_try="$ac_link"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_link") 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17781 (exit $ac_status); } && {
17782 test -z "$ac_c_werror_flag" ||
17783 test ! -s conftest.err
17784 } && test -s conftest$ac_exeext &&
17785 $as_test_x conftest$ac_exeext; then
17786 eval "$as_ac_var=yes"
17788 echo "$as_me: failed program was
:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 eval "$as_ac_var=no
"
17794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17795 conftest$ac_exeext conftest.$ac_ext
17797 ac_res=`eval echo '${'$as_ac_var'}'`
17798 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17799 echo "${ECHO_T}$ac_res" >&6; }
17800 if test `eval echo '${'$as_ac_var'}'` = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17809 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17810 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17811 # Irix 4.0.5F has the header but not the library.
17812 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17815 cat >>confdefs.h <<\_ACEOF
17821 if test $ac_have_func = no; then
17822 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17823 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17824 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17825 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17826 echo $ECHO_N "(cached
) $ECHO_C" >&6
17828 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17829 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17831 # Is the header compilable?
17832 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17833 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17834 cat >conftest.$ac_ext <<_ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 $ac_includes_default
17841 #include <inq_stats/cpustats.h>
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_compile") 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest.$ac_objext; then
17860 ac_header_compiler=yes
17862 echo "$as_me: failed program was
:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_header_compiler=no
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17870 echo "${ECHO_T}$ac_header_compiler" >&6; }
17872 # Is the header present?
17873 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17874 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #include <inq_stats/cpustats.h>
17883 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17895 (exit $ac_status); } >/dev/null && {
17896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17899 ac_header_preproc=yes
17901 echo "$as_me: failed program was
:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_header_preproc=no
17907 rm -f conftest.err conftest.$ac_ext
17908 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17909 echo "${ECHO_T}$ac_header_preproc" >&6; }
17911 # So? What about this header?
17912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17914 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17915 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17916 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17917 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17918 ac_header_preproc=yes
17921 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17922 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17923 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17924 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17925 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17926 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17927 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17928 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17929 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17930 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17931 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17932 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17936 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17937 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17938 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17939 echo $ECHO_N "(cached
) $ECHO_C" >&6
17941 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17943 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17944 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17947 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17950 cat >>confdefs.h <<\_ACEOF
17955 cat >>confdefs.h <<\_ACEOF
17964 if test $ac_have_func = no; then
17965 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17966 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17967 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17968 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17969 echo $ECHO_N "(cached
) $ECHO_C" >&6
17971 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17972 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17974 # Is the header compilable?
17975 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17976 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17977 cat >conftest.$ac_ext <<_ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 $ac_includes_default
17984 #include <sys/cpustats.h>
17986 rm -f conftest.$ac_objext
17987 if { (ac_try="$ac_compile"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_compile") 2>conftest.er1
17995 grep -v '^ *+' conftest.er1 >conftest.err
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17999 (exit $ac_status); } && {
18000 test -z "$ac_c_werror_flag" ||
18001 test ! -s conftest.err
18002 } && test -s conftest.$ac_objext; then
18003 ac_header_compiler=yes
18005 echo "$as_me: failed program was
:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 ac_header_compiler=no
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18013 echo "${ECHO_T}$ac_header_compiler" >&6; }
18015 # Is the header present?
18016 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18017 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18018 cat >conftest.$ac_ext <<_ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 #include <sys/cpustats.h>
18026 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18027 case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18034 grep -v '^ *+' conftest.er1 >conftest.err
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18038 (exit $ac_status); } >/dev/null && {
18039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18040 test ! -s conftest.err
18042 ac_header_preproc=yes
18044 echo "$as_me: failed program was
:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 ac_header_preproc=no
18050 rm -f conftest.err conftest.$ac_ext
18051 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18052 echo "${ECHO_T}$ac_header_preproc" >&6; }
18054 # So? What about this header?
18055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18057 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18058 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18059 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18060 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18061 ac_header_preproc=yes
18064 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18065 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18066 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18067 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18068 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18069 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18070 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18071 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18072 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18073 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18074 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18075 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18079 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18080 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18081 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18082 echo $ECHO_N "(cached
) $ECHO_C" >&6
18084 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18086 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18087 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18090 if test $ac_cv_header_sys_cpustats_h = yes; then
18091 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18100 if test $ac_have_func = no; then
18102 for ac_header in mach/mach.h
18104 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18105 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18106 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18107 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18108 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18109 echo $ECHO_N "(cached
) $ECHO_C" >&6
18111 ac_res=`eval echo '${'$as_ac_Header'}'`
18112 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18113 echo "${ECHO_T}$ac_res" >&6; }
18115 # Is the header compilable?
18116 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18117 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18118 cat >conftest.$ac_ext <<_ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 $ac_includes_default
18125 #include <$ac_header>
18127 rm -f conftest.$ac_objext
18128 if { (ac_try="$ac_compile"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_compile") 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest.$ac_objext; then
18144 ac_header_compiler=yes
18146 echo "$as_me: failed program was
:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ac_header_compiler=no
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18154 echo "${ECHO_T}$ac_header_compiler" >&6; }
18156 # Is the header present?
18157 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18158 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #include <$ac_header>
18167 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18175 grep -v '^ *+' conftest.er1 >conftest.err
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18179 (exit $ac_status); } >/dev/null && {
18180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18181 test ! -s conftest.err
18183 ac_header_preproc=yes
18185 echo "$as_me: failed program was
:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 ac_header_preproc=no
18191 rm -f conftest.err conftest.$ac_ext
18192 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18193 echo "${ECHO_T}$ac_header_preproc" >&6; }
18195 # So? What about this header?
18196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18198 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18199 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18200 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18202 ac_header_preproc=yes
18205 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18206 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18207 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18208 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18209 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18210 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18211 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18212 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18213 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18215 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18216 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18220 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18221 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18222 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18223 echo $ECHO_N "(cached
) $ECHO_C" >&6
18225 eval "$as_ac_Header=\
$ac_header_preproc"
18227 ac_res=`eval echo '${'$as_ac_Header'}'`
18228 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18229 echo "${ECHO_T}$ac_res" >&6; }
18232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18244 for ac_header in nlist.h
18246 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18251 echo $ECHO_N "(cached
) $ECHO_C" >&6
18253 ac_res=`eval echo '${'$as_ac_Header'}'`
18254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18255 echo "${ECHO_T}$ac_res" >&6; }
18257 # Is the header compilable?
18258 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18259 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 $ac_includes_default
18267 #include <$ac_header>
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18278 grep -v '^ *+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18282 (exit $ac_status); } && {
18283 test -z "$ac_c_werror_flag" ||
18284 test ! -s conftest.err
18285 } && test -s conftest.$ac_objext; then
18286 ac_header_compiler=yes
18288 echo "$as_me: failed program was
:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ac_header_compiler=no
18294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18296 echo "${ECHO_T}$ac_header_compiler" >&6; }
18298 # Is the header present?
18299 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18300 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #include <$ac_header>
18309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18317 grep -v '^ *+' conftest.er1 >conftest.err
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18321 (exit $ac_status); } >/dev/null && {
18322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18325 ac_header_preproc=yes
18327 echo "$as_me: failed program was
:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_header_preproc=no
18333 rm -f conftest.err conftest.$ac_ext
18334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18335 echo "${ECHO_T}$ac_header_preproc" >&6; }
18337 # So? What about this header?
18338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18340 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18341 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18344 ac_header_preproc=yes
18347 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18348 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18349 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18350 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18351 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18352 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18353 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18354 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18357 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18358 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18365 echo $ECHO_N "(cached
) $ECHO_C" >&6
18367 eval "$as_ac_Header=\
$ac_header_preproc"
18369 ac_res=`eval echo '${'$as_ac_Header'}'`
18370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18371 echo "${ECHO_T}$ac_res" >&6; }
18374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18375 cat >>confdefs.h <<_ACEOF
18376 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18378 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18379 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18380 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18381 echo $ECHO_N "(cached
) $ECHO_C" >&6
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18394 static struct nlist ac_aggr;
18395 if (ac_aggr.n_un.n_name)
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_compile") 2>conftest.er1
18410 grep -v '^ *+' conftest.er1 >conftest.err
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18414 (exit $ac_status); } && {
18415 test -z "$ac_c_werror_flag" ||
18416 test ! -s conftest.err
18417 } && test -s conftest.$ac_objext; then
18418 ac_cv_member_struct_nlist_n_un_n_name=yes
18420 echo "$as_me: failed program was
:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18434 static struct nlist ac_aggr;
18435 if (sizeof ac_aggr.n_un.n_name)
18441 rm -f conftest.$ac_objext
18442 if { (ac_try="$ac_compile"
18443 case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_compile") 2>conftest.er1
18450 grep -v '^ *+' conftest.er1 >conftest.err
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18454 (exit $ac_status); } && {
18455 test -z "$ac_c_werror_flag" ||
18456 test ! -s conftest.err
18457 } && test -s conftest.$ac_objext; then
18458 ac_cv_member_struct_nlist_n_un_n_name=yes
18460 echo "$as_me: failed program was
:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 ac_cv_member_struct_nlist_n_un_n_name=no
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18472 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18473 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18475 cat >>confdefs.h <<_ACEOF
18476 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18480 cat >>confdefs.h <<\_ACEOF
18481 #define NLIST_NAME_UNION 1
18495 # Some definitions of getloadavg require that the program be installed setgid.
18496 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18497 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18498 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18499 echo $ECHO_N "(cached
) $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18508 #ifdef LDAV_PRIVILEGED
18509 Yowza Am I SETGID yet
18512 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18513 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18514 ac_cv_func_getloadavg_setgid=yes
18516 ac_cv_func_getloadavg_setgid=no
18521 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18522 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18523 if test $ac_cv_func_getloadavg_setgid = yes; then
18526 cat >>confdefs.h <<\_ACEOF
18527 #define GETLOADAVG_PRIVILEGED 1
18534 if test $ac_cv_func_getloadavg_setgid = yes; then
18535 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18536 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18537 if test "${ac_cv_group_kmem+set}" = set; then
18538 echo $ECHO_N "(cached
) $ECHO_C" >&6
18540 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18541 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18542 # If we got an error (system does not support symlinks), try without -L.
18543 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18544 ac_cv_group_kmem=`echo $ac_ls_output \
18545 | sed -ne 's/[ ][ ]*/ /g;
18546 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18550 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18551 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18552 KMEM_GROUP=$ac_cv_group_kmem
18554 if test "x
$ac_save_LIBS" = x; then
18555 GETLOADAVG_LIBS=$LIBS
18557 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18563 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18564 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18565 if test "${ac_cv_sys_largefile_source+set}" = set; then
18566 echo $ECHO_N "(cached
) $ECHO_C" >&6
18569 cat >conftest.$ac_ext <<_ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18579 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18593 grep -v '^ *+' conftest.er1 >conftest.err
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18597 (exit $ac_status); } && {
18598 test -z "$ac_c_werror_flag" ||
18599 test ! -s conftest.err
18600 } && test -s conftest$ac_exeext &&
18601 $as_test_x conftest$ac_exeext; then
18602 ac_cv_sys_largefile_source=no; break
18604 echo "$as_me: failed program was
:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18611 conftest$ac_exeext conftest.$ac_ext
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #define _LARGEFILE_SOURCE 1
18623 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18628 rm -f conftest.$ac_objext conftest$ac_exeext
18629 if { (ac_try="$ac_link"
18630 case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_link") 2>conftest.er1
18637 grep -v '^ *+' conftest.er1 >conftest.err
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18641 (exit $ac_status); } && {
18642 test -z "$ac_c_werror_flag" ||
18643 test ! -s conftest.err
18644 } && test -s conftest$ac_exeext &&
18645 $as_test_x conftest$ac_exeext; then
18646 ac_cv_sys_largefile_source=1; break
18648 echo "$as_me: failed program was
:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18655 conftest$ac_exeext conftest.$ac_ext
18656 ac_cv_sys_largefile_source=unknown
18660 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18661 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18662 case $ac_cv_sys_largefile_source in #(
18665 cat >>confdefs.h <<_ACEOF
18666 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18672 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18673 # in glibc 2.1.3, but that breaks too many other things.
18674 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18675 if test $ac_cv_sys_largefile_source != unknown; then
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_FSEEKO 1
18684 # Configure getopt.
18685 # getopt.m4 serial 10
18687 # The getopt module assume you want GNU getopt, with getopt_long etc,
18688 # rather than vanilla POSIX getopt. This means your your code should
18689 # always include <getopt.h> for the getopt prototypes.
18701 # Prerequisites of lib/getopt*.
18708 for ac_header in getopt.h
18710 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18711 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18712 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18713 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18714 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached
) $ECHO_C" >&6
18717 ac_res=`eval echo '${'$as_ac_Header'}'`
18718 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18719 echo "${ECHO_T}$ac_res" >&6; }
18721 # Is the header compilable?
18722 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18723 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 $ac_includes_default
18731 #include <$ac_header>
18733 rm -f conftest.$ac_objext
18734 if { (ac_try="$ac_compile"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_compile") 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18746 (exit $ac_status); } && {
18747 test -z "$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18749 } && test -s conftest.$ac_objext; then
18750 ac_header_compiler=yes
18752 echo "$as_me: failed program was
:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 ac_header_compiler=no
18758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18760 echo "${ECHO_T}$ac_header_compiler" >&6; }
18762 # Is the header present?
18763 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18764 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <$ac_header>
18773 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18774 case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18785 (exit $ac_status); } >/dev/null && {
18786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18789 ac_header_preproc=yes
18791 echo "$as_me: failed program was
:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 ac_header_preproc=no
18797 rm -f conftest.err conftest.$ac_ext
18798 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18799 echo "${ECHO_T}$ac_header_preproc" >&6; }
18801 # So? What about this header?
18802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18804 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18805 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18806 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18808 ac_header_preproc=yes
18811 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18812 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18813 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18814 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18815 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18816 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18817 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18818 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18819 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18821 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18822 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18826 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18827 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18829 echo $ECHO_N "(cached
) $ECHO_C" >&6
18831 eval "$as_ac_Header=\
$ac_header_preproc"
18833 ac_res=`eval echo '${'$as_ac_Header'}'`
18834 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18835 echo "${ECHO_T}$ac_res" >&6; }
18838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18839 cat >>confdefs.h <<_ACEOF
18840 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18849 if test -z "$GETOPT_H"; then
18851 for ac_func in getopt_long_only
18853 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18854 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18855 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18856 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18857 echo $ECHO_N "(cached
) $ECHO_C" >&6
18859 cat >conftest.$ac_ext <<_ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18867 #define $ac_func innocuous_$ac_func
18869 /* System header to define __stub macros and hopefully few prototypes,
18870 which can conflict with char $ac_func (); below.
18871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18872 <limits.h> exists even on freestanding compilers. */
18875 # include <limits.h>
18877 # include <assert.h>
18882 /* Override any GCC internal prototype to avoid an error.
18883 Use char because int might match the return type of a GCC
18884 builtin and then its argument prototype would still apply. */
18889 /* The GNU C library defines this for functions which it implements
18890 to always fail with ENOSYS. Some functions are actually named
18891 something starting with __ and the normal name is an alias. */
18892 #if defined __stub_$ac_func || defined __stub___$ac_func
18899 return $ac_func ();
18904 rm -f conftest.$ac_objext conftest$ac_exeext
18905 if { (ac_try="$ac_link"
18906 case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_link") 2>conftest.er1
18913 grep -v '^ *+' conftest.er1 >conftest.err
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18917 (exit $ac_status); } && {
18918 test -z "$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 } && test -s conftest$ac_exeext &&
18921 $as_test_x conftest$ac_exeext; then
18922 eval "$as_ac_var=yes"
18924 echo "$as_me: failed program was
:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 eval "$as_ac_var=no
"
18930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18931 conftest$ac_exeext conftest.$ac_ext
18933 ac_res=`eval echo '${'$as_ac_var'}'`
18934 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18935 echo "${ECHO_T}$ac_res" >&6; }
18936 if test `eval echo '${'$as_ac_var'}'` = yes; then
18937 cat >>confdefs.h <<_ACEOF
18938 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18948 if test -z "$GETOPT_H"; then
18949 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18950 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18951 if test "${ac_cv_have_decl_optreset+set}" = set; then
18952 echo $ECHO_N "(cached
) $ECHO_C" >&6
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18960 #include <getopt.h>
18973 rm -f conftest.$ac_objext
18974 if { (ac_try="$ac_compile"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_compile") 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest.$ac_objext; then
18990 ac_cv_have_decl_optreset=yes
18992 echo "$as_me: failed program was
:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_have_decl_optreset=no
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19001 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19002 if test $ac_cv_have_decl_optreset = yes; then
19008 if test -z "$GETOPT_H"; then
19009 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19010 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19011 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19012 echo $ECHO_N "(cached
) $ECHO_C" >&6
19014 if test "$cross_compiling" = yes; then
19015 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19016 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19017 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19018 echo $ECHO_N "(cached
) $ECHO_C" >&6
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 #include <getopt.h>
19031 #ifndef getopt_clip
19032 (void) getopt_clip;
19039 rm -f conftest.$ac_objext
19040 if { (ac_try="$ac_compile"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_compile") 2>conftest.er1
19048 grep -v '^ *+' conftest.er1 >conftest.err
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19052 (exit $ac_status); } && {
19053 test -z "$ac_c_werror_flag" ||
19054 test ! -s conftest.err
19055 } && test -s conftest.$ac_objext; then
19056 ac_cv_have_decl_getopt_clip=yes
19058 echo "$as_me: failed program was
:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_cv_have_decl_getopt_clip=no
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19067 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19068 if test $ac_cv_have_decl_getopt_clip = yes; then
19069 gl_cv_func_gnu_getopt=no
19071 gl_cv_func_gnu_getopt=yes
19075 cat >conftest.$ac_ext <<_ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 #include <getopt.h>
19087 myargv[0] = "conftest
";
19090 return getopt (2, myargv, "+a
") != '?';
19096 rm -f conftest$ac_exeext
19097 if { (ac_try="$ac_link"
19098 case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_link") 2>&5
19105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 gl_cv_func_gnu_getopt=yes
19118 echo "$as_me: program exited with status
$ac_status" >&5
19119 echo "$as_me: failed program was
:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19122 ( exit $ac_status )
19123 gl_cv_func_gnu_getopt=no
19125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19130 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19131 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19132 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19139 if test -n "$GETOPT_H"; then
19144 cat >>confdefs.h <<\_ACEOF
19145 #define __GETOPT_PREFIX rpl_
19151 GETOPTOBJS='getopt.o getopt1.o'
19158 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19159 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19160 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19161 echo $ECHO_N "(cached
) $ECHO_C" >&6
19163 # Use it with a single arg.
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 $ac_includes_default
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest.$ac_objext; then
19196 ac_cv_func_getpgrp_void=no
19198 echo "$as_me: failed program was
:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ac_cv_func_getpgrp_void=yes
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19208 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19209 if test $ac_cv_func_getpgrp_void = yes; then
19211 cat >>confdefs.h <<\_ACEOF
19212 #define GETPGRP_VOID 1
19219 for ac_func in strftime
19221 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19222 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19223 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19224 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19225 echo $ECHO_N "(cached
) $ECHO_C" >&6
19227 cat >conftest.$ac_ext <<_ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19235 #define $ac_func innocuous_$ac_func
19237 /* System header to define __stub macros and hopefully few prototypes,
19238 which can conflict with char $ac_func (); below.
19239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19240 <limits.h> exists even on freestanding compilers. */
19243 # include <limits.h>
19245 # include <assert.h>
19250 /* Override any GCC internal prototype to avoid an error.
19251 Use char because int might match the return type of a GCC
19252 builtin and then its argument prototype would still apply. */
19257 /* The GNU C library defines this for functions which it implements
19258 to always fail with ENOSYS. Some functions are actually named
19259 something starting with __ and the normal name is an alias. */
19260 #if defined __stub_$ac_func || defined __stub___$ac_func
19267 return $ac_func ();
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_link") 2>conftest.er1
19281 grep -v '^ *+' conftest.er1 >conftest.err
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19285 (exit $ac_status); } && {
19286 test -z "$ac_c_werror_flag" ||
19287 test ! -s conftest.err
19288 } && test -s conftest$ac_exeext &&
19289 $as_test_x conftest$ac_exeext; then
19290 eval "$as_ac_var=yes"
19292 echo "$as_me: failed program was
:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 eval "$as_ac_var=no
"
19298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19299 conftest$ac_exeext conftest.$ac_ext
19301 ac_res=`eval echo '${'$as_ac_var'}'`
19302 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19303 echo "${ECHO_T}$ac_res" >&6; }
19304 if test `eval echo '${'$as_ac_var'}'` = yes; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19310 # strftime is in -lintl on SCO UNIX.
19311 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19312 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19313 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19314 echo $ECHO_N "(cached
) $ECHO_C" >&6
19316 ac_check_lib_save_LIBS=$LIBS
19317 LIBS="-lintl $LIBS"
19318 cat >conftest.$ac_ext <<_ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19325 /* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19335 return strftime ();
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (ac_try="$ac_link"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_link") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest$ac_exeext &&
19357 $as_test_x conftest$ac_exeext; then
19358 ac_cv_lib_intl_strftime=yes
19360 echo "$as_me: failed program was
:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 ac_cv_lib_intl_strftime=no
19366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19367 conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19370 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19371 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19372 if test $ac_cv_lib_intl_strftime = yes; then
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE_STRFTIME 1
19377 LIBS="-lintl $LIBS"
19386 for ac_func in grantpt
19388 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19389 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19390 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19391 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19392 echo $ECHO_N "(cached
) $ECHO_C" >&6
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19402 #define $ac_func innocuous_$ac_func
19404 /* System header to define __stub macros and hopefully few prototypes,
19405 which can conflict with char $ac_func (); below.
19406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19407 <limits.h> exists even on freestanding compilers. */
19410 # include <limits.h>
19412 # include <assert.h>
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19424 /* The GNU C library defines this for functions which it implements
19425 to always fail with ENOSYS. Some functions are actually named
19426 something starting with __ and the normal name is an alias. */
19427 #if defined __stub_$ac_func || defined __stub___$ac_func
19434 return $ac_func ();
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest$ac_exeext &&
19456 $as_test_x conftest$ac_exeext; then
19457 eval "$as_ac_var=yes"
19459 echo "$as_me: failed program was
:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 eval "$as_ac_var=no
"
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466 conftest$ac_exeext conftest.$ac_ext
19468 ac_res=`eval echo '${'$as_ac_var'}'`
19469 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19470 echo "${ECHO_T}$ac_res" >&6; }
19471 if test `eval echo '${'$as_ac_var'}'` = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19480 # PTY-related GNU extensions.
19482 for ac_func in getpt
19484 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19485 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19486 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19487 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19488 echo $ECHO_N "(cached
) $ECHO_C" >&6
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19498 #define $ac_func innocuous_$ac_func
19500 /* System header to define __stub macros and hopefully few prototypes,
19501 which can conflict with char $ac_func (); below.
19502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19503 <limits.h> exists even on freestanding compilers. */
19506 # include <limits.h>
19508 # include <assert.h>
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19520 /* The GNU C library defines this for functions which it implements
19521 to always fail with ENOSYS. Some functions are actually named
19522 something starting with __ and the normal name is an alias. */
19523 #if defined __stub_$ac_func || defined __stub___$ac_func
19530 return $ac_func ();
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_link") 2>conftest.er1
19544 grep -v '^ *+' conftest.er1 >conftest.err
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest$ac_exeext &&
19552 $as_test_x conftest$ac_exeext; then
19553 eval "$as_ac_var=yes"
19555 echo "$as_me: failed program was
:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 eval "$as_ac_var=no
"
19561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19562 conftest$ac_exeext conftest.$ac_ext
19564 ac_res=`eval echo '${'$as_ac_var'}'`
19565 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19566 echo "${ECHO_T}$ac_res" >&6; }
19567 if test `eval echo '${'$as_ac_var'}'` = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19576 # Check this now, so that we will NOT find the above functions in ncurses.
19577 # That is because we have not set up to link ncurses in lib-src.
19578 # It's better to believe a function is not available
19579 # than to expect to find it in ncurses.
19581 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19582 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19583 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19584 echo $ECHO_N "(cached
) $ECHO_C" >&6
19586 ac_check_lib_save_LIBS=$LIBS
19587 LIBS="-lncurses $LIBS"
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19595 /* Override any GCC internal prototype to avoid an error.
19596 Use char because int might match the return type of a GCC
19597 builtin and then its argument prototype would still apply. */
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (ac_try="$ac_link"
19612 case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_link") 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest$ac_exeext &&
19627 $as_test_x conftest$ac_exeext; then
19628 ac_cv_lib_ncurses_tparm=yes
19630 echo "$as_me: failed program was
:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 ac_cv_lib_ncurses_tparm=no
19636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19637 conftest$ac_exeext conftest.$ac_ext
19638 LIBS=$ac_check_lib_save_LIBS
19640 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19641 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19642 if test $ac_cv_lib_ncurses_tparm = yes; then
19643 cat >>confdefs.h <<_ACEOF
19644 #define HAVE_LIBNCURSES 1
19647 LIBS="-lncurses $LIBS"
19652 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19655 cat >conftest.$ac_ext <<_ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 #include <netinet/in.h>
19662 #include <arpa/nameser.h>
19663 #include <resolv.h>
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (ac_try="$ac_link"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_link") 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext &&
19689 $as_test_x conftest$ac_exeext; then
19692 echo "$as_me: failed program was
:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 conftest$ac_exeext conftest.$ac_ext
19700 if test "$have_res_init" = no; then
19702 LIBS="$LIBS -lresolv"
19703 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19704 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19705 cat >conftest.$ac_ext <<_ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 #include <netinet/in.h>
19712 #include <arpa/nameser.h>
19713 #include <resolv.h>
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723 if { (ac_try="$ac_link"
19724 case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_link") 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest$ac_exeext &&
19739 $as_test_x conftest$ac_exeext; then
19742 echo "$as_me: failed program was
:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19749 conftest$ac_exeext conftest.$ac_ext
19750 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19751 echo "${ECHO_T}$have_res_init" >&6; }
19752 if test "$have_res_init" = yes ; then
19758 if test "$have_res_init" = yes; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE_RES_INIT 1
19766 # Do we need the Hesiod library to provide the support routines?
19767 if test "$with_hesiod" = yes ; then
19768 # Don't set $LIBS here -- see comments above.
19769 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19770 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19771 if test "${ac_cv_func_res_send+set}" = set; then
19772 echo $ECHO_N "(cached
) $ECHO_C" >&6
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19782 #define res_send innocuous_res_send
19784 /* System header to define __stub macros and hopefully few prototypes,
19785 which can conflict with char res_send (); below.
19786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19787 <limits.h> exists even on freestanding compilers. */
19790 # include <limits.h>
19792 # include <assert.h>
19797 /* Override any GCC internal prototype to avoid an error.
19798 Use char because int might match the return type of a GCC
19799 builtin and then its argument prototype would still apply. */
19804 /* The GNU C library defines this for functions which it implements
19805 to always fail with ENOSYS. Some functions are actually named
19806 something starting with __ and the normal name is an alias. */
19807 #if defined __stub_res_send || defined __stub___res_send
19814 return res_send ();
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (ac_try="$ac_link"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_link") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest$ac_exeext &&
19836 $as_test_x conftest$ac_exeext; then
19837 ac_cv_func_res_send=yes
19839 echo "$as_me: failed program was
:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19842 ac_cv_func_res_send=no
19845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19846 conftest$ac_exeext conftest.$ac_ext
19848 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19849 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19850 if test $ac_cv_func_res_send = yes; then
19853 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19854 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19855 if test "${ac_cv_func___res_send+set}" = set; then
19856 echo $ECHO_N "(cached
) $ECHO_C" >&6
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19866 #define __res_send innocuous___res_send
19868 /* System header to define __stub macros and hopefully few prototypes,
19869 which can conflict with char __res_send (); below.
19870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19871 <limits.h> exists even on freestanding compilers. */
19874 # include <limits.h>
19876 # include <assert.h>
19881 /* Override any GCC internal prototype to avoid an error.
19882 Use char because int might match the return type of a GCC
19883 builtin and then its argument prototype would still apply. */
19887 char __res_send ();
19888 /* The GNU C library defines this for functions which it implements
19889 to always fail with ENOSYS. Some functions are actually named
19890 something starting with __ and the normal name is an alias. */
19891 #if defined __stub___res_send || defined __stub_____res_send
19898 return __res_send ();
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_link") 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest$ac_exeext &&
19920 $as_test_x conftest$ac_exeext; then
19921 ac_cv_func___res_send=yes
19923 echo "$as_me: failed program was
:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ac_cv_func___res_send=no
19929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930 conftest$ac_exeext conftest.$ac_ext
19932 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19933 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19934 if test $ac_cv_func___res_send = yes; then
19937 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19938 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19939 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19940 echo $ECHO_N "(cached
) $ECHO_C" >&6
19942 ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lresolv $LIBS"
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19951 /* Override any GCC internal prototype to avoid an error.
19952 Use char because int might match the return type of a GCC
19953 builtin and then its argument prototype would still apply. */
19961 return res_send ();
19966 rm -f conftest.$ac_objext conftest$ac_exeext
19967 if { (ac_try="$ac_link"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_link") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest$ac_exeext &&
19983 $as_test_x conftest$ac_exeext; then
19984 ac_cv_lib_resolv_res_send=yes
19986 echo "$as_me: failed program was
:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_cv_lib_resolv_res_send=no
19992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19993 conftest$ac_exeext conftest.$ac_ext
19994 LIBS=$ac_check_lib_save_LIBS
19996 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19997 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19998 if test $ac_cv_lib_resolv_res_send = yes; then
20001 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20002 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20003 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20004 echo $ECHO_N "(cached
) $ECHO_C" >&6
20006 ac_check_lib_save_LIBS=$LIBS
20007 LIBS="-lresolv $LIBS"
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20021 char __res_send ();
20025 return __res_send ();
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (ac_try="$ac_link"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_link") 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest$ac_exeext &&
20047 $as_test_x conftest$ac_exeext; then
20048 ac_cv_lib_resolv___res_send=yes
20050 echo "$as_me: failed program was
:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_cv_lib_resolv___res_send=no
20056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20057 conftest$ac_exeext conftest.$ac_ext
20058 LIBS=$ac_check_lib_save_LIBS
20060 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20061 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20062 if test $ac_cv_lib_resolv___res_send = yes; then
20072 if test "$resolv" = yes ; then
20077 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20078 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20079 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20080 echo $ECHO_N "(cached
) $ECHO_C" >&6
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20090 #define hes_getmailhost innocuous_hes_getmailhost
20092 /* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char hes_getmailhost (); below.
20094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20095 <limits.h> exists even on freestanding compilers. */
20098 # include <limits.h>
20100 # include <assert.h>
20103 #undef hes_getmailhost
20105 /* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20111 char hes_getmailhost ();
20112 /* The GNU C library defines this for functions which it implements
20113 to always fail with ENOSYS. Some functions are actually named
20114 something starting with __ and the normal name is an alias. */
20115 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20122 return hes_getmailhost ();
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest$ac_exeext &&
20144 $as_test_x conftest$ac_exeext; then
20145 ac_cv_func_hes_getmailhost=yes
20147 echo "$as_me: failed program was
:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_func_hes_getmailhost=no
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154 conftest$ac_exeext conftest.$ac_ext
20156 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20157 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20158 if test $ac_cv_func_hes_getmailhost = yes; then
20161 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20162 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20163 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20164 echo $ECHO_N "(cached
) $ECHO_C" >&6
20166 ac_check_lib_save_LIBS=$LIBS
20167 LIBS="-lhesiod $RESOLVLIB $LIBS"
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20175 /* Override any GCC internal prototype to avoid an error.
20176 Use char because int might match the return type of a GCC
20177 builtin and then its argument prototype would still apply. */
20181 char hes_getmailhost ();
20185 return hes_getmailhost ();
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_link") 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest$ac_exeext &&
20207 $as_test_x conftest$ac_exeext; then
20208 ac_cv_lib_hesiod_hes_getmailhost=yes
20210 echo "$as_me: failed program was
:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_lib_hesiod_hes_getmailhost=no
20216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20217 conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20220 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20221 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20222 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE_LIBHESIOD 1
20236 # Do we need libresolv (due to res_init or Hesiod)?
20237 if test "$resolv" = yes ; then
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_LIBRESOLV 1
20245 # These tell us which Kerberos-related libraries to use.
20246 if test "${with_kerberos+set}" = set; then
20248 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20249 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20250 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20251 echo $ECHO_N "(cached
) $ECHO_C" >&6
20253 ac_check_lib_save_LIBS=$LIBS
20254 LIBS="-lcom_err $LIBS"
20255 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 /* Override any GCC internal prototype to avoid an error.
20263 Use char because int might match the return type of a GCC
20264 builtin and then its argument prototype would still apply. */
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest$ac_exeext &&
20294 $as_test_x conftest$ac_exeext; then
20295 ac_cv_lib_com_err_com_err=yes
20297 echo "$as_me: failed program was
:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_cv_lib_com_err_com_err=no
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304 conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20307 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20308 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20309 if test $ac_cv_lib_com_err_com_err = yes; then
20310 cat >>confdefs.h <<_ACEOF
20311 #define HAVE_LIBCOM_ERR 1
20314 LIBS="-lcom_err $LIBS"
20319 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20320 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20321 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20322 echo $ECHO_N "(cached
) $ECHO_C" >&6
20324 ac_check_lib_save_LIBS=$LIBS
20325 LIBS="-lk5crypto $LIBS"
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 /* Override any GCC internal prototype to avoid an error.
20334 Use char because int might match the return type of a GCC
20335 builtin and then its argument prototype would still apply. */
20339 char mit_des_cbc_encrypt ();
20343 return mit_des_cbc_encrypt ();
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (ac_try="$ac_link"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_link") 2>conftest.er1
20357 grep -v '^ *+' conftest.er1 >conftest.err
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20361 (exit $ac_status); } && {
20362 test -z "$ac_c_werror_flag" ||
20363 test ! -s conftest.err
20364 } && test -s conftest$ac_exeext &&
20365 $as_test_x conftest$ac_exeext; then
20366 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20368 echo "$as_me: failed program was
:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20375 conftest$ac_exeext conftest.$ac_ext
20376 LIBS=$ac_check_lib_save_LIBS
20378 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20379 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20380 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20381 cat >>confdefs.h <<_ACEOF
20382 #define HAVE_LIBK5CRYPTO 1
20385 LIBS="-lk5crypto $LIBS"
20390 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20391 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20392 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20393 echo $ECHO_N "(cached
) $ECHO_C" >&6
20395 ac_check_lib_save_LIBS=$LIBS
20396 LIBS="-lcrypto $LIBS"
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20410 char mit_des_cbc_encrypt ();
20414 return mit_des_cbc_encrypt ();
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest$ac_exeext &&
20436 $as_test_x conftest$ac_exeext; then
20437 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20439 echo "$as_me: failed program was
:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20446 conftest$ac_exeext conftest.$ac_ext
20447 LIBS=$ac_check_lib_save_LIBS
20449 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20450 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20451 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define HAVE_LIBCRYPTO 1
20456 LIBS="-lcrypto $LIBS"
20461 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20462 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20463 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20464 echo $ECHO_N "(cached
) $ECHO_C" >&6
20466 ac_check_lib_save_LIBS=$LIBS
20467 LIBS="-lkrb5 $LIBS"
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20475 /* Override any GCC internal prototype to avoid an error.
20476 Use char because int might match the return type of a GCC
20477 builtin and then its argument prototype would still apply. */
20481 char krb5_init_context ();
20485 return krb5_init_context ();
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_link") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest$ac_exeext &&
20507 $as_test_x conftest$ac_exeext; then
20508 ac_cv_lib_krb5_krb5_init_context=yes
20510 echo "$as_me: failed program was
:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_lib_krb5_krb5_init_context=no
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20518 LIBS=$ac_check_lib_save_LIBS
20520 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20521 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20522 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_LIBKRB5 1
20527 LIBS="-lkrb5 $LIBS"
20531 if test "${with_kerberos5+set}" != set; then
20533 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20534 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20535 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20536 echo $ECHO_N "(cached
) $ECHO_C" >&6
20538 ac_check_lib_save_LIBS=$LIBS
20539 LIBS="-ldes425 $LIBS"
20540 cat >conftest.$ac_ext <<_ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20547 /* Override any GCC internal prototype to avoid an error.
20548 Use char because int might match the return type of a GCC
20549 builtin and then its argument prototype would still apply. */
20553 char des_cbc_encrypt ();
20557 return des_cbc_encrypt ();
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_link") 2>conftest.er1
20571 grep -v '^ *+' conftest.er1 >conftest.err
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20575 (exit $ac_status); } && {
20576 test -z "$ac_c_werror_flag" ||
20577 test ! -s conftest.err
20578 } && test -s conftest$ac_exeext &&
20579 $as_test_x conftest$ac_exeext; then
20580 ac_cv_lib_des425_des_cbc_encrypt=yes
20582 echo "$as_me: failed program was
:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_cv_lib_des425_des_cbc_encrypt=no
20588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20589 conftest$ac_exeext conftest.$ac_ext
20590 LIBS=$ac_check_lib_save_LIBS
20592 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20593 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20594 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20595 cat >>confdefs.h <<_ACEOF
20596 #define HAVE_LIBDES425 1
20599 LIBS="-ldes425 $LIBS"
20603 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20604 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20605 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20606 echo $ECHO_N "(cached
) $ECHO_C" >&6
20608 ac_check_lib_save_LIBS=$LIBS
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20617 /* Override any GCC internal prototype to avoid an error.
20618 Use char because int might match the return type of a GCC
20619 builtin and then its argument prototype would still apply. */
20623 char des_cbc_encrypt ();
20627 return des_cbc_encrypt ();
20632 rm -f conftest.$ac_objext conftest$ac_exeext
20633 if { (ac_try="$ac_link"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_link") 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest$ac_exeext &&
20649 $as_test_x conftest$ac_exeext; then
20650 ac_cv_lib_des_des_cbc_encrypt=yes
20652 echo "$as_me: failed program was
:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_cv_lib_des_des_cbc_encrypt=no
20658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659 conftest$ac_exeext conftest.$ac_ext
20660 LIBS=$ac_check_lib_save_LIBS
20662 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20663 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20664 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_LIBDES 1
20676 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20677 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20678 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20679 echo $ECHO_N "(cached
) $ECHO_C" >&6
20681 ac_check_lib_save_LIBS=$LIBS
20682 LIBS="-lkrb4 $LIBS"
20683 cat >conftest.$ac_ext <<_ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20690 /* Override any GCC internal prototype to avoid an error.
20691 Use char because int might match the return type of a GCC
20692 builtin and then its argument prototype would still apply. */
20696 char krb_get_cred ();
20700 return krb_get_cred ();
20705 rm -f conftest.$ac_objext conftest$ac_exeext
20706 if { (ac_try="$ac_link"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_link") 2>conftest.er1
20714 grep -v '^ *+' conftest.er1 >conftest.err
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest$ac_exeext &&
20722 $as_test_x conftest$ac_exeext; then
20723 ac_cv_lib_krb4_krb_get_cred=yes
20725 echo "$as_me: failed program was
:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_cv_lib_krb4_krb_get_cred=no
20731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20732 conftest$ac_exeext conftest.$ac_ext
20733 LIBS=$ac_check_lib_save_LIBS
20735 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20736 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20737 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define HAVE_LIBKRB4 1
20742 LIBS="-lkrb4 $LIBS"
20746 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20747 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20748 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20749 echo $ECHO_N "(cached
) $ECHO_C" >&6
20751 ac_check_lib_save_LIBS=$LIBS
20753 cat >conftest.$ac_ext <<_ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20760 /* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20766 char krb_get_cred ();
20770 return krb_get_cred ();
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest$ac_exeext &&
20792 $as_test_x conftest$ac_exeext; then
20793 ac_cv_lib_krb_krb_get_cred=yes
20795 echo "$as_me: failed program was
:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 ac_cv_lib_krb_krb_get_cred=no
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802 conftest$ac_exeext conftest.$ac_ext
20803 LIBS=$ac_check_lib_save_LIBS
20805 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20806 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20807 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20808 cat >>confdefs.h <<_ACEOF
20809 #define HAVE_LIBKRB 1
20820 if test "${with_kerberos5+set}" = set; then
20822 for ac_header in krb5.h
20824 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20826 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20827 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20829 echo $ECHO_N "(cached
) $ECHO_C" >&6
20831 ac_res=`eval echo '${'$as_ac_Header'}'`
20832 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20833 echo "${ECHO_T}$ac_res" >&6; }
20835 # Is the header compilable?
20836 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20837 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20838 cat >conftest.$ac_ext <<_ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 $ac_includes_default
20845 #include <$ac_header>
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_compile") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest.$ac_objext; then
20864 ac_header_compiler=yes
20866 echo "$as_me: failed program was
:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ac_header_compiler=no
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20874 echo "${ECHO_T}$ac_header_compiler" >&6; }
20876 # Is the header present?
20877 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20878 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20879 cat >conftest.$ac_ext <<_ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 #include <$ac_header>
20887 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20899 (exit $ac_status); } >/dev/null && {
20900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20903 ac_header_preproc=yes
20905 echo "$as_me: failed program was
:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_header_preproc=no
20911 rm -f conftest.err conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20913 echo "${ECHO_T}$ac_header_preproc" >&6; }
20915 # So? What about this header?
20916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20918 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20919 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20922 ac_header_preproc=yes
20925 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20926 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20927 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20928 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20929 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20930 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20931 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20932 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20933 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20935 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20936 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20940 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20941 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20943 echo $ECHO_N "(cached
) $ECHO_C" >&6
20945 eval "$as_ac_Header=\
$ac_header_preproc"
20947 ac_res=`eval echo '${'$as_ac_Header'}'`
20948 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20949 echo "${ECHO_T}$ac_res" >&6; }
20952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20953 cat >>confdefs.h <<_ACEOF
20954 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20963 for ac_header in des.h
20965 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20967 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20968 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached
) $ECHO_C" >&6
20972 ac_res=`eval echo '${'$as_ac_Header'}'`
20973 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20974 echo "${ECHO_T}$ac_res" >&6; }
20976 # Is the header compilable?
20977 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20978 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 $ac_includes_default
20986 #include <$ac_header>
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_header_compiler=yes
21007 echo "$as_me: failed program was
:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_header_compiler=no
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21015 echo "${ECHO_T}$ac_header_compiler" >&6; }
21017 # Is the header present?
21018 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21019 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21020 cat >conftest.$ac_ext <<_ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 #include <$ac_header>
21028 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21040 (exit $ac_status); } >/dev/null && {
21041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21044 ac_header_preproc=yes
21046 echo "$as_me: failed program was
:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_header_preproc=no
21052 rm -f conftest.err conftest.$ac_ext
21053 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21054 echo "${ECHO_T}$ac_header_preproc" >&6; }
21056 # So? What about this header?
21057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21059 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21060 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21061 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21063 ac_header_preproc=yes
21066 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21067 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21068 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21069 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21070 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21071 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21072 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21073 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21074 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21076 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21077 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21081 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21082 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21084 echo $ECHO_N "(cached
) $ECHO_C" >&6
21086 eval "$as_ac_Header=\
$ac_header_preproc"
21088 ac_res=`eval echo '${'$as_ac_Header'}'`
21089 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21090 echo "${ECHO_T}$ac_res" >&6; }
21093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21094 cat >>confdefs.h <<_ACEOF
21095 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21100 for ac_header in kerberosIV/des.h
21102 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21104 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21105 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21107 echo $ECHO_N "(cached
) $ECHO_C" >&6
21109 ac_res=`eval echo '${'$as_ac_Header'}'`
21110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21111 echo "${ECHO_T}$ac_res" >&6; }
21113 # Is the header compilable?
21114 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21115 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21116 cat >conftest.$ac_ext <<_ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 $ac_includes_default
21123 #include <$ac_header>
21125 rm -f conftest.$ac_objext
21126 if { (ac_try="$ac_compile"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1 >conftest.err
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21142 ac_header_compiler=yes
21144 echo "$as_me: failed program was
:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_header_compiler=no
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21152 echo "${ECHO_T}$ac_header_compiler" >&6; }
21154 # Is the header present?
21155 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21156 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <$ac_header>
21165 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21166 case "(($ac_try" in
21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21177 (exit $ac_status); } >/dev/null && {
21178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21181 ac_header_preproc=yes
21183 echo "$as_me: failed program was
:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21186 ac_header_preproc=no
21189 rm -f conftest.err conftest.$ac_ext
21190 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21191 echo "${ECHO_T}$ac_header_preproc" >&6; }
21193 # So? What about this header?
21194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21196 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21197 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21198 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21200 ac_header_preproc=yes
21203 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21204 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21205 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21206 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21207 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21208 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21209 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21210 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21211 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21213 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21214 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21218 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21219 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21221 echo $ECHO_N "(cached
) $ECHO_C" >&6
21223 eval "$as_ac_Header=\
$ac_header_preproc"
21225 ac_res=`eval echo '${'$as_ac_Header'}'`
21226 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21227 echo "${ECHO_T}$ac_res" >&6; }
21230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21231 cat >>confdefs.h <<_ACEOF
21232 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21237 for ac_header in kerberos/des.h
21239 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21240 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21241 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21242 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21243 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21244 echo $ECHO_N "(cached
) $ECHO_C" >&6
21246 ac_res=`eval echo '${'$as_ac_Header'}'`
21247 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21248 echo "${ECHO_T}$ac_res" >&6; }
21250 # Is the header compilable?
21251 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21252 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21253 cat >conftest.$ac_ext <<_ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21259 $ac_includes_default
21260 #include <$ac_header>
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21279 ac_header_compiler=yes
21281 echo "$as_me: failed program was
:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 ac_header_compiler=no
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21289 echo "${ECHO_T}$ac_header_compiler" >&6; }
21291 # Is the header present?
21292 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21293 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21294 cat >conftest.$ac_ext <<_ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 #include <$ac_header>
21302 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21310 grep -v '^ *+' conftest.er1 >conftest.err
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21314 (exit $ac_status); } >/dev/null && {
21315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21316 test ! -s conftest.err
21318 ac_header_preproc=yes
21320 echo "$as_me: failed program was
:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_header_preproc=no
21326 rm -f conftest.err conftest.$ac_ext
21327 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21328 echo "${ECHO_T}$ac_header_preproc" >&6; }
21330 # So? What about this header?
21331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21333 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21334 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21335 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21337 ac_header_preproc=yes
21340 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21341 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21342 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21343 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21344 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21345 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21346 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21347 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21348 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21350 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21351 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21355 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21356 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21358 echo $ECHO_N "(cached
) $ECHO_C" >&6
21360 eval "$as_ac_Header=\
$ac_header_preproc"
21362 ac_res=`eval echo '${'$as_ac_Header'}'`
21363 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21364 echo "${ECHO_T}$ac_res" >&6; }
21367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21368 cat >>confdefs.h <<_ACEOF
21369 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21385 for ac_header in krb.h
21387 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21388 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21389 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21390 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21392 echo $ECHO_N "(cached
) $ECHO_C" >&6
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21398 # Is the header compilable?
21399 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21400 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 $ac_includes_default
21408 #include <$ac_header>
21410 rm -f conftest.$ac_objext
21411 if { (ac_try="$ac_compile"
21412 case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_compile") 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
21427 ac_header_compiler=yes
21429 echo "$as_me: failed program was
:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_header_compiler=no
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21437 echo "${ECHO_T}$ac_header_compiler" >&6; }
21439 # Is the header present?
21440 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21441 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <$ac_header>
21450 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21462 (exit $ac_status); } >/dev/null && {
21463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21466 ac_header_preproc=yes
21468 echo "$as_me: failed program was
:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_header_preproc=no
21474 rm -f conftest.err conftest.$ac_ext
21475 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21476 echo "${ECHO_T}$ac_header_preproc" >&6; }
21478 # So? What about this header?
21479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21481 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21482 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21483 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21485 ac_header_preproc=yes
21488 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21489 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21490 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21491 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21492 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21493 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21494 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21495 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21496 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21498 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21499 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21503 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21504 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21505 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21506 echo $ECHO_N "(cached
) $ECHO_C" >&6
21508 eval "$as_ac_Header=\
$ac_header_preproc"
21510 ac_res=`eval echo '${'$as_ac_Header'}'`
21511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21512 echo "${ECHO_T}$ac_res" >&6; }
21515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21516 cat >>confdefs.h <<_ACEOF
21517 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21522 for ac_header in kerberosIV/krb.h
21524 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21525 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21526 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21527 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21528 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21529 echo $ECHO_N "(cached
) $ECHO_C" >&6
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21535 # Is the header compilable?
21536 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21537 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 $ac_includes_default
21545 #include <$ac_header>
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_compile") 2>conftest.er1
21556 grep -v '^ *+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21560 (exit $ac_status); } && {
21561 test -z "$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 } && test -s conftest.$ac_objext; then
21564 ac_header_compiler=yes
21566 echo "$as_me: failed program was
:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_header_compiler=no
21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6; }
21576 # Is the header present?
21577 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21578 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <$ac_header>
21587 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21595 grep -v '^ *+' conftest.er1 >conftest.err
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21599 (exit $ac_status); } >/dev/null && {
21600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21601 test ! -s conftest.err
21603 ac_header_preproc=yes
21605 echo "$as_me: failed program was
:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_header_preproc=no
21611 rm -f conftest.err conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21613 echo "${ECHO_T}$ac_header_preproc" >&6; }
21615 # So? What about this header?
21616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21618 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21619 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21620 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21622 ac_header_preproc=yes
21625 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21626 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21627 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21628 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21630 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21631 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21632 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21633 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21635 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21636 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21640 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21641 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21642 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21643 echo $ECHO_N "(cached
) $ECHO_C" >&6
21645 eval "$as_ac_Header=\
$ac_header_preproc"
21647 ac_res=`eval echo '${'$as_ac_Header'}'`
21648 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21649 echo "${ECHO_T}$ac_res" >&6; }
21652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21653 cat >>confdefs.h <<_ACEOF
21654 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21659 for ac_header in kerberos/krb.h
21661 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21663 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21664 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached
) $ECHO_C" >&6
21668 ac_res=`eval echo '${'$as_ac_Header'}'`
21669 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21672 # Is the header compilable?
21673 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21674 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 $ac_includes_default
21682 #include <$ac_header>
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_compile") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest.$ac_objext; then
21701 ac_header_compiler=yes
21703 echo "$as_me: failed program was
:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ac_header_compiler=no
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21711 echo "${ECHO_T}$ac_header_compiler" >&6; }
21713 # Is the header present?
21714 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21715 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 #include <$ac_header>
21724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21736 (exit $ac_status); } >/dev/null && {
21737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21740 ac_header_preproc=yes
21742 echo "$as_me: failed program was
:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_preproc=no
21748 rm -f conftest.err conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6; }
21752 # So? What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21755 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21756 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21757 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21759 ac_header_preproc=yes
21762 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21763 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21764 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21765 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21766 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21767 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21768 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21769 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21770 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21772 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21773 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21777 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21780 echo $ECHO_N "(cached
) $ECHO_C" >&6
21782 eval "$as_ac_Header=\
$ac_header_preproc"
21784 ac_res=`eval echo '${'$as_ac_Header'}'`
21785 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21786 echo "${ECHO_T}$ac_res" >&6; }
21789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21808 for ac_header in com_err.h
21810 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21811 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21812 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21813 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21815 echo $ECHO_N "(cached
) $ECHO_C" >&6
21817 ac_res=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21821 # Is the header compilable?
21822 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21823 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 $ac_includes_default
21831 #include <$ac_header>
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21842 grep -v '^ *+' conftest.er1 >conftest.err
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.$ac_objext; then
21850 ac_header_compiler=yes
21852 echo "$as_me: failed program was
:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_header_compiler=no
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6; }
21862 # Is the header present?
21863 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21864 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <$ac_header>
21873 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21881 grep -v '^ *+' conftest.er1 >conftest.err
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21885 (exit $ac_status); } >/dev/null && {
21886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21889 ac_header_preproc=yes
21891 echo "$as_me: failed program was
:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21894 ac_header_preproc=no
21897 rm -f conftest.err conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21899 echo "${ECHO_T}$ac_header_preproc" >&6; }
21901 # So? What about this header?
21902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21904 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21905 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21906 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21908 ac_header_preproc=yes
21911 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21912 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21914 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21915 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21916 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21917 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21918 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21919 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21921 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21922 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21926 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21927 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21928 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21929 echo $ECHO_N "(cached
) $ECHO_C" >&6
21931 eval "$as_ac_Header=\
$ac_header_preproc"
21933 ac_res=`eval echo '${'$as_ac_Header'}'`
21934 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21935 echo "${ECHO_T}$ac_res" >&6; }
21938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21949 # Solaris requires -lintl if you want strerror (which calls dgettext)
21950 # to return localized messages.
21952 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21953 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21954 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21955 echo $ECHO_N "(cached
) $ECHO_C" >&6
21957 ac_check_lib_save_LIBS=$LIBS
21958 LIBS="-lintl $LIBS"
21959 cat >conftest.$ac_ext <<_ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21966 /* Override any GCC internal prototype to avoid an error.
21967 Use char because int might match the return type of a GCC
21968 builtin and then its argument prototype would still apply. */
21976 return dgettext ();
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (ac_try="$ac_link"
21983 case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_link") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest$ac_exeext &&
21998 $as_test_x conftest$ac_exeext; then
21999 ac_cv_lib_intl_dgettext=yes
22001 echo "$as_me: failed program was
:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_cv_lib_intl_dgettext=no
22007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22008 conftest$ac_exeext conftest.$ac_ext
22009 LIBS=$ac_check_lib_save_LIBS
22011 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22012 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22013 if test $ac_cv_lib_intl_dgettext = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_LIBINTL 1
22018 LIBS="-lintl $LIBS"
22023 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22024 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22025 if test "${emacs_cv_localtime_cache+set}" = set; then
22026 echo $ECHO_N "(cached
) $ECHO_C" >&6
22028 if test x$ac_cv_func_tzset = xyes; then
22029 if test "$cross_compiling" = yes; then
22030 # If we have tzset, assume the worst when cross-compiling.
22031 emacs_cv_localtime_cache=yes
22033 cat >conftest.$ac_ext <<_ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22040 extern char **environ;
22044 for (to = from = environ; (*to = *from); from++)
22045 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22048 char TZ_GMT0[] = "TZ
=GMT0
";
22049 char TZ_PST8[] = "TZ
=PST8
";
22052 time_t now = time ((time_t *) 0);
22053 int hour_GMT0, hour_unset;
22054 if (putenv (TZ_GMT0) != 0)
22056 hour_GMT0 = localtime (&now)->tm_hour;
22058 hour_unset = localtime (&now)->tm_hour;
22059 if (putenv (TZ_PST8) != 0)
22061 if (localtime (&now)->tm_hour == hour_GMT0)
22064 if (localtime (&now)->tm_hour != hour_unset)
22069 rm -f conftest$ac_exeext
22070 if { (ac_try="$ac_link"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_link") 2>&5
22078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22080 { (case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_try") 2>&5
22087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22088 (exit $ac_status); }; }; then
22089 emacs_cv_localtime_cache=no
22091 echo "$as_me: program exited with status
$ac_status" >&5
22092 echo "$as_me: failed program was
:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 ( exit $ac_status )
22096 emacs_cv_localtime_cache=yes
22098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22103 # If we lack tzset, report that localtime does not cache TZ,
22104 # since we can't invalidate the cache if we don't have tzset.
22105 emacs_cv_localtime_cache=no
22108 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22109 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22110 if test $emacs_cv_localtime_cache = yes; then
22112 cat >>confdefs.h <<\_ACEOF
22113 #define LOCALTIME_CACHE 1
22118 if test "x
$HAVE_TIMEVAL" = xyes; then
22120 for ac_func in gettimeofday
22122 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22123 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22124 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22125 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22126 echo $ECHO_N "(cached
) $ECHO_C" >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22136 #define $ac_func innocuous_$ac_func
22138 /* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char $ac_func (); below.
22140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22141 <limits.h> exists even on freestanding compilers. */
22144 # include <limits.h>
22146 # include <assert.h>
22151 /* Override any GCC internal prototype to avoid an error.
22152 Use char because int might match the return type of a GCC
22153 builtin and then its argument prototype would still apply. */
22158 /* The GNU C library defines this for functions which it implements
22159 to always fail with ENOSYS. Some functions are actually named
22160 something starting with __ and the normal name is an alias. */
22161 #if defined __stub_$ac_func || defined __stub___$ac_func
22168 return $ac_func ();
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_link") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest$ac_exeext &&
22190 $as_test_x conftest$ac_exeext; then
22191 eval "$as_ac_var=yes"
22193 echo "$as_me: failed program was
:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 eval "$as_ac_var=no
"
22199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22200 conftest$ac_exeext conftest.$ac_ext
22202 ac_res=`eval echo '${'$as_ac_var'}'`
22203 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22204 echo "${ECHO_T}$ac_res" >&6; }
22205 if test `eval echo '${'$as_ac_var'}'` = yes; then
22206 cat >>confdefs.h <<_ACEOF
22207 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22213 if test $ac_cv_func_gettimeofday = yes; then
22214 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22215 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22216 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22217 echo $ECHO_N "(cached
) $ECHO_C" >&6
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 #ifdef TIME_WITH_SYS_TIME
22227 #include <sys/time.h>
22230 #ifdef HAVE_SYS_TIME_H
22231 #include <sys/time.h>
22239 struct timeval time;
22240 gettimeofday (&time, 0);
22245 rm -f conftest.$ac_objext
22246 if { (ac_try="$ac_compile"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_compile") 2>conftest.er1
22254 grep -v '^ *+' conftest.er1 >conftest.err
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22258 (exit $ac_status); } && {
22259 test -z "$ac_c_werror_flag" ||
22260 test ! -s conftest.err
22261 } && test -s conftest.$ac_objext; then
22262 emacs_cv_gettimeofday_two_arguments=yes
22264 echo "$as_me: failed program was
:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 emacs_cv_gettimeofday_two_arguments=no
22270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22273 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22274 if test $emacs_cv_gettimeofday_two_arguments = no; then
22276 cat >>confdefs.h <<\_ACEOF
22277 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22285 { echo "$as_me:$LINENO: checking
for socket
" >&5
22286 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22287 if test "${ac_cv_func_socket+set}" = set; then
22288 echo $ECHO_N "(cached
) $ECHO_C" >&6
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22298 #define socket innocuous_socket
22300 /* System header to define __stub macros and hopefully few prototypes,
22301 which can conflict with char socket (); below.
22302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22303 <limits.h> exists even on freestanding compilers. */
22306 # include <limits.h>
22308 # include <assert.h>
22313 /* Override any GCC internal prototype to avoid an error.
22314 Use char because int might match the return type of a GCC
22315 builtin and then its argument prototype would still apply. */
22320 /* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
22323 #if defined __stub_socket || defined __stub___socket
22335 rm -f conftest.$ac_objext conftest$ac_exeext
22336 if { (ac_try="$ac_link"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_link") 2>conftest.er1
22344 grep -v '^ *+' conftest.er1 >conftest.err
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest$ac_exeext &&
22352 $as_test_x conftest$ac_exeext; then
22353 ac_cv_func_socket=yes
22355 echo "$as_me: failed program was
:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_cv_func_socket=no
22361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22362 conftest$ac_exeext conftest.$ac_ext
22364 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22365 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22366 if test $ac_cv_func_socket = yes; then
22372 if test $ok_so_far = yes; then
22373 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22374 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22375 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22376 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22377 echo $ECHO_N "(cached
) $ECHO_C" >&6
22379 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22380 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22382 # Is the header compilable?
22383 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22384 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22385 cat >conftest.$ac_ext <<_ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22391 $ac_includes_default
22392 #include <netinet/in.h>
22394 rm -f conftest.$ac_objext
22395 if { (ac_try="$ac_compile"
22396 case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22403 grep -v '^ *+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
22411 ac_header_compiler=yes
22413 echo "$as_me: failed program was
:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 ac_header_compiler=no
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22421 echo "${ECHO_T}$ac_header_compiler" >&6; }
22423 # Is the header present?
22424 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22425 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 #include <netinet/in.h>
22434 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22446 (exit $ac_status); } >/dev/null && {
22447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22450 ac_header_preproc=yes
22452 echo "$as_me: failed program was
:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 ac_header_preproc=no
22458 rm -f conftest.err conftest.$ac_ext
22459 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22460 echo "${ECHO_T}$ac_header_preproc" >&6; }
22462 # So? What about this header?
22463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22465 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22466 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22467 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22468 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22469 ac_header_preproc=yes
22472 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22473 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22474 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22475 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22476 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22477 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22478 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22479 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22480 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22481 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22482 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22483 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22487 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22488 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22489 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22490 echo $ECHO_N "(cached
) $ECHO_C" >&6
22492 ac_cv_header_netinet_in_h=$ac_header_preproc
22494 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22495 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22498 if test $ac_cv_header_netinet_in_h = yes; then
22506 if test $ok_so_far = yes; then
22507 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22508 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22509 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22510 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22511 echo $ECHO_N "(cached
) $ECHO_C" >&6
22513 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22514 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22516 # Is the header compilable?
22517 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22518 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22519 cat >conftest.$ac_ext <<_ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 $ac_includes_default
22526 #include <arpa/inet.h>
22528 rm -f conftest.$ac_objext
22529 if { (ac_try="$ac_compile"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_compile") 2>conftest.er1
22537 grep -v '^ *+' conftest.er1 >conftest.err
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22541 (exit $ac_status); } && {
22542 test -z "$ac_c_werror_flag" ||
22543 test ! -s conftest.err
22544 } && test -s conftest.$ac_objext; then
22545 ac_header_compiler=yes
22547 echo "$as_me: failed program was
:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 ac_header_compiler=no
22553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22555 echo "${ECHO_T}$ac_header_compiler" >&6; }
22557 # Is the header present?
22558 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22559 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 #include <arpa/inet.h>
22568 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22576 grep -v '^ *+' conftest.er1 >conftest.err
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22580 (exit $ac_status); } >/dev/null && {
22581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22584 ac_header_preproc=yes
22586 echo "$as_me: failed program was
:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ac_header_preproc=no
22592 rm -f conftest.err conftest.$ac_ext
22593 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22594 echo "${ECHO_T}$ac_header_preproc" >&6; }
22596 # So? What about this header?
22597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22599 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22600 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22601 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22602 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22603 ac_header_preproc=yes
22606 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22607 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22608 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22609 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22610 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22611 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22612 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22613 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22614 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22615 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22616 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22617 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22621 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22622 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22623 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22624 echo $ECHO_N "(cached
) $ECHO_C" >&6
22626 ac_cv_header_arpa_inet_h=$ac_header_preproc
22628 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22629 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22632 if test $ac_cv_header_arpa_inet_h = yes; then
22640 if test $ok_so_far = yes; then
22642 cat >>confdefs.h <<\_ACEOF
22643 #define HAVE_INET_SOCKETS 1
22649 for ac_header in sys/ioctl.h
22651 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22652 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22653 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22654 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22656 echo $ECHO_N "(cached
) $ECHO_C" >&6
22658 ac_res=`eval echo '${'$as_ac_Header'}'`
22659 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22660 echo "${ECHO_T}$ac_res" >&6; }
22662 # Is the header compilable?
22663 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22664 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22665 cat >conftest.$ac_ext <<_ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 $ac_includes_default
22672 #include <$ac_header>
22674 rm -f conftest.$ac_objext
22675 if { (ac_try="$ac_compile"
22676 case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_compile") 2>conftest.er1
22683 grep -v '^ *+' conftest.er1 >conftest.err
22685 cat conftest.err >&5
22686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22687 (exit $ac_status); } && {
22688 test -z "$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22690 } && test -s conftest.$ac_objext; then
22691 ac_header_compiler=yes
22693 echo "$as_me: failed program was
:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ac_header_compiler=no
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22701 echo "${ECHO_T}$ac_header_compiler" >&6; }
22703 # Is the header present?
22704 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22705 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22706 cat >conftest.$ac_ext <<_ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 #include <$ac_header>
22714 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22715 case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22720 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22722 grep -v '^ *+' conftest.er1 >conftest.err
22724 cat conftest.err >&5
22725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22726 (exit $ac_status); } >/dev/null && {
22727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22728 test ! -s conftest.err
22730 ac_header_preproc=yes
22732 echo "$as_me: failed program was
:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22735 ac_header_preproc=no
22738 rm -f conftest.err conftest.$ac_ext
22739 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22740 echo "${ECHO_T}$ac_header_preproc" >&6; }
22742 # So? What about this header?
22743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22745 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22746 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22747 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22749 ac_header_preproc=yes
22752 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22753 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22754 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22755 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22756 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22757 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22758 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22759 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22760 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22762 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22763 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22767 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22768 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22769 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22770 echo $ECHO_N "(cached
) $ECHO_C" >&6
22772 eval "$as_ac_Header=\
$ac_header_preproc"
22774 ac_res=`eval echo '${'$as_ac_Header'}'`
22775 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22776 echo "${ECHO_T}$ac_res" >&6; }
22779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22780 cat >>confdefs.h <<_ACEOF
22781 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22789 if test -f /usr/lpp/X11/bin/smt.exp; then
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_AIX_SMT_EXP 1
22797 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22798 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22799 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22800 { echo "$as_me:$LINENO: result
: yes" >&5
22801 echo "${ECHO_T}yes" >&6; }
22803 cat >>confdefs.h <<\_ACEOF
22804 #define HAVE_DEV_PTMX 1
22808 { echo "$as_me:$LINENO: result
: no
" >&5
22809 echo "${ECHO_T}no
" >&6; }
22812 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22813 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22814 if test "${ac_cv_type_pid_t+set}" = set; then
22815 echo $ECHO_N "(cached
) $ECHO_C" >&6
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 $ac_includes_default
22824 typedef pid_t ac__type_new_;
22828 if ((ac__type_new_ *) 0)
22830 if (sizeof (ac__type_new_))
22836 rm -f conftest.$ac_objext
22837 if { (ac_try="$ac_compile"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22845 grep -v '^ *+' conftest.er1 >conftest.err
22847 cat conftest.err >&5
22848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 ac_cv_type_pid_t=yes
22855 echo "$as_me: failed program was
:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 ac_cv_type_pid_t=no
22861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22864 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22865 if test $ac_cv_type_pid_t = yes; then
22869 cat >>confdefs.h <<_ACEOF
22876 for ac_header in vfork.h
22878 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22879 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22880 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22881 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22882 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22883 echo $ECHO_N "(cached
) $ECHO_C" >&6
22885 ac_res=`eval echo '${'$as_ac_Header'}'`
22886 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22887 echo "${ECHO_T}$ac_res" >&6; }
22889 # Is the header compilable?
22890 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22891 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 #include <$ac_header>
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_compile") 2>conftest.er1
22910 grep -v '^ *+' conftest.er1 >conftest.err
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22914 (exit $ac_status); } && {
22915 test -z "$ac_c_werror_flag" ||
22916 test ! -s conftest.err
22917 } && test -s conftest.$ac_objext; then
22918 ac_header_compiler=yes
22920 echo "$as_me: failed program was
:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_header_compiler=no
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22928 echo "${ECHO_T}$ac_header_compiler" >&6; }
22930 # Is the header present?
22931 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22932 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22933 cat >conftest.$ac_ext <<_ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 #include <$ac_header>
22941 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22949 grep -v '^ *+' conftest.er1 >conftest.err
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22953 (exit $ac_status); } >/dev/null && {
22954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22957 ac_header_preproc=yes
22959 echo "$as_me: failed program was
:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_header_preproc=no
22965 rm -f conftest.err conftest.$ac_ext
22966 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22967 echo "${ECHO_T}$ac_header_preproc" >&6; }
22969 # So? What about this header?
22970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22972 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22973 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22974 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22976 ac_header_preproc=yes
22979 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22980 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22981 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22982 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22983 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22984 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22985 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22986 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22987 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22989 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22990 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22994 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22995 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22996 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22997 echo $ECHO_N "(cached
) $ECHO_C" >&6
22999 eval "$as_ac_Header=\
$ac_header_preproc"
23001 ac_res=`eval echo '${'$as_ac_Header'}'`
23002 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23003 echo "${ECHO_T}$ac_res" >&6; }
23006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23007 cat >>confdefs.h <<_ACEOF
23008 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23017 for ac_func in fork vfork
23019 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23020 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23021 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23022 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23023 echo $ECHO_N "(cached
) $ECHO_C" >&6
23025 cat >conftest.$ac_ext <<_ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23033 #define $ac_func innocuous_$ac_func
23035 /* System header to define __stub macros and hopefully few prototypes,
23036 which can conflict with char $ac_func (); below.
23037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23038 <limits.h> exists even on freestanding compilers. */
23041 # include <limits.h>
23043 # include <assert.h>
23048 /* Override any GCC internal prototype to avoid an error.
23049 Use char because int might match the return type of a GCC
23050 builtin and then its argument prototype would still apply. */
23055 /* The GNU C library defines this for functions which it implements
23056 to always fail with ENOSYS. Some functions are actually named
23057 something starting with __ and the normal name is an alias. */
23058 #if defined __stub_$ac_func || defined __stub___$ac_func
23065 return $ac_func ();
23070 rm -f conftest.$ac_objext conftest$ac_exeext
23071 if { (ac_try="$ac_link"
23072 case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_link") 2>conftest.er1
23079 grep -v '^ *+' conftest.er1 >conftest.err
23081 cat conftest.err >&5
23082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23083 (exit $ac_status); } && {
23084 test -z "$ac_c_werror_flag" ||
23085 test ! -s conftest.err
23086 } && test -s conftest$ac_exeext &&
23087 $as_test_x conftest$ac_exeext; then
23088 eval "$as_ac_var=yes"
23090 echo "$as_me: failed program was
:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 eval "$as_ac_var=no
"
23096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23097 conftest$ac_exeext conftest.$ac_ext
23099 ac_res=`eval echo '${'$as_ac_var'}'`
23100 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23101 echo "${ECHO_T}$ac_res" >&6; }
23102 if test `eval echo '${'$as_ac_var'}'` = yes; then
23103 cat >>confdefs.h <<_ACEOF
23104 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23110 if test "x
$ac_cv_func_fork" = xyes; then
23111 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23112 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23113 if test "${ac_cv_func_fork_works+set}" = set; then
23114 echo $ECHO_N "(cached
) $ECHO_C" >&6
23116 if test "$cross_compiling" = yes; then
23117 ac_cv_func_fork_works=cross
23119 cat >conftest.$ac_ext <<_ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 $ac_includes_default
23130 /* By Ruediger Kuhlmann. */
23131 return fork () < 0;
23137 rm -f conftest$ac_exeext
23138 if { (ac_try="$ac_link"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_link") 2>&5
23146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23148 { (case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_try") 2>&5
23155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 ac_cv_func_fork_works=yes
23159 echo "$as_me: program exited with status
$ac_status" >&5
23160 echo "$as_me: failed program was
:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163 ( exit $ac_status )
23164 ac_cv_func_fork_works=no
23166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23171 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23172 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23175 ac_cv_func_fork_works=$ac_cv_func_fork
23177 if test "x
$ac_cv_func_fork_works" = xcross; then
23179 *-*-amigaos* | *-*-msdosdjgpp*)
23180 # Override, as these systems have only a dummy fork() stub
23181 ac_cv_func_fork_works=no
23184 ac_cv_func_fork_works=yes
23187 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23188 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23190 ac_cv_func_vfork_works=$ac_cv_func_vfork
23191 if test "x
$ac_cv_func_vfork" = xyes; then
23192 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23193 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23194 if test "${ac_cv_func_vfork_works+set}" = set; then
23195 echo $ECHO_N "(cached
) $ECHO_C" >&6
23197 if test "$cross_compiling" = yes; then
23198 ac_cv_func_vfork_works=cross
23200 cat >conftest.$ac_ext <<_ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 /* Thanks to Paul Eggert for this test. */
23207 $ac_includes_default
23208 #include <sys/wait.h>
23209 #ifdef HAVE_VFORK_H
23210 # include <vfork.h>
23212 /* On some sparc systems, changes by the child to local and incoming
23213 argument registers are propagated back to the parent. The compiler
23214 is told about this with #include <vfork.h>, but some compilers
23215 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23216 static variable whose address is put into a register that is
23217 clobbered by the vfork. */
23220 sparc_address_test (int arg)
23222 sparc_address_test (arg) int arg;
23225 static pid_t child;
23243 pid_t parent = getpid ();
23246 sparc_address_test (0);
23251 /* Here is another test for sparc vfork register problems. This
23252 test uses lots of local variables, at least as many local
23253 variables as main has allocated so far including compiler
23254 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23255 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23256 reuse the register of parent for one of the local variables,
23257 since it will think that parent can't possibly be used any more
23258 in this routine. Assigning to the local variable will thus
23259 munge parent in the parent process. */
23261 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23262 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23263 /* Convince the compiler that p..p7 are live; otherwise, it might
23264 use the same hardware register for all 8 local variables. */
23265 if (p != p1 || p != p2 || p != p3 || p != p4
23266 || p != p5 || p != p6 || p != p7)
23269 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23270 from child file descriptors. If the child closes a descriptor
23271 before it execs or exits, this munges the parent's descriptor
23272 as well. Test for this by closing stdout in the child. */
23273 _exit(close(fileno(stdout)) != 0);
23278 while (wait(&status) != child)
23281 /* Was there some problem with vforking? */
23284 /* Did the child fail? (This shouldn't happen.) */
23287 /* Did the vfork/compiler bug occur? */
23288 || parent != getpid()
23290 /* Did the file descriptor bug occur? */
23291 || fstat(fileno(stdout), &st) != 0
23296 rm -f conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23303 (eval "$ac_link") 2>&5
23305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307 { (case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_try") 2>&5
23314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23315 (exit $ac_status); }; }; then
23316 ac_cv_func_vfork_works=yes
23318 echo "$as_me: program exited with status
$ac_status" >&5
23319 echo "$as_me: failed program was
:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ( exit $ac_status )
23323 ac_cv_func_vfork_works=no
23325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23330 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23331 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23334 if test "x
$ac_cv_func_fork_works" = xcross; then
23335 ac_cv_func_vfork_works=$ac_cv_func_vfork
23336 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23337 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23340 if test "x
$ac_cv_func_vfork_works" = xyes; then
23342 cat >>confdefs.h <<\_ACEOF
23343 #define HAVE_WORKING_VFORK 1
23348 cat >>confdefs.h <<\_ACEOF
23353 if test "x
$ac_cv_func_fork_works" = xyes; then
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_WORKING_FORK 1
23362 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23363 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23364 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23365 echo $ECHO_N "(cached
) $ECHO_C" >&6
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 #include <langinfo.h>
23377 char* cs = nl_langinfo(CODESET);
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (ac_try="$ac_link"
23384 case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23389 (eval "$ac_link") 2>conftest.er1
23391 grep -v '^ *+' conftest.er1 >conftest.err
23393 cat conftest.err >&5
23394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23395 (exit $ac_status); } && {
23396 test -z "$ac_c_werror_flag" ||
23397 test ! -s conftest.err
23398 } && test -s conftest$ac_exeext &&
23399 $as_test_x conftest$ac_exeext; then
23400 emacs_cv_langinfo_codeset=yes
23402 echo "$as_me: failed program was
:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 emacs_cv_langinfo_codeset=no
23408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23409 conftest$ac_exeext conftest.$ac_ext
23412 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23413 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23414 if test $emacs_cv_langinfo_codeset = yes; then
23416 cat >>confdefs.h <<\_ACEOF
23417 #define HAVE_LANGINFO_CODESET 1
23422 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23423 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23424 if test "${ac_cv_type_size_t+set}" = set; then
23425 echo $ECHO_N "(cached
) $ECHO_C" >&6
23427 cat >conftest.$ac_ext <<_ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 $ac_includes_default
23434 typedef size_t ac__type_new_;
23438 if ((ac__type_new_ *) 0)
23440 if (sizeof (ac__type_new_))
23446 rm -f conftest.$ac_objext
23447 if { (ac_try="$ac_compile"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23453 (eval "$ac_compile") 2>conftest.er1
23455 grep -v '^ *+' conftest.er1 >conftest.err
23457 cat conftest.err >&5
23458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23459 (exit $ac_status); } && {
23460 test -z "$ac_c_werror_flag" ||
23461 test ! -s conftest.err
23462 } && test -s conftest.$ac_objext; then
23463 ac_cv_type_size_t=yes
23465 echo "$as_me: failed program was
:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23468 ac_cv_type_size_t=no
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23473 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23474 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23475 if test $ac_cv_type_size_t = yes; then
23477 cat >>confdefs.h <<_ACEOF
23478 #define HAVE_SIZE_T 1
23485 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23486 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23487 if test "${ac_cv_type_mbstate_t+set}" = set; then
23488 echo $ECHO_N "(cached
) $ECHO_C" >&6
23490 cat >conftest.$ac_ext <<_ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 $ac_includes_default
23497 # include <wchar.h>
23501 mbstate_t x; return sizeof x;
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23515 grep -v '^ *+' conftest.er1 >conftest.err
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_type_mbstate_t=yes
23525 echo "$as_me: failed program was
:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_type_mbstate_t=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23534 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23535 if test $ac_cv_type_mbstate_t = yes; then
23537 cat >>confdefs.h <<\_ACEOF
23538 #define HAVE_MBSTATE_T 1
23543 cat >>confdefs.h <<\_ACEOF
23544 #define mbstate_t int
23549 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23550 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23551 if test "${emacs_cv_c_restrict+set}" = set; then
23552 echo $ECHO_N "(cached
) $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 void fred (int *restrict x);
23569 rm -f conftest.$ac_objext
23570 if { (ac_try="$ac_compile"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_compile") 2>conftest.er1
23578 grep -v '^ *+' conftest.er1 >conftest.err
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23582 (exit $ac_status); } && {
23583 test -z "$ac_c_werror_flag" ||
23584 test ! -s conftest.err
23585 } && test -s conftest.$ac_objext; then
23586 emacs_cv_c_restrict=yes
23588 echo "$as_me: failed program was
:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 void fred (int *__restrict x);
23606 rm -f conftest.$ac_objext
23607 if { (ac_try="$ac_compile"
23608 case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_compile") 2>conftest.er1
23615 grep -v '^ *+' conftest.er1 >conftest.err
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23619 (exit $ac_status); } && {
23620 test -z "$ac_c_werror_flag" ||
23621 test ! -s conftest.err
23622 } && test -s conftest.$ac_objext; then
23623 emacs_cv_c_restrict=__restrict
23625 echo "$as_me: failed program was
:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23628 emacs_cv_c_restrict=no
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23637 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23638 case "$emacs_cv_c_restrict" in
23639 yes) emacs_restrict=restrict;;
23640 no) emacs_restrict="";;
23641 *) emacs_restrict="$emacs_cv_c_restrict";;
23643 if test "$emacs_restrict" != __restrict; then
23645 cat >>confdefs.h <<_ACEOF
23646 #define __restrict $emacs_restrict
23651 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23652 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23653 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23654 echo $ECHO_N "(cached
) $ECHO_C" >&6
23656 cat >conftest.$ac_ext <<_ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23662 void fred (int x[__restrict]);
23671 rm -f conftest.$ac_objext
23672 if { (ac_try="$ac_compile"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23678 (eval "$ac_compile") 2>conftest.er1
23680 grep -v '^ *+' conftest.er1 >conftest.err
23682 cat conftest.err >&5
23683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23684 (exit $ac_status); } && {
23685 test -z "$ac_c_werror_flag" ||
23686 test ! -s conftest.err
23687 } && test -s conftest.$ac_objext; then
23688 emacs_cv_c_restrict_arr=yes
23690 echo "$as_me: failed program was
:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 emacs_cv_c_restrict_arr=no
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23699 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23700 if test "$emacs_cv_c_restrict_arr" = yes; then
23702 cat >>confdefs.h <<\_ACEOF
23703 #define __restrict_arr __restrict
23710 # Set up the CFLAGS for real compilation, so we can substitute it.
23711 CFLAGS="$REAL_CFLAGS"
23712 CPPFLAGS="$REAL_CPPFLAGS"
23714 #### Find out which version of Emacs this is.
23715 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23716 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23717 if test x"${version}" = x; then
23718 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23719 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23720 { (exit 1); exit 1; }; }
23723 ### Specify what sort of things we'll be editing into Makefile and config.h.
23724 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23760 cat >>confdefs.h <<_ACEOF
23761 #define EMACS_CONFIGURATION "${canonical}"
23765 cat >>confdefs.h <<_ACEOF
23766 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23770 cat >>confdefs.h <<_ACEOF
23771 #define config_machfile "${machfile}"
23775 cat >>confdefs.h <<_ACEOF
23776 #define config_opsysfile "${opsysfile}"
23780 cat >>confdefs.h <<_ACEOF
23781 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23785 cat >>confdefs.h <<_ACEOF
23786 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23790 cat >>confdefs.h <<_ACEOF
23791 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23795 cat >>confdefs.h <<_ACEOF
23796 #define UNEXEC_SRC ${UNEXEC_SRC}
23800 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23802 cat >>confdefs.h <<\_ACEOF
23803 #define HAVE_X_WINDOWS 1
23807 if test "${USE_X_TOOLKIT}" != "none
" ; then
23809 cat >>confdefs.h <<\_ACEOF
23810 #define USE_X_TOOLKIT 1
23814 if test "${HAVE_X11}" = "yes" ; then
23816 cat >>confdefs.h <<\_ACEOF
23821 if test "${HAVE_MENUS}" = "yes" ; then
23823 cat >>confdefs.h <<\_ACEOF
23824 #define HAVE_MENUS 1
23828 if test "${GNU_MALLOC}" = "yes" ; then
23830 cat >>confdefs.h <<\_ACEOF
23831 #define GNU_MALLOC 1
23835 if test "${REL_ALLOC}" = "yes" ; then
23837 cat >>confdefs.h <<\_ACEOF
23838 #define REL_ALLOC 1
23848 #### Report on what we decided to do.
23849 #### Report GTK as a toolkit, even if it doesn't use Xt.
23850 #### It makes printing result more understandable as using GTK sets
23851 #### toolkit_scroll_bars to yes by default.
23852 if test "${HAVE_GTK}" = "yes"; then
23857 Configured
for \
`${canonical}'.
23859 Where should the build process find the source code? ${srcdir}
23860 What operating system and machine description files should Emacs use?
23861 \`${opsysfile}' and \`${machfile}'
23862 What compiler should emacs be built with?
${CC} ${CFLAGS}
23863 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23864 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23865 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23866 What window system should Emacs use?
${window_system}
23867 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23869 if test -n "${x_includes}"; then
23870 echo " Where
do we
find X Windows header files?
${x_includes}"
23872 echo " Where
do we
find X Windows header files? Standard
dirs"
23874 if test -n "${x_libraries}"; then
23875 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23877 echo " Where
do we
find X Windows libraries? Standard
dirs"
23880 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23881 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23882 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23883 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23884 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23885 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23886 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23887 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23888 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23889 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23891 if test "${USE_FONT_BACKEND}" = "yes"; then
23892 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23893 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23894 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23895 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23897 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23900 if test $USE_XASSERTS = yes; then
23901 echo " Compiling with asserts turned on.
"
23902 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23906 if test "$USE_X_TOOLKIT" = GTK; then
23907 case "$canonical" in
23909 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23910 will probably get a crash on startup. If this happens
, please use another
23911 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23917 if test "$HAVE_CARBON" = "yes"; then
23919 echo "Warning
: The Mac Carbon port is currently unsupported and has
23920 known problems. It is not recommended
for use by non-developers.
23921 Read the emacs-devel archives
for more information.
"
23925 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23926 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23931 # Remove any trailing slashes in these variables.
23932 test "${prefix}" != NONE &&
23933 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23934 test "${exec_prefix}" != NONE &&
23935 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23937 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23938 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23939 ## from Makefile.c can correctly provide the arg `-traditional' to the
23942 cat >conftest.$ac_ext <<_ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h. */
23950 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23951 $EGREP "yes..
yes" >/dev/null 2>&1; then
23952 CPP_NEED_TRADITIONAL=no
23954 CPP_NEED_TRADITIONAL=yes
23959 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
"
23961 ac_config_commands="$ac_config_commands default
"
23963 cat >confcache <<\_ACEOF
23964 # This file is a shell script that caches the results of configure
23965 # tests run on this system so they can be shared between configure
23966 # scripts and configure runs, see configure's option --config-cache.
23967 # It is not useful on other systems. If it contains results you don't
23968 # want to keep, you may remove or edit it.
23970 # config.status only pays attention to the cache file if you give it
23971 # the --recheck option to rerun configure.
23973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23975 # following values.
23979 # The following way of writing the cache mishandles newlines in values,
23980 # but we know of no workaround that is simple, portable, and efficient.
23981 # So, we kill variables containing newlines.
23982 # Ultrix sh set writes to stderr and can't be redirected directly,
23983 # and sets the high bit in the cache file unless we assign to the vars.
23985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23986 eval ac_val=\$$ac_var
23990 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23991 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23994 _ | IFS | as_nl) ;; #(
23995 *) $as_unset $ac_var ;;
24001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24002 *${as_nl}ac_space=\ *)
24003 # `set' does not quote correctly, so add quotes (double-quote
24004 # substitution turns \\\\ into \\, and sed turns \\ into \).
24007 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24010 # `set' quotes correctly as required by POSIX, so do not add quotes.
24011 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24025 if test -w "$cache_file"; then
24026 test "x
$cache_file" != "x
/dev
/null
" &&
24027 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24028 echo "$as_me: updating cache
$cache_file" >&6;}
24029 cat confcache >$cache_file
24031 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24032 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24037 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24038 # Let make expand exec_prefix.
24039 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24041 DEFS=-DHAVE_CONFIG_H
24045 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24046 # 1. Remove the extension, and $U if already installed.
24047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24048 ac_i=`echo "$ac_i" | sed "$ac_script"`
24049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24050 # will be set to the directory where LIBOBJS objects are built.
24051 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24052 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24054 LIBOBJS=$ac_libobjs
24056 LTLIBOBJS=$ac_ltlibobjs
24060 : ${CONFIG_STATUS=./config.status}
24061 ac_clean_files_save=$ac_clean_files
24062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24063 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24064 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24065 cat >$CONFIG_STATUS <<_ACEOF
24067 # Generated by $as_me.
24068 # Run this file to recreate the current configuration.
24069 # Compiler output produced by configure, useful for debugging
24070 # configure, is in config.log if it exists.
24073 ac_cs_recheck=false
24075 SHELL=\${CONFIG_SHELL-$SHELL}
24078 cat >>$CONFIG_STATUS <<\_ACEOF
24079 ## --------------------- ##
24080 ## M4sh Initialization. ##
24081 ## --------------------- ##
24083 # Be more Bourne compatible
24084 DUALCASE=1; export DUALCASE # for MKS sh
24085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24088 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24089 # is contrary to our usage. Disable this feature.
24090 alias -g '${1+"$@"}'='"$@
"'
24091 setopt NO_GLOB_SUBST
24093 case `(set -o) 2>/dev/null` in
24094 *posix*) set -o posix ;;
24103 # Avoid depending upon Character Ranges.
24104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24107 as_cr_digits='0123456789'
24108 as_cr_alnum=$as_cr_Letters$as_cr_digits
24110 # The user is always right.
24111 if test "${PATH_SEPARATOR+set}" != set; then
24112 echo "#! /bin/sh" >conf$$.sh
24113 echo "exit 0" >>conf$$.sh
24115 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24123 # Support unset when possible.
24124 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24132 # We need space, tab and new line, in precisely that order. Quoting is
24133 # there to prevent editors from complaining about space-tab.
24134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24135 # splitting by setting IFS to empty value.)
24140 # Find who we are. Look in the path if we contain no directory separator.
24142 *[\\/]* ) as_myself
=$0 ;;
24143 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24144 for as_dir
in $PATH
24147 test -z "$as_dir" && as_dir
=.
24148 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24154 # We did not find ourselves, most probably we were run as `sh COMMAND'
24155 # in which case we are not to be found in the path.
24156 if test "x$as_myself" = x
; then
24159 if test ! -f "$as_myself"; then
24160 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24161 { (exit 1); exit 1; }
24164 # Work around bugs in pre-3.0 UWIN ksh.
24165 for as_var
in ENV MAIL MAILPATH
24166 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24176 LC_TELEPHONE LC_TIME
24178 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24179 eval $as_var=C
; export $as_var
24181 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24185 # Required to use basename.
24186 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24187 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24193 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24194 as_basename
=basename
24200 # Name of the executable.
24201 as_me
=`$as_basename -- "$0" ||
24202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24203 X"$0" : 'X\(//\)$' \| \
24204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24206 sed '/^.*\/\([^/][^/]*\)\/*$/{
24225 as_lineno_1
=$LINENO
24226 as_lineno_2
=$LINENO
24227 test "x$as_lineno_1" != "x$as_lineno_2" &&
24228 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24231 # uniformly replaced by the line number. The first 'sed' inserts a
24232 # line-number line after each line using $LINENO; the second 'sed'
24233 # does the real work. The second script uses 'N' to pair each
24234 # line-number line with the line containing $LINENO, and appends
24235 # trailing '-' during substitution so that $LINENO is not a special
24236 # case at line end.
24237 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24238 # scripts with optimization help from Paolo Bonzini. Blame Lee
24239 # E. McMahon (1931-1989) for sed's syntax. :-)
24251 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24254 ' >$as_me.lineno
&&
24255 chmod +x
"$as_me.lineno" ||
24256 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24257 { (exit 1); exit 1; }; }
24259 # Don't try to exec as it changes $[0], causing all sort of problems
24260 # (the dirname of $[0] is not the place where we might find the
24261 # original and so on. Autoconf is especially sensitive to this).
24262 .
"./$as_me.lineno"
24263 # Exit status is that of the last command.
24268 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24274 ECHO_C
= ECHO_N
= ECHO_T
=
24275 case `echo -n x` in
24277 case `echo 'x\c'` in
24278 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24285 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24286 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24292 rm -f conf$$ conf$$.exe conf$$.
file
24293 if test -d conf$$.dir
; then
24294 rm -f conf$$.dir
/conf$$.
file
24300 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24302 # ... but there are two gotchas:
24303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24305 # In both cases, we have to default to `cp -p'.
24306 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24308 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24313 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24314 rmdir conf$$.dir
2>/dev
/null
24316 if mkdir
-p .
2>/dev
/null
; then
24319 test -d .
/-p && rmdir .
/-p
24323 if test -x / >/dev
/null
2>&1; then
24324 as_test_x
='test -x'
24326 if ls -dL / >/dev
/null
2>&1; then
24333 if test -d "$1"; then
24339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24340 ???[sx]*):;;*)false;;esac;fi
24344 as_executable_p
=$as_test_x
24346 # Sed expression to map a string onto a valid CPP name.
24347 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24349 # Sed expression to map a string onto a valid variable name.
24350 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24355 # Save the log message, to keep $[0] and so on meaningful, and to
24356 # report actual input values of CONFIG_FILES etc. instead of their
24357 # values after options handling.
24359 This file was extended by emacs $as_me 23.0.50, which was
24360 generated by GNU Autoconf 2.61. Invocation command line was
24362 CONFIG_FILES = $CONFIG_FILES
24363 CONFIG_HEADERS = $CONFIG_HEADERS
24364 CONFIG_LINKS = $CONFIG_LINKS
24365 CONFIG_COMMANDS = $CONFIG_COMMANDS
24368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24373 cat >>$CONFIG_STATUS <<_ACEOF
24374 # Files that config.status was made for.
24375 config_files="$ac_config_files"
24376 config_headers="$ac_config_headers"
24377 config_commands="$ac_config_commands"
24381 cat >>$CONFIG_STATUS <<\_ACEOF
24383 \`$as_me' instantiates files from templates according to the
24384 current configuration.
24386 Usage: $0 [OPTIONS] [FILE]...
24388 -h, --help print this help, then exit
24389 -V, --version print version number and configuration settings, then exit
24390 -q, --quiet do not print progress messages
24391 -d, --debug don't remove temporary files
24392 --recheck update $as_me by reconfiguring in the same conditions
24393 --file=FILE[:TEMPLATE]
24394 instantiate the configuration file FILE
24395 --header=FILE[:TEMPLATE]
24396 instantiate the configuration header FILE
24398 Configuration files:
24401 Configuration headers:
24404 Configuration commands:
24407 Report bugs to <bug-autoconf@gnu.org>."
24410 cat >>$CONFIG_STATUS <<_ACEOF
24412 emacs config.status 23.0.50
24413 configured by $0, generated by GNU Autoconf 2.61,
24414 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24416 Copyright (C) 2006 Free Software Foundation, Inc.
24417 This config.status script is free software; the Free Software Foundation
24418 gives unlimited permission to copy, distribute and modify it."
24425 cat >>$CONFIG_STATUS <<\_ACEOF
24426 # If no file are specified by the user, then we need to provide default
24427 # value. By we need to know if files were specified by the user.
24433 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24434 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24445 # Handling of the options.
24446 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24448 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24449 echo "$ac_cs_version"; exit ;;
24450 --debug |
--debu |
--deb |
--de |
--d |
-d )
24452 --file |
--fil |
--fi |
--f )
24454 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24455 ac_need_defaults
=false
;;
24456 --header |
--heade |
--head |
--hea )
24458 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24459 ac_need_defaults
=false
;;
24461 # Conflict between --help and --header
24462 { echo "$as_me: error: ambiguous option: $1
24463 Try \`$0 --help' for more information." >&2
24464 { (exit 1); exit 1; }; };;
24465 --help |
--hel |
-h )
24466 echo "$ac_cs_usage"; exit ;;
24467 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24468 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24471 # This is an error.
24472 -*) { echo "$as_me: error: unrecognized option: $1
24473 Try \`$0 --help' for more information." >&2
24474 { (exit 1); exit 1; }; } ;;
24476 *) ac_config_targets
="$ac_config_targets $1"
24477 ac_need_defaults
=false
;;
24483 ac_configure_extra_args
=
24485 if $ac_cs_silent; then
24487 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24491 cat >>$CONFIG_STATUS <<_ACEOF
24492 if \$ac_cs_recheck; then
24493 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24494 CONFIG_SHELL=$SHELL
24495 export CONFIG_SHELL
24496 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24500 cat >>$CONFIG_STATUS <<\_ACEOF
24504 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24505 ## Running $as_me. ##
24511 cat >>$CONFIG_STATUS <<_ACEOF
24515 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24519 cat >>$CONFIG_STATUS <<\_ACEOF
24521 # Handling of arguments.
24522 for ac_config_target
in $ac_config_targets
24524 case $ac_config_target in
24525 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24526 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24527 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24528 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24529 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24530 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24531 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24532 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24533 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24534 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24535 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24536 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24537 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24539 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24540 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24541 { (exit 1); exit 1; }; };;
24546 # If the user did not use the arguments to specify the items to instantiate,
24547 # then the envvar interface is used. Set only those that are not.
24548 # We use the long form for the default assignment because of an extremely
24549 # bizarre bug on SunOS 4.1.3.
24550 if $ac_need_defaults; then
24551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24556 # Have a temporary directory for convenience. Make it in the build tree
24557 # simply because there is no reason against having it here, and in addition,
24558 # creating and moving files from /tmp can sometimes cause problems.
24559 # Hook for its removal unless debugging.
24560 # Note that there is a small window in which the directory will not be cleaned:
24561 # after its creation but before its name has been assigned to `$tmp'.
24565 trap 'exit_status=$?
24566 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24568 trap '{ (exit 1); exit 1; }' 1 2 13 15
24570 # Create a (secure) tmp directory for tmp files.
24573 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24574 test -n "$tmp" && test -d "$tmp"
24577 tmp
=.
/conf$$
-$RANDOM
24578 (umask 077 && mkdir
"$tmp")
24581 echo "$me: cannot create a temporary directory in ." >&2
24582 { (exit 1); exit 1; }
24586 # Set up the sed scripts for CONFIG_FILES section.
24589 # No need to generate the scripts if there are no CONFIG_FILES.
24590 # This happens for instance when ./config.status config.h
24591 if test -n "$CONFIG_FILES"; then
24598 for ac_last_try
in false false false false false
:; do
24599 cat >conf$
$subs.
sed <<_ACEOF
24600 SHELL!$SHELL$ac_delim
24601 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24602 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24603 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24604 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24605 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24606 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24607 exec_prefix!$exec_prefix$ac_delim
24608 prefix!$prefix$ac_delim
24609 program_transform_name!$program_transform_name$ac_delim
24610 bindir!$bindir$ac_delim
24611 sbindir!$sbindir$ac_delim
24612 libexecdir!$libexecdir$ac_delim
24613 datarootdir!$datarootdir$ac_delim
24614 datadir!$datadir$ac_delim
24615 sysconfdir!$sysconfdir$ac_delim
24616 sharedstatedir!$sharedstatedir$ac_delim
24617 localstatedir!$localstatedir$ac_delim
24618 includedir!$includedir$ac_delim
24619 oldincludedir!$oldincludedir$ac_delim
24620 docdir!$docdir$ac_delim
24621 infodir!$infodir$ac_delim
24622 htmldir!$htmldir$ac_delim
24623 dvidir!$dvidir$ac_delim
24624 pdfdir!$pdfdir$ac_delim
24625 psdir!$psdir$ac_delim
24626 libdir!$libdir$ac_delim
24627 localedir!$localedir$ac_delim
24628 mandir!$mandir$ac_delim
24629 DEFS!$DEFS$ac_delim
24630 ECHO_C!$ECHO_C$ac_delim
24631 ECHO_N!$ECHO_N$ac_delim
24632 ECHO_T!$ECHO_T$ac_delim
24633 LIBS!$LIBS$ac_delim
24634 build_alias!$build_alias$ac_delim
24635 host_alias!$host_alias$ac_delim
24636 target_alias!$target_alias$ac_delim
24637 MAINT!$MAINT$ac_delim
24638 build!$build$ac_delim
24639 build_cpu!$build_cpu$ac_delim
24640 build_vendor!$build_vendor$ac_delim
24641 build_os!$build_os$ac_delim
24642 host!$host$ac_delim
24643 host_cpu!$host_cpu$ac_delim
24644 host_vendor!$host_vendor$ac_delim
24645 host_os!$host_os$ac_delim
24647 CFLAGS!$CFLAGS$ac_delim
24648 LDFLAGS!$LDFLAGS$ac_delim
24649 CPPFLAGS!$CPPFLAGS$ac_delim
24650 ac_ct_CC!$ac_ct_CC$ac_delim
24651 EXEEXT!$EXEEXT$ac_delim
24652 OBJEXT!$OBJEXT$ac_delim
24654 GREP!$GREP$ac_delim
24655 EGREP!$EGREP$ac_delim
24656 LN_S!$LN_S$ac_delim
24657 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24658 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24659 INSTALL_DATA!$INSTALL_DATA$ac_delim
24660 RANLIB!$RANLIB$ac_delim
24661 INSTALL_INFO!$INSTALL_INFO$ac_delim
24662 GZIP_PROG!$GZIP_PROG$ac_delim
24663 MAKEINFO!$MAKEINFO$ac_delim
24664 LIBSOUND!$LIBSOUND$ac_delim
24665 PKG_CONFIG!$PKG_CONFIG$ac_delim
24666 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24667 ALSA_LIBS!$ALSA_LIBS$ac_delim
24668 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24669 SET_MAKE!$SET_MAKE$ac_delim
24670 XMKMF!$XMKMF$ac_delim
24671 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24672 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24673 RSVG_LIBS!$RSVG_LIBS$ac_delim
24674 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24675 GTK_LIBS!$GTK_LIBS$ac_delim
24676 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24677 DBUS_LIBS!$DBUS_LIBS$ac_delim
24678 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24679 XFT_LIBS!$XFT_LIBS$ac_delim
24680 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24681 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24682 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24683 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24684 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24685 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24686 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24687 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24688 ALLOCA!$ALLOCA$ac_delim
24689 liblockfile!$liblockfile$ac_delim
24690 LIBOBJS!$LIBOBJS$ac_delim
24691 NEED_SETGID!$NEED_SETGID$ac_delim
24692 KMEM_GROUP!$KMEM_GROUP$ac_delim
24693 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24694 GETOPT_H!$GETOPT_H$ac_delim
24695 GETOPTOBJS!$GETOPTOBJS$ac_delim
24696 version!$version$ac_delim
24699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24701 elif $ac_last_try; then
24702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24703 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24704 { (exit 1); exit 1; }; }
24706 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24710 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24711 if test -n "$ac_eof"; then
24712 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24713 ac_eof
=`expr $ac_eof + 1`
24716 cat >>$CONFIG_STATUS <<_ACEOF
24717 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24721 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24722 s/^/s,@/; s/!/@,|#_!!_#|/
24725 s/'"$ac_delim"'$/,g/; t
24727 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24728 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24729 rm -f conf$
$subs.
sed
24730 cat >>$CONFIG_STATUS <<_ACEOF
24736 for ac_last_try
in false false false false false
:; do
24737 cat >conf$
$subs.
sed <<_ACEOF
24738 configuration!$configuration$ac_delim
24739 canonical!$canonical$ac_delim
24740 srcdir!$srcdir$ac_delim
24741 lispdir!$lispdir$ac_delim
24742 locallisppath!$locallisppath$ac_delim
24743 lisppath!$lisppath$ac_delim
24744 x_default_search_path!$x_default_search_path$ac_delim
24745 etcdir!$etcdir$ac_delim
24746 archlibdir!$archlibdir$ac_delim
24747 bitmapdir!$bitmapdir$ac_delim
24748 gamedir!$gamedir$ac_delim
24749 gameuser!$gameuser$ac_delim
24750 c_switch_system!$c_switch_system$ac_delim
24751 c_switch_machine!$c_switch_machine$ac_delim
24752 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24753 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24754 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24755 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24756 machfile!$machfile$ac_delim
24757 opsysfile!$opsysfile$ac_delim
24758 carbon_appdir!$carbon_appdir$ac_delim
24759 LTLIBOBJS!$LTLIBOBJS$ac_delim
24762 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24764 elif $ac_last_try; then
24765 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24766 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24767 { (exit 1); exit 1; }; }
24769 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24773 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24774 if test -n "$ac_eof"; then
24775 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24776 ac_eof
=`expr $ac_eof + 1`
24779 cat >>$CONFIG_STATUS <<_ACEOF
24780 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24784 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24785 s/^/s,@/; s/!/@,|#_!!_#|/
24788 s/'"$ac_delim"'$/,g/; t
24790 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24791 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24792 rm -f conf$
$subs.
sed
24793 cat >>$CONFIG_STATUS <<_ACEOF
24800 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24801 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24802 # trailing colons and then remove the whole line if VPATH becomes empty
24803 # (actually we leave an empty line to preserve line numbers).
24804 if test "x$srcdir" = x.
; then
24805 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24806 s/:*\$(srcdir):*/:/
24807 s/:*\${srcdir}:*/:/
24809 s/^\([^=]*=[ ]*\):*/\1/
24815 cat >>$CONFIG_STATUS <<\_ACEOF
24816 fi # test -n "$CONFIG_FILES"
24819 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24822 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24824 case $ac_mode$ac_tag in
24826 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24827 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24828 { (exit 1); exit 1; }; };;
24829 :[FH
]-) ac_tag
=-:-;;
24830 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24847 -) ac_f
="$tmp/stdin";;
24848 *) # Look for the file first in the build tree, then in the source tree
24849 # (if the path is not absolute). The absolute path cannot be DOS-style,
24850 # because $ac_f cannot contain `:'.
24854 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24856 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24857 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24858 { (exit 1); exit 1; }; };;
24860 ac_file_inputs
="$ac_file_inputs $ac_f"
24863 # Let's still pretend it is `configure' which instantiates (i.e., don't
24864 # use $as_me), people would be surprised to read:
24865 # /* config.h. Generated by config.status. */
24866 configure_input
="Generated from "`IFS=:
24867 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24868 if test x
"$ac_file" != x-
; then
24869 configure_input
="$ac_file. $configure_input"
24870 { echo "$as_me:$LINENO: creating $ac_file" >&5
24871 echo "$as_me: creating $ac_file" >&6;}
24875 *:-:* |
*:-) cat >"$tmp/stdin";;
24880 ac_dir
=`$as_dirname -- "$ac_file" ||
24881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24882 X"$ac_file" : 'X\(//\)[^/]' \| \
24883 X"$ac_file" : 'X\(//\)$' \| \
24884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24890 /^X\(\/\/\)[^/].*/{
24905 -*) as_dir
=.
/$as_dir;;
24907 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24911 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24912 *) as_qdir
=$as_dir;;
24914 as_dirs
="'$as_qdir' $as_dirs"
24915 as_dir
=`$as_dirname -- "$as_dir" ||
24916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24917 X"$as_dir" : 'X\(//\)[^/]' \| \
24918 X"$as_dir" : 'X\(//\)$' \| \
24919 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24925 /^X\(\/\/\)[^/].*/{
24938 test -d "$as_dir" && break
24940 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24941 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24942 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24943 { (exit 1); exit 1; }; }; }
24947 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24949 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24950 # A ".." for each directory in $ac_dir_suffix.
24951 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24952 case $ac_top_builddir_sub in
24953 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24954 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24957 ac_abs_top_builddir
=$ac_pwd
24958 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24959 # for backward compatibility:
24960 ac_top_builddir
=$ac_top_build_prefix
24963 .
) # We are building in place.
24965 ac_top_srcdir
=$ac_top_builddir_sub
24966 ac_abs_top_srcdir
=$ac_pwd ;;
24967 [\\/]* | ?
:[\\/]* ) # Absolute name.
24968 ac_srcdir
=$srcdir$ac_dir_suffix;
24969 ac_top_srcdir
=$srcdir
24970 ac_abs_top_srcdir
=$srcdir ;;
24971 *) # Relative name.
24972 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24973 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24974 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24976 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24986 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24987 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24991 cat >>$CONFIG_STATUS <<\_ACEOF
24992 # If the template does not know about datarootdir, expand it.
24993 # FIXME: This hack should be removed a few years after 2.60.
24994 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24996 case `sed -n '/datarootdir/ {
25005 ' $ac_file_inputs` in
25006 *datarootdir
*) ac_datarootdir_seen
=yes;;
25007 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25008 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25009 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25011 cat >>$CONFIG_STATUS <<_ACEOF
25012 ac_datarootdir_hack='
25013 s&@datadir@&$datadir&g
25014 s&@docdir@&$docdir&g
25015 s&@infodir@&$infodir&g
25016 s&@localedir@&$localedir&g
25017 s&@mandir@&$mandir&g
25018 s&\\\${datarootdir}&$datarootdir&g' ;;
25022 # Neutralize VPATH when `$srcdir' = `.'.
25023 # Shell code in configure.ac might set extrasub.
25024 # FIXME: do we really want to maintain this feature?
25025 cat >>$CONFIG_STATUS <<_ACEOF
25029 cat >>$CONFIG_STATUS <<\_ACEOF
25031 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25032 s
&@configure_input@
&$configure_input&;t t
25033 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25034 s
&@srcdir@
&$ac_srcdir&;t t
25035 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25036 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25037 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25038 s
&@builddir@
&$ac_builddir&;t t
25039 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25040 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25041 s
&@INSTALL@
&$ac_INSTALL&;t t
25042 $ac_datarootdir_hack
25043 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25046 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25047 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25048 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25049 which seems to be undefined. Please make sure it is defined." >&5
25050 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25051 which seems to be undefined. Please make sure it is defined." >&2;}
25055 -) cat "$tmp/out"; rm -f "$tmp/out";;
25056 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25065 # Transform confdefs.h into a sed script `conftest.defines', that
25066 # substitutes the proper values into config.h.in to produce config.h.
25067 rm -f conftest.defines conftest.
tail
25068 # First, append a space to every undef/define line, to ease matching.
25069 echo 's/$/ /' >conftest.defines
25070 # Then, protect against being on the right side of a sed subst, or in
25071 # an unquoted here document, in config.status. If some macros were
25072 # called several times there might be several #defines for the same
25073 # symbol, which is useless. But do not sort them, since the last
25074 # AC_DEFINE must be honored.
25075 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25076 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25077 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25078 # PARAMS is the parameter list in the macro definition--in most cases, it's
25079 # just an empty string.
25080 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25081 ac_dB
='\\)[ (].*,\\1define\\2'
25089 s/^[ ]*#[ ]*define[ ][ ]*//
25094 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25095 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25096 ' >>conftest.defines
25098 # Remove the space that was appended to ease matching.
25099 # Then replace #undef with comments. This is necessary, for
25100 # example, in the case of _POSIX_SOURCE, which is predefined and required
25101 # on some systems where configure will not decide to define it.
25102 # (The regexp can be short, since the line contains either #define or #undef.)
25104 s,^[ #]*u.*,/* & */,' >>conftest.defines
25106 # Break up conftest.defines:
25107 ac_max_sed_lines
=50
25109 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25110 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25111 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25113 ac_in
='$ac_file_inputs'
25114 ac_out
='"$tmp/out1"'
25115 ac_nxt
='"$tmp/out2"'
25119 # Write a here document:
25120 cat >>$CONFIG_STATUS <<_ACEOF
25121 # First, check the format of the line:
25122 cat >"\$tmp/defines.sed" <<\\CEOF
25123 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25124 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25128 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25130 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25131 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25132 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25133 grep . conftest.
tail >/dev
/null ||
break
25134 rm -f conftest.defines
25135 mv conftest.
tail conftest.defines
25137 rm -f conftest.defines conftest.
tail
25139 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25140 cat >>$CONFIG_STATUS <<\_ACEOF
25141 if test x
"$ac_file" != x-
; then
25142 echo "/* $configure_input */" >"$tmp/config.h"
25143 cat "$ac_result" >>"$tmp/config.h"
25144 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25145 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25146 echo "$as_me: $ac_file is unchanged" >&6;}
25149 mv "$tmp/config.h" $ac_file
25152 echo "/* $configure_input */"
25158 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25159 echo "$as_me: executing $ac_file commands" >&6;}
25164 case $ac_file$ac_mode in
25167 ### Make the necessary directories, if they don't exist.
25168 for dir
in etc lisp
; do
25169 test -d ${dir} || mkdir
${dir}
25172 # Build src/Makefile from ${srcdir}/src/Makefile.c
25173 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25174 # This must be done after src/config.h is built, since we rely on that file.
25176 # Now get this: Some word that is part of the ${srcdir} directory name
25177 # or the ${configuration} value might, just might, happen to be an
25178 # identifier like `sun4' or `i386' or something, and be predefined by
25179 # the C preprocessor to some helpful value like 1, or maybe the empty
25180 # string. Needless to say consequent macro substitutions are less
25181 # than conducive to the makefile finding the correct directory.
25182 undefs
="`echo $top_srcdir $configuration $canonical |
25183 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25184 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25187 echo creating src
/epaths.h
25188 ${MAKE-make} epaths-force
25190 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25191 # `..' to `. .' unless invoked with -traditional
25193 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25194 CPPFLAGS
="$CPPFLAGS -traditional"
25197 echo creating lib-src
/Makefile
25199 rm -f junk.c junk1.c junk2.c
25200 sed -e '/start of cpp stuff/q' \
25201 < Makefile.c
> junk1.c
25202 sed -e '1,/start of cpp stuff/d'\
25203 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25204 < Makefile.c
> junk.c
25205 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25206 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25207 cat junk1.c junk2.c
> Makefile.new
25208 rm -f junk.c junk1.c junk2.c
25209 chmod 444 Makefile.new
25210 mv -f Makefile.new Makefile
25213 echo creating src
/Makefile
25215 rm -f junk.c junk1.c junk2.c
25216 sed -e '/start of cpp stuff/q' \
25217 < Makefile.c
> junk1.c
25218 sed -e '1,/start of cpp stuff/d'\
25219 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25220 < Makefile.c
> junk.c
25221 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25222 echo creating
${srcdir}/admin
/unidata
/Makefile
25223 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25224 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25226 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25227 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25228 cat junk1.c junk2.c
> Makefile.new
25229 rm -f junk.c junk1.c junk2.c
25230 chmod 444 Makefile.new
25231 mv -f Makefile.new Makefile
25234 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25235 echo creating src
/.gdbinit
25236 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25239 # This is how we know whether to re-run configure in certain cases.
25240 touch src
/config.stamp
25248 { (exit 0); exit 0; }
25250 chmod +x
$CONFIG_STATUS
25251 ac_clean_files
=$ac_clean_files_save
25254 # configure is writing to config.log, and then calls config.status.
25255 # config.status does its own redirection, appending to config.log.
25256 # Unfortunately, on DOS this fails, as config.log is still kept open
25257 # by configure, so config.status won't be able to write to it; its
25258 # output is simply discarded. So we exec the FD to /dev/null,
25259 # effectively closing config.log, so it can be properly (re)opened and
25260 # appended to by config.status. When coming back to configure, we
25261 # need to make the FD available again.
25262 if test "$no_create" != yes; then
25264 ac_config_status_args
=
25265 test "$silent" = yes &&
25266 ac_config_status_args
="$ac_config_status_args --quiet"
25268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25271 # would make configure fail if this is the last instruction.
25272 $ac_cs_success ||
{ (exit 1); exit 1; }