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-sync-input compile code with sync-input
1337 --enable-asserts compile code with asserts enabled
1338 --enable-maintainer-mode
1339 enable make rules and dependencies not useful (and
1340 sometimes confusing) to the casual installer
1341 --enable-locallisppath=PATH
1342 directories Emacs should search for lisp files
1343 specific to this site
1344 --disable-largefile omit support for large files
1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1349 --without-pop don't support POP
mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version
5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server
host
1353 --without-sound don
't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don
't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don
't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don
't compile with SVG image support
1362 --without-freetype don't use Freetype
for local font support
1363 --without-xft don
't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf
for OpenType font support
1365 --without-m17n-flt don
't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don
't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1371 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1373 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config
for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables
:
1380 CC C compiler
command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1383 nonstandard directory
<lib dir
>
1384 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1385 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1386 you have headers
in a nonstandard directory
<include dir
>
1388 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1390 Use these variables to override the choices made by
`configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1420 .) # We are building in place.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1453 emacs configure 23.0.50
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.50, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1480 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1481 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1482 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1483 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1484 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1486 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1487 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1489 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1490 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1491 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1492 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1493 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1494 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1495 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_must_keep_next=false
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1539 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557 -* ) ac_must_keep_next=true ;;
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1587 eval ac_val=\$$ac_var
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1601 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1631 if test -n "$ac_subst_files"; then
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 echo "$ac_var='\''$ac_val'\''"
1649 if test -s confdefs.h; then
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1754 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1758 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1765 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1766 echo "$as_me: former value
: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1768 echo "$as_me: current value
: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1786 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1787 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s
,x
,x
', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1841 lispdir='${datadir}/emacs
/${version}/lisp
'
1842 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1843 '${datadir}/emacs
/site-lisp
'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1845 etcdir='${datadir}/emacs
/${version}/etc
'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs
/${version}/etc
'
1848 gamedir='${localstatedir}/games
/emacs
'
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1897 cat >>confdefs.h <<\_ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1935 # Check whether --with-x-toolkit was given.
1936 if test "${with_x_toolkit+set}" = set; then
1937 withval=$with_x_toolkit; case "${withval}" in
1938 y | ye | yes ) val=gtk ;;
1940 l | lu | luc | luci | lucid ) val=lucid ;;
1941 a | at | ath | athe | athen | athena ) val=athena ;;
1942 m | mo | mot | moti | motif ) val=motif ;;
1943 g | gt | gtk ) val=gtk ;;
1945 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1946 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1947 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1948 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1949 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1950 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1951 { (exit 1); exit 1; }; }
1960 # Check whether --with-xpm was given.
1961 if test "${with_xpm+set}" = set; then
1968 # Check whether --with-jpeg was given.
1969 if test "${with_jpeg+set}" = set; then
1976 # Check whether --with-tiff was given.
1977 if test "${with_tiff+set}" = set; then
1984 # Check whether --with-gif was given.
1985 if test "${with_gif+set}" = set; then
1992 # Check whether --with-png was given.
1993 if test "${with_png+set}" = set; then
2000 # Check whether --with-rsvg was given.
2001 if test "${with_rsvg+set}" = set; then
2009 # Check whether --with-freetype was given.
2010 if test "${with_freetype+set}" = set; then
2011 withval=$with_freetype;
2017 # Check whether --with-xft was given.
2018 if test "${with_xft+set}" = set; then
2025 # Check whether --with-libotf was given.
2026 if test "${with_libotf+set}" = set; then
2027 withval=$with_libotf;
2033 # Check whether --with-m17n-flt was given.
2034 if test "${with_m17n_flt+set}" = set; then
2035 withval=$with_m17n_flt;
2042 # Check whether --with-toolkit-scroll-bars was given.
2043 if test "${with_toolkit_scroll_bars+set}" = set; then
2044 withval=$with_toolkit_scroll_bars;
2046 with_toolkit_scroll_bars=yes
2050 # Check whether --with-xaw3d was given.
2051 if test "${with_xaw3d+set}" = set; then
2052 withval=$with_xaw3d;
2058 # Check whether --with-xim was given.
2059 if test "${with_xim+set}" = set; then
2066 # Check whether --with-carbon was given.
2067 if test "${with_carbon+set}" = set; then
2068 withval=$with_carbon;
2075 # Check whether --with-gpm was given.
2076 if test "${with_gpm+set}" = set; then
2083 # Check whether --with-dbus was given.
2084 if test "${with_dbus+set}" = set; then
2092 # Check whether --with-gtk was given.
2093 if test "${with_gtk+set}" = set; then
2094 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2095 specify a toolkit." >&5
2096 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2097 specify a toolkit." >&2;}
2098 { (exit 1); exit 1; }; }
2103 # Check whether --with-gcc was given.
2104 if test "${with_gcc+set}" = set; then
2105 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2106 variable to specify a compiler.
" >&5
2107 echo "$as_me: error
: --with-gcc has been removed. Set the \
`CC' environment
2108 variable to specify a compiler." >&2;}
2109 { (exit 1); exit 1; }; }
2114 # Check whether --with-pkg-config-prog was given.
2115 if test "${with_pkg_config_prog+set}" = set; then
2116 withval=$with_pkg_config_prog;
2119 if test "X${with_pkg_config_prog}" != X; then
2120 if test "${with_pkg_config_prog}" != yes; then
2121 PKG_CONFIG="${with_pkg_config_prog}"
2125 # Check whether --enable-carbon-app was given.
2126 if test "${enable_carbon_app+set}" = set; then
2127 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2131 ## Enabled by default.
2132 # Check whether --enable-font-backend was given.
2133 if test "${enable_font_backend+set}" = set; then
2134 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2136 USE_FONT_BACKEND=yes
2140 # Check whether --enable-sync-input was given.
2141 if test "${enable_sync_input+set}" = set; then
2142 enableval=$enable_sync_input; USE_SYNC_INPUT=$enableval
2148 # Check whether --enable-asserts was given.
2149 if test "${enable_asserts+set}" = set; then
2150 enableval=$enable_asserts; USE_XASSERTS=$enableval
2156 # Check whether --enable-maintainer-mode was given.
2157 if test "${enable_maintainer_mode+set}" = set; then
2158 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2160 USE_MAINTAINER_MODE=no
2163 if test $USE_MAINTAINER_MODE = yes; then
2170 # Check whether --enable-locallisppath was given.
2171 if test "${enable_locallisppath+set}" = set; then
2172 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2174 elif test "${enableval}" != "yes"; then
2175 locallisppath=${enableval}
2180 #### Make srcdir absolute, if it isn't already. It's important to
2181 #### avoid running the path through pwd unnecessarily, since pwd can
2182 #### give you automounter prefixes, which can go away. We do all this
2183 #### so Emacs can find its files when run uninstalled.
2184 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2189 ## We may be able to use the $PWD environment variable to make this
2190 ## absolute. But sometimes PWD is inaccurate.
2191 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2192 ## but that tested only for a well-formed and valid PWD,
2193 ## it did not object when PWD was well-formed and valid but just wrong.
2194 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
2198 srcdir="`(cd ${srcdir}; pwd)`"
2201 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2204 #### Check if the source directory already has a configured system in it.
2205 if test `pwd` != `(cd ${srcdir} && pwd)` \
2206 && test -f "${srcdir}/src/config.h" ; then
2207 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2208 as a build directory right now; it has been configured in its own
2209 right. To configure in another directory as well, you MUST
2210 use GNU make. If you do not have GNU make, then you must
2211 now do \`make distclean' in ${srcdir},
2212 and
then run
$0 again.
" >&5
2213 echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
2214 as a build directory right now; it has been configured in its own
2215 right. To configure in another directory as well, you MUST
2216 use GNU make. If you do not have GNU make, then you must
2217 now do \`make distclean
' in ${srcdir},
2218 and then run $0 again." >&2;}
2221 #### Given the configuration name, set machfile and opsysfile to the
2222 #### names of the m/*.h and s/*.h files we should use.
2224 ### Canonicalize the configuration name.
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228 if test -f "$ac_dir/install-sh"; then
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2232 elif test -f "$ac_dir/install.sh"; then
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2236 elif test -f "$ac_dir/shtool"; then
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2242 if test -z "$ac_aux_dir"; then
2243 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2244 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2245 { (exit 1); exit 1; }; }
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's
source tree is
in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2257 # Make sure we can run config.sub.
2258 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2259 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2260 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2261 { (exit 1); exit 1; }; }
2263 { echo "$as_me:$LINENO: checking build system type" >&5
2264 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2265 if test "${ac_cv_build+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 ac_build_alias
=$build_alias
2269 test "x$ac_build_alias" = x
&&
2270 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2271 test "x$ac_build_alias" = x
&&
2272 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2273 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2274 { (exit 1); exit 1; }; }
2275 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2276 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2277 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2278 { (exit 1); exit 1; }; }
2281 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2282 echo "${ECHO_T}$ac_cv_build" >&6; }
2283 case $ac_cv_build in
2285 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2286 echo "$as_me: error: invalid value of canonical build" >&2;}
2287 { (exit 1); exit 1; }; };;
2290 ac_save_IFS
=$IFS; IFS
='-'
2296 # Remember, the first character of IFS is used to create $*,
2297 # except with old shells:
2300 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2303 { echo "$as_me:$LINENO: checking host system type" >&5
2304 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2305 if test "${ac_cv_host+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test "x$host_alias" = x
; then
2309 ac_cv_host
=$ac_cv_build
2311 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2312 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2313 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2314 { (exit 1); exit 1; }; }
2318 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2319 echo "${ECHO_T}$ac_cv_host" >&6; }
2322 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2323 echo "$as_me: error: invalid value of canonical host" >&2;}
2324 { (exit 1); exit 1; }; };;
2327 ac_save_IFS
=$IFS; IFS
='-'
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2337 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2341 configuration
=${host_alias-${build_alias-$host}}
2345 ### If you add support for a new configuration, add code to this
2346 ### switch statement to recognize your configuration name and select
2347 ### the appropriate operating system and machine description files.
2349 ### You would hope that you could choose an m/*.h file pretty much
2350 ### based on the machine portion of the configuration name, and an s-
2351 ### file based on the operating system portion. However, it turns out
2352 ### that each m/*.h file is pretty manufacturer-specific - for
2353 ### example hp9000s300.h is a 68000 machine;
2354 ### mips.h, pmax.h are all MIPS
2355 ### machines. So we basically have to have a special case for each
2356 ### configuration name.
2358 ### As far as handling version numbers on operating systems is
2359 ### concerned, make sure things will fail in a fixable way. If
2360 ### /etc/MACHINES doesn't say anything about version numbers, be
2361 ### prepared to handle anything reasonably. If version numbers
2362 ### matter, be sure /etc/MACHINES says something about it.
2364 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2365 ### "System V Release 4"; he writes, "The old convention encouraged
2366 ### confusion between `system' and `release' levels'."
2368 machine
='' opsys
='' unported
=no
2369 case "${canonical}" in
2374 case "${canonical}" in
2375 alpha
*-*-freebsd*) machine
=alpha
;;
2376 arm
*-*-freebsd*) machine
=arm
;;
2377 ia64-
*-freebsd*) machine
=ia64
;;
2378 sparc64-
*-freebsd*) machine
=sparc
;;
2379 powerpc-
*-freebsd*) machine
=macppc
;;
2380 i
[3456]86-*-freebsd*) machine
=intel386
;;
2381 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2385 ## FreeBSD kernel + glibc based userland
2388 case "${canonical}" in
2389 alpha
*-*-kfreebsd*) machine
=alpha
;;
2390 ia64-
*-kfreebsd*) machine
=ia64
;;
2391 sparc64-
*-kfreebsd*) machine
=sparc
;;
2392 powerpc-
*-kfreebsd*) machine
=macppc
;;
2393 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2394 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2401 if test -f /usr
/lib
/crti.o
; then
2403 cat >>confdefs.h
<<\_ACEOF
2409 case "${canonical}" in
2410 alpha
*-*-netbsd*) machine
=alpha
;;
2411 i
[3456]86-*-netbsd*) machine
=intel386
;;
2413 # This is somewhat bogus.
2414 machine
=hp9000s300
;;
2415 mips-
*-netbsd*) machine
=pmax
;;
2416 mipsel-
*-netbsd*) machine
=pmax
;;
2417 mipseb-
*-netbsd*) machine
=pmax
;;
2418 powerpc-
*-netbsd*) machine
=macppc
;;
2419 sparc
*-*-netbsd*) machine
=sparc
;;
2420 vax-
*-netbsd*) machine
=vax
;;
2421 arm-
*-netbsd*) machine
=arm
;;
2422 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2423 hppa-
*-netbsd*) machine
=hp800
;;
2430 case "${canonical}" in
2431 alpha
*-*-openbsd*) machine
=alpha
;;
2432 arm-
*-openbsd*) machine
=arm
;;
2433 hppa-
*-openbsd*) machine
=hp9000s300
;;
2434 i386-
*-openbsd*) machine
=intel386
;;
2435 m68k-
*-openbsd*) machine
=hp9000s300
;;
2436 powerpc-
*-openbsd*) machine
=macppc
;;
2437 sparc
*-*-openbsd*) machine
=sparc
;;
2438 vax-
*-openbsd*) machine
=vax
;;
2439 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2446 case "${canonical}" in
2447 i
[3456]86-*-lynxos*) machine
=intel386
;;
2448 powerpc-
*-lynxos*) machine
=powerpc
;;
2455 case "${canonical}" in
2456 i
[345]86-*-bsdi*) machine
=intel386
;;
2457 sparc-
*-bsdi*) machine
=sparc
;;
2458 powerpc-
*-bsdi*) machine
=macppc
;;
2460 case "${canonical}" in
2461 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2462 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2463 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2464 *-*-bsdi3* ) opsys
=bsdos3
;;
2465 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2469 alpha
*-*-linux-gnu* )
2470 machine
=alpha opsys
=gnu-linux
2474 machine
=arm opsys
=gnu-linux
2477 ## Apple Darwin / Mac OS X
2479 case "${canonical}" in
2480 i
[3456]86-* ) machine
=intel386
;;
2481 powerpc-
* ) machine
=powermac
;;
2485 # Define CPP as follows to make autoconf work correctly.
2486 CPP
="${CC-cc} -E -no-cpp-precomp"
2487 # Use fink packages if available.
2488 if test -d /sw
/include
&& test -d /sw
/lib
; then
2489 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2490 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2491 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2496 i
[3456]86-cubix-sysv* )
2497 machine
=intel386 opsys
=usg5-3
2500 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2501 machine
=pmax opsys
=bsd4-2
2503 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2504 machine
=pmax opsys
=bsd4-3
2507 machine
=pmax opsys
=ultrix4-3
2509 ## HP 9000 series 200 or 300
2511 machine
=hp9000s300 opsys
=bsd4-3
2513 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2515 case "`uname -r`" in
2516 ## Someone's system reports A.B8.05 for this.
2517 ## I wonder what other possibilities there are.
2518 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2519 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2520 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2521 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2522 *) machine
=hp9000s300 opsys
=hpux
;;
2526 ## HP 9000 series 700 and 800, running HP/UX
2528 machine
=hp800 opsys
=hpux
2531 machine
=hp800 opsys
=hpux8
2533 hppa
*-hp-hpux9shr* )
2534 machine
=hp800 opsys
=hpux9shr
2537 machine
=hp800 opsys
=hpux9
2539 hppa
*-hp-hpux10.2
* )
2540 machine
=hp800 opsys
=hpux10-20
2543 machine
=hp800 opsys
=hpux10
2545 hppa
*-hp-hpux1[1-9]* )
2546 machine
=hp800 opsys
=hpux11
2547 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2550 hppa
*-*-linux-gnu* )
2551 machine
=hp800 opsys
=gnu-linux
2554 ## HP 9000 series 700 and 800, running HP/UX
2556 ## Cross-compilation? Nah!
2557 case "`uname -r`" in
2558 ## Someone's system reports A.B8.05 for this.
2559 ## I wonder what other possibilities there are.
2560 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2561 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2562 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2563 *) machine
=hp800 opsys
=hpux10
;;
2567 machine
=hp800 opsys
=nextstep
2572 machine
=ibm370aix opsys
=usg5-3
2575 machine
=ibms390 opsys
=gnu-linux
2577 s390x-
*-linux-gnu* )
2578 machine
=ibms390x opsys
=gnu-linux
2580 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2581 machine
=ibmrs6000 opsys
=aix3-1
2583 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2584 machine
=ibmrs6000 opsys
=aix3-2-5
2586 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2587 machine
=ibmrs6000 opsys
=aix4-1
2589 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2590 machine
=ibmrs6000 opsys
=aix4-2
2592 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2593 machine
=ibmrs6000 opsys
=aix4-2
2595 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2596 machine
=ibmrs6000 opsys
=aix4-2
2598 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2599 machine
=ibmrs6000 opsys
=aix4-2
2601 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2602 machine
=ibmrs6000 opsys
=aix4
2604 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2605 machine
=ibmrs6000 opsys
=aix4-1
2607 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2608 machine
=ibmrs6000 opsys
=aix3-2
2612 i
[3456]86-prime-sysv* )
2613 machine
=i386 opsys
=usg5-3
2616 ## ncr machine running svr4.3.
2617 i
[3456]86-ncr-sysv4.3
)
2618 machine
=ncr386 opsys
=usg5-4-3
2621 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2622 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2623 i
[3456]86-ncr-sysv* )
2624 machine
=ncr386 opsys
=usg5-4-2
2627 ## Macintosh PowerPC
2628 powerpc
*-*-linux-gnu* )
2629 machine
=macppc opsys
=gnu-linux
2632 ## Workstations sold by MIPS
2633 ## This is not necessarily all workstations using the MIPS processor -
2634 ## Irises are produced by SGI, and DECstations by DEC.
2637 machine
=mips opsys
=bsd4-3
2640 machine
=mips opsys
=usg5-2-2
2644 m68
*-next-* | m68k-
*-nextstep* )
2645 machine
=m68k opsys
=nextstep
2650 machine
=ews4800 opsys
=ux4800
2654 mips-siemens-sysv
* | mips-sni-sysv
*)
2655 machine
=mips-siemens opsys
=usg5-4
2656 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2657 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2660 ## Silicon Graphics machines
2663 machine
=iris4d opsys
=irix6-5
2664 # Without defining _LANGUAGE_C, things get masked out in the headers
2665 # so that, for instance, grepping for `free' in stdlib.h fails and
2666 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2667 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2668 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2672 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2673 machine
=sparc opsys
=gnu-linux
2676 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2677 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2678 | rs6000-
*-solaris2*)
2679 case "${canonical}" in
2680 i
[3456]86-*-* ) machine
=intel386
;;
2681 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2682 powerpcle
* ) machine
=powerpcle
;;
2683 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2684 sparc
* ) machine
=sparc
;;
2687 case "${canonical}" in
2688 *-sunos5.3
* |
*-solaris2.3
* )
2690 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2692 *-sunos5.4
* |
*-solaris2.4
* )
2694 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2697 *-sunos5.5
* |
*-solaris2.5
* )
2699 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2702 *-sunos5.6
* |
*-solaris2.6
* )
2704 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2707 *-sunos5* |
*-solaris* )
2709 emacs_check_sunpro_c
=yes
2710 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2714 ## Watch out for a compiler that we know will not work.
2715 case "${canonical}" in
2716 *-solaris* |
*-sunos5* )
2717 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2718 ## /usr/ucb/cc doesn't work;
2719 ## we should find some other compiler that does work.
2727 machine
=sparc opsys
=nextstep
2730 ## Tandem Integrity S2
2732 machine
=tandem-s2 opsys
=usg5-3
2738 case "${canonical}" in
2739 *-bsd4.1
* ) opsys
=bsd4-1
;;
2740 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2741 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2742 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2743 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2744 *-vms* ) opsys
=vms
;;
2751 machine
=ia64 opsys
=gnu-linux
2754 ## Intel 386 machines where we don't care about the manufacturer
2757 case "${canonical}" in
2758 *-cygwin ) opsys
=cygwin
;;
2759 *-darwin* ) opsys
=darwin
2760 CPP
="${CC-cc} -E -no-cpp-precomp"
2762 *-linux-gnu* ) opsys
=gnu-linux
;;
2763 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2764 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2765 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2766 *-386bsd* ) opsys
=386bsd
;;
2767 *-nextstep* ) opsys
=nextstep
;;
2768 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2772 ## m68k Linux-based GNU system
2774 machine
=m68k opsys
=gnu-linux
2777 ## Mips Linux-based GNU system
2778 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2779 machine
=mips opsys
=gnu-linux
2783 sparc-fujitsu-sysv4
* )
2784 machine
=sparc opsys
=uxpds
2785 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2789 ## AMD x86-64 Linux-based GNU system
2790 x86_64-
*-linux-gnu* )
2791 machine
=amdx86-64 opsys
=gnu-linux
2794 ## Tensilica Xtensa Linux-based GNU system
2795 xtensa
*-*-linux-gnu* )
2796 machine
=xtensa opsys
=gnu-linux
2804 ### If the code above didn't choose an operating system, just choose
2805 ### an operating system based on the configuration name. You really
2806 ### only want to use this when you have no idea what the right
2807 ### operating system is; if you know what operating systems a machine
2808 ### runs, it's cleaner to make it explicit in the case statement
2810 if test x
"${opsys}" = x
; then
2811 case "${canonical}" in
2812 *-gnu* ) opsys
=gnu
;;
2813 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2814 *-bsd4.2
) opsys
=bsd4-2
;;
2815 *-bsd4.3
) opsys
=bsd4-3
;;
2816 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2817 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2818 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2819 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2820 *-sysv4.2uw
* ) opsys
=unixware
;;
2821 *-sysv5uw* ) opsys
=unixware
;;
2822 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2823 *-sysv4.1
* |
*-sysvr4.1
* )
2824 NON_GNU_CPP
=/usr
/lib
/cpp
2826 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2827 if [ x
$NON_GNU_CPP = x
]; then
2828 if [ -f /usr
/ccs
/lib
/cpp
]; then
2829 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2831 NON_GNU_CPP
=/lib
/cpp
2835 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2842 ### Tests for sytems that we beleive are obsolete and should be desupported.
2844 case "${machine}" in
2845 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2846 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2847 echo "and it is planned to be desupported in the next version of Emacs"
2848 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2849 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2850 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2856 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
)
2857 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2858 echo "and it is planned to be desupported in the next version of Emacs"
2859 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2860 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2861 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2868 if test $unported = yes; then
2869 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2870 Check \`etc/MACHINES' for recognized configuration names." >&5
2871 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2872 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2873 { (exit 1); exit 1; }; }
2876 machfile
="m/${machine}.h"
2877 opsysfile
="s/${opsys}.h"
2880 #### Choose a compiler.
2881 test -n "$CC" && cc_specified
=yes
2883 # Save the value of CFLAGS that the user specified.
2884 SPECIFIED_CFLAGS
="$CFLAGS"
2887 ac_cpp
='$CPP $CPPFLAGS'
2888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC
="$CC" # Let the user override the test.
2902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir
=.
2907 for ac_exec_ext
in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CC"; then
2921 { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2930 if test -z "$ac_cv_prog_CC"; then
2932 # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc
; ac_word
=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir
=.
2947 for ac_exec_ext
in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_ac_ct_CC
="gcc"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2968 if test "x$ac_ct_CC" = x
; then
2971 case $cross_compiling:$ac_tool_warned in
2973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2974 whose name does not start with the host triplet. If you think this
2975 configuration is useful to you, please write to autoconf@gnu.org." >&5
2976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2977 whose name does not start with the host triplet. If you think this
2978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2979 ac_tool_warned
=yes ;;
2987 if test -z "$CC"; then
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2990 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC
="$CC" # Let the user override the test.
2999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir
=.
3004 for ac_exec_ext
in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 if test -n "$CC"; then
3018 { echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6; }
3021 { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3028 if test -z "$CC"; then
3029 # Extract the first word of "cc", so it can be a program name with args.
3030 set dummy cc
; ac_word
=$2
3031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC
="$CC" # Let the user override the test.
3040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir
=.
3045 for ac_exec_ext
in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048 ac_prog_rejected
=yes
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test $ac_prog_rejected = yes; then
3060 # We found a bogon in the path, so make sure we never use it.
3061 set dummy
$ac_cv_prog_CC
3063 if test $# != 0; then
3064 # We chose a different compiler from the bogus one.
3065 # However, it has the same basename, so the bogon will be chosen
3066 # first if we set CC to just the basename; use the full file name.
3068 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3074 if test -n "$CC"; then
3075 { echo "$as_me:$LINENO: result: $CC" >&5
3076 echo "${ECHO_T}$CC" >&6; }
3078 { echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6; }
3084 if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog
in cl.exe
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC
="$CC" # Let the user override the test.
3098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir
=.
3103 for ac_exec_ext
in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test -n "$CC"; then
3117 { echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6; }
3120 { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3125 test -n "$CC" && break
3128 if test -z "$CC"; then
3130 for ac_prog
in cl.exe
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy
$ac_prog; ac_word
=$2
3134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir
=.
3147 for ac_exec_ext
in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_CC
="$ac_prog"
3150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3162 echo "${ECHO_T}$ac_ct_CC" >&6; }
3164 { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3169 test -n "$ac_ct_CC" && break
3172 if test "x$ac_ct_CC" = x
; then
3175 case $cross_compiling:$ac_tool_warned in
3177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3178 whose name does not start with the host triplet. If you think this
3179 configuration is useful to you, please write to autoconf@gnu.org." >&5
3180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3181 whose name does not start with the host triplet. If you think this
3182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3183 ac_tool_warned
=yes ;;
3192 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3193 See \`config.log' for more details." >&5
3194 echo "$as_me: error: no acceptable C compiler found in \$PATH
3195 See \`config.log' for more details." >&2;}
3196 { (exit 1); exit 1; }; }
3198 # Provide some information about the compiler.
3199 echo "$as_me:$LINENO: checking for C compiler version" >&5
3200 ac_compiler
=`set X $ac_compile; echo $2`
3201 { (ac_try
="$ac_compiler --version >&5"
3203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler --version >&5") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (ac_try="$ac_compiler -v >&5"
3213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3214 *) ac_try_echo
=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compiler -v >&5") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221 { (ac_try
="$ac_compiler -V >&5"
3223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler -V >&5") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 ac_clean_files_save=$ac_clean_files
3248 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3249 # Try to create an executable without -o first, disregard a.out.
3250 # It will help us diagnose broken compilers, and finding out an intuition
3252 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3253 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3254 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3256 # List of possible output files, starting from the most likely.
3257 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3258 # only as a last resort. b.out is created by i960 compilers.
3259 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3261 # The IRIX 6 linker writes into existing files which may not be
3262 # executable, retaining their permissions. Remove them first so a
3263 # subsequent execution test works.
3265 for ac_file in $ac_files
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3274 if { (ac_try="$ac_link_default"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_link_default") 2>&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; then
3284 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3287 # so that the user can short-circuit this test for compilers unknown to
3289 for ac_file
in $ac_files ''
3291 test -f "$ac_file" ||
continue
3293 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3296 # We found the default executable, but exeext='' is most
3300 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3302 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304 # We set ac_cv_exeext here because the later test for it is not
3305 # safe: cross compilers may not add the suffix if given an `-o'
3306 # argument, so we may need to know it at that point already.
3307 # Even if this section looks crufty: it has the advantage of
3314 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3320 { echo "$as_me:$LINENO: result: $ac_file" >&5
3321 echo "${ECHO_T}$ac_file" >&6; }
3322 if test -z "$ac_file"; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.
$ac_ext >&5
3326 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3327 See \`config.log' for more details." >&5
3328 echo "$as_me: error: C compiler cannot create executables
3329 See \`config.log' for more details." >&2;}
3330 { (exit 77); exit 77; }; }
3333 ac_exeext
=$ac_cv_exeext
3335 # Check that the compiler produces executables we can run. If not, either
3336 # the compiler is broken, or we cross compile.
3337 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3338 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3339 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3340 # If not cross compiling, check that we can run a simple program.
3341 if test "$cross_compiling" != yes; then
3342 if { ac_try
='./$ac_file'
3343 { (case "(($ac_try" in
3344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 if test "$cross_compiling" = maybe; then
3357 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details.
" >&5
3360 echo "$as_me: error
: cannot run C compiled programs.
3361 If you meant to cross compile
, use \
`--host'.
3362 See \`config.log
' for more details." >&2;}
3363 { (exit 1); exit 1; }; }
3367 { echo "$as_me:$LINENO: result: yes" >&5
3368 echo "${ECHO_T}yes" >&6; }
3370 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 # Check that the compiler produces executables we can run. If not, either
3373 # the compiler is broken, or we cross compile.
3374 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3375 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3376 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3377 echo "${ECHO_T}$cross_compiling" >&6; }
3379 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3380 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3381 if { (ac_try="$ac_link"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_link") 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; then
3391 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3395 for ac_file
in conftest.exe conftest conftest.
*; do
3396 test -f "$ac_file" ||
continue
3398 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3399 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }
3412 rm -f conftest
$ac_cv_exeext
3413 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3414 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3416 rm -f conftest.
$ac_ext
3417 EXEEXT
=$ac_cv_exeext
3419 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3420 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3421 if test "${ac_cv_objext+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 cat >conftest.
$ac_ext <<_ACEOF
3427 cat confdefs.h
>>conftest.
$ac_ext
3428 cat >>conftest.
$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3439 rm -f conftest.o conftest.obj
3440 if { (ac_try
="$ac_compile"
3442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_compile") 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; then
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3463 See \`config.log
' for more details." >&5
3464 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details.
" >&2;}
3466 { (exit 1); exit 1; }; }
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3472 echo "${ECHO_T}$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3475 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3476 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3477 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3478 echo $ECHO_N "(cached
) $ECHO_C" >&6
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3498 rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3517 echo "$as_me: failed program was
:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3528 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3529 GCC=`test $ac_compiler_gnu = yes && echo yes`
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3533 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_g+set}" = set; then
3535 echo $ECHO_N "(cached
) $ECHO_C" >&6
3537 ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3575 echo "$as_me: failed program was
:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3613 echo "$as_me: failed program was
:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_c_werror_flag=$ac_save_c_werror_flag
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3652 echo "$as_me: failed program was
:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_c_werror_flag=$ac_save_c_werror_flag
3667 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3668 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3669 if test "$ac_test_CFLAGS" = set; then
3670 CFLAGS=$ac_save_CFLAGS
3671 elif test $ac_cv_prog_cc_g = yes; then
3672 if test "$GCC" = yes; then
3678 if test "$GCC" = yes; then
3684 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3685 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3686 if test "${ac_cv_prog_cc_c89+set}" = set; then
3687 echo $ECHO_N "(cached
) $ECHO_C" >&6
3689 ac_cv_prog_cc_c89=no
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3715 s = g (p, va_arg (v,int));
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3721 function prototypes and stuff, but not '\xHH' hex character constants.
3722 These don't provoke an error unfortunately, instead are silently treated
3723 as 'x'. The following induces an error, until -std is added to get
3724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3725 array size at least. It's necessary to write '\x00'==0 to get something
3726 that's true only with -std. */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730 inside strings and character constants. */
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 CC="$ac_save_CC $ac_arg"
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3769 ac_cv_prog_cc_c89=$ac_arg
3771 echo "$as_me: failed program was
:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3777 rm -f core conftest.err conftest.$ac_objext
3778 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3780 rm -f conftest.$ac_ext
3785 case "x
$ac_cv_prog_cc_c89" in
3787 { echo "$as_me:$LINENO: result
: none needed
" >&5
3788 echo "${ECHO_T}none needed
" >&6; } ;;
3790 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3791 echo "${ECHO_T}unsupported
" >&6; } ;;
3793 CC="$CC $ac_cv_prog_cc_c89"
3794 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3795 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 # On Suns, sometimes $CPP names a directory.
3807 if test -n "$CPP" && test -d "$CPP"; then
3811 ## If not using gcc, and on Solaris, and no CPP specified, see if
3812 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3813 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3814 test x"$CPP" = x; then
3815 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3816 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3818 if test "${emacs_cv_sunpro_c+set}" = set; then
3819 echo $ECHO_N "(cached
) $ECHO_C" >&6
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3839 rm -f conftest.$ac_objext conftest$ac_exeext
3840 if { (ac_try="$ac_link"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_link") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3852 (exit $ac_status); } && {
3853 test -z "$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3855 } && test -s conftest$ac_exeext &&
3856 $as_test_x conftest$ac_exeext; then
3857 emacs_cv_sunpro_c=yes
3859 echo "$as_me: failed program was
:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 emacs_cv_sunpro_c=no
3865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3866 conftest$ac_exeext conftest.$ac_ext
3869 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3870 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3872 if test x"$emacs_cv_sunpro_c" = xyes; then
3873 NON_GNU_CPP="$CC -E -Xs"
3877 #### Some systems specify a CPP to use unless we are using GCC.
3878 #### Now that we know whether we are using GCC, we can decide whether
3879 #### to use that one.
3880 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3885 #### Some systems specify a CC to use unless we are using GCC.
3886 #### Now that we know whether we are using GCC, we can decide whether
3887 #### to use that one.
3888 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3889 test x$cc_specified != xyes
3894 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3896 CC="$CC $GCC_TEST_OPTIONS"
3899 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3901 CC="$CC $NON_GCC_TEST_OPTIONS"
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3910 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3911 # On Suns, sometimes $CPP names a directory.
3912 if test -n "$CPP" && test -d "$CPP"; then
3915 if test -z "$CPP"; then
3916 if test "${ac_cv_prog_CPP+set}" = set; then
3917 echo $ECHO_N "(cached
) $ECHO_C" >&6
3919 # Double quotes because CPP needs to be expanded
3920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3923 for ac_c_preproc_warn_flag in '' yes
3925 # Use a header file that comes with gcc, so configuring glibc
3926 # with a fresh cross-compiler works.
3927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3928 # <limits.h> exists even on freestanding compilers.
3929 # On the NeXT, cc -E runs the code through the compiler's parser,
3930 # not just through cpp. "Syntax error
" is here to catch this case.
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3938 # include <limits.h>
3940 # include <assert.h>
3944 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3952 grep -v '^ *+' conftest.er1 >conftest.err
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3956 (exit $ac_status); } >/dev/null && {
3957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3962 echo "$as_me: failed program was
:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 # Broken: fails on valid input.
3969 rm -f conftest.err conftest.$ac_ext
3971 # OK, works on sane cases. Now check whether nonexistent headers
3972 # can be detected and how.
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 #include <ac_nonexistent.h>
3981 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3993 (exit $ac_status); } >/dev/null && {
3994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3997 # Broken: success on invalid input.
4000 echo "$as_me: failed program was
:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 # Passes both tests.
4008 rm -f conftest.err conftest.$ac_ext
4011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012 rm -f conftest.err conftest.$ac_ext
4013 if $ac_preproc_ok; then
4025 { echo "$as_me:$LINENO: result
: $CPP" >&5
4026 echo "${ECHO_T}$CPP" >&6; }
4028 for ac_c_preproc_warn_flag in '' yes
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error
" is here to catch this case.
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4043 # include <limits.h>
4045 # include <assert.h>
4049 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4061 (exit $ac_status); } >/dev/null && {
4062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4067 echo "$as_me: failed program was
:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Broken: fails on valid input.
4074 rm -f conftest.err conftest.$ac_ext
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #include <ac_nonexistent.h>
4086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4098 (exit $ac_status); } >/dev/null && {
4099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4102 # Broken: success on invalid input.
4105 echo "$as_me: failed program was
:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Passes both tests.
4113 rm -f conftest.err conftest.$ac_ext
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4121 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4122 See \
`config.log' for more details." >&5
4123 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4124 See \`config.log
' for more details." >&2;}
4125 { (exit 1); exit 1; }; }
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4131 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4136 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4137 if test "${ac_cv_path_GREP+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 # Extract the first word of "grep ggrep" to use in msg output
4141 if test -z "$GREP"; then
4142 set dummy grep ggrep; ac_prog_name=$2
4143 if test "${ac_cv_path_GREP+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 ac_path_GREP_found=false
4147 # Loop through the user's path and
test for each of PROGNAME-LIST
4148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4149 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4152 test -z "$as_dir" && as_dir
=.
4153 for ac_prog
in grep ggrep
; do
4154 for ac_exec_ext
in '' $ac_executable_extensions; do
4155 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4156 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4157 # Check for GNU ac_path_GREP and select it if it is found.
4158 # Check for GNU $ac_path_GREP
4159 case `"$ac_path_GREP" --version 2>&1` in
4161 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4164 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
4170 echo 'GREP' >> "conftest.nl"
4171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4172 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4173 ac_count
=`expr $ac_count + 1`
4174 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_GREP
="$ac_path_GREP"
4177 ac_path_GREP_max
=$ac_count
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4182 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4186 $ac_path_GREP_found && break 3
4196 GREP
="$ac_cv_path_GREP"
4197 if test -z "$GREP"; then
4198 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4199 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4200 { (exit 1); exit 1; }; }
4204 ac_cv_path_GREP
=$GREP
4209 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4210 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4211 GREP
="$ac_cv_path_GREP"
4214 { echo "$as_me:$LINENO: checking for egrep" >&5
4215 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4216 if test "${ac_cv_path_EGREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4220 then ac_cv_path_EGREP
="$GREP -E"
4222 # Extract the first word of "egrep" to use in msg output
4223 if test -z "$EGREP"; then
4224 set dummy
egrep; ac_prog_name
=$2
4225 if test "${ac_cv_path_EGREP+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 ac_path_EGREP_found
=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4231 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4234 test -z "$as_dir" && as_dir
=.
4235 for ac_prog
in egrep; do
4236 for ac_exec_ext
in '' $ac_executable_extensions; do
4237 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4238 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4239 # Check for GNU ac_path_EGREP and select it if it is found.
4240 # Check for GNU $ac_path_EGREP
4241 case `"$ac_path_EGREP" --version 2>&1` in
4243 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4246 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 echo 'EGREP' >> "conftest.nl"
4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4254 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4255 ac_count
=`expr $ac_count + 1`
4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_EGREP
="$ac_path_EGREP"
4259 ac_path_EGREP_max
=$ac_count
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4264 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4268 $ac_path_EGREP_found && break 3
4278 EGREP
="$ac_cv_path_EGREP"
4279 if test -z "$EGREP"; then
4280 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4286 ac_cv_path_EGREP
=$EGREP
4292 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4293 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4294 EGREP
="$ac_cv_path_EGREP"
4298 { echo "$as_me:$LINENO: checking for AIX" >&5
4299 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4300 cat >conftest.
$ac_ext <<_ACEOF
4303 cat confdefs.h
>>conftest.
$ac_ext
4304 cat >>conftest.
$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312 $EGREP "yes" >/dev
/null
2>&1; then
4313 { echo "$as_me:$LINENO: result: yes" >&5
4314 echo "${ECHO_T}yes" >&6; }
4315 cat >>confdefs.h
<<\_ACEOF
4316 #define _ALL_SOURCE 1
4320 { echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6; }
4327 cat >>confdefs.h
<<\_ACEOF
4328 #define _GNU_SOURCE 1
4333 ### Use -Wno-pointer-sign if the compiler supports it
4334 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4335 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4336 SAVE_CFLAGS
="$CFLAGS"
4337 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4338 cat >conftest.
$ac_ext <<_ACEOF
4341 cat confdefs.h
>>conftest.
$ac_ext
4342 cat >>conftest.
$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4353 rm -f conftest.
$ac_objext
4354 if { (ac_try
="$ac_compile"
4356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 if test $has_option = yes; then
4380 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4382 { echo "$as_me:$LINENO: result: $has_option" >&5
4383 echo "${ECHO_T}$has_option" >&6; }
4384 CFLAGS="$SAVE_CFLAGS"
4388 #### Some other nice autoconf tests.
4390 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4391 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4393 if test "$LN_S" = "ln -s"; then
4394 { echo "$as_me:$LINENO: result: yes" >&5
4395 echo "${ECHO_T}yes" >&6; }
4397 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4398 echo "${ECHO_T}no, using $LN_S" >&6; }
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4408 # On Suns, sometimes $CPP names a directory.
4409 if test -n "$CPP" && test -d "$CPP"; then
4412 if test -z "$CPP"; then
4413 if test "${ac_cv_prog_CPP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 # Double quotes because CPP needs to be expanded
4417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4420 for ac_c_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4435 # include <limits.h>
4437 # include <assert.h>
4441 if { (ac_try="$ac_cpp conftest.$ac_ext"
4443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4444 *) ac_try_echo
=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4449 grep -v '^ *+' conftest.er1
>conftest.err
4451 cat conftest.err
>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } >/dev
/null
&& {
4454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.
$ac_ext >&5
4462 # Broken: fails on valid input.
4466 rm -f conftest.err conftest.
$ac_ext
4468 # OK, works on sane cases. Now check whether nonexistent headers
4469 # can be detected and how.
4470 cat >conftest.
$ac_ext <<_ACEOF
4473 cat confdefs.h
>>conftest.
$ac_ext
4474 cat >>conftest.
$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <ac_nonexistent.h>
4478 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null && {
4491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4494 # Broken: success on invalid input.
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 # Passes both tests.
4505 rm -f conftest.err conftest.$ac_ext
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.err conftest.
$ac_ext
4510 if $ac_preproc_ok; then
4522 { echo "$as_me:$LINENO: result: $CPP" >&5
4523 echo "${ECHO_T}$CPP" >&6; }
4525 for ac_c_preproc_warn_flag
in '' yes
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat >conftest.
$ac_ext <<_ACEOF
4536 cat confdefs.h
>>conftest.
$ac_ext
4537 cat >>conftest.
$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 # include <limits.h>
4542 # include <assert.h>
4546 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null && {
4559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 # Broken: fails on valid input.
4571 rm -f conftest.err conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <ac_nonexistent.h>
4583 if { (ac_try="$ac_cpp conftest.$ac_ext"
4585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4586 *) ac_try_echo
=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591 grep -v '^ *+' conftest.er1
>conftest.err
4593 cat conftest.err
>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev
/null
&& {
4596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4599 # Broken: success on invalid input.
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.
$ac_ext >&5
4605 # Passes both tests.
4610 rm -f conftest.err conftest.
$ac_ext
4613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4614 rm -f conftest.err conftest.
$ac_ext
4615 if $ac_preproc_ok; then
4618 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4619 See \`config.log' for more details." >&5
4620 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4621 See \`config.log' for more details." >&2;}
4622 { (exit 1); exit 1; }; }
4626 ac_cpp
='$CPP $CPPFLAGS'
4627 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4631 # Find a good install program. We prefer a C program (faster),
4632 # so one script is as good as another. But avoid the broken or
4633 # incompatible versions:
4634 # SysV /etc/install, /usr/sbin/install
4635 # SunOS /usr/etc/install
4636 # IRIX /sbin/install
4638 # AmigaOS /C/install, which installs bootblocks on floppy discs
4639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4642 # OS/2's system install, which has a completely different semantic
4643 # ./install, which can be erroneously created by make from ./install.sh.
4644 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4645 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4646 if test -z "$INSTALL"; then
4647 if test "${ac_cv_path_install+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir
=.
4655 # Account for people who put trailing slashes in PATH elements.
4657 .
/ | .
// |
/cC
/* | \
4658 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4659 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4662 # OSF1 and SCO ODT 3.0 have their own names for install.
4663 # Don't use installbsd from OSF since it installs stuff as root
4665 for ac_prog
in ginstall scoinst
install; do
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4668 if test $ac_prog = install &&
4669 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4670 # AIX install. It has an incompatible calling convention.
4672 elif test $ac_prog = install &&
4673 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4674 # program-specific install script used by HP pwplus--don't use.
4677 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4690 if test "${ac_cv_path_install+set}" = set; then
4691 INSTALL
=$ac_cv_path_install
4693 # As a last resort, use the slow shell script. Don't cache a
4694 # value for INSTALL within a source directory, because that will
4695 # break other packages using the cache if that directory is
4696 # removed, or if the value is a relative name.
4697 INSTALL
=$ac_install_sh
4700 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4701 echo "${ECHO_T}$INSTALL" >&6; }
4703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4704 # It thinks the first close brace ends the variable substitution.
4705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4709 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4711 if test "x$RANLIB" = x
; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_RANLIB+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir
=.
4728 for ac_exec_ext
in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 RANLIB
=$ac_cv_prog_RANLIB
4741 if test -n "$RANLIB"; then
4742 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4743 echo "${ECHO_T}$RANLIB" >&6; }
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4751 if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB
=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754 set dummy ranlib
; ac_word
=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_exec_ext
in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4781 if test -n "$ac_ct_RANLIB"; then
4782 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4783 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4789 if test "x$ac_ct_RANLIB" = x
; then
4792 case $cross_compiling:$ac_tool_warned in
4794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4795 whose name does not start with the host triplet. If you think this
4796 configuration is useful to you, please write to autoconf@gnu.org." >&5
4797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4798 whose name does not start with the host triplet. If you think this
4799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4800 ac_tool_warned
=yes ;;
4802 RANLIB
=$ac_ct_RANLIB
4805 RANLIB
="$ac_cv_prog_RANLIB"
4809 # Extract the first word of "install-info", so it can be a program name with args.
4810 set dummy install-info
; ac_word
=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 case $INSTALL_INFO in
4818 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir
=.
4826 for ac_exec_ext
in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4840 if test -n "$INSTALL_INFO"; then
4841 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4842 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4844 { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4849 # Extract the first word of "install-info", so it can be a program name with args.
4850 set dummy install-info
; ac_word
=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 case $INSTALL_INFO in
4858 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4862 for as_dir
in /usr
/sbin
4865 test -z "$as_dir" && as_dir
=.
4866 for ac_exec_ext
in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4880 if test -n "$INSTALL_INFO"; then
4881 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4882 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 # Extract the first word of "install-info", so it can be a program name with args.
4890 set dummy install-info
; ac_word
=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 case $INSTALL_INFO in
4898 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir
=.
4906 for ac_exec_ext
in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4920 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4921 if test -n "$INSTALL_INFO"; then
4922 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4923 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4925 { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4930 # Extract the first word of "gzip", so it can be a program name with args.
4931 set dummy
gzip; ac_word
=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir
=.
4947 for ac_exec_ext
in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4961 if test -n "$GZIP_PROG"; then
4962 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4963 echo "${ECHO_T}$GZIP_PROG" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4972 ## Need makeinfo >= 4.6 (?) to build the manuals.
4973 # Extract the first word of "makeinfo", so it can be a program name with args.
4974 set dummy makeinfo
; ac_word
=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir
=.
4990 for ac_exec_ext
in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5004 MAKEINFO
=$ac_cv_path_MAKEINFO
5005 if test -n "$MAKEINFO"; then
5006 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5007 echo "${ECHO_T}$MAKEINFO" >&6; }
5009 { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5014 if test "$MAKEINFO" != "no" && \
5015 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
5019 if test "$MAKEINFO" = "no"; then
5020 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5021 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5022 { (exit 1); exit 1; }; }
5027 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5029 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5032 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5034 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5038 late_LDFLAGS
=$LDFLAGS
5039 if test "$GCC" = yes; then
5040 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5042 LDFLAGS
="$LDFLAGS -znocombreloc"
5045 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5046 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5047 cat >conftest.
$ac_ext <<_ACEOF
5050 rm -f conftest.
$ac_objext conftest
$ac_exeext
5051 if { (ac_try
="$ac_link"
5053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest$ac_exeext &&
5067 $as_test_x conftest$ac_exeext; then
5068 { echo "$as_me:$LINENO: result: yes" >&5
5069 echo "${ECHO_T}yes" >&6; }
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 LDFLAGS=$late_LDFLAGS
5075 { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5080 conftest$ac_exeext conftest.$ac_ext
5082 #### Extract some information from the operating system and machine files.
5084 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5085 - which libraries the lib-src programs will want, and
5086 - whether the GNU malloc routines are usable..." >&5
5087 echo "$as_me: checking the machine- and system-dependent files to find out
5088 - which libraries the lib-src programs will want, and
5089 - whether the GNU malloc routines are usable..." >&6;}
5091 ### First figure out CFLAGS (which we use for running the compiler here)
5092 ### and REAL_CFLAGS (which we use for real compilation).
5093 ### The two are the same except on a few systems, where they are made
5094 ### different to work around various lossages. For example,
5095 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5096 ### as implying static linking.
5098 ### If the CFLAGS env var is specified, we use that value
5099 ### instead of the default.
5101 ### It's not important that this name contain the PID; you can't run
5102 ### two configures in the same directory and have anything work
5104 tempcname="conftest.c"
5107 #include "'${srcdir}'/src/'${opsysfile}'"
5108 #include "'${srcdir}'/src/'${machfile}'"
5109 #ifndef LIBS_MACHINE
5110 #define LIBS_MACHINE
5115 #ifndef C_SWITCH_SYSTEM
5116 #define C_SWITCH_SYSTEM
5118 #ifndef C_SWITCH_MACHINE
5119 #define C_SWITCH_MACHINE
5121 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5122 configure___ c_switch_system=C_SWITCH_SYSTEM
5123 configure___ c_switch_machine=C_SWITCH_MACHINE
5126 #define LIB_X11_LIB -lX11
5129 #ifndef LIBX11_SYSTEM
5130 #define LIBX11_SYSTEM
5132 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5135 configure___ unexec=UNEXEC
5137 configure___ unexec=unexec.o
5140 #ifdef SYSTEM_MALLOC
5141 configure___ system_malloc=yes
5143 configure___ system_malloc=no
5146 #ifdef USE_MMAP_FOR_BUFFERS
5147 configure___ use_mmap_for_buffers=yes
5149 configure___ use_mmap_for_buffers=no
5152 #ifndef C_DEBUG_SWITCH
5153 #define C_DEBUG_SWITCH -g
5156 #ifndef C_OPTIMIZE_SWITCH
5158 #define C_OPTIMIZE_SWITCH -O2
5160 #define C_OPTIMIZE_SWITCH -O
5164 #ifndef C_WARNINGS_SWITCH
5165 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5168 #ifndef LD_SWITCH_MACHINE
5169 #define LD_SWITCH_MACHINE
5172 #ifndef LD_SWITCH_SYSTEM
5173 #define LD_SWITCH_SYSTEM
5176 #ifndef LD_SWITCH_X_SITE_AUX
5177 #define LD_SWITCH_X_SITE_AUX
5180 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5181 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5183 #ifdef THIS_IS_CONFIGURE
5185 /* Get the CFLAGS for tests in configure. */
5187 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5189 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5192 #else /* not THIS_IS_CONFIGURE */
5194 /* Get the CFLAGS for real compilation. */
5196 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5198 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5201 #endif /* not THIS_IS_CONFIGURE */
5204 # The value of CPP is a quoted variable reference, so we need to do this
5205 # to get its actual value...
5206 CPP=`eval "echo $CPP"`
5207 eval `${CPP} -Isrc ${tempcname} \
5208 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5209 if test "x$SPECIFIED_CFLAGS" = x; then
5210 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5211 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5213 REAL_CFLAGS="$CFLAGS"
5217 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5219 ### Make sure subsequent tests use flags consistent with the build flags.
5221 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5222 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5224 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5229 # Check whether --enable-largefile was given.
5230 if test "${enable_largefile+set}" = set; then
5231 enableval=$enable_largefile;
5234 if test "$enable_largefile" != no; then
5236 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5237 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5238 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 ac_cv_sys_largefile_CC=no
5242 if test "$GCC" != yes; then
5245 # IRIX 6.2 and later do not support large files by default,
5246 # so use the C compiler's -n32 option if that helps.
5247 cat >conftest.$ac_ext <<_ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <sys/types.h>
5254 /* Check that off_t can represent 2**63 - 1 correctly.
5255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5256 since some C++ compilers masquerading as C compilers
5257 incorrectly reject 9223372036854775807. */
5258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5260 && LARGE_OFF_T % 2147483647 == 1)
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5274 *) ac_try_echo
=$ac_try;;
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5279 grep -v '^ *+' conftest.er1
>conftest.err
5281 cat conftest.err
>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.
$ac_objext; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.
$ac_ext >&5
5295 rm -f core conftest.err conftest.
$ac_objext
5297 rm -f conftest.
$ac_objext
5298 if { (ac_try
="$ac_compile"
5300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_compile") 2>conftest.er1
5306 grep -v '^ *+' conftest.er1 >conftest.err
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } && {
5311 test -z "$ac_c_werror_flag" ||
5312 test ! -s conftest.err
5313 } && test -s conftest.$ac_objext; then
5314 ac_cv_sys_largefile_CC=' -n32'; break
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5322 rm -f core conftest.err conftest.$ac_objext
5326 rm -f conftest.$ac_ext
5329 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5330 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5331 if test "$ac_cv_sys_largefile_CC" != no; then
5332 CC=$CC$ac_cv_sys_largefile_CC
5335 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5336 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5337 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 cat >conftest.$ac_ext <<_ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <sys/types.h>
5348 /* Check that off_t can represent 2**63 - 1 correctly.
5349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350 since some C++ compilers masquerading as C compilers
5351 incorrectly reject 9223372036854775807. */
5352 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354 && LARGE_OFF_T % 2147483647 == 1)
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5368 *) ac_try_echo
=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
5373 grep -v '^ *+' conftest.er1
>conftest.err
5375 cat conftest.err
>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_c_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.
$ac_objext; then
5381 ac_cv_sys_file_offset_bits
=no
; break
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.
$ac_ext >&5
5389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5390 cat >conftest.
$ac_ext <<_ACEOF
5393 cat confdefs.h
>>conftest.
$ac_ext
5394 cat >>conftest.
$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 #define _FILE_OFFSET_BITS 64
5397 #include <sys/types.h>
5398 /* Check that off_t can represent 2**63 - 1 correctly.
5399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5400 since some C++ compilers masquerading as C compilers
5401 incorrectly reject 9223372036854775807. */
5402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5404 && LARGE_OFF_T % 2147483647 == 1)
5414 rm -f conftest.
$ac_objext
5415 if { (ac_try
="$ac_compile"
5417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && {
5428 test -z "$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5430 } && test -s conftest.$ac_objext; then
5431 ac_cv_sys_file_offset_bits=64; break
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 ac_cv_sys_file_offset_bits=unknown
5444 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5445 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5446 case $ac_cv_sys_file_offset_bits in #(
5449 cat >>confdefs.h <<_ACEOF
5450 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5455 if test $ac_cv_sys_file_offset_bits = unknown; then
5456 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5457 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5458 if test "${ac_cv_sys_large_files+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #include <sys/types.h>
5469 /* Check that off_t can represent 2**63 - 1 correctly.
5470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5471 since some C++ compilers masquerading as C compilers
5472 incorrectly reject 9223372036854775807. */
5473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5475 && LARGE_OFF_T % 2147483647 == 1)
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5489 *) ac_try_echo
=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1
>conftest.err
5496 cat conftest.err
>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.
$ac_objext; then
5502 ac_cv_sys_large_files
=no
; break
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 cat >conftest.
$ac_ext <<_ACEOF
5514 cat confdefs.h
>>conftest.
$ac_ext
5515 cat >>conftest.
$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #define _LARGE_FILES 1
5518 #include <sys/types.h>
5519 /* Check that off_t can represent 2**63 - 1 correctly.
5520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5521 since some C++ compilers masquerading as C compilers
5522 incorrectly reject 9223372036854775807. */
5523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5525 && LARGE_OFF_T % 2147483647 == 1)
5535 rm -f conftest.
$ac_objext
5536 if { (ac_try
="$ac_compile"
5538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 ac_cv_sys_large_files=1; break
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 ac_cv_sys_large_files=unknown
5565 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5566 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5567 case $ac_cv_sys_large_files in #(
5570 cat >>confdefs.h <<_ACEOF
5571 #define _LARGE_FILES $ac_cv_sys_large_files
5581 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5582 ### be located in either /usr/lib64 or /usr/lib.
5583 case "${canonical}" in
5584 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5585 if test -d /usr/lib64; then
5587 cat >>confdefs.h <<\_ACEOF
5588 #define HAVE_LIB64_DIR 1
5597 if test "${with_sound}" != "no"; then
5598 # Sound support for GNU/Linux and the free BSDs.
5599 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5601 if test "${ac_cv_header_stdc+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 cat >conftest.$ac_ext <<_ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5627 *) ac_try_echo
=$ac_try;;
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5632 grep -v '^ *+' conftest.er1
>conftest.err
5634 cat conftest.err
>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.
$ac_objext; then
5640 ac_cv_header_stdc
=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.
$ac_ext >&5
5645 ac_cv_header_stdc
=no
5648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5650 if test $ac_cv_header_stdc = yes; then
5651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5652 cat >conftest.
$ac_ext <<_ACEOF
5655 cat confdefs.h
>>conftest.
$ac_ext
5656 cat >>conftest.
$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5662 $EGREP "memchr" >/dev
/null
2>&1; then
5665 ac_cv_header_stdc
=no
5671 if test $ac_cv_header_stdc = yes; then
5672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5673 cat >conftest.
$ac_ext <<_ACEOF
5676 cat confdefs.h
>>conftest.
$ac_ext
5677 cat >>conftest.
$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5683 $EGREP "free" >/dev
/null
2>&1; then
5686 ac_cv_header_stdc
=no
5692 if test $ac_cv_header_stdc = yes; then
5693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5694 if test "$cross_compiling" = yes; then
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5705 #if ((' ' & 0x0FF) == 0x020)
5706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5709 # define ISLOWER(c) \
5710 (('a' <= (c) && (c) <= 'i') \
5711 || ('j' <= (c) && (c) <= 'r') \
5712 || ('s' <= (c) && (c) <= 'z'))
5713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5721 for (i = 0; i < 256; i++)
5722 if (XOR (islower (i), ISLOWER (i))
5723 || toupper (i) != TOUPPER (i))
5728 rm -f conftest
$ac_exeext
5729 if { (ac_try
="$ac_link"
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_link") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5741 *) ac_try_echo
=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5750 echo "$as_me: program exited with status $ac_status" >&5
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.
$ac_ext >&5
5755 ac_cv_header_stdc
=no
5757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5763 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5765 if test $ac_cv_header_stdc = yes; then
5767 cat >>confdefs.h
<<\_ACEOF
5768 #define STDC_HEADERS 1
5773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5783 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5784 inttypes.h stdint.h unistd.h
5786 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5789 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.
$ac_ext <<_ACEOF
5795 cat confdefs.h
>>conftest.
$ac_ext
5796 cat >>conftest.
$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5800 #include <$ac_header>
5802 rm -f conftest.
$ac_objext
5803 if { (ac_try
="$ac_compile"
5805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 eval "$as_ac_Header=yes"
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 eval "$as_ac_Header=no"
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 ac_res=`eval echo '${'$as_ac_Header'}'`
5830 { echo "$as_me:$LINENO: result: $ac_res" >&5
5831 echo "${ECHO_T}$ac_res" >&6; }
5832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5833 cat >>confdefs.h <<_ACEOF
5834 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5845 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5847 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_res=`eval echo '${'$as_ac_Header'}'`
5855 { echo "$as_me:$LINENO: result: $ac_res" >&5
5856 echo "${ECHO_T}$ac_res" >&6; }
5858 # Is the header compilable?
5859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5861 cat >conftest.$ac_ext <<_ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 $ac_includes_default
5868 #include <$ac_header>
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5874 *) ac_try_echo
=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5879 grep -v '^ *+' conftest.er1
>conftest.err
5881 cat conftest.err
>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.
$ac_objext; then
5887 ac_header_compiler
=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5892 ac_header_compiler
=no
5895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5897 echo "${ECHO_T}$ac_header_compiler" >&6; }
5899 # Is the header present?
5900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5902 cat >conftest.
$ac_ext <<_ACEOF
5905 cat confdefs.h
>>conftest.
$ac_ext
5906 cat >>conftest.
$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <$ac_header>
5910 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } >/dev/null && {
5923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5926 ac_header_preproc=yes
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_header_preproc=no
5934 rm -f conftest.err conftest.$ac_ext
5935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5936 echo "${ECHO_T}$ac_header_preproc" >&6; }
5938 # So? What about this header?
5939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5945 ac_header_preproc=yes
5948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 eval "$as_ac_Header=\$ac_header_preproc"
5970 ac_res=`eval echo '${'$as_ac_Header'}'`
5971 { echo "$as_me:$LINENO: result: $ac_res" >&5
5972 echo "${ECHO_T}$ac_res" >&6; }
5975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5976 cat >>confdefs.h <<_ACEOF
5977 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5984 # Emulation library used on NetBSD.
5985 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5986 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5987 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_check_lib_save_LIBS=$LIBS
5991 LIBS="-lossaudio $LIBS"
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5999 /* Override any GCC internal prototype to avoid an error.
6000 Use char because int might match the return type of a GCC
6001 builtin and then its argument prototype would still apply. */
6009 return _oss_ioctl ();
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (ac_try="$ac_link"
6017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6018 *) ac_try_echo
=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_link") 2>conftest.er1
6023 grep -v '^ *+' conftest.er1
>conftest.err
6025 cat conftest.err
>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest
$ac_exeext &&
6031 $as_test_x conftest
$ac_exeext; then
6032 ac_cv_lib_ossaudio__oss_ioctl
=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6037 ac_cv_lib_ossaudio__oss_ioctl
=no
6040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6041 conftest
$ac_exeext conftest.
$ac_ext
6042 LIBS
=$ac_check_lib_save_LIBS
6044 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6045 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6046 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6055 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6059 # Extract the first word of "pkg-config", so it can be a program name with args.
6060 set dummy pkg-config
; ac_word
=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6075 test -z "$as_dir" && as_dir
=.
6076 for ac_exec_ext
in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6090 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6091 if test -n "$PKG_CONFIG"; then
6092 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6093 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6095 { echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6; }
6101 if test "$PKG_CONFIG" = "no" ; then
6104 PKG_CONFIG_MIN_VERSION
=0.9.0
6105 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6106 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6107 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6109 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6110 { echo "$as_me:$LINENO: result: yes" >&5
6111 echo "${ECHO_T}yes" >&6; }
6114 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6115 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6116 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6117 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6118 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6120 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6121 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6122 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6123 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6124 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6130 ## If we have a custom action on failure, don't print errors, but
6131 ## do set a variable so people can do so.
6132 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6139 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6140 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6144 if test $succeeded = yes; then
6150 if test $HAVE_ALSA = yes; then
6151 SAVE_CFLAGS
="$CFLAGS"
6152 SAVE_LDFLAGS
="$LDFLAGS"
6153 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6154 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6155 cat >conftest.
$ac_ext <<_ACEOF
6158 cat confdefs.h
>>conftest.
$ac_ext
6159 cat >>conftest.
$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <asoundlib.h>
6165 snd_lib_error_set_handler (0);
6170 rm -f conftest.
$ac_objext
6171 if { (ac_try
="$ac_compile"
6173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 emacs_alsa_normal=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 emacs_alsa_normal=no
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 if test "$emacs_alsa_normal" != yes; then
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 #include <alsa/asoundlib.h>
6207 snd_lib_error_set_handler (0);
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6216 *) ac_try_echo
=$ac_try;;
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6221 grep -v '^ *+' conftest.er1
>conftest.err
6223 cat conftest.err
>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.
$ac_objext; then
6229 emacs_alsa_subdir
=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.
$ac_ext >&5
6234 emacs_alsa_subdir
=no
6237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6238 if test "$emacs_alsa_subdir" != yes; then
6239 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6240 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6241 { (exit 1); exit 1; }; }
6243 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6246 CFLAGS
="$SAVE_CFLAGS"
6247 LDFLAGS
="$SAVE_LDFLAGS"
6248 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6249 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6251 cat >>confdefs.h
<<\_ACEOF
6284 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6285 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6286 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6287 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6290 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6291 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6294 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_res
=`eval echo '${'$as_ac_Header'}'`
6298 { echo "$as_me:$LINENO: result: $ac_res" >&5
6299 echo "${ECHO_T}$ac_res" >&6; }
6301 # Is the header compilable?
6302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6304 cat >conftest.
$ac_ext <<_ACEOF
6307 cat confdefs.h
>>conftest.
$ac_ext
6308 cat >>conftest.
$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6311 #include <$ac_header>
6313 rm -f conftest.
$ac_objext
6314 if { (ac_try
="$ac_compile"
6316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compile") 2>conftest.er1
6322 grep -v '^ *+' conftest.er1 >conftest.err
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && {
6327 test -z "$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest.$ac_objext; then
6330 ac_header_compiler=yes
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 ac_header_compiler=no
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6340 echo "${ECHO_T}$ac_header_compiler" >&6; }
6342 # Is the header present?
6343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 #include <$ac_header>
6353 if { (ac_try="$ac_cpp conftest.$ac_ext"
6355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6356 *) ac_try_echo
=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6361 grep -v '^ *+' conftest.er1
>conftest.err
6363 cat conftest.err
>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } >/dev
/null
&& {
6366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6367 test ! -s conftest.err
6369 ac_header_preproc
=yes
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.
$ac_ext >&5
6374 ac_header_preproc
=no
6377 rm -f conftest.err conftest.
$ac_ext
6378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379 echo "${ECHO_T}$ac_header_preproc" >&6; }
6381 # So? What about this header?
6382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6388 ac_header_preproc
=yes
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6408 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 eval "$as_ac_Header=\$ac_header_preproc"
6413 ac_res
=`eval echo '${'$as_ac_Header'}'`
6414 { echo "$as_me:$LINENO: result: $ac_res" >&5
6415 echo "${ECHO_T}$ac_res" >&6; }
6418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6419 cat >>confdefs.h
<<_ACEOF
6420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6429 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <sys/personality.h>
6440 personality (PER_LINUX32)
6445 rm -f conftest.
$ac_objext
6446 if { (ac_try
="$ac_compile"
6448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1 >conftest.err
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 emacs_cv_personality_linux32=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 emacs_cv_personality_linux32=no
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6472 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6474 if test $emacs_cv_personality_linux32 = yes; then
6476 cat >>confdefs.h <<\_ACEOF
6477 #define HAVE_PERSONALITY_LINUX32 1
6483 for ac_header in term.h
6485 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 #include <$ac_header>
6499 if { (ac_try="$ac_cpp conftest.$ac_ext"
6501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6502 *) ac_try_echo
=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1
>conftest.err
6509 cat conftest.err
>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } >/dev
/null
&& {
6512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6515 eval "$as_ac_Header=yes"
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.
$ac_ext >&5
6520 eval "$as_ac_Header=no"
6523 rm -f conftest.err conftest.
$ac_ext
6525 ac_res
=`eval echo '${'$as_ac_Header'}'`
6526 { echo "$as_me:$LINENO: result: $ac_res" >&5
6527 echo "${ECHO_T}$ac_res" >&6; }
6528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6529 cat >>confdefs.h
<<_ACEOF
6530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6539 if test "${ac_cv_header_stdc+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 cat >conftest.
$ac_ext <<_ACEOF
6545 cat confdefs.h
>>conftest.
$ac_ext
6546 cat >>conftest.
$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6561 rm -f conftest.
$ac_objext
6562 if { (ac_try
="$ac_compile"
6564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_cv_header_stdc=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_cv_header_stdc=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 if test $ac_cv_header_stdc = yes; then
6589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6600 $EGREP "memchr" >/dev/null 2>&1; then
6603 ac_cv_header_stdc=no
6609 if test $ac_cv_header_stdc = yes; then
6610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6621 $EGREP "free" >/dev/null 2>&1; then
6624 ac_cv_header_stdc=no
6630 if test $ac_cv_header_stdc = yes; then
6631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6632 if test "$cross_compiling" = yes; then
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6643 #if ((' ' & 0x0FF) == 0x020)
6644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6647 # define ISLOWER(c) \
6648 (('a' <= (c) && (c) <= 'i') \
6649 || ('j' <= (c) && (c) <= 'r') \
6650 || ('s' <= (c) && (c) <= 'z'))
6651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6659 for (i = 0; i < 256; i++)
6660 if (XOR (islower (i), ISLOWER (i))
6661 || toupper (i) != TOUPPER (i))
6666 rm -f conftest$ac_exeext
6667 if { (ac_try="$ac_link"
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_link") 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6677 { (case "(($ac_try" in
6678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682 (eval "$ac_try") 2>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6688 echo "$as_me: program exited with status $ac_status" >&5
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6693 ac_cv_header_stdc=no
6695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6701 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6702 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6703 if test $ac_cv_header_stdc = yes; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define STDC_HEADERS 1
6711 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6712 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6713 if test "${ac_cv_header_time+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 cat >conftest.$ac_ext <<_ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 #include <sys/types.h>
6723 #include <sys/time.h>
6729 if ((struct tm *) 0)
6735 rm -f conftest.$ac_objext
6736 if { (ac_try="$ac_compile"
6738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6739 *) ac_try_echo
=$ac_try;;
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_compile") 2>conftest.er1
6744 grep -v '^ *+' conftest.er1
>conftest.err
6746 cat conftest.err
>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest.
$ac_objext; then
6752 ac_cv_header_time
=yes
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.
$ac_ext >&5
6757 ac_cv_header_time
=no
6760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6762 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6763 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6764 if test $ac_cv_header_time = yes; then
6766 cat >>confdefs.h
<<\_ACEOF
6767 #define TIME_WITH_SYS_TIME 1
6772 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6773 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6774 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 cat >conftest.
$ac_ext <<_ACEOF
6780 cat confdefs.h
>>conftest.
$ac_ext
6781 cat >>conftest.
$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 $ac_includes_default
6795 rm -f conftest.
$ac_objext
6796 if { (ac_try
="$ac_compile"
6798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_have_decl_sys_siglist=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_have_decl_sys_siglist=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6823 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6824 if test $ac_cv_have_decl_sys_siglist = yes; then
6826 cat >>confdefs.h <<_ACEOF
6827 #define HAVE_DECL_SYS_SIGLIST 1
6832 cat >>confdefs.h <<_ACEOF
6833 #define HAVE_DECL_SYS_SIGLIST 0
6840 if test $ac_cv_have_decl_sys_siglist != yes; then
6841 # For Tru64, at least:
6842 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6843 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6844 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 cat >conftest.$ac_ext <<_ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 $ac_includes_default
6857 #ifndef __sys_siglist
6858 (void) __sys_siglist;
6865 rm -f conftest.$ac_objext
6866 if { (ac_try="$ac_compile"
6868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6869 *) ac_try_echo
=$ac_try;;
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compile") 2>conftest.er1
6874 grep -v '^ *+' conftest.er1
>conftest.err
6876 cat conftest.err
>&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && {
6879 test -z "$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 } && test -s conftest.
$ac_objext; then
6882 ac_cv_have_decl___sys_siglist
=yes
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.
$ac_ext >&5
6887 ac_cv_have_decl___sys_siglist
=no
6890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6892 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6893 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6894 if test $ac_cv_have_decl___sys_siglist = yes; then
6896 cat >>confdefs.h
<<_ACEOF
6897 #define HAVE_DECL___SYS_SIGLIST 1
6902 cat >>confdefs.h
<<_ACEOF
6903 #define HAVE_DECL___SYS_SIGLIST 0
6910 if test $ac_cv_have_decl___sys_siglist = yes; then
6912 cat >>confdefs.h
<<\_ACEOF
6913 #define sys_siglist __sys_siglist
6918 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6919 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6920 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 cat >conftest.
$ac_ext <<_ACEOF
6926 cat confdefs.h
>>conftest.
$ac_ext
6927 cat >>conftest.
$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 #include <sys/types.h>
6930 #include <sys/wait.h>
6932 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6935 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6943 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6948 rm -f conftest.
$ac_objext
6949 if { (ac_try
="$ac_compile"
6951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_header_sys_wait_h=yes
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_sys_wait_h=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6976 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6977 if test $ac_cv_header_sys_wait_h = yes; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define HAVE_SYS_WAIT_H 1
6986 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6987 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6988 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 #ifdef TIME_WITH_SYS_TIME
6998 #include <sys/time.h>
7001 #ifdef HAVE_SYS_TIME_H
7002 #include <sys/time.h>
7013 static struct utimbuf x; x.actime = x.modtime;
7018 rm -f conftest.$ac_objext
7019 if { (ac_try="$ac_compile"
7021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7022 *) ac_try_echo
=$ac_try;;
7024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025 (eval "$ac_compile") 2>conftest.er1
7027 grep -v '^ *+' conftest.er1
>conftest.err
7029 cat conftest.err
>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest.
$ac_objext; then
7035 emacs_cv_struct_utimbuf
=yes
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.
$ac_ext >&5
7040 emacs_cv_struct_utimbuf
=no
7043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7045 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7046 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7047 if test $emacs_cv_struct_utimbuf = yes; then
7049 cat >>confdefs.h
<<\_ACEOF
7050 #define HAVE_STRUCT_UTIMBUF 1
7055 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7056 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7057 if test "${ac_cv_type_signal+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 cat >conftest.
$ac_ext <<_ACEOF
7063 cat confdefs.h
>>conftest.
$ac_ext
7064 cat >>conftest.
$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7072 return *(signal (0, 0)) (0) == 1;
7077 rm -f conftest.
$ac_objext
7078 if { (ac_try
="$ac_compile"
7080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1 >conftest.err
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
7094 ac_cv_type_signal=int
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_type_signal=void
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7105 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7107 cat >>confdefs.h <<_ACEOF
7108 #define RETSIGTYPE $ac_cv_type_signal
7113 { echo "$as_me:$LINENO: checking for speed_t" >&5
7114 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7115 if test "${emacs_cv_speed_t+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <termios.h>
7133 rm -f conftest.$ac_objext
7134 if { (ac_try="$ac_compile"
7136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7137 *) ac_try_echo
=$ac_try;;
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140 (eval "$ac_compile") 2>conftest.er1
7142 grep -v '^ *+' conftest.er1
>conftest.err
7144 cat conftest.err
>&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest.
$ac_objext; then
7150 emacs_cv_speed_t
=yes
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.
$ac_ext >&5
7158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7160 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7161 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7162 if test $emacs_cv_speed_t = yes; then
7164 cat >>confdefs.h
<<\_ACEOF
7165 #define HAVE_SPEED_T 1
7170 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7171 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7172 if test "${emacs_cv_struct_timeval+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 cat >conftest.
$ac_ext <<_ACEOF
7178 cat confdefs.h
>>conftest.
$ac_ext
7179 cat >>conftest.
$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #ifdef TIME_WITH_SYS_TIME
7182 #include <sys/time.h>
7185 #ifdef HAVE_SYS_TIME_H
7186 #include <sys/time.h>
7194 static struct timeval x; x.tv_sec = x.tv_usec;
7199 rm -f conftest.
$ac_objext
7200 if { (ac_try
="$ac_compile"
7202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 emacs_cv_struct_timeval=yes
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 emacs_cv_struct_timeval=no
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7227 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7228 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7229 if test $emacs_cv_struct_timeval = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_TIMEVAL 1
7237 { echo "$as_me:$LINENO: checking for struct exception" >&5
7238 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7239 if test "${emacs_cv_struct_exception+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 cat >conftest.$ac_ext <<_ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7252 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7261 *) ac_try_echo
=$ac_try;;
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7266 grep -v '^ *+' conftest.er1
>conftest.err
7268 cat conftest.err
>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.
$ac_objext; then
7274 emacs_cv_struct_exception
=yes
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.
$ac_ext >&5
7279 emacs_cv_struct_exception
=no
7282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7284 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7285 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7286 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7287 if test $emacs_cv_struct_exception != yes; then
7289 cat >>confdefs.h
<<\_ACEOF
7290 #define NO_MATHERR 1
7296 for ac_header
in sys
/socket.h
7298 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7299 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7302 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_res
=`eval echo '${'$as_ac_Header'}'`
7306 { echo "$as_me:$LINENO: result: $ac_res" >&5
7307 echo "${ECHO_T}$ac_res" >&6; }
7309 # Is the header compilable?
7310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7319 #include <$ac_header>
7321 rm -f conftest.
$ac_objext
7322 if { (ac_try
="$ac_compile"
7324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7330 grep -v '^ *+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
7338 ac_header_compiler=yes
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7343 ac_header_compiler=no
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6; }
7350 # Is the header present?
7351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <$ac_header>
7361 if { (ac_try="$ac_cpp conftest.$ac_ext"
7363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7364 *) ac_try_echo
=$ac_try;;
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7369 grep -v '^ *+' conftest.er1
>conftest.err
7371 cat conftest.err
>&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev
/null
&& {
7374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7377 ac_header_preproc
=yes
7379 echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.
$ac_ext >&5
7382 ac_header_preproc
=no
7385 rm -f conftest.err conftest.
$ac_ext
7386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7387 echo "${ECHO_T}$ac_header_preproc" >&6; }
7389 # So? What about this header?
7390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7396 ac_header_preproc
=yes
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7416 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 eval "$as_ac_Header=\$ac_header_preproc"
7421 ac_res
=`eval echo '${'$as_ac_Header'}'`
7422 { echo "$as_me:$LINENO: result: $ac_res" >&5
7423 echo "${ECHO_T}$ac_res" >&6; }
7426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7427 cat >>confdefs.h
<<_ACEOF
7428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436 for ac_header
in net
/if.h
7438 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7441 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.
$ac_ext <<_ACEOF
7447 cat confdefs.h
>>conftest.
$ac_ext
7448 cat >>conftest.
$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 $ac_includes_default
7451 #if HAVE_SYS_SOCKET_H
7452 #include <sys/socket.h>
7455 #include <$ac_header>
7457 rm -f conftest.
$ac_objext
7458 if { (ac_try
="$ac_compile"
7460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7466 grep -v '^ *+' conftest.er1 >conftest.err
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.$ac_objext; then
7474 eval "$as_ac_Header=yes"
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 eval "$as_ac_Header=no"
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 ac_res=`eval echo '${'$as_ac_Header'}'`
7485 { echo "$as_me:$LINENO: result: $ac_res" >&5
7486 echo "${ECHO_T}$ac_res" >&6; }
7487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7497 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7498 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7499 if test "${ac_cv_struct_tm+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 #include <sys/types.h>
7515 int *p = &tm.tm_sec;
7521 rm -f conftest.$ac_objext
7522 if { (ac_try="$ac_compile"
7524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7525 *) ac_try_echo
=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_compile") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1
>conftest.err
7532 cat conftest.err
>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest.
$ac_objext; then
7538 ac_cv_struct_tm
=time.h
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.
$ac_ext >&5
7543 ac_cv_struct_tm
=sys
/time.h
7546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7549 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7550 if test $ac_cv_struct_tm = sys
/time.h
; then
7552 cat >>confdefs.h
<<\_ACEOF
7553 #define TM_IN_SYS_TIME 1
7558 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7559 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7560 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 cat >conftest.
$ac_ext <<_ACEOF
7566 cat confdefs.h
>>conftest.
$ac_ext
7567 cat >>conftest.
$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <sys/types.h>
7570 #include <$ac_cv_struct_tm>
7576 static struct tm ac_aggr;
7577 if (ac_aggr.tm_zone)
7583 rm -f conftest.
$ac_objext
7584 if { (ac_try
="$ac_compile"
7586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_cv_member_struct_tm_tm_zone=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <sys/types.h>
7612 #include <$ac_cv_struct_tm>
7618 static struct tm ac_aggr;
7619 if (sizeof ac_aggr.tm_zone)
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7629 *) ac_try_echo
=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7634 grep -v '^ *+' conftest.er1
>conftest.err
7636 cat conftest.err
>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.
$ac_objext; then
7642 ac_cv_member_struct_tm_tm_zone
=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.
$ac_ext >&5
7647 ac_cv_member_struct_tm_tm_zone
=no
7650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7655 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7656 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7657 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7659 cat >>confdefs.h
<<_ACEOF
7660 #define HAVE_STRUCT_TM_TM_ZONE 1
7666 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7668 cat >>confdefs.h
<<\_ACEOF
7669 #define HAVE_TM_ZONE 1
7673 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7674 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7675 if test "${ac_cv_have_decl_tzname+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 cat >conftest.
$ac_ext <<_ACEOF
7681 cat confdefs.h
>>conftest.
$ac_ext
7682 cat >>conftest.
$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7697 rm -f conftest.
$ac_objext
7698 if { (ac_try
="$ac_compile"
7700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_compile") 2>conftest.er1
7706 grep -v '^ *+' conftest.er1 >conftest.err
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest.$ac_objext; then
7714 ac_cv_have_decl_tzname=yes
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_cv_have_decl_tzname=no
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7725 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7726 if test $ac_cv_have_decl_tzname = yes; then
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_DECL_TZNAME 1
7734 cat >>confdefs.h <<_ACEOF
7735 #define HAVE_DECL_TZNAME 0
7742 { echo "$as_me:$LINENO: checking for tzname" >&5
7743 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7744 if test "${ac_cv_var_tzname+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7754 #if !HAVE_DECL_TZNAME
7755 extern char *tzname[];
7761 return tzname[0][0];
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (ac_try="$ac_link"
7769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7770 *) ac_try_echo
=$ac_try;;
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_link") 2>conftest.er1
7775 grep -v '^ *+' conftest.er1
>conftest.err
7777 cat conftest.err
>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest
$ac_exeext &&
7783 $as_test_x conftest
$ac_exeext; then
7784 ac_cv_var_tzname
=yes
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.
$ac_ext >&5
7792 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7793 conftest
$ac_exeext conftest.
$ac_ext
7795 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7796 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7797 if test $ac_cv_var_tzname = yes; then
7799 cat >>confdefs.h
<<\_ACEOF
7800 #define HAVE_TZNAME 1
7806 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7807 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7808 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7822 static struct tm ac_aggr;
7823 if (ac_aggr.tm_gmtoff)
7829 rm -f conftest.
$ac_objext
7830 if { (ac_try
="$ac_compile"
7832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.$ac_objext; then
7846 ac_cv_member_struct_tm_tm_gmtoff=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7862 static struct tm ac_aggr;
7863 if (sizeof ac_aggr.tm_gmtoff)
7869 rm -f conftest.$ac_objext
7870 if { (ac_try="$ac_compile"
7872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7873 *) ac_try_echo
=$ac_try;;
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7878 grep -v '^ *+' conftest.er1
>conftest.err
7880 cat conftest.err
>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.
$ac_objext; then
7886 ac_cv_member_struct_tm_tm_gmtoff
=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.
$ac_ext >&5
7891 ac_cv_member_struct_tm_tm_gmtoff
=no
7894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7899 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7900 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7901 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7903 cat >>confdefs.h
<<\_ACEOF
7904 #define HAVE_TM_GMTOFF 1
7909 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7910 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7911 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.
$ac_ext <<_ACEOF
7917 cat confdefs.h
>>conftest.
$ac_ext
7918 cat >>conftest.
$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 $ac_includes_default
7921 #if HAVE_SYS_SOCKET_H
7922 #include <sys/socket.h>
7931 static struct ifreq ac_aggr;
7932 if (ac_aggr.ifr_flags)
7938 rm -f conftest.
$ac_objext
7939 if { (ac_try
="$ac_compile"
7941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_cv_member_struct_ifreq_ifr_flags=yes
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 #if HAVE_SYS_SOCKET_H
7968 #include <sys/socket.h>
7977 static struct ifreq ac_aggr;
7978 if (sizeof ac_aggr.ifr_flags)
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7988 *) ac_try_echo
=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_compile") 2>conftest.er1
7993 grep -v '^ *+' conftest.er1
>conftest.err
7995 cat conftest.err
>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest.
$ac_objext; then
8001 ac_cv_member_struct_ifreq_ifr_flags
=yes
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.
$ac_ext >&5
8006 ac_cv_member_struct_ifreq_ifr_flags
=no
8009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8015 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8016 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8018 cat >>confdefs.h
<<_ACEOF
8019 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8024 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8025 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8026 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 cat >conftest.
$ac_ext <<_ACEOF
8032 cat confdefs.h
>>conftest.
$ac_ext
8033 cat >>conftest.
$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 #if HAVE_SYS_SOCKET_H
8037 #include <sys/socket.h>
8046 static struct ifreq ac_aggr;
8047 if (ac_aggr.ifr_hwaddr)
8053 rm -f conftest.
$ac_objext
8054 if { (ac_try
="$ac_compile"
8056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 cat >conftest.$ac_ext <<_ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 $ac_includes_default
8082 #if HAVE_SYS_SOCKET_H
8083 #include <sys/socket.h>
8092 static struct ifreq ac_aggr;
8093 if (sizeof ac_aggr.ifr_hwaddr)
8099 rm -f conftest.$ac_objext
8100 if { (ac_try="$ac_compile"
8102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8103 *) ac_try_echo
=$ac_try;;
8105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_compile") 2>conftest.er1
8108 grep -v '^ *+' conftest.er1
>conftest.err
8110 cat conftest.err
>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest.
$ac_objext; then
8116 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.
$ac_ext >&5
8121 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8129 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8130 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8131 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8133 cat >>confdefs.h
<<_ACEOF
8134 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8139 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8140 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8141 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 cat >conftest.
$ac_ext <<_ACEOF
8147 cat confdefs.h
>>conftest.
$ac_ext
8148 cat >>conftest.
$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8151 #if HAVE_SYS_SOCKET_H
8152 #include <sys/socket.h>
8161 static struct ifreq ac_aggr;
8162 if (ac_aggr.ifr_netmask)
8168 rm -f conftest.
$ac_objext
8169 if { (ac_try
="$ac_compile"
8171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_compile") 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest.$ac_objext; then
8185 ac_cv_member_struct_ifreq_ifr_netmask=yes
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 cat >conftest.$ac_ext <<_ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 #if HAVE_SYS_SOCKET_H
8198 #include <sys/socket.h>
8207 static struct ifreq ac_aggr;
8208 if (sizeof ac_aggr.ifr_netmask)
8214 rm -f conftest.$ac_objext
8215 if { (ac_try="$ac_compile"
8217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8218 *) ac_try_echo
=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_compile") 2>conftest.er1
8223 grep -v '^ *+' conftest.er1
>conftest.err
8225 cat conftest.err
>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
8230 } && test -s conftest.
$ac_objext; then
8231 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.
$ac_ext >&5
8236 ac_cv_member_struct_ifreq_ifr_netmask
=no
8239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8244 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8245 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8246 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8248 cat >>confdefs.h
<<_ACEOF
8249 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8254 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8255 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8256 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 cat >conftest.
$ac_ext <<_ACEOF
8262 cat confdefs.h
>>conftest.
$ac_ext
8263 cat >>conftest.
$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 #if HAVE_SYS_SOCKET_H
8267 #include <sys/socket.h>
8276 static struct ifreq ac_aggr;
8277 if (ac_aggr.ifr_broadaddr)
8283 rm -f conftest.
$ac_objext
8284 if { (ac_try
="$ac_compile"
8286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8292 grep -v '^ *+' conftest.er1 >conftest.err
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest.$ac_objext; then
8300 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 #if HAVE_SYS_SOCKET_H
8313 #include <sys/socket.h>
8322 static struct ifreq ac_aggr;
8323 if (sizeof ac_aggr.ifr_broadaddr)
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8333 *) ac_try_echo
=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1
>conftest.err
8340 cat conftest.err
>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.
$ac_objext; then
8346 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.
$ac_ext >&5
8351 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8360 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8361 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8363 cat >>confdefs.h
<<_ACEOF
8364 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8369 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8370 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8371 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 cat >conftest.
$ac_ext <<_ACEOF
8377 cat confdefs.h
>>conftest.
$ac_ext
8378 cat >>conftest.
$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 #if HAVE_SYS_SOCKET_H
8382 #include <sys/socket.h>
8391 static struct ifreq ac_aggr;
8392 if (ac_aggr.ifr_addr)
8398 rm -f conftest.
$ac_objext
8399 if { (ac_try
="$ac_compile"
8401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
8407 grep -v '^ *+' conftest.er1 >conftest.err
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest.$ac_objext; then
8415 ac_cv_member_struct_ifreq_ifr_addr=yes
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 #if HAVE_SYS_SOCKET_H
8428 #include <sys/socket.h>
8437 static struct ifreq ac_aggr;
8438 if (sizeof ac_aggr.ifr_addr)
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8448 *) ac_try_echo
=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1
>conftest.err
8455 cat conftest.err
>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.
$ac_objext; then
8461 ac_cv_member_struct_ifreq_ifr_addr
=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.
$ac_ext >&5
8466 ac_cv_member_struct_ifreq_ifr_addr
=no
8469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8475 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8476 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8478 cat >>confdefs.h
<<_ACEOF
8479 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8487 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8488 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8489 if test "$ac_cv_prog_cc_c89" != no
; then
8490 { echo "$as_me:$LINENO: result: yes" >&5
8491 echo "${ECHO_T}yes" >&6; }
8493 cat >>confdefs.h
<<\_ACEOF
8494 #define PROTOTYPES 1
8498 cat >>confdefs.h
<<\_ACEOF
8499 #define __PROTOTYPES 1
8503 { echo "$as_me:$LINENO: result: no" >&5
8504 echo "${ECHO_T}no" >&6; }
8507 { echo "$as_me:$LINENO: checking for working volatile" >&5
8508 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8509 if test "${ac_cv_c_volatile+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.
$ac_ext <<_ACEOF
8515 cat confdefs.h
>>conftest.
$ac_ext
8516 cat >>conftest.
$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8524 int * volatile y = (int *) 0;
8530 rm -f conftest.
$ac_objext
8531 if { (ac_try
="$ac_compile"
8533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_compile") 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest.$ac_objext; then
8547 ac_cv_c_volatile=yes
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8558 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8559 if test $ac_cv_c_volatile = no; then
8561 cat >>confdefs.h <<\_ACEOF
8567 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8568 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8569 if test "${ac_cv_c_const+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8582 /* FIXME: Include the comments suggested by Paul. */
8584 /* Ultrix mips cc rejects this. */
8585 typedef int charset[2];
8587 /* SunOS 4.1.1 cc rejects this. */
8588 char const *const *pcpcc;
8590 /* NEC SVR4.0.2 mips cc rejects this. */
8591 struct point {int x, y;};
8592 static struct point const zero = {0,0};
8593 /* AIX XL C 1.02.0.0 rejects this.
8594 It does not let you subtract one const X* pointer from another in
8595 an arm of an if-expression whose if-part is not a constant
8597 const char *g = "string";
8598 pcpcc = &g + (g ? g-g : 0);
8599 /* HPUX 7.0 cc rejects these. */
8601 ppc = (char**) pcpcc;
8602 pcpcc = (char const *const *) ppc;
8603 { /* SCO 3.2v4 cc rejects this. */
8605 char const *s = 0 ? (char *) 0 : (char const *) 0;
8610 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8612 const int *foo = &x[0];
8615 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8616 typedef const int *iptr;
8620 { /* AIX XL C 1.02.0.0 rejects this saying
8621 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8622 struct s { int j; const int *ap[3]; };
8623 struct s *b; b->j = 5;
8625 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8629 return !cs[0] && !zero.x;
8636 rm -f conftest.$ac_objext
8637 if { (ac_try="$ac_compile"
8639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8640 *) ac_try_echo
=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_compile") 2>conftest.er1
8645 grep -v '^ *+' conftest.er1
>conftest.err
8647 cat conftest.err
>&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
8652 } && test -s conftest.
$ac_objext; then
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.
$ac_ext >&5
8661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8663 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8664 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8665 if test $ac_cv_c_const = no
; then
8667 cat >>confdefs.h
<<\_ACEOF
8673 { echo "$as_me:$LINENO: checking for void * support" >&5
8674 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8675 if test "${emacs_cv_void_star+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 cat >conftest.
$ac_ext <<_ACEOF
8681 cat confdefs.h
>>conftest.
$ac_ext
8682 cat >>conftest.
$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8693 rm -f conftest.
$ac_objext
8694 if { (ac_try
="$ac_compile"
8696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 emacs_cv_void_star=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 emacs_cv_void_star=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8721 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8722 if test $emacs_cv_void_star = yes; then
8723 cat >>confdefs.h <<\_ACEOF
8724 #define POINTER_TYPE void
8728 cat >>confdefs.h <<\_ACEOF
8729 #define POINTER_TYPE char
8738 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8739 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8740 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8741 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 cat >conftest.make <<\_ACEOF
8747 @echo '@@@%%%=$(MAKE)=@@@%%%'
8749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8750 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8752 eval ac_cv_prog_make_${ac_make}_set=yes;;
8754 eval ac_cv_prog_make_${ac_make}_set=no;;
8758 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8759 { echo "$as_me:$LINENO: result: yes" >&5
8760 echo "${ECHO_T}yes" >&6; }
8763 { echo "$as_me:$LINENO: result: no" >&5
8764 echo "${ECHO_T}no" >&6; }
8765 SET_MAKE="MAKE=${MAKE-make}"
8769 { echo "$as_me:$LINENO: checking for long file names" >&5
8770 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8771 if test "${ac_cv_sys_long_file_names+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 ac_cv_sys_long_file_names=yes
8775 # Test for long file names in all the places we know might matter:
8776 # . the current directory, where building will happen
8777 # $prefix/lib where we will be installing things
8778 # $exec_prefix/lib likewise
8779 # $TMPDIR if set, where it might want to write temporary files
8780 # /tmp where it might want to write temporary files
8783 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8784 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8785 # in the usual case where exec_prefix is '${prefix}'.
8787 . | /* | ?:[\\/]*) ;; #(
8790 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8791 ac_xdir=$ac_dir/cf$$
8792 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8793 ac_tf1=$ac_xdir/conftest9012345
8794 ac_tf2=$ac_xdir/conftest9012346
8795 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8796 ac_cv_sys_long_file_names=no
8797 rm -f -r "$ac_xdir" 2>/dev/null
8798 test $ac_cv_sys_long_file_names = no && break
8801 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8802 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8803 if test $ac_cv_sys_long_file_names = yes; then
8805 cat >>confdefs.h <<\_ACEOF
8806 #define HAVE_LONG_FILE_NAMES 1
8812 #### Choose a window system.
8814 { echo "$as_me:$LINENO: checking for X" >&5
8815 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8818 # Check whether --with-x was given.
8819 if test "${with_x+set}" = set; then
8823 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8824 if test "x$with_x" = xno; then
8825 # The user explicitly disabled X.
8828 case $x_includes,$x_libraries in #(
8829 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8830 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8831 { (exit 1); exit 1; }; };; #(
8832 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 # One or both of the vars are not set, and there is no cached value.
8836 ac_x_includes=no ac_x_libraries=no
8837 rm -f -r conftest.dir
8838 if mkdir conftest.dir; then
8840 cat >Imakefile <<'_ACEOF'
8842 @echo incroot='${INCROOT}'
8844 @echo usrlibdir='${USRLIBDIR}'
8846 @echo libdir='${LIBDIR}'
8848 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8850 for ac_var in incroot usrlibdir libdir; do
8851 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8853 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8854 for ac_extension in a so sl; do
8855 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8856 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8857 ac_im_usrlibdir=$ac_im_libdir; break
8860 # Screen out bogus values from the imake configuration. They are
8861 # bogus both because they are the default anyway, and because
8862 # using them would break gcc on systems where it needs fixed includes.
8863 case $ac_im_incroot in
8864 /usr/include) ac_x_includes= ;;
8865 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8867 case $ac_im_usrlibdir in
8869 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8873 rm -f -r conftest.dir
8876 # Standard set of common directories for X headers.
8877 # Check X11 before X11Rn because it is often a symlink to the current release.
8889 /usr/local/X11/include
8890 /usr/local/X11R6/include
8891 /usr/local/X11R5/include
8892 /usr/local/X11R4/include
8894 /usr/local/include/X11
8895 /usr/local/include/X11R6
8896 /usr/local/include/X11R5
8897 /usr/local/include/X11R4
8901 /usr/XFree86/include/X11
8905 /usr/unsupported/include
8907 /usr/local/x11r5/include
8908 /usr/lpp/Xamples/include
8910 /usr/openwin/include
8911 /usr/openwin/share/include'
8913 if test "$ac_x_includes" = no; then
8914 # Guess where to find include files, by looking for Xlib.h.
8915 # First, try using that file with no special directory specified.
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 #include <X11/Xlib.h>
8924 if { (ac_try="$ac_cpp conftest.$ac_ext"
8926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8927 *) ac_try_echo
=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8932 grep -v '^ *+' conftest.er1
>conftest.err
8934 cat conftest.err
>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } >/dev
/null
&& {
8937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8940 # We can compile using X headers with no special include directory.
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.
$ac_ext >&5
8946 for ac_dir
in $ac_x_header_dirs; do
8947 if test -r "$ac_dir/X11/Xlib.h"; then
8948 ac_x_includes
=$ac_dir
8954 rm -f conftest.err conftest.
$ac_ext
8955 fi # $ac_x_includes = no
8957 if test "$ac_x_libraries" = no
; then
8958 # Check for the libraries.
8959 # See if we find them without any special options.
8960 # Don't add to $LIBS permanently.
8963 cat >conftest.
$ac_ext <<_ACEOF
8966 cat confdefs.h
>>conftest.
$ac_ext
8967 cat >>conftest.
$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 #include <X11/Xlib.h>
8978 rm -f conftest.
$ac_objext conftest
$ac_exeext
8979 if { (ac_try
="$ac_link"
8981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_link") 2>conftest.er1
8987 grep -v '^ *+' conftest.er1 >conftest.err
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest$ac_exeext &&
8995 $as_test_x conftest$ac_exeext; then
8997 # We can link X programs with no special library path.
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9004 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9006 # Don't even attempt the hair of trying to link an X program!
9007 for ac_extension in a so sl; do
9008 if test -r "$ac_dir/libX11.$ac_extension"; then
9009 ac_x_libraries=$ac_dir
9016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017 conftest$ac_exeext conftest.$ac_ext
9018 fi # $ac_x_libraries = no
9020 case $ac_x_includes,$ac_x_libraries in #(
9022 # Didn't find X, or a directory has "'" in its name.
9023 ac_cv_have_x="have_x=no";; #(
9025 # Record where we found X for the cache.
9026 ac_cv_have_x="have_x=yes\
9027 ac_x_includes='$ac_x_includes'\
9028 ac_x_libraries='$ac_x_libraries'"
9034 eval "$ac_cv_have_x"
9037 if test "$have_x" != yes; then
9038 { echo "$as_me:$LINENO: result: $have_x" >&5
9039 echo "${ECHO_T}$have_x" >&6; }
9042 # If each of the values was on the command line, it overrides each guess.
9043 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9044 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9045 # Update the cache value to reflect the command line values.
9046 ac_cv_have_x="have_x=yes\
9047 ac_x_includes='$x_includes'\
9048 ac_x_libraries='$x_libraries'"
9049 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9050 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9053 if test "$no_x" = yes; then
9059 if test "${x_libraries}" != NONE; then
9060 if test -n "${x_libraries}"; then
9061 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9062 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9064 x_default_search_path=""
9065 x_search_path=${x_libraries}
9066 if test -z "${x_search_path}"; then
9067 x_search_path=/usr/lib
9069 for x_library in `echo ${x_search_path}: | \
9070 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9072 ${x_library}/X11/%L/%T/%N%C%S:\
9073 ${x_library}/X11/%l/%T/%N%C%S:\
9074 ${x_library}/X11/%T/%N%C%S:\
9075 ${x_library}/X11/%L/%T/%N%S:\
9076 ${x_library}/X11/%l/%T/%N%S:\
9077 ${x_library}/X11/%T/%N%S"
9078 if test x"${x_default_search_path}" = x; then
9079 x_default_search_path=${x_search_path}
9081 x_default_search_path="${x_search_path}:${x_default_search_path}"
9085 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9086 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9089 if test x"${x_includes}" = x; then
9090 bitmapdir=/usr/include/X11/bitmaps
9092 # accumulate include directories that have X11 bitmap subdirectories
9094 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9095 if test -d "${bmd}/X11/bitmaps"; then
9096 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9098 if test -d "${bmd}/bitmaps"; then
9099 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9102 if test ${bmd_acc} != "dummyval"; then
9103 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9108 if test "${with_carbon}" != no; then
9109 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9110 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9111 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9112 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9116 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9118 # Is the header compilable?
9119 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9120 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 $ac_includes_default
9128 #include <Carbon/Carbon.h>
9130 rm -f conftest.$ac_objext
9131 if { (ac_try="$ac_compile"
9133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9134 *) ac_try_echo
=$ac_try;;
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9139 grep -v '^ *+' conftest.er1
>conftest.err
9141 cat conftest.err
>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.
$ac_objext; then
9147 ac_header_compiler
=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.
$ac_ext >&5
9152 ac_header_compiler
=no
9155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9157 echo "${ECHO_T}$ac_header_compiler" >&6; }
9159 # Is the header present?
9160 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9161 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9162 cat >conftest.
$ac_ext <<_ACEOF
9165 cat confdefs.h
>>conftest.
$ac_ext
9166 cat >>conftest.
$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 #include <Carbon/Carbon.h>
9170 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } >/dev/null && {
9183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9186 ac_header_preproc=yes
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9191 ac_header_preproc=no
9194 rm -f conftest.err conftest.$ac_ext
9195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9196 echo "${ECHO_T}$ac_header_preproc" >&6; }
9198 # So? What about this header?
9199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9201 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9202 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9204 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9205 ac_header_preproc=yes
9208 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9209 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9211 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9213 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9215 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9217 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9219 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9223 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9224 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9225 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9230 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9231 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9234 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9240 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9241 if test "${with_carbon+set}" != set \
9242 && test "${carbon_appdir_x+set}" != set; then
9243 for var in with_x with_x_toolkit with_xim \
9244 with_xpm with_jpeg with_tiff with_gif with_png; do
9245 if eval test \"\${$var+set}\" = set; then
9252 if test "${HAVE_CARBON}" = yes; then
9256 case "${window_system}" in
9260 case "${with_x_toolkit}" in
9261 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9262 motif ) USE_X_TOOLKIT=MOTIF ;;
9264 USE_X_TOOLKIT=none ;;
9265 no ) USE_X_TOOLKIT=none ;;
9266 * ) USE_X_TOOLKIT=maybe ;;
9276 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9277 # Extract the first word of "X", so it can be a program name with args.
9278 set dummy X; ac_word=$2
9279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9281 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 if test -n "$HAVE_XSERVER"; then
9285 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9294 ac_cv_prog_HAVE_XSERVER="true"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9302 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9305 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9306 if test -n "$HAVE_XSERVER"; then
9307 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9308 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9310 { echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6; }
9315 if test "$HAVE_XSERVER" = true ||
9316 test -n "$DISPLAY" ||
9317 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9318 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9319 were found. You should install the relevant development files for X
9320 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9321 sure you have development files for image handling, i.e.
9322 tiff, gif, jpeg, png and xpm.
9323 If you are sure you want Emacs compiled without X window support, pass
9326 echo "$as_me: error: You seem to be running X, but no X development libraries
9327 were found. You should install the relevant development files for X
9328 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9329 sure you have development files for image handling, i.e.
9330 tiff, gif, jpeg, png and xpm.
9331 If you are sure you want Emacs compiled without X window support, pass
9333 to configure." >&2;}
9334 { (exit 1); exit 1; }; }
9338 ### If we're using X11, we should use the X menu package.
9341 yes ) HAVE_MENUS=yes ;;
9344 ### Compute the unexec source name from the object name.
9345 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9347 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9348 # Assume not, until told otherwise.
9351 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9352 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9353 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9364 #define malloc_get_state innocuous_malloc_get_state
9366 /* System header to define __stub macros and hopefully few prototypes,
9367 which can conflict with char malloc_get_state (); below.
9368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9369 <limits.h> exists even on freestanding compilers. */
9372 # include <limits.h>
9374 # include <assert.h>
9377 #undef malloc_get_state
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9385 char malloc_get_state ();
9386 /* The GNU C library defines this for functions which it implements
9387 to always fail with ENOSYS. Some functions are actually named
9388 something starting with __ and the normal name is an alias. */
9389 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9396 return malloc_get_state ();
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (ac_try="$ac_link"
9404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9405 *) ac_try_echo
=$ac_try;;
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_link") 2>conftest.er1
9410 grep -v '^ *+' conftest.er1
>conftest.err
9412 cat conftest.err
>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest
$ac_exeext &&
9418 $as_test_x conftest
$ac_exeext; then
9419 ac_cv_func_malloc_get_state
=yes
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9424 ac_cv_func_malloc_get_state
=no
9427 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9428 conftest
$ac_exeext conftest.
$ac_ext
9430 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9431 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9432 if test $ac_cv_func_malloc_get_state = yes; then
9438 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9439 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9440 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 cat >conftest.
$ac_ext <<_ACEOF
9446 cat confdefs.h
>>conftest.
$ac_ext
9447 cat >>conftest.
$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9451 #define malloc_set_state innocuous_malloc_set_state
9453 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char malloc_set_state (); below.
9455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9456 <limits.h> exists even on freestanding compilers. */
9459 # include <limits.h>
9461 # include <assert.h>
9464 #undef malloc_set_state
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9472 char malloc_set_state ();
9473 /* The GNU C library defines this for functions which it implements
9474 to always fail with ENOSYS. Some functions are actually named
9475 something starting with __ and the normal name is an alias. */
9476 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9483 return malloc_set_state ();
9488 rm -f conftest.
$ac_objext conftest
$ac_exeext
9489 if { (ac_try
="$ac_link"
9491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9497 grep -v '^ *+' conftest.er1 >conftest.err
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506 ac_cv_func_malloc_set_state=yes
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_cv_func_malloc_set_state=no
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515 conftest$ac_exeext conftest.$ac_ext
9517 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9518 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9519 if test $ac_cv_func_malloc_set_state = yes; then
9525 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9526 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9527 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 extern void (* __after_morecore_hook)();
9540 __after_morecore_hook = 0
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9549 *) ac_try_echo
=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
9554 grep -v '^ *+' conftest.er1
>conftest.err
9556 cat conftest.err
>&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_c_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest
$ac_exeext &&
9562 $as_test_x conftest
$ac_exeext; then
9563 emacs_cv_var___after_morecore_hook
=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.
$ac_ext >&5
9568 emacs_cv_var___after_morecore_hook
=no
9571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9572 conftest
$ac_exeext conftest.
$ac_ext
9574 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9575 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9576 if test $emacs_cv_var___after_morecore_hook = no
; then
9579 if test "${system_malloc}" = "yes"; then
9582 (The GNU allocators don't work with this system configuration.)"
9584 if test "$doug_lea_malloc" = "yes" ; then
9585 if test "$GNU_MALLOC" = yes ; then
9587 (Using Doug Lea's new malloc from the GNU C Library.)"
9590 cat >>confdefs.h
<<\_ACEOF
9591 #define DOUG_LEA_MALLOC 1
9596 if test x
"${REL_ALLOC}" = x
; then
9597 REL_ALLOC
=${GNU_MALLOC}
9603 for ac_header
in stdlib.h unistd.h
9605 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9606 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9609 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 ac_res
=`eval echo '${'$as_ac_Header'}'`
9613 { echo "$as_me:$LINENO: result: $ac_res" >&5
9614 echo "${ECHO_T}$ac_res" >&6; }
9616 # Is the header compilable?
9617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9619 cat >conftest.
$ac_ext <<_ACEOF
9622 cat confdefs.h
>>conftest.
$ac_ext
9623 cat >>conftest.
$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9626 #include <$ac_header>
9628 rm -f conftest.
$ac_objext
9629 if { (ac_try
="$ac_compile"
9631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_header_compiler=yes
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_header_compiler=no
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655 echo "${ECHO_T}$ac_header_compiler" >&6; }
9657 # Is the header present?
9658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9660 cat >conftest.$ac_ext <<_ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 #include <$ac_header>
9668 if { (ac_try="$ac_cpp conftest.$ac_ext"
9670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9671 *) ac_try_echo
=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9676 grep -v '^ *+' conftest.er1
>conftest.err
9678 cat conftest.err
>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } >/dev
/null
&& {
9681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9684 ac_header_preproc
=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.
$ac_ext >&5
9689 ac_header_preproc
=no
9692 rm -f conftest.err conftest.
$ac_ext
9693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9694 echo "${ECHO_T}$ac_header_preproc" >&6; }
9696 # So? What about this header?
9697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9703 ac_header_preproc
=yes
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9723 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 eval "$as_ac_Header=\$ac_header_preproc"
9728 ac_res
=`eval echo '${'$as_ac_Header'}'`
9729 { echo "$as_me:$LINENO: result: $ac_res" >&5
9730 echo "${ECHO_T}$ac_res" >&6; }
9733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9734 cat >>confdefs.h
<<_ACEOF
9735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9743 for ac_func
in getpagesize
9745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9748 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 cat >conftest.
$ac_ext <<_ACEOF
9754 cat confdefs.h
>>conftest.
$ac_ext
9755 cat >>conftest.
$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9759 #define $ac_func innocuous_$ac_func
9761 /* System header to define __stub macros and hopefully few prototypes,
9762 which can conflict with char $ac_func (); below.
9763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9764 <limits.h> exists even on freestanding compilers. */
9767 # include <limits.h>
9769 # include <assert.h>
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined __stub_$ac_func || defined __stub___$ac_func
9796 rm -f conftest.
$ac_objext conftest
$ac_exeext
9797 if { (ac_try
="$ac_link"
9799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest$ac_exeext &&
9813 $as_test_x conftest$ac_exeext; then
9814 eval "$as_ac_var=yes"
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 eval "$as_ac_var=no"
9822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9823 conftest$ac_exeext conftest.$ac_ext
9825 ac_res=`eval echo '${'$as_ac_var'}'`
9826 { echo "$as_me:$LINENO: result: $ac_res" >&5
9827 echo "${ECHO_T}$ac_res" >&6; }
9828 if test `eval echo '${'$as_ac_var'}'` = yes; then
9829 cat >>confdefs.h <<_ACEOF
9830 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9836 { echo "$as_me:$LINENO: checking for working mmap" >&5
9837 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9838 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 if test "$cross_compiling" = yes; then
9842 ac_cv_func_mmap_fixed_mapped=no
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 /* malloc might have been renamed as rpl_malloc. */
9854 /* Thanks to Mike Haertel and Jim Avera for this test.
9855 Here is a matrix of mmap possibilities:
9856 mmap private not fixed
9857 mmap private fixed at somewhere currently unmapped
9858 mmap private fixed at somewhere already mapped
9859 mmap shared not fixed
9860 mmap shared fixed at somewhere currently unmapped
9861 mmap shared fixed at somewhere already mapped
9862 For private mappings, we should verify that changes cannot be read()
9863 back from the file, nor mmap's back from the file at a different
9864 address. (There have been systems where private was not correctly
9865 implemented like the infamous i386 svr4.0, and systems where the
9866 VM page cache was not coherent with the file system buffer cache
9867 like early versions of FreeBSD and possibly contemporary NetBSD.)
9868 For shared mappings, we should conversely verify that changes get
9869 propagated back to all the places they're supposed to be.
9871 Grep wants private fixed already mapped.
9872 The main things grep needs to know about mmap are:
9873 * does it exist and is it safe to write into the mmap'd area
9874 * how to use it (BSD variants) */
9877 #include <sys/mman.h>
9879 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9883 /* This mess was copied from the GNU getpagesize.h. */
9884 #ifndef HAVE_GETPAGESIZE
9885 /* Assume that all systems that can run configure have sys/param.h. */
9886 # ifndef HAVE_SYS_PARAM_H
9887 # define HAVE_SYS_PARAM_H 1
9890 # ifdef _SC_PAGESIZE
9891 # define getpagesize() sysconf(_SC_PAGESIZE)
9892 # else /* no _SC_PAGESIZE */
9893 # ifdef HAVE_SYS_PARAM_H
9894 # include <sys/param.h>
9895 # ifdef EXEC_PAGESIZE
9896 # define getpagesize() EXEC_PAGESIZE
9897 # else /* no EXEC_PAGESIZE */
9899 # define getpagesize() NBPG * CLSIZE
9902 # endif /* no CLSIZE */
9903 # else /* no NBPG */
9905 # define getpagesize() NBPC
9906 # else /* no NBPC */
9908 # define getpagesize() PAGESIZE
9909 # endif /* PAGESIZE */
9910 # endif /* no NBPC */
9911 # endif /* no NBPG */
9912 # endif /* no EXEC_PAGESIZE */
9913 # else /* no HAVE_SYS_PARAM_H */
9914 # define getpagesize() 8192 /* punt totally */
9915 # endif /* no HAVE_SYS_PARAM_H */
9916 # endif /* no _SC_PAGESIZE */
9918 #endif /* no HAVE_GETPAGESIZE */
9923 char *data, *data2, *data3;
9927 pagesize = getpagesize ();
9929 /* First, make a file with some known garbage in it. */
9930 data = (char *) malloc (pagesize);
9933 for (i = 0; i < pagesize; ++i)
9934 *(data + i) = rand ();
9936 fd = creat ("conftest.mmap", 0600);
9939 if (write (fd, data, pagesize) != pagesize)
9943 /* Next, try to mmap the file at a fixed address which already has
9944 something else allocated at it. If we can, also make sure that
9945 we see the same garbage. */
9946 fd = open ("conftest.mmap", O_RDWR);
9949 data2 = (char *) malloc (2 * pagesize);
9952 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9956 for (i = 0; i < pagesize; ++i)
9957 if (*(data + i) != *(data2 + i))
9960 /* Finally, make sure that changes to the mapped area do not
9961 percolate back to the file as seen by read(). (This is a bug on
9962 some variants of i386 svr4.0.) */
9963 for (i = 0; i < pagesize; ++i)
9964 *(data2 + i) = *(data2 + i) + 1;
9965 data3 = (char *) malloc (pagesize);
9968 if (read (fd, data3, pagesize) != pagesize)
9970 for (i = 0; i < pagesize; ++i)
9971 if (*(data + i) != *(data3 + i))
9977 rm -f conftest$ac_exeext
9978 if { (ac_try="$ac_link"
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_link") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9988 { (case "(($ac_try" in
9989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_func_mmap_fixed_mapped=yes
9999 echo "$as_me: program exited with status $ac_status" >&5
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ( exit $ac_status )
10004 ac_cv_func_mmap_fixed_mapped=no
10006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10011 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10012 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10013 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_MMAP 1
10020 rm -f conftest.mmap
10022 if test $use_mmap_for_buffers = yes; then
10026 LIBS="$libsrc_libs $LIBS"
10029 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10030 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10031 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-ldnet $LIBS"
10036 cat >conftest.$ac_ext <<_ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10043 /* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
10053 return dnet_ntoa ();
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (ac_try="$ac_link"
10060 case "(($ac_try" in
10061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10062 *) ac_try_echo
=$ac_try;;
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_link") 2>conftest.er1
10067 grep -v '^ *+' conftest.er1
>conftest.err
10069 cat conftest.err
>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest
$ac_exeext &&
10075 $as_test_x conftest
$ac_exeext; then
10076 ac_cv_lib_dnet_dnet_ntoa
=yes
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.
$ac_ext >&5
10081 ac_cv_lib_dnet_dnet_ntoa
=no
10084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10085 conftest
$ac_exeext conftest.
$ac_ext
10086 LIBS
=$ac_check_lib_save_LIBS
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10089 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10090 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10091 cat >>confdefs.h
<<_ACEOF
10092 #define HAVE_LIBDNET 1
10095 LIBS
="-ldnet $LIBS"
10100 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10101 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10102 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 ac_check_lib_save_LIBS
=$LIBS
10106 LIBS
="-lXbsd $LIBS"
10107 cat >conftest.
$ac_ext <<_ACEOF
10110 cat confdefs.h
>>conftest.
$ac_ext
10111 cat >>conftest.
$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10123 rm -f conftest.
$ac_objext conftest
$ac_exeext
10124 if { (ac_try
="$ac_link"
10125 case "(($ac_try" in
10126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && {
10137 test -z "$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 } && test -s conftest$ac_exeext &&
10140 $as_test_x conftest$ac_exeext; then
10141 ac_cv_lib_Xbsd_main=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_Xbsd_main=no
10149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10154 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10155 if test $ac_cv_lib_Xbsd_main = yes; then
10156 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10161 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10162 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10163 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lpthreads $LIBS"
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10185 return cma_open ();
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10194 *) ac_try_echo
=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10199 grep -v '^ *+' conftest.er1
>conftest.err
10201 cat conftest.err
>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && {
10204 test -z "$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 } && test -s conftest
$ac_exeext &&
10207 $as_test_x conftest
$ac_exeext; then
10208 ac_cv_lib_pthreads_cma_open
=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.
$ac_ext >&5
10213 ac_cv_lib_pthreads_cma_open
=no
10216 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10217 conftest
$ac_exeext conftest.
$ac_ext
10218 LIBS
=$ac_check_lib_save_LIBS
10220 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10221 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10222 if test $ac_cv_lib_pthreads_cma_open = yes; then
10223 cat >>confdefs.h
<<_ACEOF
10224 #define HAVE_LIBPTHREADS 1
10227 LIBS
="-lpthreads $LIBS"
10235 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10236 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10237 if test "${gdb_cv_bigtoc+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10243 *) gdb_cv_bigtoc
=-bbigtoc ;;
10246 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10247 cat >conftest.
$ac_ext <<_ACEOF
10250 cat confdefs.h
>>conftest.
$ac_ext
10251 cat >>conftest.
$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10262 rm -f conftest.
$ac_objext conftest
$ac_exeext
10263 if { (ac_try
="$ac_link"
10264 case "(($ac_try" in
10265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
10271 grep -v '^ *+' conftest.er1 >conftest.err
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_c_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest$ac_exeext &&
10279 $as_test_x conftest$ac_exeext; then
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext conftest.$ac_ext
10292 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10293 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10297 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10298 # used for the tests that follow. We set them back to REAL_CFLAGS and
10299 # REAL_CPPFLAGS later on.
10301 REAL_CPPFLAGS="$CPPFLAGS"
10303 if test "${HAVE_X11}" = "yes"; then
10304 DEFS="$C_SWITCH_X_SITE $DEFS"
10305 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10307 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10308 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10310 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10311 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10312 # but it's more convenient here to set LD_RUN_PATH
10313 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10314 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10315 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10319 if test "${opsys}" = "gnu-linux"; then
10320 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10321 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10332 XOpenDisplay ("foo");
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (ac_try="$ac_link"
10339 case "(($ac_try" in
10340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10341 *) ac_try_echo
=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_link") 2>conftest.er1
10346 grep -v '^ *+' conftest.er1
>conftest.err
10348 cat conftest.err
>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest
$ac_exeext &&
10354 $as_test_x conftest
$ac_exeext; then
10355 xlinux_first_failure
=no
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.
$ac_ext >&5
10360 xlinux_first_failure
=yes
10363 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10364 conftest
$ac_exeext conftest.
$ac_ext
10365 if test "${xlinux_first_failure}" = "yes"; then
10366 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10367 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10368 OLD_CPPFLAGS
="$CPPFLAGS"
10370 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10371 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10372 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10373 LIBS
="$LIBS -b i486-linuxaout"
10374 cat >conftest.
$ac_ext <<_ACEOF
10377 cat confdefs.h
>>conftest.
$ac_ext
10378 cat >>conftest.
$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10384 XOpenDisplay ("foo");
10389 rm -f conftest.
$ac_objext conftest
$ac_exeext
10390 if { (ac_try
="$ac_link"
10391 case "(($ac_try" in
10392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_link") 2>conftest.er1
10398 grep -v '^ *+' conftest.er1 >conftest.err
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } && {
10403 test -z "$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10405 } && test -s conftest$ac_exeext &&
10406 $as_test_x conftest$ac_exeext; then
10407 xlinux_second_failure=no
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 xlinux_second_failure=yes
10415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10416 conftest$ac_exeext conftest.$ac_ext
10417 if test "${xlinux_second_failure}" = "yes"; then
10418 # If we get the same failure with -b, there is no use adding -b.
10419 # So take it out. This plays safe.
10420 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10421 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10422 CPPFLAGS="$OLD_CPPFLAGS"
10424 { echo "$as_me:$LINENO: result: no" >&5
10425 echo "${ECHO_T}no" >&6; }
10427 { echo "$as_me:$LINENO: result: yes" >&5
10428 echo "${ECHO_T}yes" >&6; }
10431 { echo "$as_me:$LINENO: result: no" >&5
10432 echo "${ECHO_T}no" >&6; }
10436 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10437 # header files included from there.
10438 { echo "$as_me:$LINENO: checking for Xkb" >&5
10439 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 #include <X11/Xlib.h>
10447 #include <X11/XKBlib.h>
10451 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10460 *) ac_try_echo
=$ac_try;;
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_link") 2>conftest.er1
10465 grep -v '^ *+' conftest.er1
>conftest.err
10467 cat conftest.err
>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest
$ac_exeext &&
10473 $as_test_x conftest
$ac_exeext; then
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.
$ac_ext >&5
10482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10483 conftest
$ac_exeext conftest.
$ac_ext
10484 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10485 echo "${ECHO_T}$emacs_xkb" >&6; }
10486 if test $emacs_xkb = yes; then
10488 cat >>confdefs.h
<<\_ACEOF
10489 #define HAVE_XKBGETKEYBOARD 1
10498 for ac_func
in XrmSetDatabase XScreenResourceString \
10499 XScreenNumberOfScreen XSetWMProtocols
10501 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10504 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 cat >conftest.
$ac_ext <<_ACEOF
10510 cat confdefs.h
>>conftest.
$ac_ext
10511 cat >>conftest.
$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10515 #define $ac_func innocuous_$ac_func
10517 /* System header to define __stub macros and hopefully few prototypes,
10518 which can conflict with char $ac_func (); below.
10519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10520 <limits.h> exists even on freestanding compilers. */
10523 # include <limits.h>
10525 # include <assert.h>
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10537 /* The GNU C library defines this for functions which it implements
10538 to always fail with ENOSYS. Some functions are actually named
10539 something starting with __ and the normal name is an alias. */
10540 #if defined __stub_$ac_func || defined __stub___$ac_func
10547 return $ac_func ();
10552 rm -f conftest.
$ac_objext conftest
$ac_exeext
10553 if { (ac_try
="$ac_link"
10554 case "(($ac_try" in
10555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_link") 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest$ac_exeext &&
10569 $as_test_x conftest$ac_exeext; then
10570 eval "$as_ac_var=yes"
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 eval "$as_ac_var=no"
10578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579 conftest$ac_exeext conftest.$ac_ext
10581 ac_res=`eval echo '${'$as_ac_var'}'`
10582 { echo "$as_me:$LINENO: result: $ac_res" >&5
10583 echo "${ECHO_T}$ac_res" >&6; }
10584 if test `eval echo '${'$as_ac_var'}'` = yes; then
10585 cat >>confdefs.h <<_ACEOF
10586 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10594 if test "${window_system}" = "x11"; then
10595 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10596 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10597 if test "${emacs_cv_x11_version_6+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 #include <X11/Xlib.h>
10610 #if XlibSpecificationRelease < 6
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (ac_try="$ac_link"
10620 case "(($ac_try" in
10621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10622 *) ac_try_echo
=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_link") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1
>conftest.err
10629 cat conftest.err
>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest
$ac_exeext &&
10635 $as_test_x conftest
$ac_exeext; then
10636 emacs_cv_x11_version_6
=yes
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.
$ac_ext >&5
10641 emacs_cv_x11_version_6
=no
10644 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10645 conftest
$ac_exeext conftest.
$ac_ext
10648 if test $emacs_cv_x11_version_6 = yes; then
10649 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10650 echo "${ECHO_T}6 or newer" >&6; }
10652 cat >>confdefs.h
<<\_ACEOF
10653 #define HAVE_X11R6 1
10657 { echo "$as_me:$LINENO: result: before 6" >&5
10658 echo "${ECHO_T}before 6" >&6; }
10663 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10665 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10666 if test "${with_rsvg}" != "no"; then
10667 RSVG_REQUIRED
=2.0.0
10668 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10673 # Extract the first word of "pkg-config", so it can be a program name with args.
10674 set dummy pkg-config
; ac_word
=$2
10675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 case $PKG_CONFIG in
10682 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10686 for as_dir
in $PATH
10689 test -z "$as_dir" && as_dir
=.
10690 for ac_exec_ext
in '' $ac_executable_extensions; do
10691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10692 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10704 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10705 if test -n "$PKG_CONFIG"; then
10706 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10707 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10709 { echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6; }
10715 if test "$PKG_CONFIG" = "no" ; then
10718 PKG_CONFIG_MIN_VERSION
=0.9.0
10719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10720 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10721 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10723 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10724 { echo "$as_me:$LINENO: result: yes" >&5
10725 echo "${ECHO_T}yes" >&6; }
10728 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10729 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10730 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10731 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10732 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10734 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10735 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10736 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10737 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10738 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10740 { echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6; }
10744 ## If we have a custom action on failure, don't print errors, but
10745 ## do set a variable so people can do so.
10746 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10758 if test $succeeded = yes; then
10767 if test ".${RSVG_CFLAGS}" != "."; then
10770 cat >>confdefs.h
<<\_ACEOF
10771 #define HAVE_RSVG 1
10774 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10775 LIBS
="$RSVG_LIBS $LIBS"
10782 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10785 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10790 # Extract the first word of "pkg-config", so it can be a program name with args.
10791 set dummy pkg-config
; ac_word
=$2
10792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 case $PKG_CONFIG in
10799 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10803 for as_dir
in $PATH
10806 test -z "$as_dir" && as_dir
=.
10807 for ac_exec_ext
in '' $ac_executable_extensions; do
10808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10821 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10822 if test -n "$PKG_CONFIG"; then
10823 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10824 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10826 { echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6; }
10832 if test "$PKG_CONFIG" = "no" ; then
10835 PKG_CONFIG_MIN_VERSION
=0.9.0
10836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10837 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10838 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10840 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10841 { echo "$as_me:$LINENO: result: yes" >&5
10842 echo "${ECHO_T}yes" >&6; }
10845 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10846 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10847 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10848 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10849 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10851 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10852 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10853 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10854 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10855 echo "${ECHO_T}$GTK_LIBS" >&6; }
10857 { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10861 ## If we have a custom action on failure, don't print errors, but
10862 ## do set a variable so people can do so.
10863 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10875 if test $succeeded = yes; then
10881 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10882 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10883 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10884 { (exit 1); exit 1; }; }
10889 if test x
"$pkg_check_gtk" = xyes
; then
10893 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10894 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10895 LIBS
="$GTK_LIBS $LIBS"
10898 for ac_func
in gtk_main
10900 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10903 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.
$ac_ext <<_ACEOF
10909 cat confdefs.h
>>conftest.
$ac_ext
10910 cat >>conftest.
$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10914 #define $ac_func innocuous_$ac_func
10916 /* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char $ac_func (); below.
10918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919 <limits.h> exists even on freestanding compilers. */
10922 # include <limits.h>
10924 # include <assert.h>
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10936 /* The GNU C library defines this for functions which it implements
10937 to always fail with ENOSYS. Some functions are actually named
10938 something starting with __ and the normal name is an alias. */
10939 #if defined __stub_$ac_func || defined __stub___$ac_func
10946 return $ac_func ();
10951 rm -f conftest.
$ac_objext conftest
$ac_exeext
10952 if { (ac_try
="$ac_link"
10953 case "(($ac_try" in
10954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_link") 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } && {
10965 test -z "$ac_c_werror_flag" ||
10966 test ! -s conftest.err
10967 } && test -s conftest$ac_exeext &&
10968 $as_test_x conftest$ac_exeext; then
10969 eval "$as_ac_var=yes"
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 eval "$as_ac_var=no"
10977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10978 conftest$ac_exeext conftest.$ac_ext
10980 ac_res=`eval echo '${'$as_ac_var'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982 echo "${ECHO_T}$ac_res" >&6; }
10983 if test `eval echo '${'$as_ac_var'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10991 if test "${GTK_COMPILES}" != "yes"; then
10992 if test "$USE_X_TOOLKIT" != "maybe"; then
10993 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10994 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10995 { (exit 1); exit 1; }; };
11000 cat >>confdefs.h <<\_ACEOF
11005 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11008 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11009 closing open displays. This is no problem if you just use
11010 one display, but if you use more than one and close one of them
11011 Emacs may crash." >&5
11012 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11013 closing open displays. This is no problem if you just use
11014 one display, but if you use more than one and close one of them
11015 Emacs may crash." >&2;}
11023 if test "${HAVE_GTK}" = "yes"; then
11025 if test "$with_toolkit_scroll_bars" != no; then
11026 with_toolkit_scroll_bars=yes
11029 HAVE_GTK_MULTIDISPLAY=no
11031 for ac_func in gdk_display_open
11033 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11047 #define $ac_func innocuous_$ac_func
11049 /* System header to define __stub macros and hopefully few prototypes,
11050 which can conflict with char $ac_func (); below.
11051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052 <limits.h> exists even on freestanding compilers. */
11055 # include <limits.h>
11057 # include <assert.h>
11062 /* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11069 /* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
11072 #if defined __stub_$ac_func || defined __stub___$ac_func
11079 return $ac_func ();
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (ac_try="$ac_link"
11086 case "(($ac_try" in
11087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11088 *) ac_try_echo
=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_link") 2>conftest.er1
11093 grep -v '^ *+' conftest.er1
>conftest.err
11095 cat conftest.err
>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && {
11098 test -z "$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11100 } && test -s conftest
$ac_exeext &&
11101 $as_test_x conftest
$ac_exeext; then
11102 eval "$as_ac_var=yes"
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.
$ac_ext >&5
11107 eval "$as_ac_var=no"
11110 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11111 conftest
$ac_exeext conftest.
$ac_ext
11113 ac_res
=`eval echo '${'$as_ac_var'}'`
11114 { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11116 if test `eval echo '${'$as_ac_var'}'` = yes; then
11117 cat >>confdefs.h
<<_ACEOF
11118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11120 HAVE_GTK_MULTIDISPLAY
=yes
11124 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11126 cat >>confdefs.h
<<\_ACEOF
11127 #define HAVE_GTK_MULTIDISPLAY 1
11132 HAVE_GTK_FILE_SELECTION
=no
11134 for ac_func
in gtk_file_selection_new
11136 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11139 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.
$ac_ext <<_ACEOF
11145 cat confdefs.h
>>conftest.
$ac_ext
11146 cat >>conftest.
$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11150 #define $ac_func innocuous_$ac_func
11152 /* System header to define __stub macros and hopefully few prototypes,
11153 which can conflict with char $ac_func (); below.
11154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11155 <limits.h> exists even on freestanding compilers. */
11158 # include <limits.h>
11160 # include <assert.h>
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11172 /* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175 #if defined __stub_$ac_func || defined __stub___$ac_func
11182 return $ac_func ();
11187 rm -f conftest.
$ac_objext conftest
$ac_exeext
11188 if { (ac_try
="$ac_link"
11189 case "(($ac_try" in
11190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_link") 2>conftest.er1
11196 grep -v '^ *+' conftest.er1 >conftest.err
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } && {
11201 test -z "$ac_c_werror_flag" ||
11202 test ! -s conftest.err
11203 } && test -s conftest$ac_exeext &&
11204 $as_test_x conftest$ac_exeext; then
11205 eval "$as_ac_var=yes"
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 eval "$as_ac_var=no"
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214 conftest$ac_exeext conftest.$ac_ext
11216 ac_res=`eval echo '${'$as_ac_var'}'`
11217 { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11223 HAVE_GTK_FILE_SELECTION=yes
11228 HAVE_GTK_FILE_CHOOSER=no
11230 for ac_func in gtk_file_chooser_dialog_new
11232 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 cat >conftest.$ac_ext <<_ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11246 #define $ac_func innocuous_$ac_func
11248 /* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func (); below.
11250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 <limits.h> exists even on freestanding compilers. */
11254 # include <limits.h>
11256 # include <assert.h>
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11268 /* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
11271 #if defined __stub_$ac_func || defined __stub___$ac_func
11278 return $ac_func ();
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (ac_try="$ac_link"
11285 case "(($ac_try" in
11286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11287 *) ac_try_echo
=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_link") 2>conftest.er1
11292 grep -v '^ *+' conftest.er1
>conftest.err
11294 cat conftest.err
>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } && {
11297 test -z "$ac_c_werror_flag" ||
11298 test ! -s conftest.err
11299 } && test -s conftest
$ac_exeext &&
11300 $as_test_x conftest
$ac_exeext; then
11301 eval "$as_ac_var=yes"
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.
$ac_ext >&5
11306 eval "$as_ac_var=no"
11309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11310 conftest
$ac_exeext conftest.
$ac_ext
11312 ac_res
=`eval echo '${'$as_ac_var'}'`
11313 { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11315 if test `eval echo '${'$as_ac_var'}'` = yes; then
11316 cat >>confdefs.h
<<_ACEOF
11317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 HAVE_GTK_FILE_CHOOSER
=yes
11324 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11325 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11327 cat >>confdefs.h
<<\_ACEOF
11328 #define HAVE_GTK_FILE_BOTH 1
11333 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11334 HAVE_GTK_AND_PTHREAD
=no
11336 for ac_header
in pthread.h
11338 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11342 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 ac_res
=`eval echo '${'$as_ac_Header'}'`
11346 { echo "$as_me:$LINENO: result: $ac_res" >&5
11347 echo "${ECHO_T}$ac_res" >&6; }
11349 # Is the header compilable?
11350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11352 cat >conftest.
$ac_ext <<_ACEOF
11355 cat confdefs.h
>>conftest.
$ac_ext
11356 cat >>conftest.
$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 #include <$ac_header>
11361 rm -f conftest.
$ac_objext
11362 if { (ac_try
="$ac_compile"
11363 case "(($ac_try" in
11364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_compile") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest.$ac_objext; then
11378 ac_header_compiler=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_compiler=no
11386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11388 echo "${ECHO_T}$ac_header_compiler" >&6; }
11390 # Is the header present?
11391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #include <$ac_header>
11401 if { (ac_try="$ac_cpp conftest.$ac_ext"
11402 case "(($ac_try" in
11403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11404 *) ac_try_echo
=$ac_try;;
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11409 grep -v '^ *+' conftest.er1
>conftest.err
11411 cat conftest.err
>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } >/dev
/null
&& {
11414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11417 ac_header_preproc
=yes
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.
$ac_ext >&5
11422 ac_header_preproc
=no
11425 rm -f conftest.err conftest.
$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11427 echo "${ECHO_T}$ac_header_preproc" >&6; }
11429 # So? What about this header?
11430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11436 ac_header_preproc
=yes
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11456 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 eval "$as_ac_Header=\$ac_header_preproc"
11461 ac_res
=`eval echo '${'$as_ac_Header'}'`
11462 { echo "$as_me:$LINENO: result: $ac_res" >&5
11463 echo "${ECHO_T}$ac_res" >&6; }
11466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11467 cat >>confdefs.h
<<_ACEOF
11468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11475 if test "$ac_cv_header_pthread_h"; then
11476 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11477 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11478 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 ac_check_lib_save_LIBS
=$LIBS
11482 LIBS
="-lpthread $LIBS"
11483 cat >conftest.
$ac_ext <<_ACEOF
11486 cat confdefs.h
>>conftest.
$ac_ext
11487 cat >>conftest.
$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11496 char pthread_self ();
11500 return pthread_self ();
11505 rm -f conftest.
$ac_objext conftest
$ac_exeext
11506 if { (ac_try
="$ac_link"
11507 case "(($ac_try" in
11508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_link") 2>conftest.er1
11514 grep -v '^ *+' conftest.er1 >conftest.err
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } && {
11519 test -z "$ac_c_werror_flag" ||
11520 test ! -s conftest.err
11521 } && test -s conftest$ac_exeext &&
11522 $as_test_x conftest$ac_exeext; then
11523 ac_cv_lib_pthread_pthread_self=yes
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_cv_lib_pthread_pthread_self=no
11531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11535 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11536 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11537 if test $ac_cv_lib_pthread_pthread_self = yes; then
11538 HAVE_GTK_AND_PTHREAD=yes
11542 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11543 case "${canonical}" in
11545 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11548 cat >>confdefs.h <<\_ACEOF
11549 #define HAVE_GTK_AND_PTHREAD 1
11557 if test "${with_dbus}" = "yes"; then
11561 # Extract the first word of "pkg-config", so it can be a program name with args.
11562 set dummy pkg-config; ac_word=$2
11563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11565 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 case $PKG_CONFIG in
11570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11580 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11592 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11593 if test -n "$PKG_CONFIG"; then
11594 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11595 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11597 { echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6; }
11603 if test "$PKG_CONFIG" = "no" ; then
11606 PKG_CONFIG_MIN_VERSION=0.9.0
11607 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11608 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11609 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11611 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11612 { echo "$as_me:$LINENO: result: yes" >&5
11613 echo "${ECHO_T}yes" >&6; }
11616 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11617 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11618 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11619 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11620 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11622 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11623 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11624 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11625 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11626 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11628 { echo "$as_me:$LINENO: result: no" >&5
11629 echo "${ECHO_T}no" >&6; }
11632 ## If we have a custom action on failure, don't print errors, but
11633 ## do set a variable so people can do so.
11634 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11641 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11642 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11646 if test $succeeded = yes; then
11652 if test "$HAVE_DBUS" = yes; then
11654 cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_DBUS 1
11662 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11663 if test "$with_xaw3d" != no; then
11664 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11665 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11666 if test "${emacs_cv_xaw3d+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 cat >conftest.$ac_ext <<_ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11676 #include <X11/Intrinsic.h>
11677 #include <X11/Xaw3d/Simple.h>
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11690 *) ac_try_echo
=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1
>conftest.err
11697 cat conftest.err
>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest
$ac_exeext &&
11703 $as_test_x conftest
$ac_exeext; then
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.
$ac_ext >&5
11712 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11713 conftest
$ac_exeext conftest.
$ac_ext
11719 if test $emacs_cv_xaw3d = yes; then
11720 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11721 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11722 USE_X_TOOLKIT
=LUCID
11725 cat >>confdefs.h
<<\_ACEOF
11726 #define HAVE_XAW3D 1
11730 { echo "$as_me:$LINENO: result: no" >&5
11731 echo "${ECHO_T}no" >&6; }
11732 { echo "$as_me:$LINENO: checking for libXaw" >&5
11733 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11734 if test "${emacs_cv_xaw+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 cat >conftest.
$ac_ext <<_ACEOF
11740 cat confdefs.h
>>conftest.
$ac_ext
11741 cat >>conftest.
$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11744 #include <X11/Intrinsic.h>
11745 #include <X11/Xaw/Simple.h>
11754 rm -f conftest.
$ac_objext conftest
$ac_exeext
11755 if { (ac_try
="$ac_link"
11756 case "(($ac_try" in
11757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_link") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest$ac_exeext &&
11771 $as_test_x conftest$ac_exeext; then
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11781 conftest$ac_exeext conftest.$ac_ext
11784 if test $emacs_cv_xaw = yes; then
11785 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11786 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11787 USE_X_TOOLKIT=LUCID
11788 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11789 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11790 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11791 { (exit 1); exit 1; }; }
11793 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11794 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11800 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11802 if test "${USE_X_TOOLKIT}" != "none"; then
11803 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11804 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11805 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <X11/Intrinsic.h>
11818 #if XtSpecificationRelease < 6
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11830 *) ac_try_echo
=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1
>conftest.err
11837 cat conftest.err
>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest
$ac_exeext &&
11843 $as_test_x conftest
$ac_exeext; then
11844 emacs_cv_x11_toolkit_version_6
=yes
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.
$ac_ext >&5
11849 emacs_cv_x11_toolkit_version_6
=no
11852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11853 conftest
$ac_exeext conftest.
$ac_ext
11856 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11857 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11858 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11859 echo "${ECHO_T}6 or newer" >&6; }
11861 cat >>confdefs.h
<<\_ACEOF
11862 #define HAVE_X11XTR6 1
11866 { echo "$as_me:$LINENO: result: before 6" >&5
11867 echo "${ECHO_T}before 6" >&6; }
11871 if test x
$HAVE_X11XTR6 = xyes
; then
11872 LIBS
="-lXt -lSM -lICE $LIBS"
11877 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11878 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11879 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 ac_check_lib_save_LIBS
=$LIBS
11884 cat >conftest.
$ac_ext <<_ACEOF
11887 cat confdefs.h
>>conftest.
$ac_ext
11888 cat >>conftest.
$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11897 char XmuConvertStandardSelection ();
11901 return XmuConvertStandardSelection ();
11906 rm -f conftest.
$ac_objext conftest
$ac_exeext
11907 if { (ac_try
="$ac_link"
11908 case "(($ac_try" in
11909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_link") 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest$ac_exeext &&
11923 $as_test_x conftest$ac_exeext; then
11924 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11936 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11937 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11938 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_LIBXMU 1
11947 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11950 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11951 if test "${HAVE_X11}" = "yes"; then
11952 if test "${USE_X_TOOLKIT}" != "none"; then
11954 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11955 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11956 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-lXext $LIBS"
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11974 char XShapeQueryExtension ();
11978 return XShapeQueryExtension ();
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (ac_try="$ac_link"
11985 case "(($ac_try" in
11986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11987 *) ac_try_echo
=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_link") 2>conftest.er1
11992 grep -v '^ *+' conftest.er1
>conftest.err
11994 cat conftest.err
>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } && {
11997 test -z "$ac_c_werror_flag" ||
11998 test ! -s conftest.err
11999 } && test -s conftest
$ac_exeext &&
12000 $as_test_x conftest
$ac_exeext; then
12001 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.
$ac_ext >&5
12006 ac_cv_lib_Xext_XShapeQueryExtension
=no
12009 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12010 conftest
$ac_exeext conftest.
$ac_ext
12011 LIBS
=$ac_check_lib_save_LIBS
12013 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12014 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12015 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12016 cat >>confdefs.h
<<_ACEOF
12017 #define HAVE_LIBXEXT 1
12020 LIBS
="-lXext $LIBS"
12027 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12028 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12029 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12030 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 cat >conftest.
$ac_ext <<_ACEOF
12036 cat confdefs.h
>>conftest.
$ac_ext
12037 cat >>conftest.
$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12043 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12046 Motif version prior to 2.1.
12052 rm -f conftest.
$ac_objext
12053 if { (ac_try
="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
12069 emacs_cv_motif_version_2_1=yes
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 emacs_cv_motif_version_2_1=no
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12080 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12081 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12082 if test $emacs_cv_motif_version_2_1 = yes; then
12085 cat >>confdefs.h <<\_ACEOF
12086 #define HAVE_MOTIF_2_1 1
12089 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12090 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12091 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 ac_check_lib_save_LIBS=$LIBS
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12109 char XpCreateContext ();
12113 return XpCreateContext ();
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12122 *) ac_try_echo
=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12127 grep -v '^ *+' conftest.er1
>conftest.err
12129 cat conftest.err
>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest
$ac_exeext &&
12135 $as_test_x conftest
$ac_exeext; then
12136 ac_cv_lib_Xp_XpCreateContext
=yes
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.
$ac_ext >&5
12141 ac_cv_lib_Xp_XpCreateContext
=no
12144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12145 conftest
$ac_exeext conftest.
$ac_ext
12146 LIBS
=$ac_check_lib_save_LIBS
12148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12149 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12150 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12154 if test ${HAVE_LIBXP} = yes; then
12156 cat >>confdefs.h
<<\_ACEOF
12157 #define HAVE_LIBXP 1
12162 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12163 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12164 if test "${emacs_cv_lesstif+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 # We put this in CFLAGS temporarily to precede other -I options
12168 # that might be in CFLAGS temporarily.
12169 # We put this in CPPFLAGS where it precedes the other -I options.
12170 OLD_CPPFLAGS
=$CPPFLAGS
12172 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12173 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12174 cat >conftest.
$ac_ext <<_ACEOF
12177 cat confdefs.h
>>conftest.
$ac_ext
12178 cat >>conftest.
$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12189 rm -f conftest.
$ac_objext
12190 if { (ac_try
="$ac_compile"
12191 case "(($ac_try" in
12192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_compile") 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } && {
12203 test -z "$ac_c_werror_flag" ||
12204 test ! -s conftest.err
12205 } && test -s conftest.$ac_objext; then
12206 emacs_cv_lesstif=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 emacs_cv_lesstif=no
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12217 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12218 if test $emacs_cv_lesstif = yes; then
12219 # Make sure this -I option remains in CPPFLAGS after it is set
12220 # back to REAL_CPPFLAGS.
12221 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12222 # have those other -I options anyway. Ultimately, having this
12223 # directory ultimately in CPPFLAGS will be enough.
12224 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12225 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12228 CPPFLAGS=$OLD_CPPFLAGS
12235 USE_TOOLKIT_SCROLL_BARS=no
12236 if test "${with_toolkit_scroll_bars}" != "no"; then
12237 if test "${USE_X_TOOLKIT}" != "none"; then
12238 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define USE_TOOLKIT_SCROLL_BARS 1
12244 USE_TOOLKIT_SCROLL_BARS=yes
12245 elif test "${HAVE_XAW3D}" = "yes"; then
12246 cat >>confdefs.h <<\_ACEOF
12247 #define USE_TOOLKIT_SCROLL_BARS 1
12250 USE_TOOLKIT_SCROLL_BARS=yes
12252 elif test "${HAVE_GTK}" = "yes"; then
12253 cat >>confdefs.h <<\_ACEOF
12254 #define USE_TOOLKIT_SCROLL_BARS 1
12257 USE_TOOLKIT_SCROLL_BARS=yes
12258 elif test "${HAVE_CARBON}" = "yes"; then
12259 cat >>confdefs.h <<\_ACEOF
12260 #define USE_TOOLKIT_SCROLL_BARS 1
12263 USE_TOOLKIT_SCROLL_BARS=yes
12267 cat >conftest.$ac_ext <<_ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12274 #include <X11/Xlib.h>
12275 #include <X11/Xresource.h>
12284 rm -f conftest.$ac_objext
12285 if { (ac_try="$ac_compile"
12286 case "(($ac_try" in
12287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12288 *) ac_try_echo
=$ac_try;;
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_compile") 2>conftest.er1
12293 grep -v '^ *+' conftest.er1
>conftest.err
12295 cat conftest.err
>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
12300 } && test -s conftest.
$ac_objext; then
12303 cat >>confdefs.h
<<\_ACEOF
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.
$ac_ext >&5
12314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12317 if test "${with_xim}" != "no"; then
12319 cat >>confdefs.h
<<\_ACEOF
12326 if test "${HAVE_XIM}" != "no"; then
12327 late_CFLAGS
=$CFLAGS
12328 if test "$GCC" = yes; then
12329 CFLAGS
="$CFLAGS --pedantic-errors"
12331 cat >conftest.
$ac_ext <<_ACEOF
12334 cat confdefs.h
>>conftest.
$ac_ext
12335 cat >>conftest.
$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12338 #include <X11/Xlib.h>
12339 #include <X11/Xresource.h>
12348 XPointer *client_data;
12350 /* If we're not using GCC, it's probably not XFree86, and this is
12351 probably right, but we can't use something like --pedantic-errors. */
12352 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12353 char*, XIMProc, XPointer*);
12355 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12361 rm -f conftest.
$ac_objext
12362 if { (ac_try
="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 emacs_cv_arg6_star=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 if test "$emacs_cv_arg6_star" = yes; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12394 cat >>confdefs.h <<\_ACEOF
12395 #define XRegisterIMInstantiateCallback_arg6 XPointer
12399 CFLAGS=$late_CFLAGS
12402 ### Start of font-backend section.
12403 if test "${HAVE_X11}" != "yes"; then
12404 USE_FONT_BACKEND=no
12407 if test "${USE_FONT_BACKEND}" = "yes"; then
12409 cat >>confdefs.h <<\_ACEOF
12410 #define USE_FONT_BACKEND 1
12414 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12416 if test "x${with_freetype}" = "xno"; then
12419 if test "x${with_xft}" != "xno"; then
12424 # Extract the first word of "pkg-config", so it can be a program name with args.
12425 set dummy pkg-config
; ac_word
=$2
12426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12428 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 case $PKG_CONFIG in
12433 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12437 for as_dir
in $PATH
12440 test -z "$as_dir" && as_dir
=.
12441 for ac_exec_ext
in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12455 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12456 if test -n "$PKG_CONFIG"; then
12457 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12458 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12460 { echo "$as_me:$LINENO: result: no" >&5
12461 echo "${ECHO_T}no" >&6; }
12466 if test "$PKG_CONFIG" = "no" ; then
12469 PKG_CONFIG_MIN_VERSION
=0.9.0
12470 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12471 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12472 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12474 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12475 { echo "$as_me:$LINENO: result: yes" >&5
12476 echo "${ECHO_T}yes" >&6; }
12479 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12480 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12481 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12482 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12483 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12485 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12486 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12487 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12488 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12489 echo "${ECHO_T}$XFT_LIBS" >&6; }
12491 { echo "$as_me:$LINENO: result: no" >&5
12492 echo "${ECHO_T}no" >&6; }
12495 ## If we have a custom action on failure, don't print errors, but
12496 ## do set a variable so people can do so.
12497 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12504 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12505 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12509 if test $succeeded = yes; then
12515 if test "$HAVE_XFT" != no
; then
12516 OLD_CPPFLAGS
="$CPPFLAGS"
12517 OLD_CFLAGS
="$CFLAGS"
12519 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12520 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12521 LIBS
="$XFT_LIBS $LIBS"
12522 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12523 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12524 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12525 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12529 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12531 # Is the header compilable?
12532 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12533 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12534 cat >conftest.
$ac_ext <<_ACEOF
12537 cat confdefs.h
>>conftest.
$ac_ext
12538 cat >>conftest.
$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 $ac_includes_default
12541 #include <X11/Xft/Xft.h>
12543 rm -f conftest.
$ac_objext
12544 if { (ac_try
="$ac_compile"
12545 case "(($ac_try" in
12546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_compile") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest.$ac_objext; then
12560 ac_header_compiler=yes
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_header_compiler=no
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12570 echo "${ECHO_T}$ac_header_compiler" >&6; }
12572 # Is the header present?
12573 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12574 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12575 cat >conftest.$ac_ext <<_ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 #include <X11/Xft/Xft.h>
12583 if { (ac_try="$ac_cpp conftest.$ac_ext"
12584 case "(($ac_try" in
12585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12586 *) ac_try_echo
=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12591 grep -v '^ *+' conftest.er1
>conftest.err
12593 cat conftest.err
>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } >/dev
/null
&& {
12596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12599 ac_header_preproc
=yes
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.
$ac_ext >&5
12604 ac_header_preproc
=no
12607 rm -f conftest.err conftest.
$ac_ext
12608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12609 echo "${ECHO_T}$ac_header_preproc" >&6; }
12611 # So? What about this header?
12612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12614 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12615 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12617 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12618 ac_header_preproc
=yes
12621 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12622 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12624 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12626 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12627 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12628 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12629 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12630 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12631 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12632 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12636 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12637 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12638 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12643 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12644 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12647 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12648 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12649 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12650 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 ac_check_lib_save_LIBS
=$LIBS
12654 LIBS
="-lXft $XFT_LIBS $LIBS"
12655 cat >conftest.
$ac_ext <<_ACEOF
12658 cat confdefs.h
>>conftest.
$ac_ext
12659 cat >>conftest.
$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12668 char XftFontOpen ();
12672 return XftFontOpen ();
12677 rm -f conftest.
$ac_objext conftest
$ac_exeext
12678 if { (ac_try
="$ac_link"
12679 case "(($ac_try" in
12680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_link") 2>conftest.er1
12686 grep -v '^ *+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } && {
12691 test -z "$ac_c_werror_flag" ||
12692 test ! -s conftest.err
12693 } && test -s conftest$ac_exeext &&
12694 $as_test_x conftest$ac_exeext; then
12695 ac_cv_lib_Xft_XftFontOpen=yes
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ac_cv_lib_Xft_XftFontOpen=no
12703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12707 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12708 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12709 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12717 if test "${HAVE_XFT}" = "yes"; then
12719 cat >>confdefs.h <<\_ACEOF
12724 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12726 CPPFLAGS="$OLD_CPPFLAGS"
12727 CFLAGS="$OLD_CFLAGS"
12729 fi # "${HAVE_XFT}" = "yes"
12730 fi # "$HAVE_XFT" != no
12731 fi # "x${with_xft}" != "xno"
12733 if test "$HAVE_XFT" != "yes"; then
12739 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12740 if test "${HAVE_XFT}" = "yes"; then
12742 elif test "x${with_freetype}" != "xno"; then
12747 # Extract the first word of "pkg-config", so it can be a program name with args.
12748 set dummy pkg-config; ac_word=$2
12749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12751 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 case $PKG_CONFIG in
12756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12763 test -z "$as_dir" && as_dir=.
12764 for ac_exec_ext in '' $ac_executable_extensions; do
12765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12779 if test -n "$PKG_CONFIG"; then
12780 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12781 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12783 { echo "$as_me:$LINENO: result: no" >&5
12784 echo "${ECHO_T}no" >&6; }
12789 if test "$PKG_CONFIG" = "no" ; then
12792 PKG_CONFIG_MIN_VERSION=0.9.0
12793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12794 { echo "$as_me:$LINENO: checking for freetype2" >&5
12795 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12797 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12798 { echo "$as_me:$LINENO: result: yes" >&5
12799 echo "${ECHO_T}yes" >&6; }
12802 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12803 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12804 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12805 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12806 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12808 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12809 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12810 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12811 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12812 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12814 { echo "$as_me:$LINENO: result: no" >&5
12815 echo "${ECHO_T}no" >&6; }
12818 ## If we have a custom action on failure, don't print errors
, but
12819 ## do set a variable so people can do so.
12820 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12832 if test $succeeded = yes; then
12838 if test "${HAVE_FREETYPE}" = "yes"; then
12842 # Extract the first word of "pkg-config", so it can be a program name with args.
12843 set dummy pkg-config
; ac_word
=$2
12844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12846 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 case $PKG_CONFIG in
12851 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12855 for as_dir
in $PATH
12858 test -z "$as_dir" && as_dir
=.
12859 for ac_exec_ext
in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12873 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12874 if test -n "$PKG_CONFIG"; then
12875 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12876 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12878 { echo "$as_me:$LINENO: result: no" >&5
12879 echo "${ECHO_T}no" >&6; }
12884 if test "$PKG_CONFIG" = "no" ; then
12887 PKG_CONFIG_MIN_VERSION
=0.9.0
12888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12889 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12890 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12892 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12893 { echo "$as_me:$LINENO: result: yes" >&5
12894 echo "${ECHO_T}yes" >&6; }
12897 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12898 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12899 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12900 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12901 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12903 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12904 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12905 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12906 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12907 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12909 { echo "$as_me:$LINENO: result: no" >&5
12910 echo "${ECHO_T}no" >&6; }
12911 FONTCONFIG_CFLAGS
=""
12913 ## If we have a custom action on failure, don't print errors, but
12914 ## do set a variable so people can do so.
12915 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12927 if test $succeeded = yes; then
12933 if test "${HAVE_FC}" = "no"; then
12940 if test "${HAVE_FREETYPE}" = "yes"; then
12942 cat >>confdefs.h
<<\_ACEOF
12943 #define HAVE_FREETYPE 1
12946 if test "${with_libotf}" != "no"; then
12950 # Extract the first word of "pkg-config", so it can be a program name with args.
12951 set dummy pkg-config
; ac_word
=$2
12952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 case $PKG_CONFIG in
12959 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12963 for as_dir
in $PATH
12966 test -z "$as_dir" && as_dir
=.
12967 for ac_exec_ext
in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12981 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12982 if test -n "$PKG_CONFIG"; then
12983 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12984 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12986 { echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6; }
12992 if test "$PKG_CONFIG" = "no" ; then
12995 PKG_CONFIG_MIN_VERSION
=0.9.0
12996 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12997 { echo "$as_me:$LINENO: checking for libotf" >&5
12998 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13000 if $PKG_CONFIG --exists "libotf" 2>&5; then
13001 { echo "$as_me:$LINENO: result: yes" >&5
13002 echo "${ECHO_T}yes" >&6; }
13005 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13006 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13007 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13008 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13009 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13011 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13012 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13013 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13014 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13015 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13017 { echo "$as_me:$LINENO: result: no" >&5
13018 echo "${ECHO_T}no" >&6; }
13021 ## If we have a custom action on failure, don't print errors, but
13022 ## do set a variable so people can do so.
13023 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13030 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13031 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13035 if test $succeeded = yes; then
13041 if test "$HAVE_LIBOTF" = "yes"; then
13043 cat >>confdefs.h
<<\_ACEOF
13044 #define HAVE_LIBOTF 1
13052 if test "${with_m17n_flt}" != "no"; then
13056 # Extract the first word of "pkg-config", so it can be a program name with args.
13057 set dummy pkg-config
; ac_word
=$2
13058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 case $PKG_CONFIG in
13065 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13069 for as_dir
in $PATH
13072 test -z "$as_dir" && as_dir
=.
13073 for ac_exec_ext
in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13087 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13088 if test -n "$PKG_CONFIG"; then
13089 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13090 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13092 { echo "$as_me:$LINENO: result: no" >&5
13093 echo "${ECHO_T}no" >&6; }
13098 if test "$PKG_CONFIG" = "no" ; then
13101 PKG_CONFIG_MIN_VERSION
=0.9.0
13102 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13103 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13104 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13106 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13107 { echo "$as_me:$LINENO: result: yes" >&5
13108 echo "${ECHO_T}yes" >&6; }
13111 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13112 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13113 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13114 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13115 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13117 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13118 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13119 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13120 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13121 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13123 { echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6; }
13127 ## If we have a custom action on failure, don't print errors, but
13128 ## do set a variable so people can do so.
13129 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13136 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13137 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13141 if test $succeeded = yes; then
13147 if test "$HAVE_M17N_FLT" = "yes"; then
13149 cat >>confdefs.h
<<\_ACEOF
13150 #define HAVE_M17N_FLT 1
13165 fi # "${USE_FONT_BACKEND}" = "yes"
13166 ### End of font-backend section.
13168 ### Use -lXpm if available, unless `--with-xpm=no'.
13170 if test "${HAVE_X11}" = "yes"; then
13171 if test "${with_xpm}" != "no"; then
13172 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13173 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13174 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13175 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13179 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13181 # Is the header compilable?
13182 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13183 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13184 cat >conftest.
$ac_ext <<_ACEOF
13187 cat confdefs.h
>>conftest.
$ac_ext
13188 cat >>conftest.
$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 $ac_includes_default
13191 #include <X11/xpm.h>
13193 rm -f conftest.
$ac_objext
13194 if { (ac_try
="$ac_compile"
13195 case "(($ac_try" in
13196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.$ac_objext; then
13210 ac_header_compiler=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 ac_header_compiler=no
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13220 echo "${ECHO_T}$ac_header_compiler" >&6; }
13222 # Is the header present?
13223 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13224 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <X11/xpm.h>
13233 if { (ac_try="$ac_cpp conftest.$ac_ext"
13234 case "(($ac_try" in
13235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13236 *) ac_try_echo
=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13241 grep -v '^ *+' conftest.er1
>conftest.err
13243 cat conftest.err
>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } >/dev
/null
&& {
13246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13247 test ! -s conftest.err
13249 ac_header_preproc
=yes
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.
$ac_ext >&5
13254 ac_header_preproc
=no
13257 rm -f conftest.err conftest.
$ac_ext
13258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13259 echo "${ECHO_T}$ac_header_preproc" >&6; }
13261 # So? What about this header?
13262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13264 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13265 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13267 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13268 ac_header_preproc
=yes
13271 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13272 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13273 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13274 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13276 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13277 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13278 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13286 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13287 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13288 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13293 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13294 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13297 if test $ac_cv_header_X11_xpm_h = yes; then
13298 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13299 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13300 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 ac_check_lib_save_LIBS
=$LIBS
13304 LIBS
="-lXpm -lX11 $LIBS"
13305 cat >conftest.
$ac_ext <<_ACEOF
13308 cat confdefs.h
>>conftest.
$ac_ext
13309 cat >>conftest.
$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13312 /* Override any GCC internal prototype to avoid an error.
13313 Use char because int might match the return type of a GCC
13314 builtin and then its argument prototype would still apply. */
13318 char XpmReadFileToPixmap ();
13322 return XpmReadFileToPixmap ();
13327 rm -f conftest.
$ac_objext conftest
$ac_exeext
13328 if { (ac_try
="$ac_link"
13329 case "(($ac_try" in
13330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_link") 2>conftest.er1
13336 grep -v '^ *+' conftest.er1 >conftest.err
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } && {
13341 test -z "$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 } && test -s conftest$ac_exeext &&
13344 $as_test_x conftest$ac_exeext; then
13345 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LIBS=$ac_check_lib_save_LIBS
13357 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13358 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13359 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13366 if test "${HAVE_XPM}" = "yes"; then
13367 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13368 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13369 cat >conftest.$ac_ext <<_ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include "X11/xpm.h"
13376 #ifndef XpmReturnAllocPixels
13377 no_return_alloc_pixels
13381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13382 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13390 if test "${HAVE_XPM}" = "yes"; then
13391 { echo "$as_me:$LINENO: result: yes" >&5
13392 echo "${ECHO_T}yes" >&6; }
13394 { echo "$as_me:$LINENO: result: no" >&5
13395 echo "${ECHO_T}no" >&6; }
13400 if test "${HAVE_XPM}" = "yes"; then
13402 cat >>confdefs.h <<\_ACEOF
13409 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13411 if test "${HAVE_X11}" = "yes"; then
13412 if test "${with_jpeg}" != "no"; then
13413 if test "${ac_cv_header_jerror_h+set}" = set; then
13414 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13415 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13416 if test "${ac_cv_header_jerror_h+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13420 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13422 # Is the header compilable?
13423 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13424 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <jerror.h>
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13443 grep -v '^
*+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_header_compiler=yes
13453 echo "$as_me: failed program was:" >&5
13454 sed 's
/^
/|
/' conftest.$ac_ext >&5
13456 ac_header_compiler=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13461 echo "${ECHO_T}$ac_header_compiler" >&6; }
13463 # Is the header present?
13464 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13465 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 #include <jerror.h>
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13482 grep -v '^
*+' conftest.er1 >conftest.err
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null && {
13487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13490 ac_header_preproc=yes
13492 echo "$as_me: failed program was:" >&5
13493 sed 's
/^
/|
/' conftest.$ac_ext >&5
13495 ac_header_preproc=no
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13508 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13509 ac_header_preproc=yes
13512 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13521 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13527 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13528 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_jerror_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 ac_cv_header_jerror_h=$ac_header_preproc
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13538 if test $ac_cv_header_jerror_h = yes; then
13539 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13540 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-ljpeg $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13559 char jpeg_destroy_compress ();
13563 return jpeg_destroy_compress ();
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13577 grep -v '^
*+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's
/^
/|
/' conftest.$ac_ext >&5
13591 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13599 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13600 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13610 if test "${HAVE_JPEG}" = "yes"; then
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HAVE_JPEG 1
13615 cat >conftest.$ac_ext <<_ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 #include <jpeglib.h>
13622 version=JPEG_LIB_VERSION
13625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13627 cat >>confdefs.h <<\_ACEOF
13628 #define HAVE_JPEG 1
13632 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13633 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13641 ### Use -lpng if available, unless `--with-png=no'.
13643 if test "${HAVE_X11}" = "yes"; then
13644 if test "${with_png}" != "no"; then
13645 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13646 # in /usr/include/libpng.
13649 for ac_header
in png.h libpng
/png.h
13651 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13652 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13655 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 ac_res
=`eval echo '${'$as_ac_Header'}'`
13659 { echo "$as_me:$LINENO: result: $ac_res" >&5
13660 echo "${ECHO_T}$ac_res" >&6; }
13662 # Is the header compilable?
13663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13665 cat >conftest.
$ac_ext <<_ACEOF
13668 cat confdefs.h
>>conftest.
$ac_ext
13669 cat >>conftest.
$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 $ac_includes_default
13672 #include <$ac_header>
13674 rm -f conftest.
$ac_objext
13675 if { (ac_try
="$ac_compile"
13676 case "(($ac_try" in
13677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_compile") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && {
13688 test -z "$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13690 } && test -s conftest.$ac_objext; then
13691 ac_header_compiler=yes
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_header_compiler=no
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13701 echo "${ECHO_T}$ac_header_compiler" >&6; }
13703 # Is the header present?
13704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #include <$ac_header>
13714 if { (ac_try="$ac_cpp conftest.$ac_ext"
13715 case "(($ac_try" in
13716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13717 *) ac_try_echo
=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13722 grep -v '^ *+' conftest.er1
>conftest.err
13724 cat conftest.err
>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } >/dev
/null
&& {
13727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13728 test ! -s conftest.err
13730 ac_header_preproc
=yes
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.
$ac_ext >&5
13735 ac_header_preproc
=no
13738 rm -f conftest.err conftest.
$ac_ext
13739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13740 echo "${ECHO_T}$ac_header_preproc" >&6; }
13742 # So? What about this header?
13743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13749 ac_header_preproc
=yes
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 eval "$as_ac_Header=\$ac_header_preproc"
13774 ac_res
=`eval echo '${'$as_ac_Header'}'`
13775 { echo "$as_me:$LINENO: result: $ac_res" >&5
13776 echo "${ECHO_T}$ac_res" >&6; }
13779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13780 cat >>confdefs.h
<<_ACEOF
13781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13788 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13789 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13790 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13791 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 ac_check_lib_save_LIBS
=$LIBS
13795 LIBS
="-lpng -lz -lm $LIBS"
13796 cat >conftest.
$ac_ext <<_ACEOF
13799 cat confdefs.h
>>conftest.
$ac_ext
13800 cat >>conftest.
$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13803 /* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13809 char png_get_channels ();
13813 return png_get_channels ();
13818 rm -f conftest.
$ac_objext conftest
$ac_exeext
13819 if { (ac_try
="$ac_link"
13820 case "(($ac_try" in
13821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_link") 2>conftest.er1
13827 grep -v '^ *+' conftest.er1 >conftest.err
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest$ac_exeext &&
13835 $as_test_x conftest$ac_exeext; then
13836 ac_cv_lib_png_png_get_channels=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_lib_png_png_get_channels=no
13844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13845 conftest$ac_exeext conftest.$ac_ext
13846 LIBS=$ac_check_lib_save_LIBS
13848 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13849 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13850 if test $ac_cv_lib_png_png_get_channels = yes; then
13857 if test "${HAVE_PNG}" = "yes"; then
13859 cat >>confdefs.h <<\_ACEOF
13866 ### Use -ltiff if available, unless `--with-tiff=no
'.
13868 if test "${HAVE_X11}" = "yes"; then
13869 if test "${with_tiff}" != "no"; then
13870 if test "${ac_cv_header_tiffio_h+set}" = set; then
13871 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13872 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13873 if test "${ac_cv_header_tiffio_h+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13877 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13879 # Is the header compilable?
13880 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13881 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13882 cat >conftest.$ac_ext <<_ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 $ac_includes_default
13889 #include <tiffio.h>
13891 rm -f conftest.$ac_objext
13892 if { (ac_try="$ac_compile"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13900 grep -v '^
*+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_header_compiler=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's
/^
/|
/' conftest.$ac_ext >&5
13913 ac_header_compiler=no
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13918 echo "${ECHO_T}$ac_header_compiler" >&6; }
13920 # Is the header present?
13921 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13922 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <tiffio.h>
13931 if { (ac_try="$ac_cpp conftest.$ac_ext"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 grep -v '^
*+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } >/dev/null && {
13944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13947 ac_header_preproc=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's
/^
/|
/' conftest.$ac_ext >&5
13952 ac_header_preproc=no
13955 rm -f conftest.err conftest.$ac_ext
13956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13957 echo "${ECHO_T}$ac_header_preproc" >&6; }
13959 # So? What about this header?
13960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13963 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13965 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13966 ac_header_preproc=yes
13969 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13970 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13972 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13974 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13976 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13978 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13980 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13984 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13985 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13986 if test "${ac_cv_header_tiffio_h+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 ac_cv_header_tiffio_h=$ac_header_preproc
13991 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13992 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13995 if test $ac_cv_header_tiffio_h = yes; then
13997 # At least one tiff package requires the jpeg library.
13998 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13999 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14000 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14001 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 ac_check_lib_save_LIBS=$LIBS
14005 LIBS="-ltiff $tifflibs $LIBS"
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14013 /* Override any GCC internal prototype to avoid an error.
14014 Use char because int might match the return type of a GCC
14015 builtin and then its argument prototype would still apply. */
14019 char TIFFGetVersion ();
14023 return TIFFGetVersion ();
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>conftest.er1
14037 grep -v '^
*+' conftest.er1 >conftest.err
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && {
14042 test -z "$ac_c_werror_flag" ||
14043 test ! -s conftest.err
14044 } && test -s conftest$ac_exeext &&
14045 $as_test_x conftest$ac_exeext; then
14046 ac_cv_lib_tiff_TIFFGetVersion=yes
14048 echo "$as_me: failed program was:" >&5
14049 sed 's
/^
/|
/' conftest.$ac_ext >&5
14051 ac_cv_lib_tiff_TIFFGetVersion=no
14054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14055 conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14058 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14059 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14060 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14069 if test "${HAVE_TIFF}" = "yes"; then
14071 cat >>confdefs.h <<\_ACEOF
14072 #define HAVE_TIFF 1
14078 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14080 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14081 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14082 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14083 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14084 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14088 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14090 # Is the header compilable?
14091 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14092 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14093 cat >conftest.
$ac_ext <<_ACEOF
14096 cat confdefs.h
>>conftest.
$ac_ext
14097 cat >>conftest.
$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 $ac_includes_default
14100 #include <gif_lib.h>
14102 rm -f conftest.
$ac_objext
14103 if { (ac_try
="$ac_compile"
14104 case "(($ac_try" in
14105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_compile") 2>conftest.er1
14111 grep -v '^ *+' conftest.er1 >conftest.err
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && {
14116 test -z "$ac_c_werror_flag" ||
14117 test ! -s conftest.err
14118 } && test -s conftest.$ac_objext; then
14119 ac_header_compiler=yes
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_header_compiler=no
14127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14129 echo "${ECHO_T}$ac_header_compiler" >&6; }
14131 # Is the header present?
14132 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14133 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 #include <gif_lib.h>
14142 if { (ac_try="$ac_cpp conftest.$ac_ext"
14143 case "(($ac_try" in
14144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14145 *) ac_try_echo
=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14150 grep -v '^ *+' conftest.er1
>conftest.err
14152 cat conftest.err
>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } >/dev
/null
&& {
14155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14158 ac_header_preproc
=yes
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.
$ac_ext >&5
14163 ac_header_preproc
=no
14166 rm -f conftest.err conftest.
$ac_ext
14167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14168 echo "${ECHO_T}$ac_header_preproc" >&6; }
14170 # So? What about this header?
14171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14174 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14176 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14177 ac_header_preproc
=yes
14180 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14181 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14183 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14185 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14187 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14189 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14191 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14195 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14196 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14197 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 ac_cv_header_gif_lib_h
=$ac_header_preproc
14202 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14203 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14206 if test $ac_cv_header_gif_lib_h = yes; then
14207 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14208 # Earlier versions can crash Emacs.
14209 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14210 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14211 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 ac_check_lib_save_LIBS
=$LIBS
14216 cat >conftest.
$ac_ext <<_ACEOF
14219 cat confdefs.h
>>conftest.
$ac_ext
14220 cat >>conftest.
$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14223 /* Override any GCC internal prototype to avoid an error.
14224 Use char because int might match the return type of a GCC
14225 builtin and then its argument prototype would still apply. */
14229 char EGifPutExtensionLast ();
14233 return EGifPutExtensionLast ();
14238 rm -f conftest.
$ac_objext conftest
$ac_exeext
14239 if { (ac_try
="$ac_link"
14240 case "(($ac_try" in
14241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_link") 2>conftest.er1
14247 grep -v '^ *+' conftest.er1 >conftest.err
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest$ac_exeext &&
14255 $as_test_x conftest$ac_exeext; then
14256 ac_cv_lib_gif_EGifPutExtensionLast=yes
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_cv_lib_gif_EGifPutExtensionLast=no
14264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14265 conftest$ac_exeext conftest.$ac_ext
14266 LIBS=$ac_check_lib_save_LIBS
14268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14269 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14270 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14280 if test "$HAVE_GIF" = yes; then
14281 ac_gif_lib_name="-lgif"
14284 # If gif_lib.h but no libgif, try libungif.
14285 if test x"$try_libungif" = xyes; then
14286 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14287 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14288 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-lungif $LIBS"
14293 cat >conftest.$ac_ext <<_ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14300 /* Override any GCC internal prototype to avoid an error.
14301 Use char because int might match the return type of a GCC
14302 builtin and then its argument prototype would still apply. */
14306 char EGifPutExtensionLast ();
14310 return EGifPutExtensionLast ();
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (ac_try="$ac_link"
14317 case "(($ac_try" in
14318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14319 *) ac_try_echo
=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_link") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1
>conftest.err
14326 cat conftest.err
>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest
$ac_exeext &&
14332 $as_test_x conftest
$ac_exeext; then
14333 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.
$ac_ext >&5
14338 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14341 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14342 conftest
$ac_exeext conftest.
$ac_ext
14343 LIBS
=$ac_check_lib_save_LIBS
14345 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14346 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14347 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14352 if test "$HAVE_GIF" = yes; then
14354 cat >>confdefs.h
<<\_ACEOF
14355 #define LIBGIF -lungif
14358 ac_gif_lib_name
="-lungif"
14362 if test "${HAVE_GIF}" = "yes"; then
14364 cat >>confdefs.h
<<\_ACEOF
14371 if test "${HAVE_X11}" = "yes"; then
14374 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14375 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14376 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14377 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14378 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14379 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14380 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14381 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14382 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14383 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14385 if test "X${MISSING}" != X
; then
14386 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14388 Maybe some development libraries/packages are missing?
14389 If you don't want to link with them give
14391 as options to configure" >&5
14392 echo "$as_me: error: The following required libraries were not found:
14394 Maybe some development libraries/packages are missing?
14395 If you don't want to link with them give
14397 as options to configure" >&2;}
14398 { (exit 1); exit 1; }; }
14402 ### Use -lgpm if available, unless `--with-gpm=no'.
14404 if test "${with_gpm}" != "no"; then
14405 if test "${ac_cv_header_gpm_h+set}" = set; then
14406 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14407 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14408 if test "${ac_cv_header_gpm_h+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14412 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14414 # Is the header compilable?
14415 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14416 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14417 cat >conftest.
$ac_ext <<_ACEOF
14420 cat confdefs.h
>>conftest.
$ac_ext
14421 cat >>conftest.
$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 $ac_includes_default
14426 rm -f conftest.
$ac_objext
14427 if { (ac_try
="$ac_compile"
14428 case "(($ac_try" in
14429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_compile") 2>conftest.er1
14435 grep -v '^ *+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && {
14440 test -z "$ac_c_werror_flag" ||
14441 test ! -s conftest.err
14442 } && test -s conftest.$ac_objext; then
14443 ac_header_compiler=yes
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 ac_header_compiler=no
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14453 echo "${ECHO_T}$ac_header_compiler" >&6; }
14455 # Is the header present?
14456 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14457 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14466 if { (ac_try="$ac_cpp conftest.$ac_ext"
14467 case "(($ac_try" in
14468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14469 *) ac_try_echo
=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14474 grep -v '^ *+' conftest.er1
>conftest.err
14476 cat conftest.err
>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } >/dev
/null
&& {
14479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14480 test ! -s conftest.err
14482 ac_header_preproc
=yes
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.
$ac_ext >&5
14487 ac_header_preproc
=no
14490 rm -f conftest.err conftest.
$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14492 echo "${ECHO_T}$ac_header_preproc" >&6; }
14494 # So? What about this header?
14495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14497 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14498 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14500 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14501 ac_header_preproc
=yes
14504 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14505 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14507 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14509 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14511 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14513 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14515 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14519 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14520 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14521 if test "${ac_cv_header_gpm_h+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 ac_cv_header_gpm_h
=$ac_header_preproc
14526 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14527 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14530 if test $ac_cv_header_gpm_h = yes; then
14531 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14532 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14533 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 ac_check_lib_save_LIBS
=$LIBS
14538 cat >conftest.
$ac_ext <<_ACEOF
14541 cat confdefs.h
>>conftest.
$ac_ext
14542 cat >>conftest.
$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14545 /* Override any GCC internal prototype to avoid an error.
14546 Use char because int might match the return type of a GCC
14547 builtin and then its argument prototype would still apply. */
14555 return Gpm_Open ();
14560 rm -f conftest.
$ac_objext conftest
$ac_exeext
14561 if { (ac_try
="$ac_link"
14562 case "(($ac_try" in
14563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_link") 2>conftest.er1
14569 grep -v '^ *+' conftest.er1 >conftest.err
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } && {
14574 test -z "$ac_c_werror_flag" ||
14575 test ! -s conftest.err
14576 } && test -s conftest$ac_exeext &&
14577 $as_test_x conftest$ac_exeext; then
14578 ac_cv_lib_gpm_Gpm_Open=yes
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_lib_gpm_Gpm_Open=no
14586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14591 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14592 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14601 if test "${HAVE_GPM}" = "yes"; then
14603 cat >>confdefs.h <<\_ACEOF
14609 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14610 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14611 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14616 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14618 # Is the header compilable?
14619 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14620 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14628 #include <malloc/malloc.h>
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14634 *) ac_try_echo
=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_compile") 2>conftest.er1
14639 grep -v '^ *+' conftest.er1
>conftest.err
14641 cat conftest.err
>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest.
$ac_objext; then
14647 ac_header_compiler
=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.
$ac_ext >&5
14652 ac_header_compiler
=no
14655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14661 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14662 cat >conftest.
$ac_ext <<_ACEOF
14665 cat confdefs.h
>>conftest.
$ac_ext
14666 cat >>conftest.
$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <malloc/malloc.h>
14670 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null && {
14683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14686 ac_header_preproc=yes
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_header_preproc=no
14694 rm -f conftest.err conftest.$ac_ext
14695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696 echo "${ECHO_T}$ac_header_preproc" >&6; }
14698 # So? What about this header?
14699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14702 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14704 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14705 ac_header_preproc=yes
14708 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14709 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14711 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14713 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14715 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14723 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14724 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14725 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14730 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14731 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14734 if test $ac_cv_header_malloc_malloc_h = yes; then
14736 cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_MALLOC_MALLOC_H 1
14744 ### Use Mac OS X Carbon API to implement GUI.
14745 if test "${HAVE_CARBON}" = "yes"; then
14747 cat >>confdefs.h <<\_ACEOF
14748 #define HAVE_CARBON 1
14751 ## Specify the install directory
14753 if test "${carbon_appdir_x}" != ""; then
14754 case ${carbon_appdir_x} in
14755 y | ye | yes) carbon_appdir=/Applications ;;
14756 * ) carbon_appdir=${carbon_appdir_x} ;;
14759 # We also have mouse menus.
14763 ### Use session management (-lSM -lICE) if available
14765 if test "${HAVE_X11}" = "yes"; then
14766 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14767 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14768 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14769 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14773 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14775 # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14777 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 $ac_includes_default
14785 #include <X11/SM/SMlib.h>
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14791 *) ac_try_echo
=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14796 grep -v '^ *+' conftest.er1
>conftest.err
14798 cat conftest.err
>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } && {
14801 test -z "$ac_c_werror_flag" ||
14802 test ! -s conftest.err
14803 } && test -s conftest.
$ac_objext; then
14804 ac_header_compiler
=yes
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.
$ac_ext >&5
14809 ac_header_compiler
=no
14812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14814 echo "${ECHO_T}$ac_header_compiler" >&6; }
14816 # Is the header present?
14817 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14818 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14819 cat >conftest.
$ac_ext <<_ACEOF
14822 cat confdefs.h
>>conftest.
$ac_ext
14823 cat >>conftest.
$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <X11/SM/SMlib.h>
14827 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14828 case "(($ac_try" in
14829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } >/dev/null && {
14840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14843 ac_header_preproc=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_header_preproc=no
14851 rm -f conftest.err conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14853 echo "${ECHO_T}$ac_header_preproc" >&6; }
14855 # So? What about this header?
14856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14859 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14861 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14862 ac_header_preproc=yes
14865 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14866 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14868 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14870 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14872 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14880 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14881 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14882 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14888 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14891 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14892 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14893 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14894 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 ac_check_lib_save_LIBS=$LIBS
14898 LIBS="-lSM -lICE $LIBS"
14899 cat >conftest.$ac_ext <<_ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14906 /* Override any GCC internal prototype to avoid an error.
14907 Use char because int might match the return type of a GCC
14908 builtin and then its argument prototype would still apply. */
14912 char SmcOpenConnection ();
14916 return SmcOpenConnection ();
14921 rm -f conftest.$ac_objext conftest$ac_exeext
14922 if { (ac_try="$ac_link"
14923 case "(($ac_try" in
14924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14925 *) ac_try_echo
=$ac_try;;
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_link") 2>conftest.er1
14930 grep -v '^ *+' conftest.er1
>conftest.err
14932 cat conftest.err
>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest
$ac_exeext &&
14938 $as_test_x conftest
$ac_exeext; then
14939 ac_cv_lib_SM_SmcOpenConnection
=yes
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.
$ac_ext >&5
14944 ac_cv_lib_SM_SmcOpenConnection
=no
14947 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14948 conftest
$ac_exeext conftest.
$ac_ext
14949 LIBS
=$ac_check_lib_save_LIBS
14951 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14952 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14953 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14961 if test "${HAVE_X_SM}" = "yes"; then
14963 cat >>confdefs.h
<<\_ACEOF
14964 #define HAVE_X_SM 1
14969 *) LIBS
="-lSM -lICE $LIBS" ;;
14974 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14975 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14976 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14977 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 cat >conftest.
$ac_ext <<_ACEOF
14983 cat confdefs.h
>>conftest.
$ac_ext
14984 cat >>conftest.
$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14995 rm -f conftest.
$ac_objext conftest
$ac_exeext
14996 if { (ac_try
="$ac_link"
14997 case "(($ac_try" in
14998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest$ac_exeext &&
15012 $as_test_x conftest$ac_exeext; then
15013 emacs_cv_netdb_declares_h_errno=yes
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 emacs_cv_netdb_declares_h_errno=no
15021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15022 conftest$ac_exeext conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15025 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15026 if test $emacs_cv_netdb_declares_h_errno = yes; then
15028 cat >>confdefs.h <<\_ACEOF
15029 #define HAVE_H_ERRNO 1
15034 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15035 # for constant arguments. Useless!
15036 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15037 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15038 if test "${ac_cv_working_alloca_h+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 #include <alloca.h>
15051 char *p = (char *) alloca (2 * sizeof (int));
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (ac_try="$ac_link"
15059 case "(($ac_try" in
15060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15061 *) ac_try_echo
=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_link") 2>conftest.er1
15066 grep -v '^ *+' conftest.er1
>conftest.err
15068 cat conftest.err
>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } && {
15071 test -z "$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 } && test -s conftest
$ac_exeext &&
15074 $as_test_x conftest
$ac_exeext; then
15075 ac_cv_working_alloca_h
=yes
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.
$ac_ext >&5
15080 ac_cv_working_alloca_h
=no
15083 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15084 conftest
$ac_exeext conftest.
$ac_ext
15086 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15087 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15088 if test $ac_cv_working_alloca_h = yes; then
15090 cat >>confdefs.h
<<\_ACEOF
15091 #define HAVE_ALLOCA_H 1
15096 { echo "$as_me:$LINENO: checking for alloca" >&5
15097 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15098 if test "${ac_cv_func_alloca_works+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 cat >conftest.
$ac_ext <<_ACEOF
15104 cat confdefs.h
>>conftest.
$ac_ext
15105 cat >>conftest.
$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 # define alloca __builtin_alloca
15111 # include <malloc.h>
15112 # define alloca _alloca
15114 # ifdef HAVE_ALLOCA_H
15115 # include <alloca.h>
15120 # ifndef alloca /* predefined by HP cc +Olibcalls */
15131 char *p = (char *) alloca (1);
15137 rm -f conftest.
$ac_objext conftest
$ac_exeext
15138 if { (ac_try
="$ac_link"
15139 case "(($ac_try" in
15140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest$ac_exeext &&
15154 $as_test_x conftest$ac_exeext; then
15155 ac_cv_func_alloca_works=yes
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_cv_func_alloca_works=no
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15164 conftest$ac_exeext conftest.$ac_ext
15166 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15167 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15169 if test $ac_cv_func_alloca_works = yes; then
15171 cat >>confdefs.h <<\_ACEOF
15172 #define HAVE_ALLOCA 1
15176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15177 # that cause trouble. Some versions do not even contain alloca or
15178 # contain a buggy version. If you still want to use their alloca,
15179 # use ar to extract alloca.o from them instead of compiling alloca.c.
15181 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15183 cat >>confdefs.h <<\_ACEOF
15188 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15189 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15190 if test "${ac_cv_os_cray+set}" = set; then
15191 echo $ECHO_N "(cached
) $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #if defined CRAY && ! defined CRAY2
15206 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15207 $EGREP "webecray
" >/dev/null 2>&1; then
15215 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15216 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15217 if test $ac_cv_os_cray = yes; then
15218 for ac_func in _getb67 GETB67 getb67; do
15219 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15220 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15221 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15222 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15223 echo $ECHO_N "(cached
) $ECHO_C" >&6
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15233 #define $ac_func innocuous_$ac_func
15235 /* System header to define __stub macros and hopefully few prototypes,
15236 which can conflict with char $ac_func (); below.
15237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15238 <limits.h> exists even on freestanding compilers. */
15241 # include <limits.h>
15243 # include <assert.h>
15248 /* Override any GCC internal prototype to avoid an error.
15249 Use char because int might match the return type of a GCC
15250 builtin and then its argument prototype would still apply. */
15255 /* The GNU C library defines this for functions which it implements
15256 to always fail with ENOSYS. Some functions are actually named
15257 something starting with __ and the normal name is an alias. */
15258 #if defined __stub_$ac_func || defined __stub___$ac_func
15265 return $ac_func ();
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (ac_try="$ac_link"
15272 case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_link") 2>conftest.er1
15279 grep -v '^ *+' conftest.er1 >conftest.err
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest$ac_exeext &&
15287 $as_test_x conftest$ac_exeext; then
15288 eval "$as_ac_var=yes"
15290 echo "$as_me: failed program was
:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 eval "$as_ac_var=no
"
15296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15297 conftest$ac_exeext conftest.$ac_ext
15299 ac_res=`eval echo '${'$as_ac_var'}'`
15300 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15301 echo "${ECHO_T}$ac_res" >&6; }
15302 if test `eval echo '${'$as_ac_var'}'` = yes; then
15304 cat >>confdefs.h <<_ACEOF
15305 #define CRAY_STACKSEG_END $ac_func
15314 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15315 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15316 if test "${ac_cv_c_stack_direction+set}" = set; then
15317 echo $ECHO_N "(cached
) $ECHO_C" >&6
15319 if test "$cross_compiling" = yes; then
15320 ac_cv_c_stack_direction=0
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 $ac_includes_default
15330 find_stack_direction ()
15332 static char *addr = 0;
15337 return find_stack_direction ();
15340 return (&dummy > addr) ? 1 : -1;
15346 return find_stack_direction () < 0;
15349 rm -f conftest$ac_exeext
15350 if { (ac_try="$ac_link"
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_link") 2>&5
15358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_cv_c_stack_direction=1
15371 echo "$as_me: program exited with status
$ac_status" >&5
15372 echo "$as_me: failed program was
:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 ( exit $ac_status )
15376 ac_cv_c_stack_direction=-1
15378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15384 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15386 cat >>confdefs.h <<_ACEOF
15387 #define STACK_DIRECTION $ac_cv_c_stack_direction
15394 if test x"$ac_cv_func_alloca_works" != xyes; then
15395 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15396 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15397 { (exit 1); exit 1; }; }
15400 # fmod, logb, and frexp are found in -lm on most systems.
15401 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15403 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15404 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15405 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15406 echo $ECHO_N "(cached
) $ECHO_C" >&6
15408 ac_check_lib_save_LIBS=$LIBS
15410 cat >conftest.$ac_ext <<_ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_link") 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest$ac_exeext &&
15449 $as_test_x conftest$ac_exeext; then
15450 ac_cv_lib_m_sqrt=yes
15452 echo "$as_me: failed program was
:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_cv_lib_m_sqrt=no
15458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15459 conftest$ac_exeext conftest.$ac_ext
15460 LIBS=$ac_check_lib_save_LIBS
15462 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15463 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15464 if test $ac_cv_lib_m_sqrt = yes; then
15465 cat >>confdefs.h <<_ACEOF
15466 #define HAVE_LIBM 1
15474 # Check for mail-locking functions in a "mail" library. Probably this should
15475 # have the same check as for liblockfile below.
15477 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15478 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15479 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15480 echo $ECHO_N "(cached
) $ECHO_C" >&6
15482 ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-lmail $LIBS"
15484 cat >conftest.$ac_ext <<_ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15491 /* Override any GCC internal prototype to avoid an error.
15492 Use char because int might match the return type of a GCC
15493 builtin and then its argument prototype would still apply. */
15501 return maillock ();
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (ac_try="$ac_link"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>conftest.er1
15515 grep -v '^ *+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15519 (exit $ac_status); } && {
15520 test -z "$ac_c_werror_flag" ||
15521 test ! -s conftest.err
15522 } && test -s conftest$ac_exeext &&
15523 $as_test_x conftest$ac_exeext; then
15524 ac_cv_lib_mail_maillock=yes
15526 echo "$as_me: failed program was
:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_cv_lib_mail_maillock=no
15532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15533 conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15536 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15537 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15538 if test $ac_cv_lib_mail_maillock = yes; then
15539 cat >>confdefs.h <<_ACEOF
15540 #define HAVE_LIBMAIL 1
15543 LIBS="-lmail $LIBS"
15548 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15549 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15550 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15551 echo $ECHO_N "(cached
) $ECHO_C" >&6
15553 ac_check_lib_save_LIBS=$LIBS
15554 LIBS="-llockfile $LIBS"
15555 cat >conftest.$ac_ext <<_ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15562 /* Override any GCC internal prototype to avoid an error.
15563 Use char because int might match the return type of a GCC
15564 builtin and then its argument prototype would still apply. */
15572 return maillock ();
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (ac_try="$ac_link"
15579 case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_link") 2>conftest.er1
15586 grep -v '^ *+' conftest.er1 >conftest.err
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15590 (exit $ac_status); } && {
15591 test -z "$ac_c_werror_flag" ||
15592 test ! -s conftest.err
15593 } && test -s conftest$ac_exeext &&
15594 $as_test_x conftest$ac_exeext; then
15595 ac_cv_lib_lockfile_maillock=yes
15597 echo "$as_me: failed program was
:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_lib_lockfile_maillock=no
15603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15604 conftest$ac_exeext conftest.$ac_ext
15605 LIBS=$ac_check_lib_save_LIBS
15607 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15608 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15609 if test $ac_cv_lib_lockfile_maillock = yes; then
15610 cat >>confdefs.h <<_ACEOF
15611 #define HAVE_LIBLOCKFILE 1
15614 LIBS="-llockfile $LIBS"
15618 # If we have the shared liblockfile, assume we must use it for mail
15619 # locking (e.g. Debian). If we couldn't link against liblockfile
15620 # (no liblockfile.a installed), ensure that we don't need to.
15621 if test "$ac_cv_lib_lockfile_maillock" = no; then
15622 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15623 set dummy liblockfile.so; ac_word=$2
15624 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15625 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15626 if test "${ac_cv_prog_liblockfile+set}" = set; then
15627 echo $ECHO_N "(cached
) $ECHO_C" >&6
15629 if test -n "$liblockfile"; then
15630 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15634 for as_dir in $as_dummy
15637 test -z "$as_dir" && as_dir=.
15638 for ac_exec_ext in '' $ac_executable_extensions; do
15639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15640 ac_cv_prog_liblockfile="yes"
15641 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15648 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15651 liblockfile=$ac_cv_prog_liblockfile
15652 if test -n "$liblockfile"; then
15653 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15654 echo "${ECHO_T}$liblockfile" >&6; }
15656 { echo "$as_me:$LINENO: result
: no
" >&5
15657 echo "${ECHO_T}no
" >&6; }
15661 if test $ac_cv_prog_liblockfile = yes; then
15662 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15663 This probably means that movemail could lose mail.
15664 There may be a \`development' package to
install containing liblockfile.
" >&5
15665 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15666 This probably means that movemail could lose mail.
15667 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15668 { (exit 1); exit 1; }; }
15673 for ac_func in touchlock
15675 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15676 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15677 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15678 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15679 echo $ECHO_N "(cached
) $ECHO_C" >&6
15681 cat >conftest.$ac_ext <<_ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15689 #define $ac_func innocuous_$ac_func
15691 /* System header to define __stub macros and hopefully few prototypes,
15692 which can conflict with char $ac_func (); below.
15693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15694 <limits.h> exists even on freestanding compilers. */
15697 # include <limits.h>
15699 # include <assert.h>
15704 /* Override any GCC internal prototype to avoid an error.
15705 Use char because int might match the return type of a GCC
15706 builtin and then its argument prototype would still apply. */
15711 /* The GNU C library defines this for functions which it implements
15712 to always fail with ENOSYS. Some functions are actually named
15713 something starting with __ and the normal name is an alias. */
15714 #if defined __stub_$ac_func || defined __stub___$ac_func
15721 return $ac_func ();
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (ac_try="$ac_link"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_link") 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15739 (exit $ac_status); } && {
15740 test -z "$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 } && test -s conftest$ac_exeext &&
15743 $as_test_x conftest$ac_exeext; then
15744 eval "$as_ac_var=yes"
15746 echo "$as_me: failed program was
:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 eval "$as_ac_var=no
"
15752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15753 conftest$ac_exeext conftest.$ac_ext
15755 ac_res=`eval echo '${'$as_ac_var'}'`
15756 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15757 echo "${ECHO_T}$ac_res" >&6; }
15758 if test `eval echo '${'$as_ac_var'}'` = yes; then
15759 cat >>confdefs.h <<_ACEOF
15760 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15767 for ac_header in maillock.h
15769 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15770 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15771 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15772 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15773 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15774 echo $ECHO_N "(cached
) $ECHO_C" >&6
15776 ac_res=`eval echo '${'$as_ac_Header'}'`
15777 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15778 echo "${ECHO_T}$ac_res" >&6; }
15780 # Is the header compilable?
15781 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15782 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15783 cat >conftest.$ac_ext <<_ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 $ac_includes_default
15790 #include <$ac_header>
15792 rm -f conftest.$ac_objext
15793 if { (ac_try="$ac_compile"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_compile") 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest.$ac_objext; then
15809 ac_header_compiler=yes
15811 echo "$as_me: failed program was
:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_header_compiler=no
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15819 echo "${ECHO_T}$ac_header_compiler" >&6; }
15821 # Is the header present?
15822 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15823 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 #include <$ac_header>
15832 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15844 (exit $ac_status); } >/dev/null && {
15845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15846 test ! -s conftest.err
15848 ac_header_preproc=yes
15850 echo "$as_me: failed program was
:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 ac_header_preproc=no
15856 rm -f conftest.err conftest.$ac_ext
15857 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15858 echo "${ECHO_T}$ac_header_preproc" >&6; }
15860 # So? What about this header?
15861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15863 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15864 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15867 ac_header_preproc=yes
15870 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15871 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15872 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15873 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15874 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15875 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15876 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15877 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15878 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15880 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15881 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15885 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15886 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached
) $ECHO_C" >&6
15890 eval "$as_ac_Header=\
$ac_header_preproc"
15892 ac_res=`eval echo '${'$as_ac_Header'}'`
15893 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15975 for ac_func in gethostname getdomainname dup2 \
15976 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15977 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15978 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15979 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15980 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15981 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15982 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15983 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15985 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15986 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15987 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15988 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15989 echo $ECHO_N "(cached
) $ECHO_C" >&6
15991 cat >conftest.$ac_ext <<_ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15999 #define $ac_func innocuous_$ac_func
16001 /* System header to define __stub macros and hopefully few prototypes,
16002 which can conflict with char $ac_func (); below.
16003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16004 <limits.h> exists even on freestanding compilers. */
16007 # include <limits.h>
16009 # include <assert.h>
16014 /* Override any GCC internal prototype to avoid an error.
16015 Use char because int might match the return type of a GCC
16016 builtin and then its argument prototype would still apply. */
16021 /* The GNU C library defines this for functions which it implements
16022 to always fail with ENOSYS. Some functions are actually named
16023 something starting with __ and the normal name is an alias. */
16024 #if defined __stub_$ac_func || defined __stub___$ac_func
16031 return $ac_func ();
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (ac_try="$ac_link"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_link") 2>conftest.er1
16045 grep -v '^ *+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16049 (exit $ac_status); } && {
16050 test -z "$ac_c_werror_flag" ||
16051 test ! -s conftest.err
16052 } && test -s conftest$ac_exeext &&
16053 $as_test_x conftest$ac_exeext; then
16054 eval "$as_ac_var=yes"
16056 echo "$as_me: failed program was
:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 eval "$as_ac_var=no
"
16062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16063 conftest$ac_exeext conftest.$ac_ext
16065 ac_res=`eval echo '${'$as_ac_var'}'`
16066 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16067 echo "${ECHO_T}$ac_res" >&6; }
16068 if test `eval echo '${'$as_ac_var'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16078 for ac_header in sys/un.h
16080 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16082 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16083 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16085 echo $ECHO_N "(cached
) $ECHO_C" >&6
16087 ac_res=`eval echo '${'$as_ac_Header'}'`
16088 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16089 echo "${ECHO_T}$ac_res" >&6; }
16091 # Is the header compilable?
16092 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16093 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 $ac_includes_default
16101 #include <$ac_header>
16103 rm -f conftest.$ac_objext
16104 if { (ac_try="$ac_compile"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_compile") 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16116 (exit $ac_status); } && {
16117 test -z "$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 } && test -s conftest.$ac_objext; then
16120 ac_header_compiler=yes
16122 echo "$as_me: failed program was
:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_header_compiler=no
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16130 echo "${ECHO_T}$ac_header_compiler" >&6; }
16132 # Is the header present?
16133 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16134 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 #include <$ac_header>
16143 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1 >conftest.err
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16155 (exit $ac_status); } >/dev/null && {
16156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16159 ac_header_preproc=yes
16161 echo "$as_me: failed program was
:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16164 ac_header_preproc=no
16167 rm -f conftest.err conftest.$ac_ext
16168 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16169 echo "${ECHO_T}$ac_header_preproc" >&6; }
16171 # So? What about this header?
16172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16174 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16175 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16176 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16178 ac_header_preproc=yes
16181 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16182 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16183 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16184 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16185 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16186 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16187 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16188 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16189 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16191 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16192 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16196 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16197 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached
) $ECHO_C" >&6
16201 eval "$as_ac_Header=\
$ac_header_preproc"
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16222 for ac_header in $ac_header_list
16224 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16225 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16226 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16227 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16228 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16229 echo $ECHO_N "(cached
) $ECHO_C" >&6
16231 ac_res=`eval echo '${'$as_ac_Header'}'`
16232 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16235 # Is the header compilable?
16236 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16237 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16238 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 $ac_includes_default
16245 #include <$ac_header>
16247 rm -f conftest.$ac_objext
16248 if { (ac_try="$ac_compile"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_compile") 2>conftest.er1
16256 grep -v '^ *+' conftest.er1 >conftest.err
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16260 (exit $ac_status); } && {
16261 test -z "$ac_c_werror_flag" ||
16262 test ! -s conftest.err
16263 } && test -s conftest.$ac_objext; then
16264 ac_header_compiler=yes
16266 echo "$as_me: failed program was
:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ac_header_compiler=no
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16274 echo "${ECHO_T}$ac_header_compiler" >&6; }
16276 # Is the header present?
16277 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16278 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 #include <$ac_header>
16287 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16288 case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16295 grep -v '^ *+' conftest.er1 >conftest.err
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16299 (exit $ac_status); } >/dev/null && {
16300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16301 test ! -s conftest.err
16303 ac_header_preproc=yes
16305 echo "$as_me: failed program was
:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_header_preproc=no
16311 rm -f conftest.err conftest.$ac_ext
16312 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16313 echo "${ECHO_T}$ac_header_preproc" >&6; }
16315 # So? What about this header?
16316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16318 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16319 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16320 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16322 ac_header_preproc=yes
16325 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16326 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16327 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16328 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16329 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16330 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16331 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16332 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16336 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16340 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16341 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16342 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16343 echo $ECHO_N "(cached
) $ECHO_C" >&6
16345 eval "$as_ac_Header=\
$ac_header_preproc"
16347 ac_res=`eval echo '${'$as_ac_Header'}'`
16348 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16349 echo "${ECHO_T}$ac_res" >&6; }
16352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16369 for ac_func in $ac_func_list
16371 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16372 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16373 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16374 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16375 echo $ECHO_N "(cached
) $ECHO_C" >&6
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16385 #define $ac_func innocuous_$ac_func
16387 /* System header to define __stub macros and hopefully few prototypes,
16388 which can conflict with char $ac_func (); below.
16389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16390 <limits.h> exists even on freestanding compilers. */
16393 # include <limits.h>
16395 # include <assert.h>
16400 /* Override any GCC internal prototype to avoid an error.
16401 Use char because int might match the return type of a GCC
16402 builtin and then its argument prototype would still apply. */
16407 /* The GNU C library defines this for functions which it implements
16408 to always fail with ENOSYS. Some functions are actually named
16409 something starting with __ and the normal name is an alias. */
16410 #if defined __stub_$ac_func || defined __stub___$ac_func
16417 return $ac_func ();
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_link") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest$ac_exeext &&
16439 $as_test_x conftest$ac_exeext; then
16440 eval "$as_ac_var=yes"
16442 echo "$as_me: failed program was
:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 eval "$as_ac_var=no
"
16448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16449 conftest$ac_exeext conftest.$ac_ext
16451 ac_res=`eval echo '${'$as_ac_var'}'`
16452 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16453 echo "${ECHO_T}$ac_res" >&6; }
16454 if test `eval echo '${'$as_ac_var'}'` = yes; then
16455 cat >>confdefs.h <<_ACEOF
16456 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16478 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16479 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16480 if test "${ac_cv_func_working_mktime+set}" = set; then
16481 echo $ECHO_N "(cached
) $ECHO_C" >&6
16483 if test "$cross_compiling" = yes; then
16484 ac_cv_func_working_mktime=no
16486 cat >conftest.$ac_ext <<_ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 /* Test program from Paul Eggert and Tony Leneis. */
16493 #ifdef TIME_WITH_SYS_TIME
16494 # include <sys/time.h>
16497 # ifdef HAVE_SYS_TIME_H
16498 # include <sys/time.h>
16504 #include <stdlib.h>
16506 #ifdef HAVE_UNISTD_H
16507 # include <unistd.h>
16511 # define alarm(X) /* empty */
16514 /* Work around redefinition to rpl_putenv by other config tests. */
16517 static time_t time_t_max;
16518 static time_t time_t_min;
16520 /* Values we'll use to set the TZ environment variable. */
16521 static char *tz_strings[] = {
16522 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16523 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16525 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16527 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16528 Based on a problem report from Andreas Jaeger. */
16530 spring_forward_gap ()
16532 /* glibc (up to about 1998-10-07) failed this test. */
16535 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16536 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16537 on systems that don't support the Olson extension, or don't have the
16538 full zoneinfo tables installed. */
16539 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16548 return mktime (&tm) != (time_t) -1;
16556 return ! (lt = localtime (&now)) || mktime (lt) == now;
16563 return (mktime_test1 (now)
16564 && mktime_test1 ((time_t) (time_t_max - now))
16565 && mktime_test1 ((time_t) (time_t_min + now)));
16571 /* Based on code from Ariel Faigon. */
16581 return tm.tm_mon == 2 && tm.tm_mday == 31;
16590 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16591 now = mktime (&tm);
16592 if (now != (time_t) -1)
16594 struct tm *lt = localtime (&now);
16596 && lt->tm_year == tm.tm_year
16597 && lt->tm_mon == tm.tm_mon
16598 && lt->tm_mday == tm.tm_mday
16599 && lt->tm_hour == tm.tm_hour
16600 && lt->tm_min == tm.tm_min
16601 && lt->tm_sec == tm.tm_sec
16602 && lt->tm_yday == tm.tm_yday
16603 && lt->tm_wday == tm.tm_wday
16604 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16605 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16614 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16615 ignoring leap seconds. */
16616 unsigned long int answer = 2527315200UL;
16620 tm.tm_year = 2050 - 1900;
16623 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16626 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16627 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16628 on systems that don't support the Olson extension, or don't have the
16629 full zoneinfo tables installed. */
16630 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16634 /* Check that the result is either a failure, or close enough
16635 to the correct answer that we can assume the discrepancy is
16636 due to leap seconds. */
16637 return (t == (time_t) -1
16638 || (0 < t && answer - 120 <= t && t <= answer + 120));
16647 /* This test makes some buggy mktime implementations loop.
16648 Give up after 60 seconds; a mktime slower than that
16649 isn't worth using anyway. */
16652 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16655 if ((time_t) -1 < 0)
16656 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16658 delta = time_t_max / 997; /* a suitable prime number */
16659 for (i = 0; i < N_STRINGS; i++)
16662 putenv (tz_strings[i]);
16664 for (t = 0; t <= time_t_max - delta; t += delta)
16665 if (! mktime_test (t))
16667 if (! (mktime_test ((time_t) 1)
16668 && mktime_test ((time_t) (60 * 60))
16669 && mktime_test ((time_t) (60 * 60 * 24))))
16672 for (j = 1; 0 < j; j *= 2)
16673 if (! bigtime_test (j))
16675 if (! bigtime_test (j - 1))
16678 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16681 rm -f conftest$ac_exeext
16682 if { (ac_try="$ac_link"
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_link") 2>&5
16690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_func_working_mktime=yes
16703 echo "$as_me: program exited with status
$ac_status" >&5
16704 echo "$as_me: failed program was
:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 ( exit $ac_status )
16708 ac_cv_func_working_mktime=no
16710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16715 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16716 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16717 if test $ac_cv_func_working_mktime = no; then
16718 case " $LIBOBJS " in
16719 *" mktime.
$ac_objext "* ) ;;
16720 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16726 if test "$ac_cv_func_working_mktime" = no; then
16728 cat >>confdefs.h <<\_ACEOF
16729 #define BROKEN_MKTIME 1
16734 ac_have_func=no # yes means we've found a way to get the load average.
16736 # Make sure getloadavg.c is where it belongs, at configure-time.
16737 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16738 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16739 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16740 { (exit 1); exit 1; }; }
16744 # Check for getloadavg, but be sure not to touch the cache variable.
16745 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16746 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16747 if test "${ac_cv_func_getloadavg+set}" = set; then
16748 echo $ECHO_N "(cached
) $ECHO_C" >&6
16750 cat >conftest.$ac_ext <<_ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16758 #define getloadavg innocuous_getloadavg
16760 /* System header to define __stub macros and hopefully few prototypes,
16761 which can conflict with char getloadavg (); below.
16762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16763 <limits.h> exists even on freestanding compilers. */
16766 # include <limits.h>
16768 # include <assert.h>
16773 /* Override any GCC internal prototype to avoid an error.
16774 Use char because int might match the return type of a GCC
16775 builtin and then its argument prototype would still apply. */
16779 char getloadavg ();
16780 /* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783 #if defined __stub_getloadavg || defined __stub___getloadavg
16790 return getloadavg ();
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_link") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1 >conftest.err
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16808 (exit $ac_status); } && {
16809 test -z "$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16811 } && test -s conftest$ac_exeext &&
16812 $as_test_x conftest$ac_exeext; then
16813 ac_cv_func_getloadavg=yes
16815 echo "$as_me: failed program was
:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ac_cv_func_getloadavg=no
16821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16822 conftest$ac_exeext conftest.$ac_ext
16824 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16825 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16826 if test $ac_cv_func_getloadavg = yes; then
16831 ) && ac_have_func=yes
16833 # On HPUX9, an unprivileged user can get load averages through this function.
16835 for ac_func in pstat_getdynamic
16837 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16838 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16839 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16840 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16841 echo $ECHO_N "(cached
) $ECHO_C" >&6
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16851 #define $ac_func innocuous_$ac_func
16853 /* System header to define __stub macros and hopefully few prototypes,
16854 which can conflict with char $ac_func (); below.
16855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16856 <limits.h> exists even on freestanding compilers. */
16859 # include <limits.h>
16861 # include <assert.h>
16866 /* Override any GCC internal prototype to avoid an error.
16867 Use char because int might match the return type of a GCC
16868 builtin and then its argument prototype would still apply. */
16873 /* The GNU C library defines this for functions which it implements
16874 to always fail with ENOSYS. Some functions are actually named
16875 something starting with __ and the normal name is an alias. */
16876 #if defined __stub_$ac_func || defined __stub___$ac_func
16883 return $ac_func ();
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_link") 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16901 (exit $ac_status); } && {
16902 test -z "$ac_c_werror_flag" ||
16903 test ! -s conftest.err
16904 } && test -s conftest$ac_exeext &&
16905 $as_test_x conftest$ac_exeext; then
16906 eval "$as_ac_var=yes"
16908 echo "$as_me: failed program was
:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 eval "$as_ac_var=no
"
16914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16915 conftest$ac_exeext conftest.$ac_ext
16917 ac_res=`eval echo '${'$as_ac_var'}'`
16918 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16919 echo "${ECHO_T}$ac_res" >&6; }
16920 if test `eval echo '${'$as_ac_var'}'` = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16929 # Solaris has libkstat which does not require root.
16931 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16932 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16933 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16934 echo $ECHO_N "(cached
) $ECHO_C" >&6
16936 ac_check_lib_save_LIBS=$LIBS
16937 LIBS="-lkstat $LIBS"
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16951 char kstat_open ();
16955 return kstat_open ();
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (ac_try="$ac_link"
16962 case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_link") 2>conftest.er1
16969 grep -v '^ *+' conftest.er1 >conftest.err
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16973 (exit $ac_status); } && {
16974 test -z "$ac_c_werror_flag" ||
16975 test ! -s conftest.err
16976 } && test -s conftest$ac_exeext &&
16977 $as_test_x conftest$ac_exeext; then
16978 ac_cv_lib_kstat_kstat_open=yes
16980 echo "$as_me: failed program was
:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_lib_kstat_kstat_open=no
16986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16987 conftest$ac_exeext conftest.$ac_ext
16988 LIBS=$ac_check_lib_save_LIBS
16990 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16991 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16992 if test $ac_cv_lib_kstat_kstat_open = yes; then
16993 cat >>confdefs.h <<_ACEOF
16994 #define HAVE_LIBKSTAT 1
16997 LIBS="-lkstat $LIBS"
17001 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17003 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17004 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17005 # to get the right answer into the cache.
17006 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17007 if test $ac_have_func = no; then
17008 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17009 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17010 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17011 echo $ECHO_N "(cached
) $ECHO_C" >&6
17013 ac_check_lib_save_LIBS=$LIBS
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 /* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
17032 return elf_begin ();
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17050 (exit $ac_status); } && {
17051 test -z "$ac_c_werror_flag" ||
17052 test ! -s conftest.err
17053 } && test -s conftest$ac_exeext &&
17054 $as_test_x conftest$ac_exeext; then
17055 ac_cv_lib_elf_elf_begin=yes
17057 echo "$as_me: failed program was
:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ac_cv_lib_elf_elf_begin=no
17063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17064 conftest$ac_exeext conftest.$ac_ext
17065 LIBS=$ac_check_lib_save_LIBS
17067 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17068 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17069 if test $ac_cv_lib_elf_elf_begin = yes; then
17074 if test $ac_have_func = no; then
17075 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17076 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17077 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17078 echo $ECHO_N "(cached
) $ECHO_C" >&6
17080 ac_check_lib_save_LIBS=$LIBS
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17099 return kvm_open ();
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (ac_try="$ac_link"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_link") 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17117 (exit $ac_status); } && {
17118 test -z "$ac_c_werror_flag" ||
17119 test ! -s conftest.err
17120 } && test -s conftest$ac_exeext &&
17121 $as_test_x conftest$ac_exeext; then
17122 ac_cv_lib_kvm_kvm_open=yes
17124 echo "$as_me: failed program was
:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_cv_lib_kvm_kvm_open=no
17130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17134 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17135 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17136 if test $ac_cv_lib_kvm_kvm_open = yes; then
17140 # Check for the 4.4BSD definition of getloadavg.
17141 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17142 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17143 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17144 echo $ECHO_N "(cached
) $ECHO_C" >&6
17146 ac_check_lib_save_LIBS=$LIBS
17147 LIBS="-lutil $LIBS"
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17161 char getloadavg ();
17165 return getloadavg ();
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_link") 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest$ac_exeext &&
17187 $as_test_x conftest$ac_exeext; then
17188 ac_cv_lib_util_getloadavg=yes
17190 echo "$as_me: failed program was
:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_lib_util_getloadavg=no
17196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17200 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17201 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17202 if test $ac_cv_lib_util_getloadavg = yes; then
17203 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17208 if test $ac_have_func = no; then
17209 # There is a commonly available library for RS/6000 AIX.
17210 # Since it is not a standard part of AIX, it might be installed locally.
17211 ac_getloadavg_LIBS=$LIBS
17212 LIBS="-L/usr
/local
/lib
$LIBS"
17213 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17214 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17215 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17216 echo $ECHO_N "(cached
) $ECHO_C" >&6
17218 ac_check_lib_save_LIBS=$LIBS
17219 LIBS="-lgetloadavg $LIBS"
17220 cat >conftest.$ac_ext <<_ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17227 /* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
17233 char getloadavg ();
17237 return getloadavg ();
17242 rm -f conftest.$ac_objext conftest$ac_exeext
17243 if { (ac_try="$ac_link"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_link") 2>conftest.er1
17251 grep -v '^ *+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17255 (exit $ac_status); } && {
17256 test -z "$ac_c_werror_flag" ||
17257 test ! -s conftest.err
17258 } && test -s conftest$ac_exeext &&
17259 $as_test_x conftest$ac_exeext; then
17260 ac_cv_lib_getloadavg_getloadavg=yes
17262 echo "$as_me: failed program was
:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_cv_lib_getloadavg_getloadavg=no
17268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_lib_save_LIBS
17272 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17273 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17274 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17275 LIBS="-lgetloadavg $LIBS"
17277 LIBS=$ac_getloadavg_LIBS
17282 # Make sure it is really in the library, if we think we found it,
17283 # otherwise set up the replacement function.
17285 for ac_func in getloadavg
17287 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17288 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17289 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17290 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17291 echo $ECHO_N "(cached
) $ECHO_C" >&6
17293 cat >conftest.$ac_ext <<_ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17301 #define $ac_func innocuous_$ac_func
17303 /* System header to define __stub macros and hopefully few prototypes,
17304 which can conflict with char $ac_func (); below.
17305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17306 <limits.h> exists even on freestanding compilers. */
17309 # include <limits.h>
17311 # include <assert.h>
17316 /* Override any GCC internal prototype to avoid an error.
17317 Use char because int might match the return type of a GCC
17318 builtin and then its argument prototype would still apply. */
17323 /* The GNU C library defines this for functions which it implements
17324 to always fail with ENOSYS. Some functions are actually named
17325 something starting with __ and the normal name is an alias. */
17326 #if defined __stub_$ac_func || defined __stub___$ac_func
17333 return $ac_func ();
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest$ac_exeext &&
17355 $as_test_x conftest$ac_exeext; then
17356 eval "$as_ac_var=yes"
17358 echo "$as_me: failed program was
:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 eval "$as_ac_var=no
"
17364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365 conftest$ac_exeext conftest.$ac_ext
17367 ac_res=`eval echo '${'$as_ac_var'}'`
17368 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17369 echo "${ECHO_T}$ac_res" >&6; }
17370 if test `eval echo '${'$as_ac_var'}'` = yes; then
17371 cat >>confdefs.h <<_ACEOF
17372 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17376 case " $LIBOBJS " in
17377 *" getloadavg.
$ac_objext "* ) ;;
17378 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17383 cat >>confdefs.h <<\_ACEOF
17384 #define C_GETLOADAVG 1
17387 # Figure out what our getloadavg.c needs.
17389 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17390 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17391 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17392 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17393 echo $ECHO_N "(cached
) $ECHO_C" >&6
17395 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17396 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17398 # Is the header compilable?
17399 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17400 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 $ac_includes_default
17408 #include <sys/dg_sys_info.h>
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_compile") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest.$ac_objext; then
17427 ac_header_compiler=yes
17429 echo "$as_me: failed program was
:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_header_compiler=no
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17437 echo "${ECHO_T}$ac_header_compiler" >&6; }
17439 # Is the header present?
17440 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17441 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <sys/dg_sys_info.h>
17450 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17462 (exit $ac_status); } >/dev/null && {
17463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17466 ac_header_preproc=yes
17468 echo "$as_me: failed program was
:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_header_preproc=no
17474 rm -f conftest.err conftest.$ac_ext
17475 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17476 echo "${ECHO_T}$ac_header_preproc" >&6; }
17478 # So? What about this header?
17479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17481 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17482 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17483 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17484 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17485 ac_header_preproc=yes
17488 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17489 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17490 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17491 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17492 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17493 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17494 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17495 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17496 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17497 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17498 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17499 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17503 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17504 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17505 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17506 echo $ECHO_N "(cached
) $ECHO_C" >&6
17508 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17510 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17511 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17514 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17517 cat >>confdefs.h <<\_ACEOF
17522 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17523 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17524 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17525 echo $ECHO_N "(cached
) $ECHO_C" >&6
17527 ac_check_lib_save_LIBS=$LIBS
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17542 char dg_sys_info ();
17546 return dg_sys_info ();
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17564 (exit $ac_status); } && {
17565 test -z "$ac_c_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest$ac_exeext &&
17568 $as_test_x conftest$ac_exeext; then
17569 ac_cv_lib_dgc_dg_sys_info=yes
17571 echo "$as_me: failed program was
:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_cv_lib_dgc_dg_sys_info=no
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17579 LIBS=$ac_check_lib_save_LIBS
17581 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17582 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17583 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_LIBDGC 1
17596 if test "${ac_cv_header_locale_h+set}" = set; then
17597 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17598 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17599 if test "${ac_cv_header_locale_h+set}" = set; then
17600 echo $ECHO_N "(cached
) $ECHO_C" >&6
17602 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17603 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17605 # Is the header compilable?
17606 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17607 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17614 $ac_includes_default
17615 #include <locale.h>
17617 rm -f conftest.$ac_objext
17618 if { (ac_try="$ac_compile"
17619 case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_compile") 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17630 (exit $ac_status); } && {
17631 test -z "$ac_c_werror_flag" ||
17632 test ! -s conftest.err
17633 } && test -s conftest.$ac_objext; then
17634 ac_header_compiler=yes
17636 echo "$as_me: failed program was
:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_header_compiler=no
17642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17643 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17644 echo "${ECHO_T}$ac_header_compiler" >&6; }
17646 # Is the header present?
17647 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17648 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17649 cat >conftest.$ac_ext <<_ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 #include <locale.h>
17657 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17669 (exit $ac_status); } >/dev/null && {
17670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17673 ac_header_preproc=yes
17675 echo "$as_me: failed program was
:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_header_preproc=no
17681 rm -f conftest.err conftest.$ac_ext
17682 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17683 echo "${ECHO_T}$ac_header_preproc" >&6; }
17685 # So? What about this header?
17686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17688 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17689 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17690 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17691 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17692 ac_header_preproc=yes
17695 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17696 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17697 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17698 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17699 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17700 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17701 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17702 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17703 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17704 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17705 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17706 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17710 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17711 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17712 if test "${ac_cv_header_locale_h+set}" = set; then
17713 echo $ECHO_N "(cached
) $ECHO_C" >&6
17715 ac_cv_header_locale_h=$ac_header_preproc
17717 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17718 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17724 for ac_func in setlocale
17726 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17727 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17728 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17729 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17730 echo $ECHO_N "(cached
) $ECHO_C" >&6
17732 cat >conftest.$ac_ext <<_ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17740 #define $ac_func innocuous_$ac_func
17742 /* System header to define __stub macros and hopefully few prototypes,
17743 which can conflict with char $ac_func (); below.
17744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17745 <limits.h> exists even on freestanding compilers. */
17748 # include <limits.h>
17750 # include <assert.h>
17755 /* Override any GCC internal prototype to avoid an error.
17756 Use char because int might match the return type of a GCC
17757 builtin and then its argument prototype would still apply. */
17762 /* The GNU C library defines this for functions which it implements
17763 to always fail with ENOSYS. Some functions are actually named
17764 something starting with __ and the normal name is an alias. */
17765 #if defined __stub_$ac_func || defined __stub___$ac_func
17772 return $ac_func ();
17777 rm -f conftest.$ac_objext conftest$ac_exeext
17778 if { (ac_try="$ac_link"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_link") 2>conftest.er1
17786 grep -v '^ *+' conftest.er1 >conftest.err
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17790 (exit $ac_status); } && {
17791 test -z "$ac_c_werror_flag" ||
17792 test ! -s conftest.err
17793 } && test -s conftest$ac_exeext &&
17794 $as_test_x conftest$ac_exeext; then
17795 eval "$as_ac_var=yes"
17797 echo "$as_me: failed program was
:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 eval "$as_ac_var=no
"
17803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17804 conftest$ac_exeext conftest.$ac_ext
17806 ac_res=`eval echo '${'$as_ac_var'}'`
17807 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17808 echo "${ECHO_T}$ac_res" >&6; }
17809 if test `eval echo '${'$as_ac_var'}'` = yes; then
17810 cat >>confdefs.h <<_ACEOF
17811 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17818 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17819 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17820 # Irix 4.0.5F has the header but not the library.
17821 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17824 cat >>confdefs.h <<\_ACEOF
17830 if test $ac_have_func = no; then
17831 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17832 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17833 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17834 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17835 echo $ECHO_N "(cached
) $ECHO_C" >&6
17837 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17838 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17840 # Is the header compilable?
17841 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17842 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 #include <inq_stats/cpustats.h>
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_compile") 2>conftest.er1
17861 grep -v '^ *+' conftest.er1 >conftest.err
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest.$ac_objext; then
17869 ac_header_compiler=yes
17871 echo "$as_me: failed program was
:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_header_compiler=no
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17879 echo "${ECHO_T}$ac_header_compiler" >&6; }
17881 # Is the header present?
17882 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17883 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #include <inq_stats/cpustats.h>
17892 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17904 (exit $ac_status); } >/dev/null && {
17905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17908 ac_header_preproc=yes
17910 echo "$as_me: failed program was
:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_header_preproc=no
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17923 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17924 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17925 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17926 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17927 ac_header_preproc=yes
17930 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17931 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17932 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17933 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17934 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17935 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17936 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17937 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17938 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17939 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17941 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17945 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17946 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17947 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17948 echo $ECHO_N "(cached
) $ECHO_C" >&6
17950 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17952 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17953 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17956 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17959 cat >>confdefs.h <<\_ACEOF
17964 cat >>confdefs.h <<\_ACEOF
17973 if test $ac_have_func = no; then
17974 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17975 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17976 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17977 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17978 echo $ECHO_N "(cached
) $ECHO_C" >&6
17980 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17981 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17983 # Is the header compilable?
17984 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17985 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17986 cat >conftest.$ac_ext <<_ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 $ac_includes_default
17993 #include <sys/cpustats.h>
17995 rm -f conftest.$ac_objext
17996 if { (ac_try="$ac_compile"
17997 case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_compile") 2>conftest.er1
18004 grep -v '^ *+' conftest.er1 >conftest.err
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest.$ac_objext; then
18012 ac_header_compiler=yes
18014 echo "$as_me: failed program was
:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_header_compiler=no
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18022 echo "${ECHO_T}$ac_header_compiler" >&6; }
18024 # Is the header present?
18025 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18026 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #include <sys/cpustats.h>
18035 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18036 case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18043 grep -v '^ *+' conftest.er1 >conftest.err
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18047 (exit $ac_status); } >/dev/null && {
18048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18049 test ! -s conftest.err
18051 ac_header_preproc=yes
18053 echo "$as_me: failed program was
:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 ac_header_preproc=no
18059 rm -f conftest.err conftest.$ac_ext
18060 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18061 echo "${ECHO_T}$ac_header_preproc" >&6; }
18063 # So? What about this header?
18064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18066 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18067 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18068 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18069 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18070 ac_header_preproc=yes
18073 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18074 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18075 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18076 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18077 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18078 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18079 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18080 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18081 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18082 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18084 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18088 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18089 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18090 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18091 echo $ECHO_N "(cached
) $ECHO_C" >&6
18093 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18095 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18096 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18099 if test $ac_cv_header_sys_cpustats_h = yes; then
18100 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18109 if test $ac_have_func = no; then
18111 for ac_header in mach/mach.h
18113 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18114 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18115 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18116 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18117 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18118 echo $ECHO_N "(cached
) $ECHO_C" >&6
18120 ac_res=`eval echo '${'$as_ac_Header'}'`
18121 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18122 echo "${ECHO_T}$ac_res" >&6; }
18124 # Is the header compilable?
18125 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18126 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 #include <$ac_header>
18136 rm -f conftest.$ac_objext
18137 if { (ac_try="$ac_compile"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_compile") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest.$ac_objext; then
18153 ac_header_compiler=yes
18155 echo "$as_me: failed program was
:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18158 ac_header_compiler=no
18161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18162 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18163 echo "${ECHO_T}$ac_header_compiler" >&6; }
18165 # Is the header present?
18166 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18167 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 #include <$ac_header>
18176 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18188 (exit $ac_status); } >/dev/null && {
18189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18192 ac_header_preproc=yes
18194 echo "$as_me: failed program was
:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_header_preproc=no
18200 rm -f conftest.err conftest.$ac_ext
18201 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18202 echo "${ECHO_T}$ac_header_preproc" >&6; }
18204 # So? What about this header?
18205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18207 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18208 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18209 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18211 ac_header_preproc=yes
18214 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18215 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18216 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18217 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18218 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18219 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18220 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18221 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18222 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18224 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18225 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18229 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18230 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18231 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18232 echo $ECHO_N "(cached
) $ECHO_C" >&6
18234 eval "$as_ac_Header=\
$ac_header_preproc"
18236 ac_res=`eval echo '${'$as_ac_Header'}'`
18237 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18238 echo "${ECHO_T}$ac_res" >&6; }
18241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18242 cat >>confdefs.h <<_ACEOF
18243 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18253 for ac_header in nlist.h
18255 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18256 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18257 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18258 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18259 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18260 echo $ECHO_N "(cached
) $ECHO_C" >&6
18262 ac_res=`eval echo '${'$as_ac_Header'}'`
18263 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18264 echo "${ECHO_T}$ac_res" >&6; }
18266 # Is the header compilable?
18267 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18268 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18269 cat >conftest.$ac_ext <<_ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 $ac_includes_default
18276 #include <$ac_header>
18278 rm -f conftest.$ac_objext
18279 if { (ac_try="$ac_compile"
18280 case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_compile") 2>conftest.er1
18287 grep -v '^ *+' conftest.er1 >conftest.err
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18291 (exit $ac_status); } && {
18292 test -z "$ac_c_werror_flag" ||
18293 test ! -s conftest.err
18294 } && test -s conftest.$ac_objext; then
18295 ac_header_compiler=yes
18297 echo "$as_me: failed program was
:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_header_compiler=no
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18305 echo "${ECHO_T}$ac_header_compiler" >&6; }
18307 # Is the header present?
18308 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18309 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <$ac_header>
18318 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18319 case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18326 grep -v '^ *+' conftest.er1 >conftest.err
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18330 (exit $ac_status); } >/dev/null && {
18331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18332 test ! -s conftest.err
18334 ac_header_preproc=yes
18336 echo "$as_me: failed program was
:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 ac_header_preproc=no
18342 rm -f conftest.err conftest.$ac_ext
18343 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18344 echo "${ECHO_T}$ac_header_preproc" >&6; }
18346 # So? What about this header?
18347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18349 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18350 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18351 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18353 ac_header_preproc=yes
18356 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18357 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18358 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18359 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18360 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18361 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18362 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18363 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18367 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18371 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18372 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18373 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18374 echo $ECHO_N "(cached
) $ECHO_C" >&6
18376 eval "$as_ac_Header=\
$ac_header_preproc"
18378 ac_res=`eval echo '${'$as_ac_Header'}'`
18379 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18380 echo "${ECHO_T}$ac_res" >&6; }
18383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18384 cat >>confdefs.h <<_ACEOF
18385 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18387 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18388 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18389 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18390 echo $ECHO_N "(cached
) $ECHO_C" >&6
18392 cat >conftest.$ac_ext <<_ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18403 static struct nlist ac_aggr;
18404 if (ac_aggr.n_un.n_name)
18410 rm -f conftest.$ac_objext
18411 if { (ac_try="$ac_compile"
18412 case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_compile") 2>conftest.er1
18419 grep -v '^ *+' conftest.er1 >conftest.err
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18423 (exit $ac_status); } && {
18424 test -z "$ac_c_werror_flag" ||
18425 test ! -s conftest.err
18426 } && test -s conftest.$ac_objext; then
18427 ac_cv_member_struct_nlist_n_un_n_name=yes
18429 echo "$as_me: failed program was
:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18443 static struct nlist ac_aggr;
18444 if (sizeof ac_aggr.n_un.n_name)
18450 rm -f conftest.$ac_objext
18451 if { (ac_try="$ac_compile"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_compile") 2>conftest.er1
18459 grep -v '^ *+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18463 (exit $ac_status); } && {
18464 test -z "$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 } && test -s conftest.$ac_objext; then
18467 ac_cv_member_struct_nlist_n_un_n_name=yes
18469 echo "$as_me: failed program was
:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ac_cv_member_struct_nlist_n_un_n_name=no
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18481 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18482 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18489 cat >>confdefs.h <<\_ACEOF
18490 #define NLIST_NAME_UNION 1
18504 # Some definitions of getloadavg require that the program be installed setgid.
18505 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18506 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18507 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18508 echo $ECHO_N "(cached
) $ECHO_C" >&6
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18517 #ifdef LDAV_PRIVILEGED
18518 Yowza Am I SETGID yet
18521 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18522 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18523 ac_cv_func_getloadavg_setgid=yes
18525 ac_cv_func_getloadavg_setgid=no
18530 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18531 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18532 if test $ac_cv_func_getloadavg_setgid = yes; then
18535 cat >>confdefs.h <<\_ACEOF
18536 #define GETLOADAVG_PRIVILEGED 1
18543 if test $ac_cv_func_getloadavg_setgid = yes; then
18544 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18545 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18546 if test "${ac_cv_group_kmem+set}" = set; then
18547 echo $ECHO_N "(cached
) $ECHO_C" >&6
18549 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18550 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18551 # If we got an error (system does not support symlinks), try without -L.
18552 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18553 ac_cv_group_kmem=`echo $ac_ls_output \
18554 | sed -ne 's/[ ][ ]*/ /g;
18555 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18559 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18560 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18561 KMEM_GROUP=$ac_cv_group_kmem
18563 if test "x
$ac_save_LIBS" = x; then
18564 GETLOADAVG_LIBS=$LIBS
18566 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18572 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18573 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18574 if test "${ac_cv_sys_largefile_source+set}" = set; then
18575 echo $ECHO_N "(cached
) $ECHO_C" >&6
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18588 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_link") 2>conftest.er1
18602 grep -v '^ *+' conftest.er1 >conftest.err
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18606 (exit $ac_status); } && {
18607 test -z "$ac_c_werror_flag" ||
18608 test ! -s conftest.err
18609 } && test -s conftest$ac_exeext &&
18610 $as_test_x conftest$ac_exeext; then
18611 ac_cv_sys_largefile_source=no; break
18613 echo "$as_me: failed program was
:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18620 conftest$ac_exeext conftest.$ac_ext
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 #define _LARGEFILE_SOURCE 1
18632 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18650 (exit $ac_status); } && {
18651 test -z "$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18653 } && test -s conftest$ac_exeext &&
18654 $as_test_x conftest$ac_exeext; then
18655 ac_cv_sys_largefile_source=1; break
18657 echo "$as_me: failed program was
:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18664 conftest$ac_exeext conftest.$ac_ext
18665 ac_cv_sys_largefile_source=unknown
18669 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18670 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18671 case $ac_cv_sys_largefile_source in #(
18674 cat >>confdefs.h <<_ACEOF
18675 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18681 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18682 # in glibc 2.1.3, but that breaks too many other things.
18683 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18684 if test $ac_cv_sys_largefile_source != unknown; then
18686 cat >>confdefs.h <<\_ACEOF
18687 #define HAVE_FSEEKO 1
18693 # Configure getopt.
18694 # getopt.m4 serial 10
18696 # The getopt module assume you want GNU getopt, with getopt_long etc,
18697 # rather than vanilla POSIX getopt. This means your your code should
18698 # always include <getopt.h> for the getopt prototypes.
18710 # Prerequisites of lib/getopt*.
18717 for ac_header in getopt.h
18719 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18720 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18721 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18722 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18723 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18724 echo $ECHO_N "(cached
) $ECHO_C" >&6
18726 ac_res=`eval echo '${'$as_ac_Header'}'`
18727 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18728 echo "${ECHO_T}$ac_res" >&6; }
18730 # Is the header compilable?
18731 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18732 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18733 cat >conftest.$ac_ext <<_ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18739 $ac_includes_default
18740 #include <$ac_header>
18742 rm -f conftest.$ac_objext
18743 if { (ac_try="$ac_compile"
18744 case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18749 (eval "$ac_compile") 2>conftest.er1
18751 grep -v '^ *+' conftest.er1 >conftest.err
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18755 (exit $ac_status); } && {
18756 test -z "$ac_c_werror_flag" ||
18757 test ! -s conftest.err
18758 } && test -s conftest.$ac_objext; then
18759 ac_header_compiler=yes
18761 echo "$as_me: failed program was
:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_header_compiler=no
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18769 echo "${ECHO_T}$ac_header_compiler" >&6; }
18771 # Is the header present?
18772 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18773 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 #include <$ac_header>
18782 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18783 case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18794 (exit $ac_status); } >/dev/null && {
18795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18798 ac_header_preproc=yes
18800 echo "$as_me: failed program was
:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18803 ac_header_preproc=no
18806 rm -f conftest.err conftest.$ac_ext
18807 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18808 echo "${ECHO_T}$ac_header_preproc" >&6; }
18810 # So? What about this header?
18811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18813 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18814 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18815 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18817 ac_header_preproc=yes
18820 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18821 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18822 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18823 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18824 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18825 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18826 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18827 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18828 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18830 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18831 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18835 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18836 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18837 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18838 echo $ECHO_N "(cached
) $ECHO_C" >&6
18840 eval "$as_ac_Header=\
$ac_header_preproc"
18842 ac_res=`eval echo '${'$as_ac_Header'}'`
18843 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18844 echo "${ECHO_T}$ac_res" >&6; }
18847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18848 cat >>confdefs.h <<_ACEOF
18849 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18858 if test -z "$GETOPT_H"; then
18860 for ac_func in getopt_long_only
18862 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18863 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18864 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18865 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18866 echo $ECHO_N "(cached
) $ECHO_C" >&6
18868 cat >conftest.$ac_ext <<_ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18876 #define $ac_func innocuous_$ac_func
18878 /* System header to define __stub macros and hopefully few prototypes,
18879 which can conflict with char $ac_func (); below.
18880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18881 <limits.h> exists even on freestanding compilers. */
18884 # include <limits.h>
18886 # include <assert.h>
18891 /* Override any GCC internal prototype to avoid an error.
18892 Use char because int might match the return type of a GCC
18893 builtin and then its argument prototype would still apply. */
18898 /* The GNU C library defines this for functions which it implements
18899 to always fail with ENOSYS. Some functions are actually named
18900 something starting with __ and the normal name is an alias. */
18901 #if defined __stub_$ac_func || defined __stub___$ac_func
18908 return $ac_func ();
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (ac_try="$ac_link"
18915 case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_link") 2>conftest.er1
18922 grep -v '^ *+' conftest.er1 >conftest.err
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest$ac_exeext &&
18930 $as_test_x conftest$ac_exeext; then
18931 eval "$as_ac_var=yes"
18933 echo "$as_me: failed program was
:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 eval "$as_ac_var=no
"
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940 conftest$ac_exeext conftest.$ac_ext
18942 ac_res=`eval echo '${'$as_ac_var'}'`
18943 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18944 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_var'}'` = yes; then
18946 cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18957 if test -z "$GETOPT_H"; then
18958 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18959 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18960 if test "${ac_cv_have_decl_optreset+set}" = set; then
18961 echo $ECHO_N "(cached
) $ECHO_C" >&6
18963 cat >conftest.$ac_ext <<_ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 #include <getopt.h>
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_compile") 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest.$ac_objext; then
18999 ac_cv_have_decl_optreset=yes
19001 echo "$as_me: failed program was
:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_cv_have_decl_optreset=no
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19010 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19011 if test $ac_cv_have_decl_optreset = yes; then
19017 if test -z "$GETOPT_H"; then
19018 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19019 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19020 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19021 echo $ECHO_N "(cached
) $ECHO_C" >&6
19023 if test "$cross_compiling" = yes; then
19024 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19025 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19026 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19027 echo $ECHO_N "(cached
) $ECHO_C" >&6
19029 cat >conftest.$ac_ext <<_ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035 #include <getopt.h>
19040 #ifndef getopt_clip
19041 (void) getopt_clip;
19048 rm -f conftest.$ac_objext
19049 if { (ac_try="$ac_compile"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_compile") 2>conftest.er1
19057 grep -v '^ *+' conftest.er1 >conftest.err
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest.$ac_objext; then
19065 ac_cv_have_decl_getopt_clip=yes
19067 echo "$as_me: failed program was
:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_have_decl_getopt_clip=no
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19076 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19077 if test $ac_cv_have_decl_getopt_clip = yes; then
19078 gl_cv_func_gnu_getopt=no
19080 gl_cv_func_gnu_getopt=yes
19084 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 #include <getopt.h>
19096 myargv[0] = "conftest
";
19099 return getopt (2, myargv, "+a
") != '?';
19105 rm -f conftest$ac_exeext
19106 if { (ac_try="$ac_link"
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_link") 2>&5
19114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 gl_cv_func_gnu_getopt=yes
19127 echo "$as_me: program exited with status
$ac_status" >&5
19128 echo "$as_me: failed program was
:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 ( exit $ac_status )
19132 gl_cv_func_gnu_getopt=no
19134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19139 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19140 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19141 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19148 if test -n "$GETOPT_H"; then
19153 cat >>confdefs.h <<\_ACEOF
19154 #define __GETOPT_PREFIX rpl_
19160 GETOPTOBJS='getopt.o getopt1.o'
19167 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19168 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19169 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19170 echo $ECHO_N "(cached
) $ECHO_C" >&6
19172 # Use it with a single arg.
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 $ac_includes_default
19188 rm -f conftest.$ac_objext
19189 if { (ac_try="$ac_compile"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_compile") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest.$ac_objext; then
19205 ac_cv_func_getpgrp_void=no
19207 echo "$as_me: failed program was
:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 ac_cv_func_getpgrp_void=yes
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19217 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19218 if test $ac_cv_func_getpgrp_void = yes; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define GETPGRP_VOID 1
19228 for ac_func in strftime
19230 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19231 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19232 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19233 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19234 echo $ECHO_N "(cached
) $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19244 #define $ac_func innocuous_$ac_func
19246 /* System header to define __stub macros and hopefully few prototypes,
19247 which can conflict with char $ac_func (); below.
19248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19249 <limits.h> exists even on freestanding compilers. */
19252 # include <limits.h>
19254 # include <assert.h>
19259 /* Override any GCC internal prototype to avoid an error.
19260 Use char because int might match the return type of a GCC
19261 builtin and then its argument prototype would still apply. */
19266 /* The GNU C library defines this for functions which it implements
19267 to always fail with ENOSYS. Some functions are actually named
19268 something starting with __ and the normal name is an alias. */
19269 #if defined __stub_$ac_func || defined __stub___$ac_func
19276 return $ac_func ();
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext &&
19298 $as_test_x conftest$ac_exeext; then
19299 eval "$as_ac_var=yes"
19301 echo "$as_me: failed program was
:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 eval "$as_ac_var=no
"
19307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19308 conftest$ac_exeext conftest.$ac_ext
19310 ac_res=`eval echo '${'$as_ac_var'}'`
19311 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19312 echo "${ECHO_T}$ac_res" >&6; }
19313 if test `eval echo '${'$as_ac_var'}'` = yes; then
19314 cat >>confdefs.h <<_ACEOF
19315 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19319 # strftime is in -lintl on SCO UNIX.
19320 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19321 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19322 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19323 echo $ECHO_N "(cached
) $ECHO_C" >&6
19325 ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lintl $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19334 /* Override any GCC internal prototype to avoid an error.
19335 Use char because int might match the return type of a GCC
19336 builtin and then its argument prototype would still apply. */
19344 return strftime ();
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (ac_try="$ac_link"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_link") 2>conftest.er1
19358 grep -v '^ *+' conftest.er1 >conftest.err
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest$ac_exeext &&
19366 $as_test_x conftest$ac_exeext; then
19367 ac_cv_lib_intl_strftime=yes
19369 echo "$as_me: failed program was
:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 ac_cv_lib_intl_strftime=no
19375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19380 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19381 if test $ac_cv_lib_intl_strftime = yes; then
19382 cat >>confdefs.h <<\_ACEOF
19383 #define HAVE_STRFTIME 1
19386 LIBS="-lintl $LIBS"
19395 for ac_func in grantpt
19397 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19398 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19399 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19400 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19401 echo $ECHO_N "(cached
) $ECHO_C" >&6
19403 cat >conftest.$ac_ext <<_ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19411 #define $ac_func innocuous_$ac_func
19413 /* System header to define __stub macros and hopefully few prototypes,
19414 which can conflict with char $ac_func (); below.
19415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19416 <limits.h> exists even on freestanding compilers. */
19419 # include <limits.h>
19421 # include <assert.h>
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19433 /* The GNU C library defines this for functions which it implements
19434 to always fail with ENOSYS. Some functions are actually named
19435 something starting with __ and the normal name is an alias. */
19436 #if defined __stub_$ac_func || defined __stub___$ac_func
19443 return $ac_func ();
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>conftest.er1
19457 grep -v '^ *+' conftest.er1 >conftest.err
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19461 (exit $ac_status); } && {
19462 test -z "$ac_c_werror_flag" ||
19463 test ! -s conftest.err
19464 } && test -s conftest$ac_exeext &&
19465 $as_test_x conftest$ac_exeext; then
19466 eval "$as_ac_var=yes"
19468 echo "$as_me: failed program was
:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 eval "$as_ac_var=no
"
19474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19475 conftest$ac_exeext conftest.$ac_ext
19477 ac_res=`eval echo '${'$as_ac_var'}'`
19478 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19479 echo "${ECHO_T}$ac_res" >&6; }
19480 if test `eval echo '${'$as_ac_var'}'` = yes; then
19481 cat >>confdefs.h <<_ACEOF
19482 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19489 # PTY-related GNU extensions.
19491 for ac_func in getpt
19493 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19494 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19495 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19496 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19497 echo $ECHO_N "(cached
) $ECHO_C" >&6
19499 cat >conftest.$ac_ext <<_ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19507 #define $ac_func innocuous_$ac_func
19509 /* System header to define __stub macros and hopefully few prototypes,
19510 which can conflict with char $ac_func (); below.
19511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19512 <limits.h> exists even on freestanding compilers. */
19515 # include <limits.h>
19517 # include <assert.h>
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19529 /* The GNU C library defines this for functions which it implements
19530 to always fail with ENOSYS. Some functions are actually named
19531 something starting with __ and the normal name is an alias. */
19532 #if defined __stub_$ac_func || defined __stub___$ac_func
19539 return $ac_func ();
19544 rm -f conftest.$ac_objext conftest$ac_exeext
19545 if { (ac_try="$ac_link"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_link") 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest$ac_exeext &&
19561 $as_test_x conftest$ac_exeext; then
19562 eval "$as_ac_var=yes"
19564 echo "$as_me: failed program was
:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 eval "$as_ac_var=no
"
19570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19571 conftest$ac_exeext conftest.$ac_ext
19573 ac_res=`eval echo '${'$as_ac_var'}'`
19574 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19575 echo "${ECHO_T}$ac_res" >&6; }
19576 if test `eval echo '${'$as_ac_var'}'` = yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19585 # Check this now, so that we will NOT find the above functions in ncurses.
19586 # That is because we have not set up to link ncurses in lib-src.
19587 # It's better to believe a function is not available
19588 # than to expect to find it in ncurses.
19590 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19591 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19592 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19593 echo $ECHO_N "(cached
) $ECHO_C" >&6
19595 ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-lncurses $LIBS"
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19604 /* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19632 (exit $ac_status); } && {
19633 test -z "$ac_c_werror_flag" ||
19634 test ! -s conftest.err
19635 } && test -s conftest$ac_exeext &&
19636 $as_test_x conftest$ac_exeext; then
19637 ac_cv_lib_ncurses_tparm=yes
19639 echo "$as_me: failed program was
:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_cv_lib_ncurses_tparm=no
19645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19646 conftest$ac_exeext conftest.$ac_ext
19647 LIBS=$ac_check_lib_save_LIBS
19649 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19650 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19651 if test $ac_cv_lib_ncurses_tparm = yes; then
19652 cat >>confdefs.h <<_ACEOF
19653 #define HAVE_LIBNCURSES 1
19656 LIBS="-lncurses $LIBS"
19661 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 #include <netinet/in.h>
19671 #include <arpa/nameser.h>
19672 #include <resolv.h>
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (ac_try="$ac_link"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_link") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest$ac_exeext &&
19698 $as_test_x conftest$ac_exeext; then
19701 echo "$as_me: failed program was
:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19708 conftest$ac_exeext conftest.$ac_ext
19709 if test "$have_res_init" = no; then
19711 LIBS="$LIBS -lresolv"
19712 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19713 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 #include <netinet/in.h>
19721 #include <arpa/nameser.h>
19722 #include <resolv.h>
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19751 echo "$as_me: failed program was
:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19760 echo "${ECHO_T}$have_res_init" >&6; }
19761 if test "$have_res_init" = yes ; then
19767 if test "$have_res_init" = yes; then
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_RES_INIT 1
19775 # Do we need the Hesiod library to provide the support routines?
19776 if test "$with_hesiod" = yes ; then
19777 # Don't set $LIBS here -- see comments above.
19778 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19779 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19780 if test "${ac_cv_func_res_send+set}" = set; then
19781 echo $ECHO_N "(cached
) $ECHO_C" >&6
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19791 #define res_send innocuous_res_send
19793 /* System header to define __stub macros and hopefully few prototypes,
19794 which can conflict with char res_send (); below.
19795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19796 <limits.h> exists even on freestanding compilers. */
19799 # include <limits.h>
19801 # include <assert.h>
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19813 /* The GNU C library defines this for functions which it implements
19814 to always fail with ENOSYS. Some functions are actually named
19815 something starting with __ and the normal name is an alias. */
19816 #if defined __stub_res_send || defined __stub___res_send
19823 return res_send ();
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19837 grep -v '^ *+' conftest.er1 >conftest.err
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest$ac_exeext &&
19845 $as_test_x conftest$ac_exeext; then
19846 ac_cv_func_res_send=yes
19848 echo "$as_me: failed program was
:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ac_cv_func_res_send=no
19854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855 conftest$ac_exeext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19858 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19859 if test $ac_cv_func_res_send = yes; then
19862 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19863 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19864 if test "${ac_cv_func___res_send+set}" = set; then
19865 echo $ECHO_N "(cached
) $ECHO_C" >&6
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19875 #define __res_send innocuous___res_send
19877 /* System header to define __stub macros and hopefully few prototypes,
19878 which can conflict with char __res_send (); below.
19879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19880 <limits.h> exists even on freestanding compilers. */
19883 # include <limits.h>
19885 # include <assert.h>
19890 /* Override any GCC internal prototype to avoid an error.
19891 Use char because int might match the return type of a GCC
19892 builtin and then its argument prototype would still apply. */
19896 char __res_send ();
19897 /* The GNU C library defines this for functions which it implements
19898 to always fail with ENOSYS. Some functions are actually named
19899 something starting with __ and the normal name is an alias. */
19900 #if defined __stub___res_send || defined __stub_____res_send
19907 return __res_send ();
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest$ac_exeext &&
19929 $as_test_x conftest$ac_exeext; then
19930 ac_cv_func___res_send=yes
19932 echo "$as_me: failed program was
:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_func___res_send=no
19938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19939 conftest$ac_exeext conftest.$ac_ext
19941 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19942 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19943 if test $ac_cv_func___res_send = yes; then
19946 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19947 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19948 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19949 echo $ECHO_N "(cached
) $ECHO_C" >&6
19951 ac_check_lib_save_LIBS=$LIBS
19952 LIBS="-lresolv $LIBS"
19953 cat >conftest.$ac_ext <<_ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19960 /* Override any GCC internal prototype to avoid an error.
19961 Use char because int might match the return type of a GCC
19962 builtin and then its argument prototype would still apply. */
19970 return res_send ();
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (ac_try="$ac_link"
19977 case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19982 (eval "$ac_link") 2>conftest.er1
19984 grep -v '^ *+' conftest.er1 >conftest.err
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest$ac_exeext &&
19992 $as_test_x conftest$ac_exeext; then
19993 ac_cv_lib_resolv_res_send=yes
19995 echo "$as_me: failed program was
:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_cv_lib_resolv_res_send=no
20001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20002 conftest$ac_exeext conftest.$ac_ext
20003 LIBS=$ac_check_lib_save_LIBS
20005 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20006 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20007 if test $ac_cv_lib_resolv_res_send = yes; then
20010 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20011 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20012 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20013 echo $ECHO_N "(cached
) $ECHO_C" >&6
20015 ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lresolv $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20024 /* Override any GCC internal prototype to avoid an error.
20025 Use char because int might match the return type of a GCC
20026 builtin and then its argument prototype would still apply. */
20030 char __res_send ();
20034 return __res_send ();
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest$ac_exeext &&
20056 $as_test_x conftest$ac_exeext; then
20057 ac_cv_lib_resolv___res_send=yes
20059 echo "$as_me: failed program was
:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_lib_resolv___res_send=no
20065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20069 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20070 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20071 if test $ac_cv_lib_resolv___res_send = yes; then
20081 if test "$resolv" = yes ; then
20086 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20087 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20088 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20089 echo $ECHO_N "(cached
) $ECHO_C" >&6
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20099 #define hes_getmailhost innocuous_hes_getmailhost
20101 /* System header to define __stub macros and hopefully few prototypes,
20102 which can conflict with char hes_getmailhost (); below.
20103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104 <limits.h> exists even on freestanding compilers. */
20107 # include <limits.h>
20109 # include <assert.h>
20112 #undef hes_getmailhost
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20120 char hes_getmailhost ();
20121 /* The GNU C library defines this for functions which it implements
20122 to always fail with ENOSYS. Some functions are actually named
20123 something starting with __ and the normal name is an alias. */
20124 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20131 return hes_getmailhost ();
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 ac_cv_func_hes_getmailhost=yes
20156 echo "$as_me: failed program was
:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_func_hes_getmailhost=no
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20166 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20167 if test $ac_cv_func_hes_getmailhost = yes; then
20170 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20171 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20172 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20173 echo $ECHO_N "(cached
) $ECHO_C" >&6
20175 ac_check_lib_save_LIBS=$LIBS
20176 LIBS="-lhesiod $RESOLVLIB $LIBS"
20177 cat >conftest.$ac_ext <<_ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20184 /* Override any GCC internal prototype to avoid an error.
20185 Use char because int might match the return type of a GCC
20186 builtin and then its argument prototype would still apply. */
20190 char hes_getmailhost ();
20194 return hes_getmailhost ();
20199 rm -f conftest.$ac_objext conftest$ac_exeext
20200 if { (ac_try="$ac_link"
20201 case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_link") 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext &&
20216 $as_test_x conftest$ac_exeext; then
20217 ac_cv_lib_hesiod_hes_getmailhost=yes
20219 echo "$as_me: failed program was
:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20222 ac_cv_lib_hesiod_hes_getmailhost=no
20225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20226 conftest$ac_exeext conftest.$ac_ext
20227 LIBS=$ac_check_lib_save_LIBS
20229 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20230 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20231 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define HAVE_LIBHESIOD 1
20245 # Do we need libresolv (due to res_init or Hesiod)?
20246 if test "$resolv" = yes ; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_LIBRESOLV 1
20254 # These tell us which Kerberos-related libraries to use.
20255 if test "${with_kerberos+set}" = set; then
20257 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20258 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20259 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20260 echo $ECHO_N "(cached
) $ECHO_C" >&6
20262 ac_check_lib_save_LIBS=$LIBS
20263 LIBS="-lcom_err $LIBS"
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20271 /* Override any GCC internal prototype to avoid an error.
20272 Use char because int might match the return type of a GCC
20273 builtin and then its argument prototype would still apply. */
20286 rm -f conftest.$ac_objext conftest$ac_exeext
20287 if { (ac_try="$ac_link"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_link") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest$ac_exeext &&
20303 $as_test_x conftest$ac_exeext; then
20304 ac_cv_lib_com_err_com_err=yes
20306 echo "$as_me: failed program was
:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20309 ac_cv_lib_com_err_com_err=no
20312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20313 conftest$ac_exeext conftest.$ac_ext
20314 LIBS=$ac_check_lib_save_LIBS
20316 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20317 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20318 if test $ac_cv_lib_com_err_com_err = yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define HAVE_LIBCOM_ERR 1
20323 LIBS="-lcom_err $LIBS"
20328 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20329 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20330 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20331 echo $ECHO_N "(cached
) $ECHO_C" >&6
20333 ac_check_lib_save_LIBS=$LIBS
20334 LIBS="-lk5crypto $LIBS"
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 /* Override any GCC internal prototype to avoid an error.
20343 Use char because int might match the return type of a GCC
20344 builtin and then its argument prototype would still apply. */
20348 char mit_des_cbc_encrypt ();
20352 return mit_des_cbc_encrypt ();
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (ac_try="$ac_link"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_link") 2>conftest.er1
20366 grep -v '^ *+' conftest.er1 >conftest.err
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20370 (exit $ac_status); } && {
20371 test -z "$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20373 } && test -s conftest$ac_exeext &&
20374 $as_test_x conftest$ac_exeext; then
20375 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20377 echo "$as_me: failed program was
:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20387 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20388 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20389 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LIBK5CRYPTO 1
20394 LIBS="-lk5crypto $LIBS"
20399 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20400 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20401 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20402 echo $ECHO_N "(cached
) $ECHO_C" >&6
20404 ac_check_lib_save_LIBS=$LIBS
20405 LIBS="-lcrypto $LIBS"
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20419 char mit_des_cbc_encrypt ();
20423 return mit_des_cbc_encrypt ();
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest$ac_exeext &&
20445 $as_test_x conftest$ac_exeext; then
20446 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20448 echo "$as_me: failed program was
:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455 conftest$ac_exeext conftest.$ac_ext
20456 LIBS=$ac_check_lib_save_LIBS
20458 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20459 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20460 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20461 cat >>confdefs.h <<_ACEOF
20462 #define HAVE_LIBCRYPTO 1
20465 LIBS="-lcrypto $LIBS"
20470 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20471 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20472 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20473 echo $ECHO_N "(cached
) $ECHO_C" >&6
20475 ac_check_lib_save_LIBS=$LIBS
20476 LIBS="-lkrb5 $LIBS"
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20484 /* Override any GCC internal prototype to avoid an error.
20485 Use char because int might match the return type of a GCC
20486 builtin and then its argument prototype would still apply. */
20490 char krb5_init_context ();
20494 return krb5_init_context ();
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (ac_try="$ac_link"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_link") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest$ac_exeext &&
20516 $as_test_x conftest$ac_exeext; then
20517 ac_cv_lib_krb5_krb5_init_context=yes
20519 echo "$as_me: failed program was
:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_cv_lib_krb5_krb5_init_context=no
20525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20526 conftest$ac_exeext conftest.$ac_ext
20527 LIBS=$ac_check_lib_save_LIBS
20529 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20530 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20531 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define HAVE_LIBKRB5 1
20536 LIBS="-lkrb5 $LIBS"
20540 if test "${with_kerberos5+set}" != set; then
20542 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20543 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20544 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20545 echo $ECHO_N "(cached
) $ECHO_C" >&6
20547 ac_check_lib_save_LIBS=$LIBS
20548 LIBS="-ldes425 $LIBS"
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 /* Override any GCC internal prototype to avoid an error.
20557 Use char because int might match the return type of a GCC
20558 builtin and then its argument prototype would still apply. */
20562 char des_cbc_encrypt ();
20566 return des_cbc_encrypt ();
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (ac_try="$ac_link"
20573 case "(($ac_try" in
20574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575 *) ac_try_echo=$ac_try;;
20577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20578 (eval "$ac_link") 2>conftest.er1
20580 grep -v '^ *+' conftest.er1 >conftest.err
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20584 (exit $ac_status); } && {
20585 test -z "$ac_c_werror_flag" ||
20586 test ! -s conftest.err
20587 } && test -s conftest$ac_exeext &&
20588 $as_test_x conftest$ac_exeext; then
20589 ac_cv_lib_des425_des_cbc_encrypt=yes
20591 echo "$as_me: failed program was
:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ac_cv_lib_des425_des_cbc_encrypt=no
20597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20598 conftest$ac_exeext conftest.$ac_ext
20599 LIBS=$ac_check_lib_save_LIBS
20601 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20602 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20603 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_LIBDES425 1
20608 LIBS="-ldes425 $LIBS"
20612 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20613 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20614 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20615 echo $ECHO_N "(cached
) $ECHO_C" >&6
20617 ac_check_lib_save_LIBS=$LIBS
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20626 /* Override any GCC internal prototype to avoid an error.
20627 Use char because int might match the return type of a GCC
20628 builtin and then its argument prototype would still apply. */
20632 char des_cbc_encrypt ();
20636 return des_cbc_encrypt ();
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_link") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest$ac_exeext &&
20658 $as_test_x conftest$ac_exeext; then
20659 ac_cv_lib_des_des_cbc_encrypt=yes
20661 echo "$as_me: failed program was
:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_cv_lib_des_des_cbc_encrypt=no
20667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20668 conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_check_lib_save_LIBS
20671 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20672 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20673 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20674 cat >>confdefs.h <<_ACEOF
20675 #define HAVE_LIBDES 1
20685 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20686 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20687 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20688 echo $ECHO_N "(cached
) $ECHO_C" >&6
20690 ac_check_lib_save_LIBS=$LIBS
20691 LIBS="-lkrb4 $LIBS"
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20699 /* Override any GCC internal prototype to avoid an error.
20700 Use char because int might match the return type of a GCC
20701 builtin and then its argument prototype would still apply. */
20705 char krb_get_cred ();
20709 return krb_get_cred ();
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (ac_try="$ac_link"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_link") 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20727 (exit $ac_status); } && {
20728 test -z "$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20730 } && test -s conftest$ac_exeext &&
20731 $as_test_x conftest$ac_exeext; then
20732 ac_cv_lib_krb4_krb_get_cred=yes
20734 echo "$as_me: failed program was
:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ac_cv_lib_krb4_krb_get_cred=no
20740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20741 conftest$ac_exeext conftest.$ac_ext
20742 LIBS=$ac_check_lib_save_LIBS
20744 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20745 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20746 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20747 cat >>confdefs.h <<_ACEOF
20748 #define HAVE_LIBKRB4 1
20751 LIBS="-lkrb4 $LIBS"
20755 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20756 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20757 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20758 echo $ECHO_N "(cached
) $ECHO_C" >&6
20760 ac_check_lib_save_LIBS=$LIBS
20762 cat >conftest.$ac_ext <<_ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20769 /* Override any GCC internal prototype to avoid an error.
20770 Use char because int might match the return type of a GCC
20771 builtin and then its argument prototype would still apply. */
20775 char krb_get_cred ();
20779 return krb_get_cred ();
20784 rm -f conftest.$ac_objext conftest$ac_exeext
20785 if { (ac_try="$ac_link"
20786 case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_link") 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20797 (exit $ac_status); } && {
20798 test -z "$ac_c_werror_flag" ||
20799 test ! -s conftest.err
20800 } && test -s conftest$ac_exeext &&
20801 $as_test_x conftest$ac_exeext; then
20802 ac_cv_lib_krb_krb_get_cred=yes
20804 echo "$as_me: failed program was
:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 ac_cv_lib_krb_krb_get_cred=no
20810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20811 conftest$ac_exeext conftest.$ac_ext
20812 LIBS=$ac_check_lib_save_LIBS
20814 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20815 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20816 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20817 cat >>confdefs.h <<_ACEOF
20818 #define HAVE_LIBKRB 1
20829 if test "${with_kerberos5+set}" = set; then
20831 for ac_header in krb5.h
20833 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20834 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20835 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20836 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20837 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20838 echo $ECHO_N "(cached
) $ECHO_C" >&6
20840 ac_res=`eval echo '${'$as_ac_Header'}'`
20841 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20842 echo "${ECHO_T}$ac_res" >&6; }
20844 # Is the header compilable?
20845 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20846 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20854 #include <$ac_header>
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest.$ac_objext; then
20873 ac_header_compiler=yes
20875 echo "$as_me: failed program was
:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 ac_header_compiler=no
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20883 echo "${ECHO_T}$ac_header_compiler" >&6; }
20885 # Is the header present?
20886 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20887 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <$ac_header>
20896 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20908 (exit $ac_status); } >/dev/null && {
20909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20912 ac_header_preproc=yes
20914 echo "$as_me: failed program was
:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20917 ac_header_preproc=no
20920 rm -f conftest.err conftest.$ac_ext
20921 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20922 echo "${ECHO_T}$ac_header_preproc" >&6; }
20924 # So? What about this header?
20925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20927 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20928 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20929 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20931 ac_header_preproc=yes
20934 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20935 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20936 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20937 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20938 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20939 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20940 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20941 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20942 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20944 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20945 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20949 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20950 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20951 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20952 echo $ECHO_N "(cached
) $ECHO_C" >&6
20954 eval "$as_ac_Header=\
$ac_header_preproc"
20956 ac_res=`eval echo '${'$as_ac_Header'}'`
20957 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20958 echo "${ECHO_T}$ac_res" >&6; }
20961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20962 cat >>confdefs.h <<_ACEOF
20963 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20972 for ac_header in des.h
20974 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20976 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20977 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20978 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20979 echo $ECHO_N "(cached
) $ECHO_C" >&6
20981 ac_res=`eval echo '${'$as_ac_Header'}'`
20982 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20983 echo "${ECHO_T}$ac_res" >&6; }
20985 # Is the header compilable?
20986 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20987 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20988 cat >conftest.$ac_ext <<_ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 $ac_includes_default
20995 #include <$ac_header>
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21014 ac_header_compiler=yes
21016 echo "$as_me: failed program was
:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_header_compiler=no
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21024 echo "${ECHO_T}$ac_header_compiler" >&6; }
21026 # Is the header present?
21027 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21028 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 #include <$ac_header>
21037 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21045 grep -v '^ *+' conftest.er1 >conftest.err
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21049 (exit $ac_status); } >/dev/null && {
21050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21053 ac_header_preproc=yes
21055 echo "$as_me: failed program was
:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_header_preproc=no
21061 rm -f conftest.err conftest.$ac_ext
21062 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21063 echo "${ECHO_T}$ac_header_preproc" >&6; }
21065 # So? What about this header?
21066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21068 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21069 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21070 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21072 ac_header_preproc=yes
21075 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21076 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21077 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21078 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21079 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21080 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21081 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21082 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21083 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21085 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21086 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21090 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21091 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21092 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21093 echo $ECHO_N "(cached
) $ECHO_C" >&6
21095 eval "$as_ac_Header=\
$ac_header_preproc"
21097 ac_res=`eval echo '${'$as_ac_Header'}'`
21098 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21099 echo "${ECHO_T}$ac_res" >&6; }
21102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21103 cat >>confdefs.h <<_ACEOF
21104 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21109 for ac_header in kerberosIV/des.h
21111 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21113 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21114 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21115 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21116 echo $ECHO_N "(cached
) $ECHO_C" >&6
21118 ac_res=`eval echo '${'$as_ac_Header'}'`
21119 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21120 echo "${ECHO_T}$ac_res" >&6; }
21122 # Is the header compilable?
21123 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21124 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21125 cat >conftest.$ac_ext <<_ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 $ac_includes_default
21132 #include <$ac_header>
21134 rm -f conftest.$ac_objext
21135 if { (ac_try="$ac_compile"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21151 ac_header_compiler=yes
21153 echo "$as_me: failed program was
:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 ac_header_compiler=no
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21161 echo "${ECHO_T}$ac_header_compiler" >&6; }
21163 # Is the header present?
21164 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21165 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172 #include <$ac_header>
21174 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21182 grep -v '^ *+' conftest.er1 >conftest.err
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21186 (exit $ac_status); } >/dev/null && {
21187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21190 ac_header_preproc=yes
21192 echo "$as_me: failed program was
:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21195 ac_header_preproc=no
21198 rm -f conftest.err conftest.$ac_ext
21199 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21200 echo "${ECHO_T}$ac_header_preproc" >&6; }
21202 # So? What about this header?
21203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21205 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21206 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21209 ac_header_preproc=yes
21212 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21213 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21214 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21215 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21216 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21217 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21218 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21219 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21220 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21222 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21223 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21227 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21228 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21229 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21230 echo $ECHO_N "(cached
) $ECHO_C" >&6
21232 eval "$as_ac_Header=\
$ac_header_preproc"
21234 ac_res=`eval echo '${'$as_ac_Header'}'`
21235 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21236 echo "${ECHO_T}$ac_res" >&6; }
21239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21240 cat >>confdefs.h <<_ACEOF
21241 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21246 for ac_header in kerberos/des.h
21248 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21250 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21251 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21253 echo $ECHO_N "(cached
) $ECHO_C" >&6
21255 ac_res=`eval echo '${'$as_ac_Header'}'`
21256 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21257 echo "${ECHO_T}$ac_res" >&6; }
21259 # Is the header compilable?
21260 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21261 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 $ac_includes_default
21269 #include <$ac_header>
21271 rm -f conftest.$ac_objext
21272 if { (ac_try="$ac_compile"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_compile") 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest.$ac_objext; then
21288 ac_header_compiler=yes
21290 echo "$as_me: failed program was
:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_header_compiler=no
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21298 echo "${ECHO_T}$ac_header_compiler" >&6; }
21300 # Is the header present?
21301 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21302 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <$ac_header>
21311 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21323 (exit $ac_status); } >/dev/null && {
21324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21327 ac_header_preproc=yes
21329 echo "$as_me: failed program was
:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 ac_header_preproc=no
21335 rm -f conftest.err conftest.$ac_ext
21336 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21337 echo "${ECHO_T}$ac_header_preproc" >&6; }
21339 # So? What about this header?
21340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21343 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21344 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21346 ac_header_preproc=yes
21349 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21350 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21351 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21352 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21353 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21354 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21355 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21356 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21359 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21360 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21364 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21365 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21366 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21367 echo $ECHO_N "(cached
) $ECHO_C" >&6
21369 eval "$as_ac_Header=\
$ac_header_preproc"
21371 ac_res=`eval echo '${'$as_ac_Header'}'`
21372 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21373 echo "${ECHO_T}$ac_res" >&6; }
21376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21394 for ac_header in krb.h
21396 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21397 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21398 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21399 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21400 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21401 echo $ECHO_N "(cached
) $ECHO_C" >&6
21403 ac_res=`eval echo '${'$as_ac_Header'}'`
21404 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21405 echo "${ECHO_T}$ac_res" >&6; }
21407 # Is the header compilable?
21408 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21409 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 $ac_includes_default
21417 #include <$ac_header>
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest.$ac_objext; then
21436 ac_header_compiler=yes
21438 echo "$as_me: failed program was
:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_header_compiler=no
21444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21446 echo "${ECHO_T}$ac_header_compiler" >&6; }
21448 # Is the header present?
21449 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21450 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 #include <$ac_header>
21459 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1 >conftest.err
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21471 (exit $ac_status); } >/dev/null && {
21472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21475 ac_header_preproc=yes
21477 echo "$as_me: failed program was
:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_header_preproc=no
21483 rm -f conftest.err conftest.$ac_ext
21484 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21485 echo "${ECHO_T}$ac_header_preproc" >&6; }
21487 # So? What about this header?
21488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21490 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21491 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21492 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21494 ac_header_preproc=yes
21497 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21498 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21499 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21500 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21501 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21502 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21503 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21504 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21505 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21507 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21508 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21512 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21513 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached
) $ECHO_C" >&6
21517 eval "$as_ac_Header=\
$ac_header_preproc"
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21525 cat >>confdefs.h <<_ACEOF
21526 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21531 for ac_header in kerberosIV/krb.h
21533 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21534 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21535 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21536 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21537 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21538 echo $ECHO_N "(cached
) $ECHO_C" >&6
21540 ac_res=`eval echo '${'$as_ac_Header'}'`
21541 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21542 echo "${ECHO_T}$ac_res" >&6; }
21544 # Is the header compilable?
21545 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21546 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 #include <$ac_header>
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
21573 ac_header_compiler=yes
21575 echo "$as_me: failed program was
:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_compiler=no
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21583 echo "${ECHO_T}$ac_header_compiler" >&6; }
21585 # Is the header present?
21586 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21587 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21588 cat >conftest.$ac_ext <<_ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 #include <$ac_header>
21596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21608 (exit $ac_status); } >/dev/null && {
21609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21612 ac_header_preproc=yes
21614 echo "$as_me: failed program was
:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_preproc=no
21620 rm -f conftest.err conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6; }
21624 # So? What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21627 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21628 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21631 ac_header_preproc=yes
21634 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21635 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21636 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21637 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21638 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21639 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21640 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21641 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21642 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21645 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21649 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21650 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21651 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21652 echo $ECHO_N "(cached
) $ECHO_C" >&6
21654 eval "$as_ac_Header=\
$ac_header_preproc"
21656 ac_res=`eval echo '${'$as_ac_Header'}'`
21657 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21658 echo "${ECHO_T}$ac_res" >&6; }
21661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21662 cat >>confdefs.h <<_ACEOF
21663 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21668 for ac_header in kerberos/krb.h
21670 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21672 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21673 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21674 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21675 echo $ECHO_N "(cached
) $ECHO_C" >&6
21677 ac_res=`eval echo '${'$as_ac_Header'}'`
21678 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21679 echo "${ECHO_T}$ac_res" >&6; }
21681 # Is the header compilable?
21682 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21683 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 $ac_includes_default
21691 #include <$ac_header>
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_compile") 2>conftest.er1
21702 grep -v '^ *+' conftest.er1 >conftest.err
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest.$ac_objext; then
21710 ac_header_compiler=yes
21712 echo "$as_me: failed program was
:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_header_compiler=no
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21719 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21720 echo "${ECHO_T}$ac_header_compiler" >&6; }
21722 # Is the header present?
21723 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21724 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 #include <$ac_header>
21733 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21745 (exit $ac_status); } >/dev/null && {
21746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21749 ac_header_preproc=yes
21751 echo "$as_me: failed program was
:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ac_header_preproc=no
21757 rm -f conftest.err conftest.$ac_ext
21758 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21759 echo "${ECHO_T}$ac_header_preproc" >&6; }
21761 # So? What about this header?
21762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21764 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21765 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21766 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21768 ac_header_preproc=yes
21771 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21772 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21773 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21774 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21775 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21776 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21777 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21778 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21779 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21781 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21782 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21786 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21787 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21788 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21789 echo $ECHO_N "(cached
) $ECHO_C" >&6
21791 eval "$as_ac_Header=\
$ac_header_preproc"
21793 ac_res=`eval echo '${'$as_ac_Header'}'`
21794 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21795 echo "${ECHO_T}$ac_res" >&6; }
21798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21799 cat >>confdefs.h <<_ACEOF
21800 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21817 for ac_header in com_err.h
21819 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21820 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21821 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21822 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21823 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21824 echo $ECHO_N "(cached
) $ECHO_C" >&6
21826 ac_res=`eval echo '${'$as_ac_Header'}'`
21827 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21828 echo "${ECHO_T}$ac_res" >&6; }
21830 # Is the header compilable?
21831 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21832 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 $ac_includes_default
21840 #include <$ac_header>
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_header_compiler=yes
21861 echo "$as_me: failed program was
:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_header_compiler=no
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21869 echo "${ECHO_T}$ac_header_compiler" >&6; }
21871 # Is the header present?
21872 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21873 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21874 cat >conftest.$ac_ext <<_ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21880 #include <$ac_header>
21882 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21883 case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21890 grep -v '^ *+' conftest.er1 >conftest.err
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21894 (exit $ac_status); } >/dev/null && {
21895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21898 ac_header_preproc=yes
21900 echo "$as_me: failed program was
:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ac_header_preproc=no
21906 rm -f conftest.err conftest.$ac_ext
21907 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21908 echo "${ECHO_T}$ac_header_preproc" >&6; }
21910 # So? What about this header?
21911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21914 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21915 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21917 ac_header_preproc=yes
21920 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21921 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21922 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21923 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21924 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21925 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21926 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21927 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21928 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21930 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21931 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21935 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21936 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21937 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21938 echo $ECHO_N "(cached
) $ECHO_C" >&6
21940 eval "$as_ac_Header=\
$ac_header_preproc"
21942 ac_res=`eval echo '${'$as_ac_Header'}'`
21943 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21944 echo "${ECHO_T}$ac_res" >&6; }
21947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21948 cat >>confdefs.h <<_ACEOF
21949 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21958 # Solaris requires -lintl if you want strerror (which calls dgettext)
21959 # to return localized messages.
21961 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21962 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21963 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21964 echo $ECHO_N "(cached
) $ECHO_C" >&6
21966 ac_check_lib_save_LIBS=$LIBS
21967 LIBS="-lintl $LIBS"
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21985 return dgettext ();
21990 rm -f conftest.$ac_objext conftest$ac_exeext
21991 if { (ac_try="$ac_link"
21992 case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_link") 2>conftest.er1
21999 grep -v '^ *+' conftest.er1 >conftest.err
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22003 (exit $ac_status); } && {
22004 test -z "$ac_c_werror_flag" ||
22005 test ! -s conftest.err
22006 } && test -s conftest$ac_exeext &&
22007 $as_test_x conftest$ac_exeext; then
22008 ac_cv_lib_intl_dgettext=yes
22010 echo "$as_me: failed program was
:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_lib_intl_dgettext=no
22016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22017 conftest$ac_exeext conftest.$ac_ext
22018 LIBS=$ac_check_lib_save_LIBS
22020 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22021 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22022 if test $ac_cv_lib_intl_dgettext = yes; then
22023 cat >>confdefs.h <<_ACEOF
22024 #define HAVE_LIBINTL 1
22027 LIBS="-lintl $LIBS"
22032 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22033 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22034 if test "${emacs_cv_localtime_cache+set}" = set; then
22035 echo $ECHO_N "(cached
) $ECHO_C" >&6
22037 if test x$ac_cv_func_tzset = xyes; then
22038 if test "$cross_compiling" = yes; then
22039 # If we have tzset, assume the worst when cross-compiling.
22040 emacs_cv_localtime_cache=yes
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22049 extern char **environ;
22053 for (to = from = environ; (*to = *from); from++)
22054 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22057 char TZ_GMT0[] = "TZ
=GMT0
";
22058 char TZ_PST8[] = "TZ
=PST8
";
22061 time_t now = time ((time_t *) 0);
22062 int hour_GMT0, hour_unset;
22063 if (putenv (TZ_GMT0) != 0)
22065 hour_GMT0 = localtime (&now)->tm_hour;
22067 hour_unset = localtime (&now)->tm_hour;
22068 if (putenv (TZ_PST8) != 0)
22070 if (localtime (&now)->tm_hour == hour_GMT0)
22073 if (localtime (&now)->tm_hour != hour_unset)
22078 rm -f conftest$ac_exeext
22079 if { (ac_try="$ac_link"
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_link") 2>&5
22087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 emacs_cv_localtime_cache=no
22100 echo "$as_me: program exited with status
$ac_status" >&5
22101 echo "$as_me: failed program was
:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ( exit $ac_status )
22105 emacs_cv_localtime_cache=yes
22107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22112 # If we lack tzset, report that localtime does not cache TZ,
22113 # since we can't invalidate the cache if we don't have tzset.
22114 emacs_cv_localtime_cache=no
22117 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22118 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22119 if test $emacs_cv_localtime_cache = yes; then
22121 cat >>confdefs.h <<\_ACEOF
22122 #define LOCALTIME_CACHE 1
22127 if test "x
$HAVE_TIMEVAL" = xyes; then
22129 for ac_func in gettimeofday
22131 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22132 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22133 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22134 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22135 echo $ECHO_N "(cached
) $ECHO_C" >&6
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22145 #define $ac_func innocuous_$ac_func
22147 /* System header to define __stub macros and hopefully few prototypes,
22148 which can conflict with char $ac_func (); below.
22149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22150 <limits.h> exists even on freestanding compilers. */
22153 # include <limits.h>
22155 # include <assert.h>
22160 /* Override any GCC internal prototype to avoid an error.
22161 Use char because int might match the return type of a GCC
22162 builtin and then its argument prototype would still apply. */
22167 /* The GNU C library defines this for functions which it implements
22168 to always fail with ENOSYS. Some functions are actually named
22169 something starting with __ and the normal name is an alias. */
22170 #if defined __stub_$ac_func || defined __stub___$ac_func
22177 return $ac_func ();
22182 rm -f conftest.$ac_objext conftest$ac_exeext
22183 if { (ac_try="$ac_link"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_link") 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22195 (exit $ac_status); } && {
22196 test -z "$ac_c_werror_flag" ||
22197 test ! -s conftest.err
22198 } && test -s conftest$ac_exeext &&
22199 $as_test_x conftest$ac_exeext; then
22200 eval "$as_ac_var=yes"
22202 echo "$as_me: failed program was
:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 eval "$as_ac_var=no
"
22208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22209 conftest$ac_exeext conftest.$ac_ext
22211 ac_res=`eval echo '${'$as_ac_var'}'`
22212 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22213 echo "${ECHO_T}$ac_res" >&6; }
22214 if test `eval echo '${'$as_ac_var'}'` = yes; then
22215 cat >>confdefs.h <<_ACEOF
22216 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22222 if test $ac_cv_func_gettimeofday = yes; then
22223 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22224 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22225 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22226 echo $ECHO_N "(cached
) $ECHO_C" >&6
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 #ifdef TIME_WITH_SYS_TIME
22236 #include <sys/time.h>
22239 #ifdef HAVE_SYS_TIME_H
22240 #include <sys/time.h>
22248 struct timeval time;
22249 gettimeofday (&time, 0);
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_compile") 2>conftest.er1
22263 grep -v '^ *+' conftest.er1 >conftest.err
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest.$ac_objext; then
22271 emacs_cv_gettimeofday_two_arguments=yes
22273 echo "$as_me: failed program was
:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 emacs_cv_gettimeofday_two_arguments=no
22279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22282 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22283 if test $emacs_cv_gettimeofday_two_arguments = no; then
22285 cat >>confdefs.h <<\_ACEOF
22286 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22294 { echo "$as_me:$LINENO: checking
for socket
" >&5
22295 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22296 if test "${ac_cv_func_socket+set}" = set; then
22297 echo $ECHO_N "(cached
) $ECHO_C" >&6
22299 cat >conftest.$ac_ext <<_ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22305 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22307 #define socket innocuous_socket
22309 /* System header to define __stub macros and hopefully few prototypes,
22310 which can conflict with char socket (); below.
22311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22312 <limits.h> exists even on freestanding compilers. */
22315 # include <limits.h>
22317 # include <assert.h>
22322 /* Override any GCC internal prototype to avoid an error.
22323 Use char because int might match the return type of a GCC
22324 builtin and then its argument prototype would still apply. */
22329 /* The GNU C library defines this for functions which it implements
22330 to always fail with ENOSYS. Some functions are actually named
22331 something starting with __ and the normal name is an alias. */
22332 #if defined __stub_socket || defined __stub___socket
22344 rm -f conftest.$ac_objext conftest$ac_exeext
22345 if { (ac_try="$ac_link"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_link") 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest$ac_exeext &&
22361 $as_test_x conftest$ac_exeext; then
22362 ac_cv_func_socket=yes
22364 echo "$as_me: failed program was
:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22367 ac_cv_func_socket=no
22370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22371 conftest$ac_exeext conftest.$ac_ext
22373 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22374 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22375 if test $ac_cv_func_socket = yes; then
22381 if test $ok_so_far = yes; then
22382 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22383 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22384 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22385 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22386 echo $ECHO_N "(cached
) $ECHO_C" >&6
22388 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22389 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22391 # Is the header compilable?
22392 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22393 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 $ac_includes_default
22401 #include <netinet/in.h>
22403 rm -f conftest.$ac_objext
22404 if { (ac_try="$ac_compile"
22405 case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_compile") 2>conftest.er1
22412 grep -v '^ *+' conftest.er1 >conftest.err
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest.$ac_objext; then
22420 ac_header_compiler=yes
22422 echo "$as_me: failed program was
:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22425 ac_header_compiler=no
22428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22430 echo "${ECHO_T}$ac_header_compiler" >&6; }
22432 # Is the header present?
22433 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22434 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22435 cat >conftest.$ac_ext <<_ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 #include <netinet/in.h>
22443 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22455 (exit $ac_status); } >/dev/null && {
22456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22459 ac_header_preproc=yes
22461 echo "$as_me: failed program was
:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 ac_header_preproc=no
22467 rm -f conftest.err conftest.$ac_ext
22468 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22469 echo "${ECHO_T}$ac_header_preproc" >&6; }
22471 # So? What about this header?
22472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22474 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22475 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22476 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22477 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22478 ac_header_preproc=yes
22481 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22482 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22483 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22484 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22485 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22486 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22487 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22488 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22489 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22490 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22491 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22492 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22496 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22497 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22499 echo $ECHO_N "(cached
) $ECHO_C" >&6
22501 ac_cv_header_netinet_in_h=$ac_header_preproc
22503 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22504 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22507 if test $ac_cv_header_netinet_in_h = yes; then
22515 if test $ok_so_far = yes; then
22516 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22517 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22518 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22519 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22520 echo $ECHO_N "(cached
) $ECHO_C" >&6
22522 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22523 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22525 # Is the header compilable?
22526 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22527 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22528 cat >conftest.$ac_ext <<_ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534 $ac_includes_default
22535 #include <arpa/inet.h>
22537 rm -f conftest.$ac_objext
22538 if { (ac_try="$ac_compile"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_compile") 2>conftest.er1
22546 grep -v '^ *+' conftest.er1 >conftest.err
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22550 (exit $ac_status); } && {
22551 test -z "$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 } && test -s conftest.$ac_objext; then
22554 ac_header_compiler=yes
22556 echo "$as_me: failed program was
:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_header_compiler=no
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22564 echo "${ECHO_T}$ac_header_compiler" >&6; }
22566 # Is the header present?
22567 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22568 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22569 cat >conftest.$ac_ext <<_ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 #include <arpa/inet.h>
22577 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22578 case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22583 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22585 grep -v '^ *+' conftest.er1 >conftest.err
22587 cat conftest.err >&5
22588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22589 (exit $ac_status); } >/dev/null && {
22590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22591 test ! -s conftest.err
22593 ac_header_preproc=yes
22595 echo "$as_me: failed program was
:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22598 ac_header_preproc=no
22601 rm -f conftest.err conftest.$ac_ext
22602 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22603 echo "${ECHO_T}$ac_header_preproc" >&6; }
22605 # So? What about this header?
22606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22608 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22609 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22610 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22611 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22612 ac_header_preproc=yes
22615 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22616 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22617 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22618 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22619 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22620 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22621 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22622 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22623 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22624 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22625 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22626 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22630 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22631 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22632 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22633 echo $ECHO_N "(cached
) $ECHO_C" >&6
22635 ac_cv_header_arpa_inet_h=$ac_header_preproc
22637 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22638 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22641 if test $ac_cv_header_arpa_inet_h = yes; then
22649 if test $ok_so_far = yes; then
22651 cat >>confdefs.h <<\_ACEOF
22652 #define HAVE_INET_SOCKETS 1
22658 for ac_header in sys/ioctl.h
22660 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22662 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22663 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22665 echo $ECHO_N "(cached
) $ECHO_C" >&6
22667 ac_res=`eval echo '${'$as_ac_Header'}'`
22668 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22669 echo "${ECHO_T}$ac_res" >&6; }
22671 # Is the header compilable?
22672 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22673 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22674 cat >conftest.$ac_ext <<_ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 $ac_includes_default
22681 #include <$ac_header>
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22690 (eval "$ac_compile") 2>conftest.er1
22692 grep -v '^ *+' conftest.er1 >conftest.err
22694 cat conftest.err >&5
22695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22696 (exit $ac_status); } && {
22697 test -z "$ac_c_werror_flag" ||
22698 test ! -s conftest.err
22699 } && test -s conftest.$ac_objext; then
22700 ac_header_compiler=yes
22702 echo "$as_me: failed program was
:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 ac_header_compiler=no
22708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22710 echo "${ECHO_T}$ac_header_compiler" >&6; }
22712 # Is the header present?
22713 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22714 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22715 cat >conftest.$ac_ext <<_ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 #include <$ac_header>
22723 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22735 (exit $ac_status); } >/dev/null && {
22736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22739 ac_header_preproc=yes
22741 echo "$as_me: failed program was
:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_header_preproc=no
22747 rm -f conftest.err conftest.$ac_ext
22748 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22749 echo "${ECHO_T}$ac_header_preproc" >&6; }
22751 # So? What about this header?
22752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22754 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22755 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22756 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22758 ac_header_preproc=yes
22761 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22762 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22763 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22764 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22765 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22766 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22767 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22768 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22769 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22771 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22772 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22776 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22777 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22778 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22779 echo $ECHO_N "(cached
) $ECHO_C" >&6
22781 eval "$as_ac_Header=\
$ac_header_preproc"
22783 ac_res=`eval echo '${'$as_ac_Header'}'`
22784 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22785 echo "${ECHO_T}$ac_res" >&6; }
22788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22789 cat >>confdefs.h <<_ACEOF
22790 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22798 if test -f /usr/lpp/X11/bin/smt.exp; then
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_AIX_SMT_EXP 1
22806 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22807 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22808 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22809 { echo "$as_me:$LINENO: result
: yes" >&5
22810 echo "${ECHO_T}yes" >&6; }
22812 cat >>confdefs.h <<\_ACEOF
22813 #define HAVE_DEV_PTMX 1
22817 { echo "$as_me:$LINENO: result
: no
" >&5
22818 echo "${ECHO_T}no
" >&6; }
22821 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22822 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22823 if test "${ac_cv_type_pid_t+set}" = set; then
22824 echo $ECHO_N "(cached
) $ECHO_C" >&6
22826 cat >conftest.$ac_ext <<_ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 $ac_includes_default
22833 typedef pid_t ac__type_new_;
22837 if ((ac__type_new_ *) 0)
22839 if (sizeof (ac__type_new_))
22845 rm -f conftest.$ac_objext
22846 if { (ac_try="$ac_compile"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_compile") 2>conftest.er1
22854 grep -v '^ *+' conftest.er1 >conftest.err
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest.$ac_objext; then
22862 ac_cv_type_pid_t=yes
22864 echo "$as_me: failed program was
:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22867 ac_cv_type_pid_t=no
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22873 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22874 if test $ac_cv_type_pid_t = yes; then
22878 cat >>confdefs.h <<_ACEOF
22885 for ac_header in vfork.h
22887 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22889 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22890 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22891 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22892 echo $ECHO_N "(cached
) $ECHO_C" >&6
22894 ac_res=`eval echo '${'$as_ac_Header'}'`
22895 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22896 echo "${ECHO_T}$ac_res" >&6; }
22898 # Is the header compilable?
22899 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22900 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22901 cat >conftest.$ac_ext <<_ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22907 $ac_includes_default
22908 #include <$ac_header>
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_compile") 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest.$ac_objext; then
22927 ac_header_compiler=yes
22929 echo "$as_me: failed program was
:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 ac_header_compiler=no
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22937 echo "${ECHO_T}$ac_header_compiler" >&6; }
22939 # Is the header present?
22940 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22941 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22942 cat >conftest.$ac_ext <<_ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 #include <$ac_header>
22950 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22958 grep -v '^ *+' conftest.er1 >conftest.err
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22962 (exit $ac_status); } >/dev/null && {
22963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22966 ac_header_preproc=yes
22968 echo "$as_me: failed program was
:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 ac_header_preproc=no
22974 rm -f conftest.err conftest.$ac_ext
22975 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22976 echo "${ECHO_T}$ac_header_preproc" >&6; }
22978 # So? What about this header?
22979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22981 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22982 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22983 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22985 ac_header_preproc=yes
22988 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22989 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22990 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22991 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22992 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22993 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22994 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22995 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22996 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22998 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22999 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23003 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23004 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23005 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23006 echo $ECHO_N "(cached
) $ECHO_C" >&6
23008 eval "$as_ac_Header=\
$ac_header_preproc"
23010 ac_res=`eval echo '${'$as_ac_Header'}'`
23011 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23012 echo "${ECHO_T}$ac_res" >&6; }
23015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23016 cat >>confdefs.h <<_ACEOF
23017 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23026 for ac_func in fork vfork
23028 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23029 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23030 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23031 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23032 echo $ECHO_N "(cached
) $ECHO_C" >&6
23034 cat >conftest.$ac_ext <<_ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23042 #define $ac_func innocuous_$ac_func
23044 /* System header to define __stub macros and hopefully few prototypes,
23045 which can conflict with char $ac_func (); below.
23046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23047 <limits.h> exists even on freestanding compilers. */
23050 # include <limits.h>
23052 # include <assert.h>
23057 /* Override any GCC internal prototype to avoid an error.
23058 Use char because int might match the return type of a GCC
23059 builtin and then its argument prototype would still apply. */
23064 /* The GNU C library defines this for functions which it implements
23065 to always fail with ENOSYS. Some functions are actually named
23066 something starting with __ and the normal name is an alias. */
23067 #if defined __stub_$ac_func || defined __stub___$ac_func
23074 return $ac_func ();
23079 rm -f conftest.$ac_objext conftest$ac_exeext
23080 if { (ac_try="$ac_link"
23081 case "(($ac_try" in
23082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083 *) ac_try_echo=$ac_try;;
23085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_link") 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23092 (exit $ac_status); } && {
23093 test -z "$ac_c_werror_flag" ||
23094 test ! -s conftest.err
23095 } && test -s conftest$ac_exeext &&
23096 $as_test_x conftest$ac_exeext; then
23097 eval "$as_ac_var=yes"
23099 echo "$as_me: failed program was
:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23102 eval "$as_ac_var=no
"
23105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23106 conftest$ac_exeext conftest.$ac_ext
23108 ac_res=`eval echo '${'$as_ac_var'}'`
23109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23110 echo "${ECHO_T}$ac_res" >&6; }
23111 if test `eval echo '${'$as_ac_var'}'` = yes; then
23112 cat >>confdefs.h <<_ACEOF
23113 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23119 if test "x
$ac_cv_func_fork" = xyes; then
23120 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23121 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23122 if test "${ac_cv_func_fork_works+set}" = set; then
23123 echo $ECHO_N "(cached
) $ECHO_C" >&6
23125 if test "$cross_compiling" = yes; then
23126 ac_cv_func_fork_works=cross
23128 cat >conftest.$ac_ext <<_ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 $ac_includes_default
23139 /* By Ruediger Kuhlmann. */
23140 return fork () < 0;
23146 rm -f conftest$ac_exeext
23147 if { (ac_try="$ac_link"
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_link") 2>&5
23155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
23164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_cv_func_fork_works=yes
23168 echo "$as_me: program exited with status
$ac_status" >&5
23169 echo "$as_me: failed program was
:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ( exit $ac_status )
23173 ac_cv_func_fork_works=no
23175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23180 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23181 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23184 ac_cv_func_fork_works=$ac_cv_func_fork
23186 if test "x
$ac_cv_func_fork_works" = xcross; then
23188 *-*-amigaos* | *-*-msdosdjgpp*)
23189 # Override, as these systems have only a dummy fork() stub
23190 ac_cv_func_fork_works=no
23193 ac_cv_func_fork_works=yes
23196 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23197 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23199 ac_cv_func_vfork_works=$ac_cv_func_vfork
23200 if test "x
$ac_cv_func_vfork" = xyes; then
23201 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23202 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23203 if test "${ac_cv_func_vfork_works+set}" = set; then
23204 echo $ECHO_N "(cached
) $ECHO_C" >&6
23206 if test "$cross_compiling" = yes; then
23207 ac_cv_func_vfork_works=cross
23209 cat >conftest.$ac_ext <<_ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 /* Thanks to Paul Eggert for this test. */
23216 $ac_includes_default
23217 #include <sys/wait.h>
23218 #ifdef HAVE_VFORK_H
23219 # include <vfork.h>
23221 /* On some sparc systems, changes by the child to local and incoming
23222 argument registers are propagated back to the parent. The compiler
23223 is told about this with #include <vfork.h>, but some compilers
23224 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23225 static variable whose address is put into a register that is
23226 clobbered by the vfork. */
23229 sparc_address_test (int arg)
23231 sparc_address_test (arg) int arg;
23234 static pid_t child;
23252 pid_t parent = getpid ();
23255 sparc_address_test (0);
23260 /* Here is another test for sparc vfork register problems. This
23261 test uses lots of local variables, at least as many local
23262 variables as main has allocated so far including compiler
23263 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23264 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23265 reuse the register of parent for one of the local variables,
23266 since it will think that parent can't possibly be used any more
23267 in this routine. Assigning to the local variable will thus
23268 munge parent in the parent process. */
23270 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23271 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23272 /* Convince the compiler that p..p7 are live; otherwise, it might
23273 use the same hardware register for all 8 local variables. */
23274 if (p != p1 || p != p2 || p != p3 || p != p4
23275 || p != p5 || p != p6 || p != p7)
23278 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23279 from child file descriptors. If the child closes a descriptor
23280 before it execs or exits, this munges the parent's descriptor
23281 as well. Test for this by closing stdout in the child. */
23282 _exit(close(fileno(stdout)) != 0);
23287 while (wait(&status) != child)
23290 /* Was there some problem with vforking? */
23293 /* Did the child fail? (This shouldn't happen.) */
23296 /* Did the vfork/compiler bug occur? */
23297 || parent != getpid()
23299 /* Did the file descriptor bug occur? */
23300 || fstat(fileno(stdout), &st) != 0
23305 rm -f conftest$ac_exeext
23306 if { (ac_try="$ac_link"
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_link") 2>&5
23314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316 { (case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_try") 2>&5
23323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ac_cv_func_vfork_works=yes
23327 echo "$as_me: program exited with status
$ac_status" >&5
23328 echo "$as_me: failed program was
:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ( exit $ac_status )
23332 ac_cv_func_vfork_works=no
23334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23339 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23340 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23343 if test "x
$ac_cv_func_fork_works" = xcross; then
23344 ac_cv_func_vfork_works=$ac_cv_func_vfork
23345 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23346 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23349 if test "x
$ac_cv_func_vfork_works" = xyes; then
23351 cat >>confdefs.h <<\_ACEOF
23352 #define HAVE_WORKING_VFORK 1
23357 cat >>confdefs.h <<\_ACEOF
23362 if test "x
$ac_cv_func_fork_works" = xyes; then
23364 cat >>confdefs.h <<\_ACEOF
23365 #define HAVE_WORKING_FORK 1
23371 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23372 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23373 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23374 echo $ECHO_N "(cached
) $ECHO_C" >&6
23376 cat >conftest.$ac_ext <<_ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 #include <langinfo.h>
23386 char* cs = nl_langinfo(CODESET);
23391 rm -f conftest.$ac_objext conftest$ac_exeext
23392 if { (ac_try="$ac_link"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_link") 2>conftest.er1
23400 grep -v '^ *+' conftest.er1 >conftest.err
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest$ac_exeext &&
23408 $as_test_x conftest$ac_exeext; then
23409 emacs_cv_langinfo_codeset=yes
23411 echo "$as_me: failed program was
:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 emacs_cv_langinfo_codeset=no
23417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23418 conftest$ac_exeext conftest.$ac_ext
23421 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23422 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23423 if test $emacs_cv_langinfo_codeset = yes; then
23425 cat >>confdefs.h <<\_ACEOF
23426 #define HAVE_LANGINFO_CODESET 1
23431 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23432 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23433 if test "${ac_cv_type_size_t+set}" = set; then
23434 echo $ECHO_N "(cached
) $ECHO_C" >&6
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 $ac_includes_default
23443 typedef size_t ac__type_new_;
23447 if ((ac__type_new_ *) 0)
23449 if (sizeof (ac__type_new_))
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 ac_cv_type_size_t=yes
23474 echo "$as_me: failed program was
:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ac_cv_type_size_t=no
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23483 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23484 if test $ac_cv_type_size_t = yes; then
23486 cat >>confdefs.h <<_ACEOF
23487 #define HAVE_SIZE_T 1
23494 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23495 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23496 if test "${ac_cv_type_mbstate_t+set}" = set; then
23497 echo $ECHO_N "(cached
) $ECHO_C" >&6
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 $ac_includes_default
23506 # include <wchar.h>
23510 mbstate_t x; return sizeof x;
23515 rm -f conftest.$ac_objext
23516 if { (ac_try="$ac_compile"
23517 case "(($ac_try" in
23518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_compile") 2>conftest.er1
23524 grep -v '^ *+' conftest.er1 >conftest.err
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23528 (exit $ac_status); } && {
23529 test -z "$ac_c_werror_flag" ||
23530 test ! -s conftest.err
23531 } && test -s conftest.$ac_objext; then
23532 ac_cv_type_mbstate_t=yes
23534 echo "$as_me: failed program was
:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_cv_type_mbstate_t=no
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23543 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23544 if test $ac_cv_type_mbstate_t = yes; then
23546 cat >>confdefs.h <<\_ACEOF
23547 #define HAVE_MBSTATE_T 1
23552 cat >>confdefs.h <<\_ACEOF
23553 #define mbstate_t int
23558 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23559 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23560 if test "${emacs_cv_c_restrict+set}" = set; then
23561 echo $ECHO_N "(cached
) $ECHO_C" >&6
23563 cat >conftest.$ac_ext <<_ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h. */
23569 void fred (int *restrict x);
23578 rm -f conftest.$ac_objext
23579 if { (ac_try="$ac_compile"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_compile") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest.$ac_objext; then
23595 emacs_cv_c_restrict=yes
23597 echo "$as_me: failed program was
:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 cat >conftest.$ac_ext <<_ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23606 void fred (int *__restrict x);
23615 rm -f conftest.$ac_objext
23616 if { (ac_try="$ac_compile"
23617 case "(($ac_try" in
23618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23622 (eval "$ac_compile") 2>conftest.er1
23624 grep -v '^ *+' conftest.er1 >conftest.err
23626 cat conftest.err >&5
23627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23628 (exit $ac_status); } && {
23629 test -z "$ac_c_werror_flag" ||
23630 test ! -s conftest.err
23631 } && test -s conftest.$ac_objext; then
23632 emacs_cv_c_restrict=__restrict
23634 echo "$as_me: failed program was
:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 emacs_cv_c_restrict=no
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23646 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23647 case "$emacs_cv_c_restrict" in
23648 yes) emacs_restrict=restrict;;
23649 no) emacs_restrict="";;
23650 *) emacs_restrict="$emacs_cv_c_restrict";;
23652 if test "$emacs_restrict" != __restrict; then
23654 cat >>confdefs.h <<_ACEOF
23655 #define __restrict $emacs_restrict
23660 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23661 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23662 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23663 echo $ECHO_N "(cached
) $ECHO_C" >&6
23665 cat >conftest.$ac_ext <<_ACEOF
23668 cat confdefs.h >>conftest.$ac_ext
23669 cat >>conftest.$ac_ext <<_ACEOF
23670 /* end confdefs.h. */
23671 void fred (int x[__restrict]);
23680 rm -f conftest.$ac_objext
23681 if { (ac_try="$ac_compile"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_compile") 2>conftest.er1
23689 grep -v '^ *+' conftest.er1 >conftest.err
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23693 (exit $ac_status); } && {
23694 test -z "$ac_c_werror_flag" ||
23695 test ! -s conftest.err
23696 } && test -s conftest.$ac_objext; then
23697 emacs_cv_c_restrict_arr=yes
23699 echo "$as_me: failed program was
:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 emacs_cv_c_restrict_arr=no
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23708 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23709 if test "$emacs_cv_c_restrict_arr" = yes; then
23711 cat >>confdefs.h <<\_ACEOF
23712 #define __restrict_arr __restrict
23719 # Set up the CFLAGS for real compilation, so we can substitute it.
23720 CFLAGS="$REAL_CFLAGS"
23721 CPPFLAGS="$REAL_CPPFLAGS"
23723 #### Find out which version of Emacs this is.
23724 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23725 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23726 if test x"${version}" = x; then
23727 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23728 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23729 { (exit 1); exit 1; }; }
23732 ### Specify what sort of things we'll be editing into Makefile and config.h.
23733 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23769 cat >>confdefs.h <<_ACEOF
23770 #define EMACS_CONFIGURATION "${canonical}"
23774 cat >>confdefs.h <<_ACEOF
23775 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23779 cat >>confdefs.h <<_ACEOF
23780 #define config_machfile "${machfile}"
23784 cat >>confdefs.h <<_ACEOF
23785 #define config_opsysfile "${opsysfile}"
23789 cat >>confdefs.h <<_ACEOF
23790 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23794 cat >>confdefs.h <<_ACEOF
23795 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23799 cat >>confdefs.h <<_ACEOF
23800 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23804 cat >>confdefs.h <<_ACEOF
23805 #define UNEXEC_SRC ${UNEXEC_SRC}
23809 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23811 cat >>confdefs.h <<\_ACEOF
23812 #define HAVE_X_WINDOWS 1
23816 if test "${USE_X_TOOLKIT}" != "none
" ; then
23818 cat >>confdefs.h <<\_ACEOF
23819 #define USE_X_TOOLKIT 1
23823 if test "${HAVE_X11}" = "yes" ; then
23825 cat >>confdefs.h <<\_ACEOF
23830 if test "${HAVE_MENUS}" = "yes" ; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define HAVE_MENUS 1
23837 if test "${GNU_MALLOC}" = "yes" ; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define GNU_MALLOC 1
23844 if test "${REL_ALLOC}" = "yes" ; then
23846 cat >>confdefs.h <<\_ACEOF
23847 #define REL_ALLOC 1
23857 #### Report on what we decided to do.
23858 #### Report GTK as a toolkit, even if it doesn't use Xt.
23859 #### It makes printing result more understandable as using GTK sets
23860 #### toolkit_scroll_bars to yes by default.
23861 if test "${HAVE_GTK}" = "yes"; then
23866 Configured
for \
`${canonical}'.
23868 Where should the build process find the source code? ${srcdir}
23869 What operating system and machine description files should Emacs use?
23870 \`${opsysfile}' and \`${machfile}'
23871 What compiler should emacs be built with?
${CC} ${CFLAGS}
23872 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23873 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23874 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23875 What window system should Emacs use?
${window_system}
23876 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23878 if test -n "${x_includes}"; then
23879 echo " Where
do we
find X Windows header files?
${x_includes}"
23881 echo " Where
do we
find X Windows header files? Standard
dirs"
23883 if test -n "${x_libraries}"; then
23884 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23886 echo " Where
do we
find X Windows libraries? Standard
dirs"
23889 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23890 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23891 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23892 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23893 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23894 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23895 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23896 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23897 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23898 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23900 if test "${USE_FONT_BACKEND}" = "yes"; then
23901 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23902 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23903 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23904 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23906 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23909 if test $USE_XASSERTS = yes; then
23910 echo " Compiling with asserts turned on.
"
23911 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23914 if test $USE_SYNC_INPUT = yes; then
23915 echo " Compiling with sync input.
"
23916 CPPFLAGS="$CPPFLAGS -DSYNC_INPUT=1"
23921 if test "$USE_X_TOOLKIT" = GTK; then
23922 case "$canonical" in
23924 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23925 will probably get a crash on startup. If this happens
, please use another
23926 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23932 if test "$HAVE_CARBON" = "yes"; then
23934 echo "Warning
: The Mac Carbon port is currently unsupported and has
23935 known problems. It is not recommended
for use by non-developers.
23936 Read the emacs-devel archives
for more information.
"
23940 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23941 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23946 # Remove any trailing slashes in these variables.
23947 test "${prefix}" != NONE &&
23948 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23949 test "${exec_prefix}" != NONE &&
23950 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23952 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23953 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23954 ## from Makefile.c can correctly provide the arg `-traditional' to the
23957 cat >conftest.$ac_ext <<_ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23965 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23966 $EGREP "yes..
yes" >/dev/null 2>&1; then
23967 CPP_NEED_TRADITIONAL=no
23969 CPP_NEED_TRADITIONAL=yes
23974 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
"
23976 ac_config_commands="$ac_config_commands default
"
23978 cat >confcache <<\_ACEOF
23979 # This file is a shell script that caches the results of configure
23980 # tests run on this system so they can be shared between configure
23981 # scripts and configure runs, see configure's option --config-cache.
23982 # It is not useful on other systems. If it contains results you don't
23983 # want to keep, you may remove or edit it.
23985 # config.status only pays attention to the cache file if you give it
23986 # the --recheck option to rerun configure.
23988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23990 # following values.
23994 # The following way of writing the cache mishandles newlines in values,
23995 # but we know of no workaround that is simple, portable, and efficient.
23996 # So, we kill variables containing newlines.
23997 # Ultrix sh set writes to stderr and can't be redirected directly,
23998 # and sets the high bit in the cache file unless we assign to the vars.
24000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24001 eval ac_val=\$$ac_var
24005 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24006 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24009 _ | IFS | as_nl) ;; #(
24010 *) $as_unset $ac_var ;;
24016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24017 *${as_nl}ac_space=\ *)
24018 # `set' does not quote correctly, so add quotes (double-quote
24019 # substitution turns \\\\ into \\, and sed turns \\ into \).
24022 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24025 # `set' quotes correctly as required by POSIX, so do not add quotes.
24026 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24040 if test -w "$cache_file"; then
24041 test "x
$cache_file" != "x
/dev
/null
" &&
24042 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24043 echo "$as_me: updating cache
$cache_file" >&6;}
24044 cat confcache >$cache_file
24046 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24047 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24052 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24053 # Let make expand exec_prefix.
24054 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24056 DEFS=-DHAVE_CONFIG_H
24060 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24061 # 1. Remove the extension, and $U if already installed.
24062 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24063 ac_i=`echo "$ac_i" | sed "$ac_script"`
24064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24065 # will be set to the directory where LIBOBJS objects are built.
24066 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24067 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24069 LIBOBJS=$ac_libobjs
24071 LTLIBOBJS=$ac_ltlibobjs
24075 : ${CONFIG_STATUS=./config.status}
24076 ac_clean_files_save=$ac_clean_files
24077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24078 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24079 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24080 cat >$CONFIG_STATUS <<_ACEOF
24082 # Generated by $as_me.
24083 # Run this file to recreate the current configuration.
24084 # Compiler output produced by configure, useful for debugging
24085 # configure, is in config.log if it exists.
24088 ac_cs_recheck=false
24090 SHELL=\${CONFIG_SHELL-$SHELL}
24093 cat >>$CONFIG_STATUS <<\_ACEOF
24094 ## --------------------- ##
24095 ## M4sh Initialization. ##
24096 ## --------------------- ##
24098 # Be more Bourne compatible
24099 DUALCASE=1; export DUALCASE # for MKS sh
24100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24104 # is contrary to our usage. Disable this feature.
24105 alias -g '${1+"$@"}'='"$@
"'
24106 setopt NO_GLOB_SUBST
24108 case `(set -o) 2>/dev/null` in
24109 *posix*) set -o posix ;;
24118 # Avoid depending upon Character Ranges.
24119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24122 as_cr_digits='0123456789'
24123 as_cr_alnum=$as_cr_Letters$as_cr_digits
24125 # The user is always right.
24126 if test "${PATH_SEPARATOR+set}" != set; then
24127 echo "#! /bin/sh" >conf$$.sh
24128 echo "exit 0" >>conf$$.sh
24130 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24138 # Support unset when possible.
24139 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24147 # We need space, tab and new line, in precisely that order. Quoting is
24148 # there to prevent editors from complaining about space-tab.
24149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24150 # splitting by setting IFS to empty value.)
24155 # Find who we are. Look in the path if we contain no directory separator.
24157 *[\\/]* ) as_myself
=$0 ;;
24158 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24159 for as_dir
in $PATH
24162 test -z "$as_dir" && as_dir
=.
24163 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24169 # We did not find ourselves, most probably we were run as `sh COMMAND'
24170 # in which case we are not to be found in the path.
24171 if test "x$as_myself" = x
; then
24174 if test ! -f "$as_myself"; then
24175 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24176 { (exit 1); exit 1; }
24179 # Work around bugs in pre-3.0 UWIN ksh.
24180 for as_var
in ENV MAIL MAILPATH
24181 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24189 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24190 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24191 LC_TELEPHONE LC_TIME
24193 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24194 eval $as_var=C
; export $as_var
24196 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24200 # Required to use basename.
24201 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24202 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24208 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24209 as_basename
=basename
24215 # Name of the executable.
24216 as_me
=`$as_basename -- "$0" ||
24217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24218 X"$0" : 'X\(//\)$' \| \
24219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24221 sed '/^.*\/\([^/][^/]*\)\/*$/{
24240 as_lineno_1
=$LINENO
24241 as_lineno_2
=$LINENO
24242 test "x$as_lineno_1" != "x$as_lineno_2" &&
24243 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24245 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24246 # uniformly replaced by the line number. The first 'sed' inserts a
24247 # line-number line after each line using $LINENO; the second 'sed'
24248 # does the real work. The second script uses 'N' to pair each
24249 # line-number line with the line containing $LINENO, and appends
24250 # trailing '-' during substitution so that $LINENO is not a special
24251 # case at line end.
24252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24253 # scripts with optimization help from Paolo Bonzini. Blame Lee
24254 # E. McMahon (1931-1989) for sed's syntax. :-)
24266 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24269 ' >$as_me.lineno
&&
24270 chmod +x
"$as_me.lineno" ||
24271 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24272 { (exit 1); exit 1; }; }
24274 # Don't try to exec as it changes $[0], causing all sort of problems
24275 # (the dirname of $[0] is not the place where we might find the
24276 # original and so on. Autoconf is especially sensitive to this).
24277 .
"./$as_me.lineno"
24278 # Exit status is that of the last command.
24283 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24289 ECHO_C
= ECHO_N
= ECHO_T
=
24290 case `echo -n x` in
24292 case `echo 'x\c'` in
24293 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24300 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24301 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24307 rm -f conf$$ conf$$.exe conf$$.
file
24308 if test -d conf$$.dir
; then
24309 rm -f conf$$.dir
/conf$$.
file
24315 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24317 # ... but there are two gotchas:
24318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24320 # In both cases, we have to default to `cp -p'.
24321 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24323 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24328 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24329 rmdir conf$$.dir
2>/dev
/null
24331 if mkdir
-p .
2>/dev
/null
; then
24334 test -d .
/-p && rmdir .
/-p
24338 if test -x / >/dev
/null
2>&1; then
24339 as_test_x
='test -x'
24341 if ls -dL / >/dev
/null
2>&1; then
24348 if test -d "$1"; then
24354 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24355 ???[sx]*):;;*)false;;esac;fi
24359 as_executable_p
=$as_test_x
24361 # Sed expression to map a string onto a valid CPP name.
24362 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24364 # Sed expression to map a string onto a valid variable name.
24365 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24370 # Save the log message, to keep $[0] and so on meaningful, and to
24371 # report actual input values of CONFIG_FILES etc. instead of their
24372 # values after options handling.
24374 This file was extended by emacs $as_me 23.0.50, which was
24375 generated by GNU Autoconf 2.61. Invocation command line was
24377 CONFIG_FILES = $CONFIG_FILES
24378 CONFIG_HEADERS = $CONFIG_HEADERS
24379 CONFIG_LINKS = $CONFIG_LINKS
24380 CONFIG_COMMANDS = $CONFIG_COMMANDS
24383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24388 cat >>$CONFIG_STATUS <<_ACEOF
24389 # Files that config.status was made for.
24390 config_files="$ac_config_files"
24391 config_headers="$ac_config_headers"
24392 config_commands="$ac_config_commands"
24396 cat >>$CONFIG_STATUS <<\_ACEOF
24398 \`$as_me' instantiates files from templates according to the
24399 current configuration.
24401 Usage: $0 [OPTIONS] [FILE]...
24403 -h, --help print this help, then exit
24404 -V, --version print version number and configuration settings, then exit
24405 -q, --quiet do not print progress messages
24406 -d, --debug don't remove temporary files
24407 --recheck update $as_me by reconfiguring in the same conditions
24408 --file=FILE[:TEMPLATE]
24409 instantiate the configuration file FILE
24410 --header=FILE[:TEMPLATE]
24411 instantiate the configuration header FILE
24413 Configuration files:
24416 Configuration headers:
24419 Configuration commands:
24422 Report bugs to <bug-autoconf@gnu.org>."
24425 cat >>$CONFIG_STATUS <<_ACEOF
24427 emacs config.status 23.0.50
24428 configured by $0, generated by GNU Autoconf 2.61,
24429 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24431 Copyright (C) 2006 Free Software Foundation, Inc.
24432 This config.status script is free software; the Free Software Foundation
24433 gives unlimited permission to copy, distribute and modify it."
24440 cat >>$CONFIG_STATUS <<\_ACEOF
24441 # If no file are specified by the user, then we need to provide default
24442 # value. By we need to know if files were specified by the user.
24448 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24449 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24460 # Handling of the options.
24461 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24463 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24464 echo "$ac_cs_version"; exit ;;
24465 --debug |
--debu |
--deb |
--de |
--d |
-d )
24467 --file |
--fil |
--fi |
--f )
24469 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24470 ac_need_defaults
=false
;;
24471 --header |
--heade |
--head |
--hea )
24473 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24474 ac_need_defaults
=false
;;
24476 # Conflict between --help and --header
24477 { echo "$as_me: error: ambiguous option: $1
24478 Try \`$0 --help' for more information." >&2
24479 { (exit 1); exit 1; }; };;
24480 --help |
--hel |
-h )
24481 echo "$ac_cs_usage"; exit ;;
24482 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24483 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24486 # This is an error.
24487 -*) { echo "$as_me: error: unrecognized option: $1
24488 Try \`$0 --help' for more information." >&2
24489 { (exit 1); exit 1; }; } ;;
24491 *) ac_config_targets
="$ac_config_targets $1"
24492 ac_need_defaults
=false
;;
24498 ac_configure_extra_args
=
24500 if $ac_cs_silent; then
24502 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24506 cat >>$CONFIG_STATUS <<_ACEOF
24507 if \$ac_cs_recheck; then
24508 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24509 CONFIG_SHELL=$SHELL
24510 export CONFIG_SHELL
24511 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24515 cat >>$CONFIG_STATUS <<\_ACEOF
24519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24520 ## Running $as_me. ##
24526 cat >>$CONFIG_STATUS <<_ACEOF
24530 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24534 cat >>$CONFIG_STATUS <<\_ACEOF
24536 # Handling of arguments.
24537 for ac_config_target
in $ac_config_targets
24539 case $ac_config_target in
24540 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24541 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24542 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24543 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24544 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24545 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24546 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24547 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24548 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24549 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24550 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24551 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24552 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24554 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24555 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24556 { (exit 1); exit 1; }; };;
24561 # If the user did not use the arguments to specify the items to instantiate,
24562 # then the envvar interface is used. Set only those that are not.
24563 # We use the long form for the default assignment because of an extremely
24564 # bizarre bug on SunOS 4.1.3.
24565 if $ac_need_defaults; then
24566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24567 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24568 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24571 # Have a temporary directory for convenience. Make it in the build tree
24572 # simply because there is no reason against having it here, and in addition,
24573 # creating and moving files from /tmp can sometimes cause problems.
24574 # Hook for its removal unless debugging.
24575 # Note that there is a small window in which the directory will not be cleaned:
24576 # after its creation but before its name has been assigned to `$tmp'.
24580 trap 'exit_status=$?
24581 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24583 trap '{ (exit 1); exit 1; }' 1 2 13 15
24585 # Create a (secure) tmp directory for tmp files.
24588 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24589 test -n "$tmp" && test -d "$tmp"
24592 tmp
=.
/conf$$
-$RANDOM
24593 (umask 077 && mkdir
"$tmp")
24596 echo "$me: cannot create a temporary directory in ." >&2
24597 { (exit 1); exit 1; }
24601 # Set up the sed scripts for CONFIG_FILES section.
24604 # No need to generate the scripts if there are no CONFIG_FILES.
24605 # This happens for instance when ./config.status config.h
24606 if test -n "$CONFIG_FILES"; then
24613 for ac_last_try
in false false false false false
:; do
24614 cat >conf$
$subs.
sed <<_ACEOF
24615 SHELL!$SHELL$ac_delim
24616 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24617 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24618 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24619 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24620 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24621 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24622 exec_prefix!$exec_prefix$ac_delim
24623 prefix!$prefix$ac_delim
24624 program_transform_name!$program_transform_name$ac_delim
24625 bindir!$bindir$ac_delim
24626 sbindir!$sbindir$ac_delim
24627 libexecdir!$libexecdir$ac_delim
24628 datarootdir!$datarootdir$ac_delim
24629 datadir!$datadir$ac_delim
24630 sysconfdir!$sysconfdir$ac_delim
24631 sharedstatedir!$sharedstatedir$ac_delim
24632 localstatedir!$localstatedir$ac_delim
24633 includedir!$includedir$ac_delim
24634 oldincludedir!$oldincludedir$ac_delim
24635 docdir!$docdir$ac_delim
24636 infodir!$infodir$ac_delim
24637 htmldir!$htmldir$ac_delim
24638 dvidir!$dvidir$ac_delim
24639 pdfdir!$pdfdir$ac_delim
24640 psdir!$psdir$ac_delim
24641 libdir!$libdir$ac_delim
24642 localedir!$localedir$ac_delim
24643 mandir!$mandir$ac_delim
24644 DEFS!$DEFS$ac_delim
24645 ECHO_C!$ECHO_C$ac_delim
24646 ECHO_N!$ECHO_N$ac_delim
24647 ECHO_T!$ECHO_T$ac_delim
24648 LIBS!$LIBS$ac_delim
24649 build_alias!$build_alias$ac_delim
24650 host_alias!$host_alias$ac_delim
24651 target_alias!$target_alias$ac_delim
24652 MAINT!$MAINT$ac_delim
24653 build!$build$ac_delim
24654 build_cpu!$build_cpu$ac_delim
24655 build_vendor!$build_vendor$ac_delim
24656 build_os!$build_os$ac_delim
24657 host!$host$ac_delim
24658 host_cpu!$host_cpu$ac_delim
24659 host_vendor!$host_vendor$ac_delim
24660 host_os!$host_os$ac_delim
24662 CFLAGS!$CFLAGS$ac_delim
24663 LDFLAGS!$LDFLAGS$ac_delim
24664 CPPFLAGS!$CPPFLAGS$ac_delim
24665 ac_ct_CC!$ac_ct_CC$ac_delim
24666 EXEEXT!$EXEEXT$ac_delim
24667 OBJEXT!$OBJEXT$ac_delim
24669 GREP!$GREP$ac_delim
24670 EGREP!$EGREP$ac_delim
24671 LN_S!$LN_S$ac_delim
24672 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24673 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24674 INSTALL_DATA!$INSTALL_DATA$ac_delim
24675 RANLIB!$RANLIB$ac_delim
24676 INSTALL_INFO!$INSTALL_INFO$ac_delim
24677 GZIP_PROG!$GZIP_PROG$ac_delim
24678 MAKEINFO!$MAKEINFO$ac_delim
24679 LIBSOUND!$LIBSOUND$ac_delim
24680 PKG_CONFIG!$PKG_CONFIG$ac_delim
24681 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24682 ALSA_LIBS!$ALSA_LIBS$ac_delim
24683 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24684 SET_MAKE!$SET_MAKE$ac_delim
24685 XMKMF!$XMKMF$ac_delim
24686 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24687 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24688 RSVG_LIBS!$RSVG_LIBS$ac_delim
24689 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24690 GTK_LIBS!$GTK_LIBS$ac_delim
24691 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24692 DBUS_LIBS!$DBUS_LIBS$ac_delim
24693 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24694 XFT_LIBS!$XFT_LIBS$ac_delim
24695 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24696 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24697 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24698 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24699 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24700 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24701 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24702 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24703 ALLOCA!$ALLOCA$ac_delim
24704 liblockfile!$liblockfile$ac_delim
24705 LIBOBJS!$LIBOBJS$ac_delim
24706 NEED_SETGID!$NEED_SETGID$ac_delim
24707 KMEM_GROUP!$KMEM_GROUP$ac_delim
24708 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24709 GETOPT_H!$GETOPT_H$ac_delim
24710 GETOPTOBJS!$GETOPTOBJS$ac_delim
24711 version!$version$ac_delim
24714 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24716 elif $ac_last_try; then
24717 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24718 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24719 { (exit 1); exit 1; }; }
24721 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24725 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24726 if test -n "$ac_eof"; then
24727 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24728 ac_eof
=`expr $ac_eof + 1`
24731 cat >>$CONFIG_STATUS <<_ACEOF
24732 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24736 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24737 s/^/s,@/; s/!/@,|#_!!_#|/
24740 s/'"$ac_delim"'$/,g/; t
24742 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24743 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24744 rm -f conf$
$subs.
sed
24745 cat >>$CONFIG_STATUS <<_ACEOF
24751 for ac_last_try
in false false false false false
:; do
24752 cat >conf$
$subs.
sed <<_ACEOF
24753 configuration!$configuration$ac_delim
24754 canonical!$canonical$ac_delim
24755 srcdir!$srcdir$ac_delim
24756 lispdir!$lispdir$ac_delim
24757 locallisppath!$locallisppath$ac_delim
24758 lisppath!$lisppath$ac_delim
24759 x_default_search_path!$x_default_search_path$ac_delim
24760 etcdir!$etcdir$ac_delim
24761 archlibdir!$archlibdir$ac_delim
24762 bitmapdir!$bitmapdir$ac_delim
24763 gamedir!$gamedir$ac_delim
24764 gameuser!$gameuser$ac_delim
24765 c_switch_system!$c_switch_system$ac_delim
24766 c_switch_machine!$c_switch_machine$ac_delim
24767 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24768 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24769 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24770 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24771 machfile!$machfile$ac_delim
24772 opsysfile!$opsysfile$ac_delim
24773 carbon_appdir!$carbon_appdir$ac_delim
24774 LTLIBOBJS!$LTLIBOBJS$ac_delim
24777 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24779 elif $ac_last_try; then
24780 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24781 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24782 { (exit 1); exit 1; }; }
24784 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24788 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24789 if test -n "$ac_eof"; then
24790 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24791 ac_eof
=`expr $ac_eof + 1`
24794 cat >>$CONFIG_STATUS <<_ACEOF
24795 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24799 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24800 s/^/s,@/; s/!/@,|#_!!_#|/
24803 s/'"$ac_delim"'$/,g/; t
24805 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24806 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24807 rm -f conf$
$subs.
sed
24808 cat >>$CONFIG_STATUS <<_ACEOF
24815 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24816 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24817 # trailing colons and then remove the whole line if VPATH becomes empty
24818 # (actually we leave an empty line to preserve line numbers).
24819 if test "x$srcdir" = x.
; then
24820 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24821 s/:*\$(srcdir):*/:/
24822 s/:*\${srcdir}:*/:/
24824 s/^\([^=]*=[ ]*\):*/\1/
24830 cat >>$CONFIG_STATUS <<\_ACEOF
24831 fi # test -n "$CONFIG_FILES"
24834 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24837 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24839 case $ac_mode$ac_tag in
24841 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24842 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24843 { (exit 1); exit 1; }; };;
24844 :[FH
]-) ac_tag
=-:-;;
24845 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24862 -) ac_f
="$tmp/stdin";;
24863 *) # Look for the file first in the build tree, then in the source tree
24864 # (if the path is not absolute). The absolute path cannot be DOS-style,
24865 # because $ac_f cannot contain `:'.
24869 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24871 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24872 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24873 { (exit 1); exit 1; }; };;
24875 ac_file_inputs
="$ac_file_inputs $ac_f"
24878 # Let's still pretend it is `configure' which instantiates (i.e., don't
24879 # use $as_me), people would be surprised to read:
24880 # /* config.h. Generated by config.status. */
24881 configure_input
="Generated from "`IFS=:
24882 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24883 if test x
"$ac_file" != x-
; then
24884 configure_input
="$ac_file. $configure_input"
24885 { echo "$as_me:$LINENO: creating $ac_file" >&5
24886 echo "$as_me: creating $ac_file" >&6;}
24890 *:-:* |
*:-) cat >"$tmp/stdin";;
24895 ac_dir
=`$as_dirname -- "$ac_file" ||
24896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24897 X"$ac_file" : 'X\(//\)[^/]' \| \
24898 X"$ac_file" : 'X\(//\)$' \| \
24899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24905 /^X\(\/\/\)[^/].*/{
24920 -*) as_dir
=.
/$as_dir;;
24922 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24926 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24927 *) as_qdir
=$as_dir;;
24929 as_dirs
="'$as_qdir' $as_dirs"
24930 as_dir
=`$as_dirname -- "$as_dir" ||
24931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24932 X"$as_dir" : 'X\(//\)[^/]' \| \
24933 X"$as_dir" : 'X\(//\)$' \| \
24934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24940 /^X\(\/\/\)[^/].*/{
24953 test -d "$as_dir" && break
24955 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24956 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24957 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24958 { (exit 1); exit 1; }; }; }
24962 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24964 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24965 # A ".." for each directory in $ac_dir_suffix.
24966 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24967 case $ac_top_builddir_sub in
24968 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24969 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24972 ac_abs_top_builddir
=$ac_pwd
24973 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24974 # for backward compatibility:
24975 ac_top_builddir
=$ac_top_build_prefix
24978 .
) # We are building in place.
24980 ac_top_srcdir
=$ac_top_builddir_sub
24981 ac_abs_top_srcdir
=$ac_pwd ;;
24982 [\\/]* | ?
:[\\/]* ) # Absolute name.
24983 ac_srcdir
=$srcdir$ac_dir_suffix;
24984 ac_top_srcdir
=$srcdir
24985 ac_abs_top_srcdir
=$srcdir ;;
24986 *) # Relative name.
24987 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24988 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24989 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24991 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25001 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25002 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25006 cat >>$CONFIG_STATUS <<\_ACEOF
25007 # If the template does not know about datarootdir, expand it.
25008 # FIXME: This hack should be removed a few years after 2.60.
25009 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25011 case `sed -n '/datarootdir/ {
25020 ' $ac_file_inputs` in
25021 *datarootdir
*) ac_datarootdir_seen
=yes;;
25022 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25023 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25024 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25026 cat >>$CONFIG_STATUS <<_ACEOF
25027 ac_datarootdir_hack='
25028 s&@datadir@&$datadir&g
25029 s&@docdir@&$docdir&g
25030 s&@infodir@&$infodir&g
25031 s&@localedir@&$localedir&g
25032 s&@mandir@&$mandir&g
25033 s&\\\${datarootdir}&$datarootdir&g' ;;
25037 # Neutralize VPATH when `$srcdir' = `.'.
25038 # Shell code in configure.ac might set extrasub.
25039 # FIXME: do we really want to maintain this feature?
25040 cat >>$CONFIG_STATUS <<_ACEOF
25044 cat >>$CONFIG_STATUS <<\_ACEOF
25046 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25047 s
&@configure_input@
&$configure_input&;t t
25048 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25049 s
&@srcdir@
&$ac_srcdir&;t t
25050 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25051 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25052 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25053 s
&@builddir@
&$ac_builddir&;t t
25054 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25055 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25056 s
&@INSTALL@
&$ac_INSTALL&;t t
25057 $ac_datarootdir_hack
25058 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25061 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25063 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25064 which seems to be undefined. Please make sure it is defined." >&5
25065 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25066 which seems to be undefined. Please make sure it is defined." >&2;}
25070 -) cat "$tmp/out"; rm -f "$tmp/out";;
25071 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25080 # Transform confdefs.h into a sed script `conftest.defines', that
25081 # substitutes the proper values into config.h.in to produce config.h.
25082 rm -f conftest.defines conftest.
tail
25083 # First, append a space to every undef/define line, to ease matching.
25084 echo 's/$/ /' >conftest.defines
25085 # Then, protect against being on the right side of a sed subst, or in
25086 # an unquoted here document, in config.status. If some macros were
25087 # called several times there might be several #defines for the same
25088 # symbol, which is useless. But do not sort them, since the last
25089 # AC_DEFINE must be honored.
25090 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25091 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25092 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25093 # PARAMS is the parameter list in the macro definition--in most cases, it's
25094 # just an empty string.
25095 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25096 ac_dB
='\\)[ (].*,\\1define\\2'
25104 s/^[ ]*#[ ]*define[ ][ ]*//
25109 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25110 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25111 ' >>conftest.defines
25113 # Remove the space that was appended to ease matching.
25114 # Then replace #undef with comments. This is necessary, for
25115 # example, in the case of _POSIX_SOURCE, which is predefined and required
25116 # on some systems where configure will not decide to define it.
25117 # (The regexp can be short, since the line contains either #define or #undef.)
25119 s,^[ #]*u.*,/* & */,' >>conftest.defines
25121 # Break up conftest.defines:
25122 ac_max_sed_lines
=50
25124 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25125 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25126 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25128 ac_in
='$ac_file_inputs'
25129 ac_out
='"$tmp/out1"'
25130 ac_nxt
='"$tmp/out2"'
25134 # Write a here document:
25135 cat >>$CONFIG_STATUS <<_ACEOF
25136 # First, check the format of the line:
25137 cat >"\$tmp/defines.sed" <<\\CEOF
25138 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25139 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25143 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25145 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25146 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25147 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25148 grep . conftest.
tail >/dev
/null ||
break
25149 rm -f conftest.defines
25150 mv conftest.
tail conftest.defines
25152 rm -f conftest.defines conftest.
tail
25154 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25155 cat >>$CONFIG_STATUS <<\_ACEOF
25156 if test x
"$ac_file" != x-
; then
25157 echo "/* $configure_input */" >"$tmp/config.h"
25158 cat "$ac_result" >>"$tmp/config.h"
25159 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25161 echo "$as_me: $ac_file is unchanged" >&6;}
25164 mv "$tmp/config.h" $ac_file
25167 echo "/* $configure_input */"
25173 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25174 echo "$as_me: executing $ac_file commands" >&6;}
25179 case $ac_file$ac_mode in
25182 ### Make the necessary directories, if they don't exist.
25183 for dir
in etc lisp
; do
25184 test -d ${dir} || mkdir
${dir}
25187 # Build src/Makefile from ${srcdir}/src/Makefile.c
25188 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25189 # This must be done after src/config.h is built, since we rely on that file.
25191 # Now get this: Some word that is part of the ${srcdir} directory name
25192 # or the ${configuration} value might, just might, happen to be an
25193 # identifier like `sun4' or `i386' or something, and be predefined by
25194 # the C preprocessor to some helpful value like 1, or maybe the empty
25195 # string. Needless to say consequent macro substitutions are less
25196 # than conducive to the makefile finding the correct directory.
25197 undefs
="`echo $top_srcdir $configuration $canonical |
25198 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25199 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25202 echo creating src
/epaths.h
25203 ${MAKE-make} epaths-force
25205 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25206 # `..' to `. .' unless invoked with -traditional
25208 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25209 CPPFLAGS
="$CPPFLAGS -traditional"
25212 echo creating lib-src
/Makefile
25214 rm -f junk.c junk1.c junk2.c
25215 sed -e '/start of cpp stuff/q' \
25216 < Makefile.c
> junk1.c
25217 sed -e '1,/start of cpp stuff/d'\
25218 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25219 < Makefile.c
> junk.c
25220 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25221 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25222 cat junk1.c junk2.c
> Makefile.new
25223 rm -f junk.c junk1.c junk2.c
25224 chmod 444 Makefile.new
25225 mv -f Makefile.new Makefile
25228 echo creating src
/Makefile
25230 rm -f junk.c junk1.c junk2.c
25231 sed -e '/start of cpp stuff/q' \
25232 < Makefile.c
> junk1.c
25233 sed -e '1,/start of cpp stuff/d'\
25234 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25235 < Makefile.c
> junk.c
25236 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25237 echo creating
${srcdir}/admin
/unidata
/Makefile
25238 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25239 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25241 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25242 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25243 cat junk1.c junk2.c
> Makefile.new
25244 rm -f junk.c junk1.c junk2.c
25245 chmod 444 Makefile.new
25246 mv -f Makefile.new Makefile
25249 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25250 echo creating src
/.gdbinit
25251 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25254 # This is how we know whether to re-run configure in certain cases.
25255 touch src
/config.stamp
25263 { (exit 0); exit 0; }
25265 chmod +x
$CONFIG_STATUS
25266 ac_clean_files
=$ac_clean_files_save
25269 # configure is writing to config.log, and then calls config.status.
25270 # config.status does its own redirection, appending to config.log.
25271 # Unfortunately, on DOS this fails, as config.log is still kept open
25272 # by configure, so config.status won't be able to write to it; its
25273 # output is simply discarded. So we exec the FD to /dev/null,
25274 # effectively closing config.log, so it can be properly (re)opened and
25275 # appended to by config.status. When coming back to configure, we
25276 # need to make the FD available again.
25277 if test "$no_create" != yes; then
25279 ac_config_status_args
=
25280 test "$silent" = yes &&
25281 ac_config_status_args
="$ac_config_status_args --quiet"
25283 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25285 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25286 # would make configure fail if this is the last instruction.
25287 $ac_cs_success ||
{ (exit 1); exit 1; }